Dissociating Decodability and Causal Use in Bracket-Sequence Transformers

Aryan Sharma, Cutter Dawes, Shivam RavalCompLearn @ ICML 2026

TL;DR

Just because you can "read" a feature from a model's internal state doesn't mean the model actually uses it. This paper demonstrates that while Transformers represent hierarchical variables like "nesting depth" in their geometry, they ignore these signals in favor of sparse attention routing to solve bracket-matching tasks.

What Problem Does This Paper Address?

In the field of mechanistic interpretability, researchers often use linear probes—simple classifiers trained on a model's hidden states—to see if the model "understands" concepts like part-of-speech or tree depth. If a probe is accurate, we say the feature is decodable.

However, there is a growing concern: Decodability $\neq$ Causal Use. A model might represent a variable as a side effect of training without actually using that information to calculate its next output. This paper investigates this gap using the Dyck language (the formal language of balanced brackets, like [ { ( ) } ]). Because the "ground truth" of this hierarchy is mathematically perfect, the authors can precisely test whether the model relies on its internal "geometric" representation of the stack or its "routing" (attention) mechanism.

Methods

The authors trained small (2-layer, 1-head) Transformers to predict the next closing bracket in Dyck sequences. They then applied a battery of interpretability techniques:

  • Probing: They trained linear regressors to extract "depth" (how many brackets are open) and "distance" (how far back the matching opener is) from the residual stream.
  • Causal Interventions (Ablations): They used "subspace-removal" to delete the specific directions in the residual stream where the probes found depth and distance information.
  • Attention Knockout: They manually masked the attention edge pointing to the "top-of-stack" (the most recent unmatched opening bracket) to see if the model could still function.
  • Activation Patching: They swapped internal activations between "clean" and "corrupted" inputs to localize exactly where the model makes its "decision" about which bracket type to output.

Datasets

  • Dyck-(k, m): A synthetic dataset of balanced bracket sequences with $k$ types of brackets and a maximum nesting depth of $m$.
  • OOD Splits: To test robustness, they evaluated models on sequences longer than those seen in training (OOD-length) and sequences deeper than those seen in training (OOD-depth).
  • Natural Language Pilot: A templated "subject-verb agreement" task where the model must match a verb's number (singular/plural) to a subject across several "attractor" phrases (e.g., "The key to the cabinets is...").

Key Insights and Ideas

  • The "Aha" Moment: The model represents depth and distance beautifully—you can probe them with high accuracy even on data the model has never seen. However, when you delete these representations from the model's "brain," the model's performance doesn't budge. They are "epiphenomenal" (side effects).
  • Sparse Routing is King: The model solves the task by essentially "pointing" a single attention head at the correct opening bracket. If you mask just that one connection, the model's accuracy collapses from nearly 100% to near 0%.
  • Early Emergence: The model learns to route attention to the "top-of-stack" very early in training, often before it has even achieved high task accuracy.
  • Localization: Activation patching revealed that the entire "retrieval" of the bracket type happens in a single computational step (Layer 1 attention). Once that attention connection is made, the rest of the network's layers are just passing the information through.

Key Results

  • Residual Ablation: Removing the probe-aligned subspaces for depth and distance resulted in a 0.00% drop in long-distance accuracy.
  • Attention Knockout: Masking the true top-of-stack attention edge caused a 96.7% drop in accuracy.
  • Decodability vs. Reality: In the natural language task, the model's "attractor count" (how many nouns are between the subject and verb) was highly decodable but, like depth in Dyck, was causally irrelevant to the final prediction.
  • OOD Robustness: Top-of-stack attention remained near-perfect (0.99+) even on sequences much deeper or longer than the training set, whereas the geometric probes for depth and distance degraded significantly.

Limitations and Future Work

  • Model Scale: The study uses very small Transformers (2 layers, 1 head). It remains to be seen if massive models like GPT-4 exhibit the same dissociation or if they rely more on distributed geometric representations.
  • Task Simplicity: Dyck and subject-verb agreement are "retrieval" tasks—you just need to find one specific token from the past. The authors note that tasks requiring compositional integration (combining multiple variables to reach an answer) might show a stronger causal reliance on residual stream geometry.
  • Solution Multiplicity: The authors found at least one "outlier" seed that solved the problem using Layer 0 instead of Layer 1, suggesting that while the mechanism is consistent, the "location" of the logic can vary.

Summary updated

BibTeX
@inproceedings{sharma2026dissociating,
  author = {Aryan Sharma and Cutter Dawes and Shivam Raval},
  title = {{Dissociating Decodability and Causal Use in Bracket-Sequence Transformers}},
  booktitle = {CompLearn @ ICML},
  year = {2026},
  url = {https://openreview.net/forum?id=K0bJd9m9zJ},
}
Figure