arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2610.19768cs.LG
收藏

循环Transformer中,学习计算不等于学习保留或复用

Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformers

SKLP, Institute of Computing Technology, Chinese Academy of Sciences(中国科学院计算技术研究所);University of Chinese Academy of Sciences(中国科学院大学);School of Advanced Interdisciplinary Sciences(前沿交叉科学研究院);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州))

Peilong Zhou, Hongtao Zhang, Yulong Huang, Cangyuan Li, Mingyu Chen, Ying Wang

AI总结:

该研究针对循环Transformer,发现其学习计算不等于学习保留或复用,训练时监督随机位置、随机化循环次数可提升答案保留率,避免过度思考无法使答案首次出现时的状态可复用。

摘要:

循环Transformer通过重复应用一个模块进行计算,因此它们可以运行比训练时更多的循环次数。已知循环推理器会过度思考:迭代超过训练深度可能会将正确答案变为错误答案。这种后期错误可能反映计算失败、保留能力丧失,或后续计算无法复用的状态。我们在上下文Mealy机执行中区分这些情况,其中模拟器为隐藏状态干预提供中间目标和精确反事实。在第32个循环训练的模型在该循环中完全正确,但在第64个循环中仅保留22%的这些答案。保留能力取决于训练要求:监督每个示例中随机选择的一个位置(而非始终是最后一个位置)可保留99.8%的答案,随机化训练循环次数也有帮助;如针对过度思考的渐进式训练那样截断梯度则无效。计算本身是精确的:位置k在第k个循环计算,将其第k个循环的隐藏向量与另一个输入的隐藏向量交换,可将后续每个位置重定向到该输入的精确延续(10个模型中每个模型有237/237对)。然而,保留能力不等于复用能力。即使在几乎保留所有答案的模型中,从第k个循环固定每个位置k会使准确率降至4%-6%,而从第k+4个循环固定则无害。一个为避免过度思考而训练的已发布循环迷宫网络表现出相同行为。因此,学习计算不等于学习保留,避免过度思考不会在答案首次出现时使状态可复用。

英文摘要:

Looped transformers compute by applying one block repeatedly, so they can run for more loops than they were trained with. Recurrent reasoners are known to overthink: iterating past the trained depth can turn a correct answer into a wrong one. Such a late error can reflect failed computation, loss of retention, or a state that later computation cannot reuse. We separate these cases in in-context Mealy-machine execution, where a simulator supplies intermediate targets and exact counterfactuals for hidden-state interventions. Models trained to answer at loop 32 are fully correct there but keep only 22% of these answers at loop 64. Retention depends on what training asks for: supervising one randomly chosen position per example, instead of always the last, keeps 99.8%, and randomizing the number of training loops also helps; truncating gradients, as in progressive training against overthinking, does not. The computation itself is exact: position $k$ is computed at loop $k$, and swapping its loop-$k$ hidden vector for the one from another input redirects every later position to that input's exact continuation (237/237 pairs in each of ten models). Retention, however, is not reuse. Even in models that keep nearly all answers, holding each position $k$ fixed from loop $k$ drops accuracy to 4--6%, whereas holding it from loop $k+4$ is harmless. A released recurrent maze network trained to avoid overthinking behaves the same way. Learning to compute is thus not learning to retain, and avoiding overthinking does not make a state reusable when its answer first appears.

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

↑