arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.22128cs.CLcs.LG
收藏

括号序列Transformer中可解码性与因果使用的分离

Dissociating Decodability and Causal Use in Bracket-Sequence Transformers

Yale University(耶鲁大学);Harvard University(哈佛大学)

Aryan Sharma, Cutter Dawes, Shivam Raval

AI总结:

通过探针和干预实验,发现Dyck语言Transformer中层级表示虽可解码,但仅注意力模式中的栈顶位置对长距离准确性有因果影响。

摘要:

当在需要理解层级结构的任务上训练时,Transformer被发现以不同方式表示这种层级:在残差流的几何结构中,以及在维持后进先出顺序的类栈注意力模式中。然而,这些表示是被因果使用还是仅仅可解码仍不清楚。我们在Dyck语言(一种平衡括号序列的形式语言)上训练的Transformer中检验了这一差距,其中层级真实标签是明确的。通过探针和干预残差流及注意力模式,我们发现深度、距离和栈顶信号都是可解码的,但它们的因果作用不同。具体而言,掩盖真实栈顶位置的注意力会导致长距离准确性急剧下降,而消融低维残差流子空间则影响相对较小。这些结果扩展到模板化的自然语言设置,表明即使在相关层级变量已知的受控设置中,仅可解码性并不意味着因果使用。

英文摘要:

When trained on tasks requiring an understanding of hierarchical structure, transformers have been found to represent this hierarchy in distinct ways: in the geometry of the residual stream, and in stack-like attention patterns maintaining a last-in, first-out ordering. However, it remains unclear whether these representations are causally used or merely decodable. We examine this gap in transformers trained on the Dyck language (a formal language of balanced bracket sequences), where the hierarchical ground truth is explicit. By probing and intervening on the residual stream and attention patterns, we find that depth, distance, and top-of-stack signals are all decodable, yet their causal roles diverge. Specifically, masking attention to the true top-of-stack position causes a sharp drop in long-distance accuracy, while ablating low-dimensional residual stream subspaces has comparatively little effect. These results, which extend to a templated natural language setting, suggest that even in a controlled setting where the relevant hierarchical variables are known, decodability alone does not imply causal use.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑