Manuscript Offprint

arXiv:2610.41720

UpLoop: Training Looped Transformers via Upcycling at No Extra Pretraining Compute

Cheng Liang, Tengfei Zhang, Ya Zhang, Yanfeng Wang, Zhouhan Lin

Abstract

Looped language models can strengthen reasoning through repeated computation with shared weights, increasing execution depth without adding independent parameters. However, each additional pass increases training floating-point operations (FLOPs), making these gains more expensive to obtain. To address this cost, we propose UpLoop, a pretraining schedule that uses upcycling to train looped Transformers while exactly matching a standard dense baseline in final parameter count, total training tokens, and training FLOPs. Specifically, UpLoop begins with a shallow Transformer, progressively grows its depth by copying learned layers, and uses the computation saved early to support repeated execution of a shared middle block later in training. Experiments across model scales show improvements in language modeling and downstream performance, with the average score across 22 downstream tasks increasing from 22.99 to 27.52 at 1.3B parameters. These gains also extend to mathematical reasoning after supervised fine-tuning.

1. Introduction

Large language models (LLMs) have demonstrated strong capabilities in mathematical reasoning (Muennighoff et al., 2025; Xin et al., 2025) and agentic coding (Wang et al., 2025; Yang et al., 2024a; 2025). These capabilities have advanced substantially with increases in model size and training data (Hoffmann et al., 2022). Alongside scaling parameters and data, looped language models introduce an additional axis for scaling through iterative computation (Geiping et al., 2025; Zhu et al., 2025; Alabdulmohsin & Zhai, 2025; Bae et al., 2025a; Liang et al., 2026). Specifically, they repeatedly apply a shared Transformer block to increase execution depth at a fixed number of independent

parameters, allowing more rounds of computation that can strengthen reasoning (Saunshi et al., 2025).

However, the benefits of repeated computation come with increased training FLOPs. Each additional pass through the shared block requires extra computation, making a looped language model more expensive to train than its dense counterpart on the same number of tokens. This raises a practical question: Can we train a looped language model that outperforms a standard dense model with the same model parameters, training tokens, and training FLOPs?

To accommodate the additional computation required by looping within the dense baseline's training budget, we introduce a pretraining schedule that reallocates computation across training stages. A fixed total compute budget constrains the accumulated training cost, while allowing different stages to use different execution depths. We allocate less computation to early tokens and progressively increase depth, carrying learned parameters forward across stages (Shen et al., 2022; Du et al., 2024; Yao et al., 2024; Saunshi et al., 2024). The computation saved early then supports repeated execution in the final stage, allowing us to train a looped model within the dense baseline's original token and

Figure

Figure 1. Zero-shot accuracy of UpLoop and Vanilla across three model scales from 370M to 1.3B parameters. Both methods are trained at 100 tokens per parameter with equal training tokens and FLOPs at each scale. See Appendix C for evaluation details.

1^{1}Shanghai Jiaotong University 2^{2}University of Science and Technology of China. Correspondence to: Zhouhan Lin.

†^{†}Equal contribution Preprint. October 30, 2026.

Figure

Figure 2. Training dynamics and performance of UpLoop and Vanilla with equal training tokens and FLOPs at each scale. (a) Validation NLL during 370M pre-training. (b, c) Downstream accuracy and held-out NLL versus training FLOPs. (d) Downstream accuracy versus unique non-embedding parameters. See Appendix C for evaluation details.

training FLOP budgets.

We instantiate this strategy as UpLoop, a pretraining schedule that combines progressive depth growth with shared-weight looping. Specifically, UpLoop first trains a shallow Transformer and progressively copies its learned layers to increase depth. Once the model reaches its target depth, it repeatedly executes a middle block with shared weights, gaining additional execution depth without adding model parameters.

Across three model scales, UpLoop improves held-out language modeling and average downstream performance over the dense baseline under equal training token and FLOP budgets. Specifically, the average score across 22 downstream tasks increases from 22.99 to 27.52 at 1.3B parameters. These gains also extend to downstream mathematical reasoning after supervised fine-tuning. Further analyses show more aligned gradients across shared calls, functional differentiation among copied layers, and improved contextual retrieval.

References (61)