LGCLMay 30

Task Structure Reverses Layerwise State Encoding in Sequence Models

arXiv:2606.0092613.2
Predicted impact top 55% in LG · last 90 daysOriginality Synthesis-oriented
AI Analysis

For mechanistic interpretability researchers, the paper demonstrates that mechanistic signatures are not fixed architectural traits but depend on the task, and that probing can be misleading for identifying causal bottlenecks.

The paper shows that the layerwise encoding of task-relevant state in sequence models (Transformers, Mamba, LSTMs, GRUs) reverses depending on the task: for Parity, state is concentrated in late layers for recurrent models and built gradually in Transformers; for Dyck-k, the pattern flips. This reversal is driven by computational structure (prefix update vs. stack) rather than commutativity, and probing alone can misidentify computational bottlenecks.

Mechanistic studies of sequence models often treat layerwise state encodings as architectural traits: recurrent models concentrate readable state, attention-based models distribute it. We find that the same architecture reverses this profile when the task changes. Across Transformers, Mamba, Mamba-2, LSTMs, and GRUs, Parity is concentrated late in Mamba and the recurrent baselines and built gradually by Transformer; on bounded-depth Dyck-k the pattern flips. The same flip appears in fine-tuned Mamba-130M and Pythia-160M, and the Pythia Dyck bottleneck persists at 410M. Two explanations are conflated in the literature: algebraic structure (commutativity) versus computational structure (prefix update vs. stack). To separate them we add a third task: non-commutative S_3 permutation composition. S_3 groups with Parity, not Dyck, on layerwise probing across all five architectures and on Mamba-specific Conv1D attribution, so the grouping tracks computational structure rather than commutativity. Causal interventions show that, in the 4-layer formal models, linearly readable directions are often functionally necessary and can remain important at out-of-distribution lengths on Parity and Dyck. At pretrained scale the picture splits. Fine-tuned Pythia Dyck has a strong middle-layer bottleneck (L6-L7 ablation drops accuracy by roughly 81% at 160M; broader L4-L18 plateau at 410M), far weaker at the best-probe layer. Pretrained Mamba shows the complementary failure mode: its final layer is highly readable, no single probe direction breaks the task on Parity, Dyck, or S_3, yet mid-position activation patching there recovers about 97-98% of the clean-corrupted logit gap. Probing localizes where state is linearly available, not always where the computation is bottlenecked. Mechanistic signatures are properties of architecture and task together.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes