arXiv:cs.LG· Peilong Zhou, Hongtao Zhang, Yulong Huang, Cangyuan Li, Mingyu Chen, Ying Wang·· 2 小时前
循环 Transformer 研究:学会计算不等于学会保留或复用
Learning to Compute Is Not Learning to Retain or Reuse in Looped Transformers
AI 导读
循环 Transformer 在 loop 32 训练后答案完全正确,但到 loop 64 仅保留 22% 的正确答案;若训练时随机监督一个位置而非总监督最后位置,保留率可达 99.8%,随机化训练循环数也有帮助,而截断梯度无效。
正文
Abstract: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.
| Comments: | 31 pages |
| Subjects: | Machine Learning (cs.LG) |
| Cite as: | arXiv:2610.19768 [cs.LG] |
| (or arXiv:2610.19768v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.19768 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Peilong Zhou [view email]
[v1]
Wed, 14 Oct 2026 08:19:05 UTC (348 KB)
来源:arXiv:cs.LG · arxiv.org