Scaling to Tens of Thousands of Test-Time Iterations with Loop-Native Attention Residuals
cs.AI
Submitted: 2026-10-08
Updated: 2026-10-08
Code: https://github.com/pixeli99/InfiLoop
License: http://creativecommons.org/licenses/by/4.0/
The gist: In this paper, we argue that looped Transformers need their own residual connections to prevent performance degradation as the number of iterations grows.
Abstract
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.
Sources
- On the Measure of Intelligence
- ARC Prize 2024: Technical Report
- ARC-AGI-2: A New Challenge for Frontier AI Reasoning Systems
- Gemini 2.5: Pushing the Frontier with Advanced Reasoning, Multimodality, Long Context, and Next Generation Agentic Capabilities
- DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learning
- Universal Reasoning Model
- Adaptive Computation Time for Recurrent Neural Networks
- Less is More: Recursive Reasoning with Tiny Networks
- Attention Residuals
- Fixed-Point Reasoners: Stable and Adaptive Deep Looped Transformers
- GLU Variants Improve Transformer
- Retentive Network: A Successor to Transformer for Large Language Models
- Hierarchical Reasoning Model
Related papers
- MAVEN-T: Reinforced Heterogeneous Distillation for Real-Time Multi-Agent Trajectory Prediction
- Model Discovery Agent: LLM-assisted Bayesian experiment design for data-efficient discovery of mechanistic world models
- Agents' Last Exam
- The Clinician's Veto: Navigating Trust, Liability, and Uncertainty in Autonomous AI Prescribing
- MindHelper: Closed-Loop Embodied Mental-State Reasoning for Precision Intervention
- Incumbent Advantage: Brand Bias and Cognitive Manipulation Dynamics in LLM Recommendation Systems