Manuscript Offprint

arXiv:2610.32246

Do Halting Heads Really Save Compute in Looped Language Models?

Tsung-Han Wu, Minsuk Heo, Kenny Tan

Abstract

Looped language models run each token through the same layers several times, and each run is one iteration. To save compute, an extra layer, the halting head, gives after each iteration the probability that the token stops there, so that easy tokens can stop early. Pretraining models from scratch, up to 1.3B parameters, we find two problems. First, heads trained on a mix of all iterations predict that tokens need under half the iterations, yet under the standard stopping rule tokens run almost every iteration, because this training never scores the single iteration where a token stops. Scoring every iteration instead fixes this, but in our runs it works only with a strong penalty favoring early stops. Second, savings are commonly reported as an average number of iterations per token, but when sequences are generated in batches that run until their slowest token stops, a model without a head is almost as good at that cost. The reported average can therefore overstate the saving. We recommend reporting the iterations tokens actually run, with the stopping threshold and batch size, and give a test, run before training a head, that bounds its gain.

1 Introduction

A looped language model applies one block of transformer layers to each token several times, instead of stacking many different layers (Geiping et al., 2025; Saunshi et al., 2025; Prairie et al., 2026; Zeitoun et al., 2026; Fu et al., 2026), so extra depth costs no extra parameters (Figure 1a). Each application of the block is one iteration. The number of iterations is a setting rather than part of the trained weights: a model trained with at most eight iterations, its cap, can also run with fewer. This invites adaptive depth, because a model could spend two iterations on an easy token and eight on a hard one and so save compute.

To decide when a token stops, these models add a halting head: a small extra layer that reads the

(a) Two ways to build depth eight different blocks

Transformer

one block, run up to 8 times

Looped

(b) Where a halting head stops a token

33%

stops

here (%)

iteration

total

so far (%)

average: 3.7

15

10

6

6

5

7

8

33%

48

58

64

70

75

82

100

exit rule waits for 90%: stops at 8

Figure 1: A head can predict 3.7 iterations and still run all eight. (a) A transformer stacks eight different blocks of layers; a looped model runs one block up to eight times. (b) After each iteration, a halting head gives the probability that the token stops there. Its average, the expected halting steps, is 1×0.33+2×0.15+⋯+8×0.18=3.71 \times 0.33 + 2 \times 0.15 + \cdots + 8 \times 0.18 = 3.7 iterations. An exit rule stops the token once the running total reaches 90%, which for this illustrative token happens only at iteration 8.

token's state, its representation after each iteration, and outputs the probability that the token should stop there. The two standard designs are Adaptive Computation Time (ACT) (Graves, 2016; Dehghani et al., 2019) and PonderNet (Banino et al., 2021), and recent looped language models use variants of both (Zhu et al., 2025; Tan et al., 2023). Their savings are commonly reported as an average number of iterations per token. For example, Ouro (Zhu et al., 2025), a released looped language model, compares its halting head with stopping every token at one number of iterations chosen to match the average, and another model reports a 50% cut in computation, estimated from the iterations its rule skips rather than measured as running time (Tan et al., 2023). This practice relies on an assumption: that the average number of iterations

(a) Tokens in one batched pass

Figure

(b) Predicted, spent, and paid

Figure

Figure 2: A batched pass costs more than the average token. (a) Four tokens processed together: the pass keeps running until its deepest token stops. (b) Two 370M-parameter models: the predicted average (what the head's probabilities predict), spent (what its exit rule runs) and paid (what a batched pass over 32 sequences runs). Mixture: trained on a mixture of all iterations; per-step: every iteration scored. Thresholds as in Section 2.2.

per token is the compute the model spends. This paper shows that, for the halting heads we train, this assumption fails.

Two things stand between what a halting head predicts and the compute it saves. First, the head only outputs probabilities. When the model runs, an exit rule decides when each token actually stops: it stops the token once the running total of its stopping probabilities reaches a threshold, for example 90%. This rule stops at a percentile of the probabilities, not at their average, the expected halting steps. Figure 1b shows a token whose average is 3.7 iterations: 18% of its probability is on the last iteration, so the running total reaches 90% only there, and the token runs all eight. Second, tokens are processed in batches, and a batch keeps running until its deepest token, the one that runs the most iterations, has stopped, so every token in it pays for that one (Figure 2a). Neither effect is new on its own: an average is not a percentile, and early-exit transformers, which stop a token at one of several layers, already meet the batching problem (Del Corro et al., 2023). What has not been measured is how often trained heads behave like the token of Figure 1b and why, whether a different training loss fixes it, and, if it does, how much of the head's advantage survives batching.

To find out, we train halting heads into looped models of four sizes, from 140M to 1.3B parameters, on two text corpora with three seeds for most configurations, and count the iterations that tokens actually run, the realized steps. Heads trained on a mixture of all their iterations predict fewer than four of eight iterations on average, yet they run almost all eight under a 90% exit rule. Stopping tokens earlier costs so much quality that, once more than about one iteration is saved, a model of the same size with no halting head does better when run for the same number of iterations. This model, the sampled-depth baseline, is trained with randomly chosen numbers of iterations.

The cause is the training loss. Like ACT, these heads are trained on a mixture of the token's states from all iterations, never on the single state at which an exit rule stops the token; we call this the mixture loss. If the model reads that one state instead of the mixture, it becomes about 0.2 bits per byte worse (BPB, the language-modelling loss per byte of text; lower is better). That is most of the 0.24 BPB gap between our smallest and largest models. Scoring every iteration, as PonderNet's own per-step loss does, is not enough on its own: it works only with a strong prior, a training penalty that pushes stopping toward early iterations. Early-exit models already train every exit layer (Schuster et al., 2022; Elhoushi et al., 2024), but each layer's share of the loss is set without the head; the per-step loss makes each iteration's share the head's own stopping probability, and we trace the need for the prior to this weighting (Section 6.2).

Even then, batching removes most of the lead. Scored on whole texts at once, as in training, the per-step model beats the sampled-depth baseline run for the same number of iterations. When 32 sequences are generated together, however, a batched pass runs more iterations than the average token, and at that cost most of the lead disappears. Batching also removes most of the saving of Ouro, a released looped model with a trained halting head. Generating one sequence at a time avoids this wait but raises a different problem: a stopped token has no keys and values at the iterations it skips, although later tokens attend to them there. The lead survives only if the token's own keys and val-ues are reused at those iterations, as Geiping et al. (2025) do in their looped model. Even then, the model does not beat a specialist, a model trained to always run about three iterations.

Our contributions are as follows:

  1. We show that halting heads trained with the mixture loss save almost no compute under their own exit rule, although the heads predict that tokens need under half the iterations (Section 5.2).

  2. We trace this to the loss, and show that scoring every iteration, weighted by the head's own probabilities, works only with a strong prior (Section 6).

  3. We show that batching removes most of the remaining lead, and that generating one sequence at a time keeps it only if stopped tokens' keys and values are reused (Section 7).

  4. We give a test that bounds, before any head is trained, how much a head could gain (Section 8).

Based on these results, we recommend that looped models with a halting head report three numbers: (i) the expected halting steps, (ii) the realized steps under a stated exit rule, and (iii) the iterations a batched pass runs. We also recommend stating how the keys and values of stopped tokens are filled.

References (98)