扩展至数万次测试时迭代:循环原生注意力残差 Scaling to Tens of Thousands of Test-Time Iterations with Loop-Native Attention Residuals 预印本

⚠️ 本文为 预印本(arXiv 公开版本),尚未经过正式同行评审。作者自发公开,结论未经期刊审稿验证,阅读时请知悉。
发布时间:2026-10-08
👁️ 预览文献
💡 AI 中文简介
该研究指出循环Transformer在迭代次数增加时性能会下降,原因是噪声更新会覆盖正确推理。为此提出InfiLoop,一种循环原生残差连接,学习保留哪些过去计算并控制新更新的接受程度。在数独和ARC等推理任务上,仅700万参数的模型达到97.9%准确率,且测试时循环超过2万步仍持续提升,表明增加深度可直接增强推理能力。
领域深度学习/神经网络架构与推理
适合谁读需要一定专业背景(了解Transformer和循环神经网络基础)
核心贡献1. 提出循环原生残差连接InfiLoop,通过内容加权和时间衰减自适应保留有用中间状态,抑制不可靠更新。2. 实现精确流式循环,使持久聚合内存恒定,支持数万次迭代而不增加内存开销。
关键数据700万参数模型在Sudoku-Extreme上达到97.9%精确准确率,在ARC-AGI-2上pass@2为13.6%;测试时循环超过20,000有效步后性能仍持续提升。
推荐理由如果你好奇如何让模型通过超长循环迭代越算越准,这篇工作用极简参数实现了数独近乎满分,并展示了深度扩展的潜力。
关键词["循环Transformer", "残差连接", "测试时迭代", "推理增强", "自适应更新", "流式循环"]

原文摘要

查看英文原文摘要

In this paper, we argue that looped Transformers need their own residual connections to prevent performance degradation as the number of iterations grows. We observe that increasing loop iterations can reduce reasoning accuracy: noisy state updates overwrite correct intermediate deductions and even undo completed solutions. This leaves subsequent iterations to recover lost information from an already degraded representation: once an error arises in an earlier loop, often as a result of long-range propagation through the recurrence, later loops find it difficult to correct. In this paper, we introduce InfiLoop, a loop-native residual connection that learns which past computations to retain and how much to accept from each new update. InfiLoop combines content-based weighting with learned temporal decay to maintain a running summary of recurrent states. An exact streaming recurrence keeps its persistent aggregation memory constant as the loop count grows. The resulting adaptive update suppresses unreliable proposals and preserves useful intermediate states. Across extensive reasoning tasks, a 7M-parameter InfiLoop model outperforms existing recursive architectures, reaching 97.9% exact accuracy on Sudoku-Extreme, and 13.6% pass@2 on ARC-AGI-2. Notably, on Sudoku-Extreme, InfiLoop continues to improve with test-time looping beyond 20,000 effective steps, showing that added depth translates directly into stronger reasoning. Our code is available at https://github.com/pixeli99/InfiLoop.