Manuscript Offprint

arXiv:2610.42030

There Is No Free Loop: When Does Looping a Trained Model Pay for Its Inference Compute?

Rhea Sanjay Sukthanker, Pashmina Cameron

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original. This text is shared under the same licence.

Abstract

Looping re-applies a block of layers so that each token passes through the block more than once. Adding a loop to a trained model is attractive because it leaves the parameter count, and hence the disk size, the memory footprint and the training cost unchanged. Unfortunately, every generated token pays for the loop. Re-applying mm of NN layers makes each token about (N+m)/N(N+m)/N times as expensive. Loops that a model learns during large-scale pretraining justify this price, but whether loops added after pretraining justify this cost remains unclear. We compare a looped model with two simple baselines. We first compare it with the same model trained identically without the loop (equal parameters). Secondly, we compare it with the best unlooped use of the same inference floating-point operations (equal FLOPs). Across Qwen3 and Qwen3.5 models from 0.8B to 9B parameters, only the looped 0.8B model beats both baselines. At 4B and 9B, the looped model does not beat the first baseline, i.e. the same model trained without the loop. This is not because the benchmarks are too easy, since on the same benchmarks the unlooped 9B model still scores up to 13 points higher than the 4B model, showing that there is ample room for improvement. Introducing loops in an already pretrained model therefore only pays for small models with a fixed parameter budget.

1 Introduction

A transformer model normally passes a token through each of its layers once. A loop passes the token through a block of layers several times with the same weights, so the model spends more computation per token without storing more parameters. When a model learns its loop with a large pretraining budget, this pays off. Recurrent-depth models pretrained on hundreds of billions of tokens turn extra iterations into accuracy [18], and looped models pretrained on 7.7T tokens compete with dense models several times larger [40]. However, few practitioners can afford to pretrain at that scale. A cheaper route introduces loops into a model that already exists, either without any training [10] or during the short post-training that turns a base model into a reasoning model [5]. Such a loop does not change the model's disk size, memory footprint and training cost.

Unfortunately, every generated token pays for the loop. Re-applying mm of NN layers makes each token cost about (N+m)/N(N+m)/N as much, for as long as the model serves requests. The same compute has other uses. It buys the unlooped model longer answers, several sampled answers, or a move to a larger model if memory footprint is not a concern. A loop that beats its starting model is therefore not useful, unless it also beats these alternatives.

Our key insight is that a loop introduced after training should pass two tests, in a fixed order. The first compares models at equal parameters and asks whether the loop beats the same model trained identically without it. The second compares them at equal FLOPs, i.e. equal inference floating-point operations, and asks whether the loop beats the best unlooped use of the same compute. A loop that fails the first test never reaches the second (Figure 1). We test an assumption implicit in prior work on looping trained models,

Figure

Figure 1: Testing a loop twice. (1) A loop re-runs mm of a model's NN layers for every token. (2) We add loops at three points in a model's life cycle, and each looped model has a twin trained on the same data for the same steps. (3) Bars show the looped model's accuracy gain after the short fine-tune, over its twin (left) and over the best unlooped evaluation of equal FLOPs (right). Only the 0.8B loop beats both.

namely that a loop adds useful depth and should therefore pass both tests. We study training-free loops in a released reasoning model (Qwen3-8B), and loops that Qwen3.5 base models of 0.8B, 4B and 9B parameters learn while post-training turns them into reasoning models.

The hypothesis holds only for the smallest model. The 0.8B loop passes both tests, and this continues to hold when we strengthen both models in the same two ways. We fine-tune each model on three times as much data, and we decode each with budget forcing [4], a rule that ends the reasoning once a token limit is reached, which we place shortly before the full budget so that the model always writes an answer. At 4B and 9B the loop fails the first test, even though the 9B model scores up to 13 points higher than the 4B model on the same benchmarks. Hence, this is not an effect of the benchmarks saturating or being too easy. The key contributions of our work are:

  • We propose a two-test protocol for loops added to trained models, which gives budget forcing to both models as a baseline that costs no extra compute (§3).

  • We show that such loops pay only at small scale, and that larger models gain nothing from them even when we ignore the extra compute introduced (§4).

  • We measure the serving cost and derive a practical rule. A loop is worth its price only when the parameter budget cannot grow (§4.5).

References (71)