LoopRPT Teaches AI to Think Smarter With Every Recurrent Pass
A new reinforcement pre-training recipe pushes rewards into the hidden iterations of looped transformers, improving accuracy and cutting compute per token.
Takeaways
- LoopRPT is a reinforcement pre-training framework built for looped language models like Ouro.
- It reframes next-token prediction as a per-iteration reasoning task with rewards assigned to latent steps.
- Uses an EMA teacher reference and noisy latent rollouts to supervise intermediate hidden states.
- Instantiated on Ouro-1.4B and 2.6B, it achieves Pareto dominance on accuracy versus compute trade-offs.
- Gains concentrate on hard MATH500 tokens, suggesting better early reasoning rather than premature exits.
- Full paper on arXiv; code not yet released, Ouro backbone is open.
Looped language models reuse one Transformer stack across several recurrent passes, refining hidden states before predicting a token. The LoopRPT paper proposes a reinforcement pre-training objective that scores those intermediate passes. On two Ouro checkpoints, the authors report higher accuracy at a given average loop count and earlier exits on tokens that require less computation.
Token rewards blur latent credit
LoopRPT builds on Ouro, a family of decoder-only language models that repeatedly applies the same stack of Transformer layers. Weight sharing keeps the parameter count fixed across passes, while each additional pass increases computation and latency.
| Property | Ouro-1.4B | Ouro-2.6B |
|---|---|---|
| Reused stack | 24 layers | 48 layers |
| Hidden size | 2,048 | 2,048 |
| Maximum recurrence | Four passes | Four passes |
| Pre-training data | Approximately 7.7 trillion tokens | Approximately 7.7 trillion tokens |
| Core components | Multi-head self-attention, RoPE, SwiGLU, and sandwich RMSNorm | |
Ouro predicts a halting probability during each recurrent pass. That probability determines whether computation stops or continues for a given token, allowing easy predictions to use less depth and difficult predictions to use more.
Conventional next-token training already propagates gradients through recurrent hidden states, but its supervision evaluates the resulting token distribution. Output-level reinforcement learning has the same credit-assignment problem: a final reward can influence the full trajectory without evaluating the contribution of each pass. LoopRPT adds a training signal tied to intermediate latent updates.
A reward signal for every pass
LoopRPT treats each recurrent pass as a step in a latent reasoning trajectory. Intermediate next-token predictions provide observable signals for hidden computation that would otherwise remain implicit. The training procedure combines three elements:
- An EMA teacher. An exponential moving average of the model’s weights provides a slowly changing reference for scoring the student’s intermediate predictions. This self-distillation setup avoids a separately trained reward model.
- Noisy latent rollouts. Perturbations applied to recurrent hidden states produce alternative trajectories from the same context, giving the reinforcement objective multiple candidate transitions to evaluate.
- Per-step credit. Updates reward latent transitions associated with better next-token predictions, directing learning toward useful computation earlier in the recurrence.
The resulting gradients encourage every pass to contribute more to the prediction. The EMA teacher and noisy rollouts are training components; inference continues to use Ouro’s recurrent stack and learned halting probabilities.
The useful work moves earlier
The authors evaluate LoopRPT on Ouro-1.4B and Ouro-2.6B using reasoning benchmarks that include MMLU and MATH500. Their reported results cover three aspects of the accuracy and compute trade-off.
| Evaluation | Reported result | What it measures |
|---|---|---|
| Accuracy versus loop count | LoopRPT improves the measured Pareto frontier across the tested settings. | Accuracy achieved for a given average number of recurrent passes. |
| Exit distribution | Probability shifts toward earlier exits without collapsing onto the first pass. | Whether the halt head reduces useful computation or merely exits prematurely. |
| MATH500 difficulty | Accuracy rises at every reported Hendrycks difficulty level. | Whether gains extend to harder mathematical problems. |
| Inference policy | Improvements appear with maximum-loop inference and adaptive early exit. | Whether gains depend on a single halting configuration. |
The MATH500 breakdown supports the paper’s central claim that earlier exits reflect stronger intermediate computation. Improvements on harder levels would be unlikely if the halt head had learned only to stop sooner.
Average loop count remains a proxy for deployment cost. Actual latency depends on kernel efficiency, batching, memory traffic, and divergence between tokens that exit at different passes. Hardware benchmarks are therefore required to translate the reported iteration savings into wall-clock gains.
What implementation requires
LoopRPT fits recurrent or universal Transformer codebases that expose hidden states and predictions at every pass. Adopting the method involves several engineering requirements:
- Intermediate access: Training must retain recurrent hidden states, per-pass token distributions, and halting outputs. An output-only model API does not expose enough information.
- Teacher storage: The trainer must maintain an EMA copy of the model, adding memory and synchronization work.
- Rollout capacity: Noisy latent trajectories increase training compute according to the number of perturbations sampled.
- Halting evaluation: Accuracy, average passes, FLOPs, and measured latency should be tracked together.
- Standard Transformer changes: A conventional decoder-only model executes each layer once and lacks the recurrent latent trajectory that LoopRPT supervises. Using the objective would require an architectural modification.
The evidence has clear boundaries
The experiments cover 1.4B- and 2.6B-parameter models, leaving behavior at larger scales untested. The paper also does not report long-context code generation, retrieval-heavy tasks, or agentic tool use, so its conclusions currently apply most directly to benchmarked language and mathematical reasoning.
Compute accounting remains central to comparisons with dense Transformers. Ouro reports unique parameters even though repeated passes consume additional FLOPs. LoopRPT improves the trade-off within the same recurrent backbone, but broader efficiency claims require matched comparisons using total training cost, inference FLOPs, memory use, and measured latency.
Recurrence also provides limited help when factual storage is the bottleneck. Reapplying the same weights can deepen computation over available information, while the model’s parameter capacity still constrains memorized knowledge.
Code remains pending
At publication time, the authors had released the paper on arXiv without accompanying LoopRPT code or weights. The underlying Ouro checkpoints are available through the Ouro project page, which provides a starting point for reproduction once the objective, rollout procedure, and training hyperparameters are implemented.