TL;DR
The authors introduce Local Loss Landscape Decomposition (L3D), a novel method that shifts mechanistic interpretability from activation space to parameter space. By decomposing the gradients of a model's loss landscape into sparse, low-rank subnetworks, L3D successfully isolates and identifies the actual neural circuitry responsible for specific behaviors in both toy and real-world models.
What Problem Does This Paper Address?
Most current work in mechanistic interpretability relies on analyzing a model's activation space using methods like Sparse Dictionary Learning (SDL) or Sparse Autoencoders (SAEs). While effective at finding latent features, activation-based approaches have distinct blind spots: they struggle with non-linear features or complex feature manifolds, and they only show what features are extracted, rather than how the underlying model circuitry computes them.
To understand the actual mechanisms, we need to look at parameter space. However, parameter space is massive and highly degenerate. This paper tackles the challenge of finding a principled way to decompose a model's weights into distinct, human-interpretable subnetworks that correspond to specific computations on subsets of data.
Methods
The core of the paper is Local Loss Landscape Decomposition (L3D). Instead of decomposing model weights directly or looking at second-order gradients, L3D decomposes the first-order gradient of the divergence (loss) between a sample's output and a randomly selected reference output from the dataset.
The architecture works as follows:
- Paired Divergence Gradients: For each input sample, L3D computes the gradient of the divergence relative to a random reference sample.
- Sparse Autoencoder-like Projection: It learns two linear transformations ($V^{in}$ and $V^{out}$) to map these gradients into a sparse "subnetwork space" using a
TopKselection mechanism. This forces each sample's gradient to be reconstructed by only a small subset of active parameter directions. - Low-Rank Constraints: To make the method computationally feasible for large parameter tensors, the authors employ a Tucker decomposition, ensuring the learned subnetwork directions remain low-rank.
Datasets
The authors evaluate L3D across a suite of synthetic and real-world datasets:
- Progressive Toy Models: Four custom-designed toy architectures (ranging from a basic linear autoencoder to a multi-layer GeLU network computing non-linear functions) trained on sparse synthetic data to simulate feature and circuit superposition.
- Language Modeling: The
tiny-stories-8Mmodel, specifically decomposing attention block 7 using 10,000 randomly sampled 16-token texts from the TinyStories dataset. - Computer Vision:
mobilenet-v3-small, specifically decomposing convolutional block 4 using 10,000 image samples from the CIFAR-100 dataset.
Key Insights and Ideas
- Subset-Specific Degeneracies: Singular Learning Theory shows that large models have massive global degeneracies (flat regions in the loss landscape). L3D exploits the idea that models also exhibit local, data-subset-specific degeneracies—meaning certain parameter directions only affect specific types of inputs.
- Gradients as Global Proxies: A key "aha" moment is that local gradient attributions serve as surprisingly good approximations for global circuit behavior. Moving parameters along a locally computed gradient direction yields predictable, stable changes even far away from the starting initialization.
- Independence of Subnetworks: When multiple learned subnetworks are perturbed simultaneously, they show minimal interference with one another, confirming that L3D isolates truly modular units of computation.
Key Results
- Perfect Toy Recovery: In the Circuit Superposition toy model, the coefficients derived from L3D subnetworks achieved a near-perfect correlation ($r^2 = 0.92$) with the true underlying data-generation coefficients.
- Causal Interventions: Moving the model's parameters in the direction of a single learned subnetwork selectively altered predictions only for the samples relevant to that subnetwork, effectively allowing researchers to "turn off" specific circuits.
- Real-World Interpretability: When applied to
tiny-stories-8M, L3D successfully isolated circuits tracking specific grammatical structures, word pairs, and sentence subjects. Onmobilenet-v3-small, it pulled out circuits tracking specific high-level visual features like animal faces, colors, and backgrounds.
Limitations and Future Work
- High Reconstruction Error: On more complex models, L3D exhibited relatively high reconstruction errors (e.g., 32% on the non-linear toy model and 40% on TinyStories). The authors attribute this to using a fixed, unoptimized hyperparameter ($k=0.1$) across all tasks.
- Dead Subnetworks: In larger models, up to 40% of the learned subnetwork directions became "dead" (never activating). Future work will explore adding auxiliary feature-activation losses to mitigate this.
- Conceptual Definition of a Circuit: The paper notes that defining what strictly constitutes a "circuit" versus general model "scaffolding" remains an open philosophical and practical challenge for the interpretability community.
Summary updated