Introduction
When attempting to understand why a machine learning model makes a specific prediction—such as classifying an image as a "poodle"—researchers often turn to Training Data Attribution (TDA) methods like Influence Functions. Traditionally, these methods treat a training example's influence as a static "score" calculated at the end of training.
However, neural networks do not learn everything simultaneously. They develop in distinct stages, often learning broad concepts (like "animal") before fine-grained distinctions (like "dog" versus "poodle"). A data point that is highly beneficial during the early stages of learning a broad category might actually interfere with the model's ability to learn nuanced details later on. This paper challenges the traditional static view, proposing a shift from pointwise attribution (asking which data matters) to stagewise attribution (asking when and why it matters).
Methods: Singular Learning Theory and Bayesian Influence
To measure dynamic influence, the authors introduce a framework grounded in Singular Learning Theory (SLT). SLT is a mathematical framework designed to account for the "degenerate" (non-smooth) loss landscapes typical of neural networks. It predicts that learning does not happen in a smooth, continuous curve, but rather through discrete "phase transitions" where the model's internal representation fundamentally shifts.
To capture this, the researchers utilize the Bayesian Influence Function (BIF). Unlike classical influence functions, the BIF offers several key advantages for stagewise analysis:
- Distributional: It measures changes in the posterior expectation rather than relying on a single point estimate.
- Hessian-Free: It avoids the computationally expensive and often unstable inversion of the Hessian matrix.
- Universally Applicable: It is well-defined at any point along the training trajectory, not just at local minima.
The authors estimate the BIF using RMSProp-SGLD (Stochastic Gradient Langevin Dynamics), allowing them to probe the model's susceptibility to specific data points at various checkpoints throughout training.
Experimental Setup and Datasets
The framework was validated across both controlled environments and large-scale language models:
- Toy Hierarchical Model: A 2-layer linear network trained on a semantic dataset containing 8 objects (e.g., dog, cat, sparrow, pine) and their hierarchical features.
- Language Models: The Pythia Scaling Suite (specifically 14M and 3M parameter models) trained on The Pile.
- Synthetic Induction Dataset: A custom dataset designed to track the formation of "induction heads"—the specific attention mechanisms models use to complete repeating patterns.
Key Insights and Results
Influence is Dynamic and Non-Monotonic
The most striking finding is that influence is not a static property that simply grows or shrinks. It can exhibit "sign flips." A specific training example might be "constructive" (helpful) at step 1,000, but become "destructive" (harmful) by step 10,000.
Peaks at Phase Transitions
Data influence spikes sharply at the exact moments a model undergoes a developmental shift. In the toy hierarchical model, these peaks aligned perfectly with "branching points"—for example, the exact epoch where the model learned to distinguish mammals from birds.
The "When" Matters: Time-Specific Ablation
To prove that timing is critical, the authors performed time-specific ablation experiments. They discovered that removing a data point only during its peak influence window caused significantly more damage to the model's final performance than removing it at any other time during training. This suggests models follow an implicit curriculum, where different subsets of data become critical at specific moments to drive structural changes.
Scaling to Language Models
These phenomena hold true at scale. In the Pythia-14M model, the authors observed sudden shifts in influence between token classes. Specifically, the influence of data related to induction patterns peaked around 30,000 steps—aligning perfectly with the known developmental window for induction circuits. By causally intervening and upweighting this specific data during its peak receptivity window, the authors successfully accelerated the formation of induction heads.
Limitations and Future Work
While groundbreaking, the framework has limitations. There remains a theoretical gap between the idealized Bayesian learning process modeled by SLT and the non-equilibrium dynamics of standard optimizers like Adam or SGD. Furthermore, while the paper identifies when influence changes, it does not fully map the mechanistic changes occurring within the network's circuits. Finally, calculating dense, token-by-token influence matrices for billion-parameter models remains a significant computational hurdle.
Ultimately, this research demonstrates that understanding the temporal dynamics of data influence is essential for interpreting, debugging, and efficiently steering how neural networks learn.
Summary updated