Analyzing (In)Abilities of SAEs via Formal Languages

Abhinav Menon, Manish Shrivastava, David Krueger, Ekdeep Singh Lubana

Abstract

Sparse Autoencoders (SAEs) are currently the leading method for interpreting the internal states of large language models. However, this study demonstrates that features identified by standard SAEs often lack causal influence on model behavior. By evaluating SAEs on synthetic formal languages with known ground-truth structures, we reveal an "interpretability illusion" where features correlate with concepts but do not drive predictions. We propose a novel Causal Loss regularization that incentivizes SAEs to discover features with verifiable causal effects, bridging the gap between correlation and mechanistic understanding.

Introduction: The Correlation-Causation Gap

Mechanistic interpretability aims to decompose the high-dimensional hidden layers of neural networks into human-understandable "features." Sparse Autoencoders (SAEs) have become the standard tool for this task, acting as a lens to "un-mix" the superimposed representations within Transformers.

Conceptual overview of SAEs extracting interpretable features from Language Model latents.

Despite their popularity, evaluating SAEs on natural language is fraught with difficulty because the "ground truth" features of human language are not definitively known. Furthermore, a feature that correlates perfectly with a linguistic concept (e.g., a "verb" feature) may not be the actual mechanism the model uses to predict the next token. This paper addresses this fundamental gap, moving beyond mere feature identification toward causal verification.

Methodology

To rigorously test SAE capabilities, the authors utilize a three-step experimental pipeline involving controlled synthetic environments:

  1. Model Training: Small Transformer models are trained on three formal languages: Dyck-2 (nested brackets), Expr (prefix arithmetic), and a Simplified English PCFG (Subject-Verb-Object structures).
  2. SAE Training: SAEs are trained on the hidden representations using two sparsity methods: traditional $L_1$ regularization and the more robust top-k activation method.
  3. Causal Interventions: The researchers "clamp" specific feature values—forcing them to be high or low—to observe if the model's output distribution shifts in a predictable, rule-based manner.

The Causal Loss Function

To address the failure of standard SAEs to find causal features, the authors introduce a Causal Regularization Term. This method uses weak supervision by interpolating between the latent states of related tokens. It penalizes the SAE unless the discovered features, when modified, force the model's output to shift toward a target distribution defined by the grammar's rules.

Key Insights and Results

The "Interpretability Illusion"

A primary finding is that standard SAEs are remarkably deceptive. They frequently identify features that correlate 1:1 with ground-truth concepts like "bracket depth" or "part of speech." However, intervening on these features often results in zero change to the model's predictions. This suggests that standard training objectives capture statistical redundancies rather than the model's internal logic.

Causal Success with Regularization

When trained with the proposed Causal Loss, SAEs successfully identified features that controlled the model. For instance, in the English PCFG task, clamping a "causal adjective" feature correctly forced the model to increase the probability of predicting a noun, demonstrating that the SAE had captured a functional component of the model's computation.

Effect of clamping a causal feature on the model's output distribution, showing a sharp drop in the original prediction probability as the feature is manipulated.

Top-k vs. $L_1$ Sparsity

The study finds that top-k SAEs significantly outperform $L_1$ models. Top-k variants achieved near-perfect reconstruction (92-99%) on the Expr and English datasets, while $L_1$ models often failed to exceed 33% reconstruction accuracy in similar settings. Additionally, SAE performance proved highly sensitive to minor architectural choices, such as pre-bias and normalization.

Discussion and Limitations

While the use of formal languages provides a necessary "ground truth" for evaluation, these synthetic domains lack the complexity of natural language. A notable limitation is the "MLP Bias": the causal loss currently favors features processed by the model's MLP layers. The complex, non-linear "stack-like" logic often found in Attention layers (crucial for languages like Dyck-2) remains difficult for current SAE methodologies to extract.

Future research will focus on scaling causal training to larger models and developing regularization terms capable of capturing the non-linear causal features hidden within Attention mechanisms. This work marks a critical shift in interpretability research from finding features that "look right" to finding features that "act right."

Summary updated

BibTeX
@inproceedings{menon2025analyzing,
  author = {Abhinav Menon and Manish Shrivastava and David Krueger and Ekdeep Singh Lubana},
  title = {{Analyzing (In)Abilities of SAEs via Formal Languages}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2025},
  doi = {10.18653/v1/2025.naacl-long.249},
}
Figure