analiza aiqbench
This study provides causal evidence that stack representations are functionally necessary for transformer performance on sequential tasks, rather than being incidental artifacts. By demonstrating that ablating a specific principal direction collapses accuracy, the research validates the architectural relevance of stack-like mechanisms in next-token prediction models. This finding offers a concrete empirical link between formal language theory and the internal mechanics of modern large language models.
Causal Evidence of Stack Representations in Modeling Counter Languages Using Transformers
arXiv:2606.03398v1 Announce Type: cross Abstract: Formal languages have proven to be effective conduits to understand the inner mechanisms of transformers. Past work has shown that transformers trained on next token prediction over counter languages learn representations consistent with an underlying stack structure. Beyond representational analysis, this paper investigates the causal role of these representations. Linear probes are trained to predict the stack depth at each token from the model's hidden states, and a principal representation direction is extracted from the probe. Ablation of this direction from the model causes sequential accuracy to collapse to near 0%, providing strong empirical evidence that the stack representation is not just learned, but is causally necessary for model performance.
Abstract:Formal languages have proven to be effective conduits to understand the inner mechanisms of transformers. Past work has shown that transformers trained on next token prediction over counter languages learn representations consistent with an underlying stack structure. Beyond representational analysis, this paper investigates the causal role of these representations. Linear probes are trained to predict the stack depth at each token from the model's hidden states, and a principal representation direction is extracted from the probe. Ablation of this direction from the model causes sequential accuracy to collapse to near 0%, providing strong empirical evidence that the stack representation is not just learned, but is causally necessary for model performance.
Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
arXiv:2606.03398 [cs.CL]
(or arXiv:2606.03398v1 [cs.CL] for this version)
https://doi.org/10.48550/arXiv.2606.03398 Focus to learn more arXiv-issued DOI via DataCite (pending registration)
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.
Text integral sub licența deschisă a publicației · 208 cuvinte
Subiecte conexe
Understanding Rate-Distortion Performance in Distributed Transformer Inference
arXiv · 4 aug. 2026
Generalized belief states in transformers
LessWrong · 31 oct. 2026
Scaffold Then Internalize: Representation Injection for Diffusion Transformers
arXiv · 30 sept. 2026
Global Divergence, Local Convergence: Representation Geometry in SSMs and Transformers
arXiv · 9 sept. 2026