Manuscript Offprint

arXiv:2611.05234

ARLoop: Fully-Open Pre-trained Looped Transformers with Attention Residuals

Yuekun Yao, Yupei Du, Dawei Zhu, Huan Sun

ABSTRACT

Looped transformers increase effective depth by repeatedly applying a shared set of transformer layers, offering a parameter-efficient way to scale computation. However, standard residual connections aggregate information across recurrent depth into a single stream, providing limited control over which intermediate representations from preceding layers should be reused. In this paper, we introduce ARLOOP, a looped transformer architecture based on attention residuals (Kimi Team, 2026), where the input of each layer is selectively aggregated through attention over model depth. Distinct from standard transformers, we find that looped transformers do not require access to the full residual history: sliding-window depth attention matches or outperforms full-history attention at larger recurrent depths. Across controlled experiments with multiple parameter scales (140M and 370M) and recurrent depths (R=1R=1 to 55), ARLOOP consistently outperforms prior residual designs for looped transformers. More importantly, we further scale ARLOOP to 0.6B and 1.2B parameters under a realistic LLM pretraining recipe, demonstrating that the gains transfer to realistic pretraining, with particularly strong improvements on math and coding tasks. Our 1.2B model, pretrained on only 0.5T tokens with three recurrences, outperforms Huginn-3.5B (the only fully-open looped LLM as of our release date) across all evaluated tasks and is competitive with similar-sized non-looped models such as Qwen3.5-2B despite being trained on substantially less data.¹

1 INTRODUCTION

Looped transformers repeatedly apply a small set of shared transformer layers, increasing effective depth without increasing the number of distinct parameters (Dehghani et al., 2019; Yang et al., 2024; Saunshi et al., 2025). This provides an appealing alternative to conventional depth scaling: the same parameters can be reused for additional computation, and the number of recurrences provides an explicit axis along which training and inference compute can be varied. Recent work has demonstrated that such models can improve generalization on controlled multi-hop reasoning tasks (Kohli et al., 2026). Meanwhile, growing interest has focused on scaling looped transformers for parameter-efficient pretraining of large language models (LLMs) (Geiping et al., 2025; Zhu et al., 2025). A central question, however, is how to make looped transformers effectively exploit the additional computation provided by recurrent depth.

Increasing recurrent depth repeatedly produces new intermediate representations, but standard transformer residual connections, such as PreNorm (Xiong et al., 2020), provide only a limited mechanism for controlling how information produced at earlier depths is reused. Under PreNorm, residual updates from previous depths are accumulated into a single residual stream with fixed unit coefficients. As recurrence increases, more updates are accumulated into the same state, while later computations have no explicit mechanism for selecting which representations produced at earlier depths are useful.

¹We publicly release all artifacts, including training code, data processing code, intermediate checkpoints, and final ARLOOP models.

Figure

Figure 1: Performance of ARLOOP on general reasoning, knowledge, mathematics, and coding benchmarks. ARLOOP-1.2B outperforms both Huginn-3.5B and Qwen3.5-2B on all eight benchmarks, while ARLOOP-0.6B outperforms its parameter-matched PRENORMLOOP baseline on seven of eight benchmarks.

Existing work has improved looped transformers through residual scaling or normalization (Geiping et al., 2025; Li et al., 2026; Prairie et al., 2026), but limited systematic comparisons leave it unclear which residual design best enables models to make use of recurrent computation. Moreover, these prior residual designs have mostly been evaluated under relatively small-scale pretraining setups, leaving their effectiveness on more complex generative tasks such as mathematical reasoning and code generation underexplored.

Motivated by recent advances in attention residuals for standard transformers (Kimi Team, 2026), we investigate how selective residual access should be adapted to recurrent depth. Compared with PreNorm, attention residuals replace the uniform aggregation of earlier residual updates with attention-weighted aggregation, allowing each layer to selectively access representations from preceding depths. Unlike standard transformers, however, recurrent depth repeatedly applies the same parameters and can produce highly redundant representations across recurrences (Zeitoun et al., 2026; Wang et al., 2026a), raising the question of whether access to the full residual history is necessary.

Our contributions are twofold. First, we introduce ARLOOP, a looped transformer architecture that adapts attention residuals to recurrent depth. Across multiple parameter scales (140M and 370M) and recurrence depths (R=1R=1 to R=5R=5), ARLOOP consistently improves validation perplexity over PreNorm and outperforms prior residual designs (Geiping et al., 2025; Li et al., 2026; Prairie et al., 2026) under our rigorous controlled evaluation setting. Distinct from standard transformers, we find that access to the full residual history is unnecessary for looped transformers: sliding-window depth attention matches or outperforms full-history attention at larger recurrence depths. Our analysis further shows that depth attention concentrates on recent residual sources and that representations across recurrences are highly redundant, explaining the effectiveness of sliding-window attention.

More importantly, we demonstrate that ARLOOP scales to work under a realistic LLM pretraining recipe. Despite using a much smaller training budget (i.e. 0.5T tokens), our strongest ARLOOP-1.2B substantially outperforms Huginn-3.5B (Geiping et al., 2025) (the only fully-open looped LLM as of our release date), and achieves performance competitive with strong non-looped LLMs such as Qwen3.5-2B. At scale, we find that ARLOOP generally outperforms PreNorm, with especially promising improvements on math and coding tasks (e.g. +5.2 points on GSM8K and +3.1 points on MBPP). We release training code and checkpoints, making ARLOOP fully-open for future study.

References (88)