计算机科学 > 计算与语言
[提交于 2026年6月2日]
标题:Causal Evidence of Stack Representations in Modeling Counter Languages Using Transformers
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要: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.
提交历史
来自:Nishit Singh[v1] 2026年6月2日 星期二 09:39:40 UTC (1,044 KB)