Mechanistic Data Attribution: Tracing the Training Origins of Interpretable LLM Units
Jianhui Chen (Peking University), Yuzhang Luo, Liangming Pan
Overview
Modern large language models (LLMs) operate largely as black boxes, making it difficult to understand how specific internal circuits develop during the training process. While mechanistic interpretability (MI) has made significant strides in identifying functional internal components—such as induction heads for copy-pasting, knowledge neurons for factual retrieval, and Sparse Autoencoder (SAE) features for latent concepts—these studies have traditionally ignored the training data responsible for their genesis. This talk introduces Mechanistic Data Attribution (MDA), a novel framework designed to bridge the gap between model internal mechanisms and the specific training samples that shape them.

Key moments
- 0:00 Introduction and background on Mechanistic Data Attribution
- 2:00 Methodology: Influence functions and causal interventions
- 4:00 Efficiency and characteristics of influential samples
- 6:00 Mechanistic Data Augmentation and broader implications
- 8:00 Conclusion and audience Q&A session
Mechanistic Data Attribution: Tracing the Training Origins of Interpretable LLM Units
Speakers: Jianhui Chen (Peking University); Yuzhang Luo; Liangming Pan
Conference: ICML
YouTube: https://slideslive.com/39083626
Overview
Modern large language models (LLMs) operate largely as black boxes, making it difficult to understand how specific internal circuits develop during the training process. While mechanistic interpretability (MI) has made significant strides in identifying functional internal components—such as induction heads for copy-pasting, knowledge neurons for factual retrieval, and Sparse Autoencoder (SAE) features for latent concepts—these studies have traditionally ignored the training data responsible for their genesis. This talk introduces Mechanistic Data Attribution (MDA), a novel framework designed to bridge the gap between model internal mechanisms and the specific training samples that shape them.
Presented at ICML by Jianhui Chen from Peking University, this work proposes a systematic approach to trace, validate, and manipulate the training origins of interpretable neural network units. By combining modified influence functions with targeted data interventions, the authors demonstrate that it is possible to isolate the exact training origins of distinct model capabilities. Furthermore, the insights gained from MDA enable mechanistic data augmentation, allowing researchers to generate synthetic training patterns that accelerate the formation of target mechanisms without inducing side effects on broader language modeling or factual tasks.
Background
▶ Watch: Introduction and background on Mechanistic Data Attribution (0:00)
The intersection of machine learning systems and interpretability has long been divided into two separate paradigms: studying what models learn internally versus optimizing what data they consume during training. Mechanistic interpretability focuses on reverse-engineering neural networks into algorithmic components. Seminal discoveries in this area include induction heads, which execute in-context learning by attending to previous tokens that match the current prefix, and SAE features, which decompose dense activations into interpretable monosemantic dimensions. However, these works explain the destination of a model's internal circuitry without mapping the journey.
On the other side of the systems spectrum, data attribution methods—most notably classical influence functions—attempt to trace downstream model predictions back to individual training samples. Traditionally, influence functions estimate how perturbing a training example affects the validation loss on an entire evaluation task. Applying these classical methods to large-scale generative models is notoriously intractable, computationally expensive, and overly coarse-grained. MDA resolves these bottlenecks by narrowing the attribution target from global model loss to specific mechanistic units, opening a new frontier in data-centric machine learning systems.
Key Findings
▶ Watch: Methodology: Influence functions and causal interventions (2:00)
MDA establishes several counterintuitive and foundational empirical discoveries regarding how internal model mechanisms emerge from training data:
- Sublinear Scaling: Classical influence function computations scale poorly, but MDA restricts the parameter space specifically to target units and evaluates them via probing functions, allowing the framework to scale efficiently to models as large as Olmo-7B.
- Structural Uniformity: Influential training samples for specific mechanisms do not appear clustered in particular phases of training; instead, they are distributed almost uniformly across the entire training timeline.
- Non-Deterministic Emergence: Even when 95% of the highly influential samples for induction heads are removed from the training mixture, induction heads still emerge—albeit at a significantly delayed rate. This indicates that these samples govern the speed of mechanism formation rather than acting as a strict binary prerequisite.
- Mechanism-Level Shared Origins: Different induction heads within a model consistently identify highly overlapping training subsets, whereas unrelated attention heads share minimal overlap. This confirms that MDA isolates mechanism-level training data rather than head-specific anomalies.
- Causal Link to In-Context Learning (ICL): By strengthening or weakening induction heads via targeted data interventions, the authors provide direct causal evidence linking induction head formation to downstream ICL performance.
Technical Deep Dive
▶ Watch: Efficiency and characteristics of influential samples (4:00)
The technical architecture of MDA modifies traditional influence estimation through two critical design choices designed to handle the complexity of large-scale LLMs:
- Probing-Based Target Metric: Instead of computing gradients against the global evaluation loss across all model parameters, MDA employs a specific probing function that measures the exact behavioral output of the target unit. For induction heads, this involves directly quantifying their logit contribution on the target prediction token.
- Parameter Space Restriction: The optimization and gradient tracking are constrained solely to the parameter subspace governing the target units. This drastically reduces computational overhead, circumventing the matrix inversion bottlenecks typical of full-model influence estimation.
- Causal Validation via Intervention: To move beyond mere correlation, the framework performs explicit causal interventions: duplicating high-influence samples to test for accelerated emergence, and removing them to test for delayed formation.
- Mechanistic Data Augmentation: By extracting the structural patterns common to influential samples (which empirically manifest as highly repetitive textual structures), the framework synthesizes novel training data. These synthetic patterns successfully accelerate target mechanism formation when injected into training mixtures.
Experimental Setup & Results
▶ Watch: Mechanistic Data Augmentation and broader implications (6:00)
The empirical validation spans multiple model families, scales, and types of attention heads, ranging from small developmental models up to 40-million-parameter baselines and scaling up to Olmo-7B.
- Baseline Comparisons: Randomly selected control samples showed virtually no effect on the formation speed of target units, whereas duplicating MDA-identified samples consistently accelerated induction head emergence across all tested architectures.
- Generalizability: The framework successfully generalized beyond induction heads to SAE features, proving that MDA is not a bespoke tool for copy-pasting circuits but a universal attribution framework.
- Transferability of Synthetic Data: Patterns discovered on tiny 40-million-parameter models transferred successfully to much larger architectures, accelerating mechanism formation without requiring massive re-computation.
- Side-Effect Analysis: Evaluation of models subjected to targeted data duplication revealed no statistical degradation in general language modeling capabilities or factual knowledge retrieval, demonstrating that specific internal mechanisms can be reinforced safely.
Practical Implications
▶ Watch: Conclusion and audience Q&A session (8:00)
For infrastructure teams, model builders, and data curators, MDA transforms how pre-training datasets are engineered. Rather than curating data based purely on heuristic token distributions or coarse data quality filters, engineers can now construct data mixtures designed to cultivate specific internal reasoning circuits.
However, practitioners must navigate certain tradeoffs. While removing influential samples delays rather than prevents the formation of core mechanisms like induction heads, relying solely on standard data pipelines without mechanistic awareness may result in suboptimal learning velocity for critical in-context reasoning capabilities. Furthermore, while the current implementation successfully scales to models like Olmo-7B, scaling influence-based computations to models with hundreds of billions of parameters will require further systems-level optimizations.
Key Takeaways
- Bridging Data and Mechanisms: MDA connects training data directly with internal model interpretability, answering how interpretable units emerge.
- Efficient Computation: By restricting influence estimation to specific probing functions and parameter subspaces, MDA scales sublinearly to larger models like Olmo-7B.
- Speed vs. Existence: Highly influential samples dictate the rate of mechanism emergence (e.g., induction heads) rather than acting as strict binary prerequisites for their existence.
- Mechanism-Level Attribution: Different heads of the same functional type share highly overlapping training origins, confirming the capture of circuit-level data signatures.
- Mechanistic Data Augmentation: Structural patterns extracted from influential samples can be synthesized to accelerate model training without degrading language modeling or factual performance.
About the Speaker(s)
- Jianhui Chen (Peking University): Researcher from Peking University presenting work on mechanistic data attribution and interpretable LLM units.
Co-authors: Yuzhang Luo, Liangming Pan.
Reviews
→ Top-rated talks at International Conference on Machine Learning 2026
All talks from International Conference on Machine Learning 2026