Introduction
Mechanistic interpretability typically treats neural networks as static "black boxes" to be reverse-engineered after training. However, this approach often overlooks the dynamic process of how a network selects one algorithm over another when multiple solutions are possible. Recent research proposes a "Survival of the Fittest" hypothesis to explain this selection process. By studying the toy problem of modular addition ($a + b \pmod p$), researchers have demonstrated that different potential algorithms—represented as Fourier frequencies—compete during training, with the most "fit" representations emerging as the final solution.
Theoretical Framework: The Ecological Analogy
The core of this framework is an analogy between neural network initialization and a biological ecosystem. At the start of training, the high-dimensional embedding space contains various potential "species" (Fourier frequencies). These frequencies compete for limited "resources," which in this context are the available embedding dimensions.
"Fitness" is not a random outcome but is determined by two primary factors at initialization:
- Initial Signal Magnitude: Being "born strong."
- Initial Gradient/Velocity: Being "born fast."
Empirical analysis shows that a frequency's survival is highly predictable; an SVM can predict which frequencies will persist with approximately 84% accuracy based solely on these initial conditions.
Methodology: Fourier Decomposition and ODE Modeling
To observe these dynamics, the researchers utilized a two-layer Multi-Layer Perceptron (MLP) to perform modular addition. They applied a Discrete Fourier Transform to the model's embedding matrix, allowing them to decompose high-dimensional embeddings into distinct frequencies.
The evolution of these frequency signals was characterized using linear ordinary differential equations (ODEs), similar to the Lotka-Volterra equations used in ecology to model population dynamics. This allowed the team to track how specific frequency signals grow or decay over the course of thousands of training steps.
Key Results and Dynamics
The study yielded several critical insights into the nature of representation learning:
- Predictable Survival Correlation: There is a high Pearson correlation (0.85) between a frequency's initial signal and its eventual survival rate.
- Mandatory Collaboration: Interestingly, the model almost never settles on a single frequency. A single "circle" cannot solve modular addition; the model requires at least three frequencies to "collaborate" to reach near-zero loss.
- Resource-Driven Redundancy: As the embedding dimension ($d$) increases, more frequencies survive. This suggests that larger models do not necessarily learn more complex algorithms, but rather more redundant versions of the same circular representation.
The linear ODE model achieved an $R^2$ value close to 1.0 in many cases, indicating that the complex training trajectory of these features is remarkably predictable once training begins. Furthermore, by manually "seeding" the strongest frequencies and suppressing others, the researchers could force the model to converge on a solution significantly faster than standard unconstrained training.
Conclusion and Future Work
While modular addition is a specific task with a periodic structure that maps well to Fourier analysis, this "Survival of the Fittest" framework provides a promising new lens for mechanistic interpretability. Future work will investigate whether these competitive dynamics explain phenomena like "grokking" (sudden generalization long after overfitting) and whether these insights can be used to prune networks at initialization, potentially saving massive amounts of compute by preserving only the most viable potential features.
Summary updated