Using Degeneracy in the Loss Landscape for Mechanistic Interpretability

Lucius Bushnaq, Jake Mendel, Stefan Heimersheim, Dan Braun, Nicholas Goldowsky-Dill, Kaarel Hänni, Cindy Wu, Marius Hobbhahn · DOI

Abstract

Mechanistic Interpretability (MI) seeks to reverse-engineer neural networks into human-understandable components, yet researchers frequently encounter "messy" internal representations characterized by polysemanticity and blurred circuit boundaries. This paper, authored by researchers at Apollo Research, posits that this complexity is not random but a fundamental byproduct of neural network generalization. By applying Singular Learning Theory (SLT), the authors provide a theoretical framework to quantify and navigate "degeneracy"—the phenomenon where multiple parameter configurations yield identical model behavior. The central contribution is the "Interaction Basis," a mathematical transformation designed to strip away redundancy and reveal the sparse, modular algorithms hidden within a network's weights.

Introduction

A primary obstacle in AI safety is the difficulty of reading the internal logic of deep learning models. While we can observe a model's performance, the internal weights often appear as a tangled web. This paper argues that the culprit is degeneracy: the existence of vast, flat regions in the loss landscape where significant changes to parameters do not alter the model's output. Because these flat regions are statistically linked to better generalization, stochastic gradient descent (SGD) naturally pushes models into these highly redundant states. To a human researcher, this looks like noise; to the model, it is simply one of many equivalent ways to implement a function. To solve this, the authors propose finding representations that are invariant to these redundant changes.

Theoretical Framework: Singular Learning Theory

The paper utilizes Singular Learning Theory (SLT) to redefine how we count the "work" a model is doing.

Behavioral Loss and Effective Parameters

Instead of traditional loss functions that measure prediction error against a label, the authors introduce Behavioral Loss. This metric measures how much a change in parameters shifts the model's own original output, effectively isolating functional components from noisy, redundant ones. Using the Local Learning Coefficient (LLC) from SLT, they propose a method to calculate the Effective Parameter Count ($N_{eff}$). This allows researchers to distinguish between parameters performing actual computation and "free directions" that contribute only to redundancy.

The Interaction Basis

The paper's primary technical contribution is the Interaction Basis. This is a coordinate-independent representation of a network's internals. The process involves:

  1. Whitening: Transforming activations to remove linear correlations.
  2. Diagonalizing Jacobians: Aligning the gradients between layers to find a basis where interactions are as sparse as possible.

For deep linear networks, the authors prove that this Interaction Basis is equivalent to performing a Singular Value Decomposition (SVD) on each weight matrix, which is the established standard for identifying underlying structure. This basis is invariant to any invertible linear transformation, providing a robust, "natural" coordinate system for interpretability.

Sources of Degeneracy

The authors identify three specific mathematical sources that contribute to the "messiness" of neural networks:

  • Linear Dependence in Activations: Multiple neurons carrying redundant information.
  • Linear Dependence in Jacobians: Multiple ways to influence the next layer that result in the same functional change.
  • Synchronized Nonlinearities: Groups of ReLU neurons that fire on the exact same data points, effectively acting as a single, higher-dimensional unit rather than independent features.

Modularity and the Learning Coefficient

A key insight of the paper is that degeneracy is a feature, not a bug. SLT suggests that more degenerate parameterizations generalize better. Furthermore, the authors present a heuristic argument that modular networks—where components have minimal interaction—are naturally more degenerate. Consequently, SGD is biased toward finding modular solutions because they inhabit the "flatter" basins of the loss landscape. They introduce the "Interaction Surface" metric, which measures the logarithmic strength of interactions between partitions of a network, allowing for the identification of modules by finding partitions that minimize these strengths.

Limitations and Future Directions

While the theoretical framework is robust, the authors note several challenges for practical application:

  • Superposition: The current framework primarily addresses linear redundancies and may struggle with "superposition," where models represent more features than they have dimensions (overcomplete bases).
  • Independence Assumptions: The derivation of the Interaction Basis assumes a degree of independence between layers that may not hold in highly recurrent or complex architectures.
  • Scalability: While the Interaction Basis works effectively on toy models and modular addition transformers, the authors acknowledge it is currently less useful for Large Language Models (LLMs). Adapting these SLT-based tools to the scale of frontier models remains a primary goal for future research.

Conclusion

By framing the difficulty of interpretability as a mathematical consequence of degeneracy, this work provides a rigorous path forward for Mechanistic Interpretability. Rather than fighting the "mess" of neural networks, the Interaction Basis offers a way to look through it, providing a coordinate-independent view of the sparse algorithms that drive model behavior.

Summary updated

BibTeX
@inproceedings{bushnaq2024using,
  author = {Lucius Bushnaq and Jake Mendel and Stefan Heimersheim and Dan Braun and Nicholas Goldowsky-Dill and Kaarel Hänni and Cindy Wu and Marius Hobbhahn},
  title = {{Using Degeneracy in the Loss Landscape for Mechanistic Interpretability}},
  booktitle = {MI @ ICML},
  year = {2024},
  url = {https://openreview.net/forum?id=D8MDzUVlWA},
}
Figure