Survival of the Fittest Representation: A Case Study with Modular Addition

Xiaoman Delores Ding, Zifan Carl Guo, Eric J. Michaud, Ziming Liu, Max Tegmark
5/27/2024
cs.LG

No official code found. Best implementation: carlguo866/circle-survival (8 stars, MIT, last commit 2024-05-28).

Abstract

When a neural network can learn multiple distinct algorithms to solve a task, how does it "choose" between them during training? To approach this question, we take inspiration from ecology: when multiple species coexist, they eventually reach an equilibrium where some survive while others die out. Analogously, we suggest that a neural network at initialization contains many solutions (representations and algorithms), which compete with each other under pressure from resource constraints, with the "fittest" ultimately prevailing. To investigate this Survival of the Fittest hypothesis, we conduct a case study on neural networks performing modular addition, and find that these networks' multiple circular representations at different Fourier frequencies undergo such competitive dynamics, with only a few circles surviving at the end. We find that the frequencies with high initial signals and gradients, the "fittest," are more likely to survive. By increasing the embedding dimension, we also observe more surviving frequencies. Inspired by the Lotka-Volterra equations describing the dynamics between species, we find that the dynamics of the circles can be nicely characterized by a set of linear differential equations. Our results with modular addition show that it is possible to decompose complicated representations into simpler components, along with their basic interactions, to offer insight on the training dynamics of representations.

View on arXivView PDF

Code Implementations(1)

MIT

Code repository for "Survival of the Fittest Representation: A Case Study with Modular Addition."

80PythonMay 26, 20242 years agoMIT

Similar Papers

Cite this paper

@article{ding2024survival,
  title  = {Survival of the Fittest Representation: A Case Study with Modular Addition},
  author = {Xiaoman Delores Ding and Zifan Carl Guo and Eric J. Michaud and Ziming Liu and Max Tegmark},
  year   = {2024},
  eprint = {2405.17420},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.17420v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.17420.svg)](https://codeofpaper.com/paper/2405.17420)

Discussion