Stop Probing, Start Coding: Why Linear Probes and Sparse Autoencoders Fail at Compositional Generalisation

Vitória Barin-Pacela, Shruti Joshi, Isabela Camacho, Simon Lacoste-Julien, David Klindt

TL;DR

This paper reveals that current Sparse Autoencoders (SAEs) and linear probes fail to generalize when encountering novel combinations of concepts (compositional shifts). The authors demonstrate that the primary bottleneck isn't the speed of the encoder (amortization), but rather the quality of the learned dictionary itself, which fails to capture the true directions of latent concepts as models scale.

What Problem Does This Paper Address?

The "Linear Representation Hypothesis" (LRH) is a cornerstone of mechanistic interpretability, suggesting that neural networks represent high-level concepts as linear directions in activation space. However, because models are often in a state of superposition—packing more concepts ($d_z$) than they have dimensions ($d_y$)—these concepts are compressed.

The authors point out a common fallacy: just because a concept is linearly encoded doesn't mean it is linearly accessible. Under superposition, a decision boundary that is linear in the "concept space" becomes non-linear once projected into the "activation space."

While Sparse Autoencoders (SAEs) are the current favorite tool for "un-mixing" these activations, they often fail at compositional generalization—the ability to recognize known concepts when they appear in brand-new combinations (Out-of-Distribution or OOD shifts). This paper investigates why they fail: is it because the encoder is too simple (the amortization gap), or is the dictionary they are learning fundamentally flawed?

Methods

The researchers compared several families of inference methods:

  1. Linear Probes: The standard baseline for concept discovery.
  2. Sparse Autoencoders (SAEs): Using "amortized inference," where a fixed encoder (ReLU, Top-K, JumpReLU) tries to predict the sparse features in one forward pass.
  3. Classical Sparse Coding (FISTA): An iterative, per-sample optimization method that solves for the best sparse features from scratch for every input.
  4. The Oracle: A "skyline" baseline using FISTA paired with the ground-truth dictionary used to generate the data.
  5. DL-FISTA: A classical dictionary learning approach that alternates between optimizing the features and updating the dictionary.

By swapping encoders and dictionaries between these methods, they could isolate exactly which component was responsible for the failure.

Datasets

The study relies on controlled synthetic datasets where the ground-truth latent concepts ($z$) and the projection matrix ($A$) are known.

  • Compositional OOD Split: They designed a specific training/testing split where certain pairs of concepts (e.g., $z_1$ and $z_3$) never appear together during training but are the primary focus during testing.
  • Scaling: They swept latent dimensions from $d_z = 50$ to $d_z = 10,000$ and varied sparsity levels ($k$) to test the limits of compressed sensing theory.

Key Insights and Ideas

  • The Geometry of Failure: Under superposition, the projection from high-dimensional concept space to lower-dimensional activation space distorts geometry. A linear probe trained on "In-Distribution" data will inevitably fail on "OOD" combinations because the projection makes the classes non-linearly separable in the activation space.
  • The Amortization Gap vs. The Dictionary Gap: While it’s true that a fixed encoder (SAE) is less flexible than iterative optimization (FISTA), the paper finds that even if you replace the SAE's encoder with a perfect optimizer, it still fails. Why? Because the SAE-learned dictionary points in the wrong directions.
  • Scaling is the Enemy of Dictionary Learning: Classical dictionary learning (DL-FISTA) works beautifully at small scales (e.g., 500 latents), easily beating linear probes. However, as the number of latents grows to 10,000, even classical methods struggle to find the right dictionary directions.
  • The "Oracle" Proof: The fact that the Oracle (FISTA + ground-truth dictionary) achieves near-perfect recovery at all scales proves that the problem is theoretically solvable. The failure of SAEs isn't a limitation of the "superposition" math; it's a failure of our current training algorithms.

Key Results

  • Linear Probes Crash OOD: In high-superposition regimes ($d_z = 10,000$), linear probes' identifiability (measured by Mean Correlation Coefficient or MCC) collapses to near zero (< 0.1).
  • SAEs Plateau: SAE variants (ReLU, Top-K, etc.) plateau at an MCC of 0.2–0.5, regardless of how much training data or "undersampling" (the ratio of dimensions to features) is provided.
  • The Dictionary is the Bottleneck: Swapping an SAE encoder for a FISTA optimizer on the same dictionary yielded almost no improvement. However, using the correct dictionary with FISTA resulted in near-perfect (0.95+) MCC and OOD accuracy.
  • Data Doesn't Fix Amortization: Increasing training data by two orders of magnitude helped classical dictionary learning (DL-FISTA) converge, but it did not close the gap for SAEs, suggesting they get stuck in poor local minima.

Limitations and Future Work

The primary limitation is the use of synthetic data. While synthetic data allows for "Oracle" baselines and perfect ground-truth comparisons, real-world LLM activations are likely much messier, with non-linearities and hierarchical dependencies not captured here.

The authors conclude that the path forward for the interpretability community isn't just "scaling up" current SAEs, but developing scalable dictionary learning algorithms that can find the true latent directions in high-dimensional spaces without falling into the traps of amortized encoders. They suggest that "starting with coding" (iterative inference) might be necessary to learn the dictionaries we actually need.

Summary updated

BibTeX
@inproceedings{barinpacela2026stop,
  author = {Vitória Barin-Pacela and Shruti Joshi and Isabela Camacho and Simon Lacoste-Julien and David Klindt},
  title = {{Stop Probing, Start Coding: Why Linear Probes and Sparse Autoencoders Fail at Compositional Generalisation}},
  booktitle = {CompLearn @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=3NN3ehMKxW},
}
Figure