arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.25800cs.LGcs.CL
收藏

变压器通用推理的障碍(以及如何克服它们)

Barriers to Universal Reasoning With Transformers (And How to Overcome Them)

Saarland University(萨尔兰大学);Ohio State University(俄亥俄州立大学)

Oliver Kraus, Yash Sarrof, Yuekun Yao, Alexander Koller, Michael Hahn

AI总结:

研究探讨了Transformer在长CoT轨迹上的泛化能力限制,并提出通过动态词汇增长和符号标记实现长度可扩展性。

摘要:

链式推理(CoT)已被证明在经验上能提升Transformer的性能,并在理论上将其表达力提升至图灵完备。然而,Transformer是否能学习到比训练期间看到的更长的CoT轨迹进行泛化仍缺乏研究。我们使用最近的Transformer长度泛化理论框架,发现——在标准位置编码和有限字母表下——带有CoT的Transformer无法解决超过$TC^0$的问题,即表达性收益在更严格的长度可泛化学习性要求下不成立。然而,如果我们允许词汇量随问题规模增长,我们就能获得一种可泛化模拟图灵机的模拟,其中CoT轨迹长度与模拟运行时间成线性关系。我们的构造克服了可靠长度泛化两个核心障碍:重复复制和最后出现检索。我们为每条带位置分配一个唯一的路标标记,并仅记录值的变化以通过计数恢复当前带符号,从而绕过这两个障碍。进一步,我们实证显示,使用此类路标标记和值变化编码能为解决困难问题提供可操作的指导以提升长度泛化能力。

英文摘要:

Chain-of-Thought (CoT) has been shown to empirically improve Transformers' performance, and theoretically increase their expressivity to Turing completeness. However, whether Transformers can learn to generalize to CoT traces longer than those seen during training is understudied. We use recent theoretical frameworks for Transformer length generalization and find that -- under standard positional encodings and a finite alphabet -- Transformers with CoT cannot solve problems beyond $TC^0$, i.e. the expressivity benefits do not hold under the stricter requirement of length-generalizable learnability. However, if we allow the vocabulary to grow with problem size, we attain a length-generalizable simulation of Turing machines where the CoT trace length is linear in the simulated runtime up to a constant. Our construction overcomes two core obstacles to reliable length generalization: repeated copying and last-occurrence retrieval. We assign each tape position a unique signpost token, and log only value changes to enable recovery of the current tape symbol through counts circumventing both barriers. Further, we empirically show that the use of such signpost tokens and value change encodings provide actionable guidance to improve length generalization on hard problems.

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

↑