Manuscript Offprint

arXiv:2610.34427

ScaleRLT: Exact Log-Probabilities and Fast Deferred Rollouts for Reinforcement Learning on Looped Transformers

Dezhen Lu, Zixiang Ni, Runguo Li

ABSTRACT

Looped language models such as Ouro reuse one block of layers several times per token. A rollout engine can batch the deeper loops of several response positions and run them only when a deep readout is due. This deferred schedule is fast, but the learner of an on-policy RL algorithm recomputes the sampled tokens’ log-probabilities with a dense pass, and the two computations differ in floating point: in FP32 at 4096 tokens about 18% of the sampled tokens miss a 10−510^{-5} same-weight gate, and with bf16 weights nearly every token does. We use a hybrid learner log-probability, ℓ=ℓdense+sg(ℓsched−ℓdense)\ell = \ell^{\text{dense}} + \text{sg}(\ell^{\text{sched}} - \ell^{\text{dense}}), whose value is a no-grad replay through the rollout’s own schedule and whose gradient is the dense learner’s. The replay reproduces the rollout bit for bit in all 167 FP32 and 28 bf16 real-weight cells we ran on three platforms, including rollouts whose batch shrinks at stop tokens, and the gradient has the same FP32 error as other dense implementations in all 102 pre-registered comparisons from 96 to 4096 tokens; the full GRPO loss of a training step matches a float64 reference to 3.1×10−43.1 \times 10^{-4}. On one GPU, deferral raises rollout throughput by 1.47−1.56×1.47-1.56\times, and by 1.18−1.54×1.18-1.54\times once every step runs from CUDA graphs, bit for bit. In a two-node GRPO loop, one-wave KV admission and CUDA graphs shorten an update by 2.71×2.71\times with the gate bitwise at every update, and four nodes keep the update time within 2% at the same per-GPU load. In 100-update runs held-out GSM8K accuracy rose from 23% to 82% with the mixed-depth readout that deferral relies on and from 34% to 90% with the native readout, which reached a higher accuracy in less time. For looped models beyond one node we analyse a ring mapping of layers to GPUs and measure its communication paths.

1 INTRODUCTION

Looped (recurrent-depth) transformers apply the same block of layers several times per token, trading parameters for depth (Dehghani et al., 2018; Geiping et al., 2025; Zhu et al., 2025). Reinforcement learning with verifiable rewards is a natural way to train their reasoning, and its cost is dominated by rollouts. A looped model makes rollouts unusually expensive: every loop keeps its own KV history, so both compute and KV memory grow with the number of loops. Ouro runs all four of its loops for every token. We study a mixed-depth readout policy for it, in which most tokens are read out after two loops and every fourth token after all four. The deeper loops of the shallow tokens are still needed by later deep tokens, but they can be computed later and in batches (Figure 1a). This deferred schedule saves rollout time, although, as we find, the mixed readout it relies on can cost quality. It also changes the grouping of every matrix multiplication and attention reduction, while the learner of an on-policy algorithm such as PPO or GRPO (Schulman et al., 2017; Shao et al., 2024) recomputes the same log-probabilities with a dense pass. This paper makes the two sides agree exactly, then makes the deferred system fast on one node and plans it for models that do not fit on one.