paper-with-me

Papers

Task Structure Reverses Layerwise State Encoding in Sequence Models

2026-05-30 · Yuhang Jiang arxiv

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.

📄 PDF Abstract BibTeX arXiv:2606.00926

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Tracking the emergence of linguistic structure in self-supervised models learning from speech

2026-04-02 · Marianne de Heer Kloots, Martijn Bentum, Hosein Mohebbi, Charlotte Pouw 외 arxiv

Self-supervised speech models learn effective representations of spoken language, which have been shown to reflect various aspects of linguistic structure. But when does such structure emerge in model training? We study …

Layerwise LQR for Geometry-Aware Optimization of Deep Networks

2026-05-05 · Simon Dufort-Labbé, Pierre-Luc Bacon, Razvan Pascanu, Simon Lacoste-Julien 외 arxiv

Geometry-aware optimizers such as Newton and natural gradient can improve conditioning in deep learning, but scalable variants such as K-FAC, Shampoo, and related preconditioners usually impose structural approximations …

Understanding Counting Mechanisms in Large Language and Vision-Language Models

2025-11-21 · Hosein Hasani, Amirmohammad Izadi, Fatemeh Askari, Mobin Bagherian 외 arxiv

Counting is one of the fundamental abilities of large language models (LLMs) and large vision-language models (LVLMs). This paper examines how these foundation models represent and compute numerical information in counti…

Beyond Decodability: Reconstructing Language Model Representations with an Encoding Probe

2026-05-01 · Gaofei Shen, Martijn Bentum, Tom Lentz, Afra Alishahi 외 arxiv

Probing is widely used to study which features can be decoded from language model representations. However, the common decoding probe approach has two limitations that we aim to solve with our new encoding probe approach…

Exploring layerwise decision making in DNNs

2022-02-01 · Coenraad Mouton, Marelie H. Davel

While deep neural networks (DNNs) have become a standard architecture for many machine learning tasks, their internal decision-making process and general interpretability is still poorly understood. Conversely, common de…

Decision Making