跳到正文
arXiv cs.AI· Xiamin Chen, Linyu Liu, Jiachen Hu, Pinyan Lu·· 1 小时前AI 评分33

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

Capability and Interpretability of Transformers on Multi-task Recurrence

AI 导读

一项 arXiv 研究通过有限循环群上的线性递推任务族,考察 Transformer 执行、识别和切换多条规则的能力与内部机制。实验发现切换明确指定的规则比从上下文识别潜在规则更容易,深度、宽度及线性递推的代数结构影响泛化能力,规则数量大时课程训练极为有效。

正文 · 原文

View PDF HTML (experimental)

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.
Subjects: Computation and Language (cs.CL); Artificial Intelligence (cs.AI)
Cite as: arXiv:2611.31260 [cs.CL]
  (or arXiv:2611.31260v1 [cs.CL] for this version)
  https://doi.org/10.48550/arXiv.2611.31260

arXiv-issued DOI via DataCite (pending registration)

Submission history

From: Xiamin Chen [view email]
[v1] Mon, 19 Oct 2026 13:20:49 UTC (1,529 KB)

来源:arXiv cs.AI · arxiv.org