This paper, recently published by Miroslav Lžičař at Mereology Labs, tackles a fundamental question in mechanistic interpretability: How can we distinguish between two models that produce identical outputs but use different internal logic?
TL;DR
The authors introduce "active dimension"— a geometric measure of how many independent ways a model's predictions can change when its implementation is perturbed. By applying this to "implementation charts," they provide a formal way to distinguish between mechanisms (like a lookup table vs. a shared rule) even when they are functionally identical, bridging the gap between accuracy and internal geometry.
What Problem Does This Paper Address?
In machine learning, we often encounter the "black box" problem: two models might achieve 100% accuracy on a task like modular addition, but one might be a giant lookup table while the other has learned a concise cyclic rule. Standard performance metrics (accuracy, loss) cannot distinguish them.
While Singular Learning Theory (SLT) offers tools to study the local geometry of the loss landscape, it often conflates the learned parameters with the underlying architectural constraints. This paper seeks to isolate the mechanism itself. The authors want to know: if we "poke" the model's internal parts, how many independent directions can the output move? A lookup table should have many degrees of freedom, while a shared rule should be highly constrained.
Methods
The core innovation is the Implementation Chart, a local family of logit perturbations around a fixed predictive distribution.
- Active Dimension: The authors define this as the rank of the Jacobian of the implementation chart, weighted by the Fisher information. It essentially counts the "meaningful" directions in which a model can change its predictions.
- Fisher Pullback: They use the classical Fisher information matrix to measure this rank in "logit space," ensuring the measure is invariant to unobservable shifts (like adding a constant to all logits).
- Orbit-Count Formula: For models with symmetries (like weight sharing), they derive a group-theoretic formula: the active dimension equals the number of input-output orbits minus the number of input orbits.
- Invariance: They prove that this rank is invariant under reparameterization, "dead code" (unused parameters), and duplication, making it a robust structural property rather than a coordinate artifact.
Datasets
The paper uses two primary synthetic setups to validate the theory:
- Softened Modular Addition: A dataset of pairs $(a, b) \in \mathbb{Z}_p \times \mathbb{Z}_p$ where the target is $y = a + b \pmod p$. This is the "running example" used to compare lookup tables vs. cyclic rules.
- Tracr Sequences: A set of 30 binary sequences (lengths 1-4) used to evaluate compiled transformer circuits. Tracr is a compiler that translates human-readable programs into transformer weights, providing a "ground truth" mechanism to test against.
Key Insights and Ideas
- Mechanism is about Intervention: You cannot identify a mechanism just by looking at predictions. You must define what can change (the implementation chart). A mechanism is a hypothesis about permitted interventions.
- The $p^2$ Gap: For modular addition with prime $p$, a lookup table has an active dimension of $p^2(p-1)$, whereas a shared cyclic rule has a dimension of only $p-1$. This massive gap exists even if both models have the same number of parameters and identical outputs.
- Geometry Beyond Accuracy: The paper shows that Bayesian complexity (via the Local Learning Coefficient) depends on this implementation-local geometry. A model with a lower-rank mechanism is "simpler" in a formal, information-theoretic sense.
- Chart Specification: The authors emphasize that "charts" aren't discovered; they are specified based on architectural or compiler evidence. This allows researchers to test specific hypotheses about how a model works (e.g., "Is this head doing induction?").
Key Results
The authors successfully measured these ranks in trained neural networks. As shown in Table 1, an unrestricted MLP trained on modular addition retains the high rank of a lookup table, whereas a shared architecture (or a projection of the MLP onto a shared subspace) matches the theoretical lower rank.
In the transformer experiments (Table 2), the authors used implementation charts to distinguish between different intermediate computations. The "Compiler" chart (the true mechanism) achieved near-zero residuals when trying to explain the model's response to ablations, while even the "best" random alternatives failed significantly.
Limitations and Future Work
- Finite Domains: The current framework requires a finite evaluation domain, which may be difficult to scale to massive, open-ended datasets.
- Hypothesis-Driven: The method evaluates specified mechanism hypotheses; it does not automatically "discover" a unique mechanism from scratch.
- Computational Cost: Calculating full Jacobians for large-scale transformers is computationally expensive.
- Higher-Order Terms: The active dimension primarily captures the quadratic (second-order) geometry. As noted in the discussion of SLT, higher-order singularities can also affect the learning coefficient, which this rank-based approach might miss.
Future work could involve developing more efficient ways to estimate these ranks in large models or using this framework to track how mechanisms "emerge" or "simplify" during the training process.
Summary updated