跳到正文
arXiv (AI + Vision + Imaging)· Xiamin Chen, Linyu Liu, Jiachen Hu, Pinyan Lu·· 1 天前AI 评分18

Transformer在多任务递推任务上的能力与可解释性研究

Capability and Interpretability of Transformers on Multi-task Recurrence

AI 导读

研究通过有限循环群上的线性递推任务族,考察Transformer执行单一固定规则、从上下文识别潜在规则以及在显式指定规则间切换的能力。实验发现,切换显式指定规则通常比识别潜在规则更简单,深度、宽度和线性递推的代数结构会影响泛化能力,规则数量较多时课程训练极为有效。线性探测与输入修补等机制可解释性工具揭示了Transformer如何表示、识别和执行多条规则。

正文 · 原文

arXiv:2611.31260v1 Announce Type: new Abstract: Transformers are widely used in various language tasks, with limited understanding of their internal mechanisms. Motivated by the recurrent structure of many linguistic rules, we study the capability and interpretability of Transformers through a controlled family of linear recurrence tasks over finite cyclic groups. These tasks range from executing a single fixed rule to identifying a latent rule from context and switching between explicitly specified rules, with and without input masking. Through extensive experiments across different configurations, we find that switching specified rules is simpler than identifying latent rules for Transformers in general. We also identify how several key factors affect the generalization capability of Transformers, including the depth, width, and the algebraic structure of the linear recurrence. Curriculum training is extremely useful when the number of rules is large. With standard tools in mechanistic interpretability like linear probing and input patching, our study reveals how Transformers represent, identify, and execute multiple rules.

来源:arXiv (AI + Vision + Imaging) · arxiv.org