TL;DR
In a massive study of a 1.5B parameter code model, researchers found that while a model's behavior stabilizes early in training, the specific neurons responsible for that behavior never stop changing. This "representational drift" means that a model's internal "circuitry" for a concept like a for loop is a moving target, even after two trillion tokens of training.
What Problem Does This Paper Address?
We often think of training as a process of "finding" the right weights and then refining them until they reach a steady state. But does a model's internal representation ever truly settle down?
In neuroscience, representational drift describes how the brain's neural activity patterns for a stable behavior change over days or weeks, even when the behavior itself doesn't change. This paper asks if the same phenomenon occurs in Large Language Models (LLMs) during their long pretraining journeys. Specifically, once a model learns a programming construct (like the len() function or a list comprehension), do the same neurons keep "carrying" that concept, or does the responsibility shift around?
Methods
The authors performed a high-resolution longitudinal study of OpenCoder-1.5B during its pretraining:
- Checkpoints: They analyzed 35 checkpoints spanning from 4.19 billion to 2.03 trillion tokens.
- The Instrument: They used a "calibrated concept profile"—a battery of Python prompts designed to isolate 169 specific grammar constructs.
- The "Twins" Approach: To separate real change from random noise, they ran every test twice with slightly different surroundings. This established a "noise unit" (the twin turnover), allowing them to measure drift relative to a baseline of inherent measurement instability.
- Carrier Sets: They defined the "carriers" of a construct as the top 5% of neurons in the Transformer's MLP blocks that responded most strongly to that construct.
- Pre-registration: Crucially, the authors pre-registered their hypotheses and a "settling rule" to objectively determine if a construct's carrier set ever stopped changing.
Datasets
- Training Data: The model was pretrained on the OpenCoder corpus, a massive collection of code totaling over 2 trillion tokens.
- Evaluation Battery: The authors generated a synthetic battery of Python prompts based on a reference corpus of 253,398 parsed Python files. This ensured the prompts reflected the statistical distribution of real-world code (nesting levels, identifier lengths, etc.).
Key Insights and Ideas
- The Three Timescales Paradox: The paper identifies three distinct timelines in a model's life. First, behavior (loss) settles incredibly fast—within the first 4% of training. Second, the model's reliance on its current carriers actually increases over time. Third, the membership of those carrier sets never settles.
- Readout vs. Units: This is the core "aha" moment. What consolidates during training is the readout (the ability to perform the task and extract information), not the specific units (neurons) doing the work. The function is stable, but the implementation is fluid.
- The Persisting Pool: When a neuron leaves a "carrier set," it isn't gone for good. It is three times more likely to return to that set later than a random neuron would be. This suggests the model maintains a "pool" of neurons capable of carrying a construct, and the active set at any moment is just a shifting sample from that pool.
- Refuting the "Settling" Myth: The authors' original hypothesis was that carrier sets would eventually settle. This was flatly refuted. Even with a detection rule sensitive enough to find "settling" in 99% of simulated cases, they found zero settled constructs in the real data.
Key Results
- Early Maturity: For constructs where grammar fixes the next token (e.g., the colon after a
forloop), the model reaches its performance floor within the first 84 billion tokens (4% of training). - Continuous Turnover: At the final checkpoint (2 trillion tokens), the carrier sets were still changing at a rate roughly twice the baseline noise level.
- Functional Obsolescence: If you take the neurons that were "carrying" a construct at 84B tokens and remove them at the end of training (2T tokens), the effect on the model is no different than removing a random set of neurons. The model has completely "moved on" to new carriers.
- Reliance Growth: Despite the drift, the model becomes more dependent on its current carriers as training progresses. Removing the current carrier set at the end of training causes a loss spike of 0.40 nats, compared to only 0.06 nats early in training.
Limitations and Future Work
- Single Model/Language: The study focuses on one specific model (OpenCoder-1.5B) and one language (Python). It remains to be seen if representational drift looks the same in natural language models or different architectures.
- MLP Focus: The study specifically looks at neurons in the MLP blocks. Future work could investigate if attention heads exhibit similar drift.
- The "Why": While the paper refutes several candidate causes (like simple frequency effects), it doesn't name a single definitive cause. The authors suggest a "decisive experiment" involving training the same model twice on the same data with different learning rate schedules to separate "gradient noise" from "equivalent implementations."
Summary updated