Manuscript Offprint

arXiv:2610.25004

UpLoop: Upcycling Large Language Models with Gated Loop

Tieyuan Chen, Huabin Liu, Yingtao Zhang, Shijie Li, Tengyu Pan, Weiyao Lin, Jianguo Li

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Looped large language models trade parameter storage for recurrent computation, but most are trained from scratch. In practice, pretraining with looped depth is expensive, making post-training upcycling of a pretrained non-looped LLM an attractive alternative. We introduce UpLoop, a post-training recipe based on layer-wise recurrence. Instead of looping a whole model or a middle block, UpLoop loops each selected layer locally, preserving the pretrained depth hierarchy and avoiding feature-space mismatch. To make loop execution useful, we add hidden-wise gates on the attention and MLP residual branches, so later loops act as progressive refinements rather than redundant rewrites. Empirically, UpLoop breaks the commonly observed saturation at two loops (R = 2) in prior looped models. Starting from Qwen3-4B Base and applying SFT, UpLoop improves the average accuracy across 20 benchmarks by 6.17% at R = 3. We use R = 3 as the main setting for the best accuracy-cost trade-off, while both native and extrapolated R = 4 yield further gains.

1 Introduction

Large language model capability is commonly scaled by increasing parameters, data, or generated reasoning tokens. Looped Transformers provide a different axis: they reuse the same parameters multiple times in hidden space, trading parameter storage for additional computation. Recent work suggests that such looped computation can introduce a favorable bias for iterative reasoning and latent computation (Saunshi et al., 2025; Zhu et al., 2025; Fu et al., 2026; Deng et al., 2026; Kirk et al., 2026). As the area has developed, the focus has broadened from small-scale demonstrations of latent reasoning to questions of scaling, stability, efficiency, and deployment in realistic language model (Lee et al., 2026a; Chen et al., 2026c; Gao et al., 2026; Wang et al., 2026; Jeddi et al., 2026; Vendrell et al., 2026; Fein-Ashley & Rashidinejad, 2026; Fang et al., 2026).

In practice, however, a more relevant question is whether a strong pretrained non-looped LLM can be upcycled into a useful recurrent-depth model only through continued pretraining or supervised fine-tuning, rather than trained as a looped model from scratch. This question matters because pretraining with looped depth is often substantially more expensive. Looping during pretraining directly multiplies recurrent computation, increases optimization complexity, and complicates stability and systems efficiency (Yang et al., 2026; Zeitoun et al., 2026; Zhu et al., 2025; Wang et al., 2026). In many realistic settings, it is therefore preferable to start from a large-scale pretrained LLM and ask whether the same post-training recipe can further improve the model through hidden-state recurrence. Our goal is precisely this form of post-training upcycling.

However, post-training upcycling is not straightforward. After large-scale pretraining, an LLM develops a stable depth-wise feature hierarchy: shallow layers process embedding-side features, middle layers transform and compose them, and deeper layers produce representations closer to readout space (Koishekenov et al., 2025; Wang et al., 2026). This makes recurrence schemes common in native looped LLMs trained from scratch—especially model-wise and block-wise looping—poorly suited to upcycling, because they feed late-stage representations back into shallower interfaces that were not pretrained to process them. We therefore adopt the layer-wise loop of Loop the Loopies (Gao et al., 2026): in UpLoop, each selected layer performs looped visits locally before passing the hidden state onward, thereby preserving the pretrained depth hierarchy.

Moreover, preserving the pretrained depth hierarchy alone is not sufficient to make recurrent computation useful. Prior looped models exhibit a recurring empirical limitation: the most reliable gains are often obtained

*Work done at Ant Group. ✉ Corresponding Authors. †Core Contributors. Codes and model will be released soon.

at two loops, while increasing the loop count beyond R=2R = 2 frequently brings little benefit or even degrades performance (Wang et al., 2026; Yang et al., 2026; Gao et al., 2026; Lee et al., 2026b; Schwethelm et al., 2026; Prairie et al., 2026; Labovich, 2026; Kohli et al., 2026; Oncescu et al., 2026). Here and throughout the paper, RR denotes the number of local loop executions performed by each selected looped layer. We refer to a model instantiated with loop count R=iR = i as an “ R=iR = i model,” meaning that each selected looped layer is executed for ii local rounds indexed by r∈{1,…,i}r \in \{1, \ldots, i\}. The case r=1r = 1 corresponds to the original pretrained forward pass of that layer, while the rounds r=2,…,ir = 2, \ldots, i are additional recurrent refinement passes that reuse the same parameters. A central goal of UpLoop is to overcome the “ R=2R = 2 ceiling” in post-training loop upcycling.

To make repeated execution useful, we therefore modulate the extra loops with learned hidden-wise gates on the attention and MLP residual writes. This design is inspired by stage-dependent modulation in Diffusion Transformers (Peebles & Xie, 2023): different refinement steps need not write equally or in the same way. In UpLoop, the modulation is implemented as learned gate vectors that are separately parameterized for each layer, loop, and residual branch. Thus, although parameters are shared across loops of the same layer, later loops can still apply different residual write strengths at different depths and hidden channels. Concretely, we keep the first loop identical to the pretrained forward pass and apply these layer- and loop-specific gates only to later loops. This preserves the original pretrained computation, while allowing subsequent loops to inject different amounts of new information at different depths and layers. The gate therefore serves not only as a stabilizer, but more importantly as a write controller that reduces redundancy, suppresses unnecessary overwriting, and enables controlled progressive refinement.

We further apply intermediate supervision and an improvement objective so that each recurrent depth remains decodable and later loops refine rather than degrade earlier ones. This is motivated by prior findings that looped models can otherwise suffer from drift and poorly controlled latent trajectories (Chen et al., 2026a; Williams & Tureci, 2026; Blayney et al., 2026; Labovich, 2026).

Empirically, starting from Qwen3-4B Base (Yang et al., 2025) and conducting supervised fine-tuning (SFT) on about 13B tokens, UpLoop breaks the commonly observed R=2R = 2 saturation pattern: the average accuracy across 20 benchmarks improves from 51.90 for the non-looped baseline to 55.56 at R=2R = 2 and further to 58.07 at R=3R = 3. We use R=3R = 3 as our main setting because it offers the best accuracy-cost trade-off. Notably, R=4R = 4 remains beneficial: a natively trained R=4R = 4 model reaches 58.70 on average, and inference-time extrapolation from trained R=3R = 3 to test-time R=4R = 4 also improves the ave. to 58.55. Overall, our contributions are threefold:

• We introduce post-training loop-depth upcycling, showing that a non-looped pretrained LLM can be converted into a useful recurrent-depth model through only SFT.

• We propose UpLoop, a layer-wise recurrent architecture with gated attention/MLP residual writes and depth-aware supervision, which makes loop depths beyond R = 2 effective.

• Starting from Qwen3-4B Base, UpLoop improves the 20-benchmark average by 6.17% at R = 3. We use R = 3 as the main setting, while both native and extrapolated R = 4 still bring gains.

References (50)