arXiv(opens in a new tab)cs.LGOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.26030

Truncate or Not? A Scaling Study of Looped Transformers with Truncated Backpropagation

Xuyuan Xiong, Siyu Chen, Zihan Shao, Yue Su, Weiyang Jin, Ping Luo, Zhuoran Yang, Xihui Liu

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

Xuyuan Xiong1,∗^{1,*}, Siyu Chen2,∗^{2,*}, Zihan Shao2^{2}, Yue Su1^{1}, Weiyang Jin1^{1}, Ping Luo1^{1}, Zhuoran Yang2,†^{2,\dagger}, Xihui Liu1,†^{1,\dagger}

1^{1}MMLab, The University of Hong Kong 2^{2}Yale University

*Equal contribution: xiongxuyuan@connect.hku.hk, siyu.chen.sc3226@yale.edu

†Corresponding authors: zhuoran.yang@yale.edu, xihuiliu@eee.hku.hk

Looped transformers reuse a shared block of layers to increase computational depth without increasing the number of trainable parameters. They are trained with backpropagation through time (BPTT). To save training compute, BPTT is often truncated to the last few loops, although this may weaken the benefit of looping. To study this tradeoff systematically, we jointly vary model size, training tokens, and forward and backward loop counts across nearly 600 training runs and fit a unified scaling law that captures the effects of looping and truncation through effective parameters. Despite the training-compute savings of truncation, our fitted law favors full BPTT when forward and backward loop counts are jointly optimized. In matched-compute runs, full BPTT through fewer loops consistently outperforms truncated settings of the same compute. The law further shows that at fixed model size, the compute-optimal loop count and training-token budget both grow with compute. When model size is also free, the law identifies two fully trained loops as the best looped setting. Experimentally, this setting achieves lower loss than the compute-optimal non-looped model with about 27% fewer non-embedding parameters and only 8% more training compute.

Date: October 15, 2026

Code: https://github.com/xjxyys/Truncate-or-Not

(a) Forward and backward loops in one training step

Figure

(b) Loops add effective parameters; truncation discounts them

(c) At fixed size, optimal loops grow with compute

Figure

training compute C (FLOPs)

(d) Loop twice: fewer parameters for a little more compute

(344M vs. 471M) compute C

Figure 1 | Overview of looped transformer scaling with truncated BPTT. (a) Step for (T,B)=(4,2)(T, B) = (4, 2) (T forward loops, last B trained). (b) At 8D08D_{0} tokens, loops add effective parameters while truncation discounts them ( §4\S4 ; lines: law, markers: runs). (c) At fixed size (120M), optimal T grows with compute under full BPTT ( §6.1\S6.1 ). (d) (2, 2) (344M) beats (1, 1) (471M, 2.1×10192.1 \times 10^{19} FLOPs) in loss (2.36 vs. 2.37 nats) with 27% fewer parameters and 8% more compute ( §6.3\S6.3 ).

1 Introduction

Looped transformers have attracted attention for combining strong performance with efficient use of parameters and training memory. By repeatedly applying a shared block of layers, they increase computational depth without increasing the number of trainable parameters (Dehghani et al., 2019; Geiping et al., 2025). To reduce the cost of training these repeated blocks, several looped language models use truncated backpropagation through time (BPTT), propagating gradients only through the final loops while executing the earlier loops without tracking gradients (Geiping et al., 2025; Huang et al., 2026; McLeish et al., 2025; Prairie et al., 2026; Wang et al., 2026a). Truncation introduces a new tradeoff: it saves backward computation and activation memory during training but can weaken the gains from looping (Schwethelm et al., 2026). To achieve the best performance under a fixed training compute budget, we must therefore decide how to divide compute among forward loops, backward loops, model size, and training tokens.

Existing scaling studies examine prescribed backpropagation recipes rather than jointly modeling forward and backward loop counts. Schwethelm et al. (2026) compare full BPTT with truncation to half the loops, fitting a separate scaling law to each recipe. Parcae (Prairie et al., 2026) varies backward-loop counts in small-model experiments but fixes them to half the forward-loop count in its scaling study, leaving their joint optimization to future work. These studies characterize specific recipes but do not provide a unified law for choosing both loop counts across model sizes and token budgets (Table 1). We thus ask:

How do model size, training tokens, and forward and backward loops jointly affect loss, and should we truncate backpropagation under a fixed training compute budget?

To characterize how these quantities affect loss, we conduct nearly 600 training runs, including a scaling suite spanning 58M–919M non-embedding parameters, over three orders of magnitude in training tokens per parameter, and up to 16 forward loops. We independently vary forward and backward loop counts across model sizes and token budgets and fit a unified scaling law. The law expresses the benefit of looping through an effective parameter count—the size of a non-looped model that achieves the same loss at the same token budget. Fully trained loops increase the effective parameter count with diminishing returns, while truncation discounts this gain.

We then use the law to decide whether to truncate, and the answer depends on whether the forward-loop count is prescribed. When it is, the law recovers the benefit of truncation reported in prior work (Schwethelm et al., 2026): the saved backward compute supports a larger model and more training tokens, which more than offset the discounted loop gain. When both loop counts can be chosen, however, the law favors full BPTT. Reducing the forward-loop count frees compute for additional backward loops until every remaining loop is trained, and under the fitted law this reallocation yields more effective parameters at the same compute than the original truncated setting. Separately fitted laws and matched-compute experiments support this advantage ( §5§5).

Building on this preference for full BPTT, we additionally study how to allocate compute among loop count, training tokens, and model size. Consider first a setting where model size is predetermined, for example due to device memory constraints. At fixed model size, increasing the loop count is an effective way to increase the effective parameter count; however, additional loops offer diminishing gains while increasing the cost per token. The law precisely characterizes the optimal tradeoff between loop count and training tokens, allocating most additional compute to tokens and increasing the loop count only slowly. This result extends Parcae's fixed-size allocation analysis (Prairie et al., 2026) beyond a prescribed truncation rule. When model size is also free, compute can instead support more unique parameters; under our leading-FLOP approximation, the law favors a non-looped model and identifies two fully trained loops as the best looped setting. In experiments, models with two fully trained loops nearly match compute-optimal non-looped models at equal training compute while having substantially fewer non-embedding parameters. With a little more training compute, such a smaller model surpasses the compute-optimal non-looped model ( §6§6).

Our contributions are threefold:

• A unified scaling law based on effective parameters. We develop and validate a law that expresses loop gains and truncation discounts through an effective parameter count, jointly modeling model size, training tokens, and independent forward and backward loop counts ( §4\S4).

• An explanation of when truncation pays. We show why truncation can pay at a prescribed forward-loop count and why joint forward–backward allocation favors full BPTT under the fitted law, supported by matched-compute experiments ( §5\S5).

• Compute-allocation rules and parameter-efficient training. We derive allocation rules for fixed and free model size and demonstrate that two fully trained loops nearly match compute-optimal non-looped models while having substantially fewer trainable parameters ( §6\S6).

Figure 1 previews the three results: loops add effective parameters and truncation discounts them; at fixed model size the best loop count grows with compute; two fully trained loops match the loss of a non-looped model with fewer parameters for a little more compute.

References (100)

Couldn't load all references. Reload the page to try again.