NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Beyond the Last Loop: Reinforcement Learning with a Teacher Extrapolated from the Model Itself

Linghua ZhangarXiv 2026

TL;DR

Looped language models "think" by passing each token through the same shared transformer layers multiple times, refining their predictions with each pass. By mathematically projecting the trajectory from the model's first internal guess to its final one, researchers discovered a hidden "teacher" inside the model that is smarter than the model itself. Combining this dense, token-by-token teacher signal with standard outcome-based reinforcement learning boosts math reasoning without needing a massive external model to act as a tutor.

What Problem Does This Paper Address?

Standard transformers have fixed depths, meaning a simple punctuation mark gets the exact same compute as a thorny math step. Looped language models (like Ouro-1.4B-Thinking) work differently: they recycle one shared stack of layers $T$ times per token—essentially drafting, revising, and polishing hidden states before speaking from the final loop.

Improving these models via Reinforcement Learning with Verifiable Rewards (RLVR)—giving a 1 for a right math answer and 0 for a wrong one—hits three roadblocks:

  1. Sparse signals: Standard RL algorithms like GRPO give a single pass/fail bit for an entire multi-thousand-token response. If a batch of attempts gets everything right or everything wrong, the gradient vanishes and the model learns nothing.
  2. Entropy collapse: Trying to spread the final outcome reward across all intermediate loops (as in a method called RLTT) forces early "drafting" loops to mimic tokens sampled from the polished final loop. Their predictive diversity (entropy) collapses, tanking accuracy below the untrained base model.
  3. Capped or costly distillation: Distilling knowledge from a teacher gives dense, token-by-token guidance, but self-distillation typically ignores correctness rewards (capping the student at its initial self), while external distillation requires an expensive, larger teacher model.
Figure 1: Left: GRPO gets one bit per response; RLTT trains intermediate loops on last-loop samples and their entropy collapses; LoopOPD has no reward. Right: ELGO extrapolates loop 1 to loop T of an anchor copy of the model, refreshed when the student has absorbed it, into a dense target for the last loop, next to the outcome reward.

Methods

The author introduces ELGO (Extrapolated-Loop Group-relative Optimization), which pairs standard GRPO with a self-generated, dense per-token distillation loss.

  • What is standard: The model generates rollouts from its final loop (Loop 4 in Ouro), receives a binary correctness reward, and computes standard group-normalized GRPO policy updates. Test-time inference remains completely unchanged.
  • What is new: Instead of an external teacher, ELGO builds a teacher from an anchor copy of the model itself using Cross-loop Contrastive Decoding (LoopCD). By taking the log-probabilities of Loop 1 (rough draft) and Loop 4 (final draft) and extrapolating past Loop 4 along that exact trajectory—specifically $(1+w)\ell_4 - w\ell_1$—we get a target distribution stronger than Loop 4 alone.
  • Additive & Anchored: Rather than multiplying noisy single-token signals into the sparse reward, ELGO adds a reverse-KL distillation penalty directly to the GRPO loss. Crucially, if the teacher updated every step, the model would endlessly chase its own extrapolation and destabilize; if it never moved, the student would stall. ELGO freezes the anchor copy and only refreshes it with the student's current weights once the student's KL divergence to the teacher drops below a set threshold ($\kappa = 0.02$).

Datasets

No new benchmarks are introduced.

  • Training: 14,684 verifiable math problems filtered from DeepMath (DeepMath-103K).
  • Evaluation: Five established math reasoning benchmarks totaling 630 problems: AIME24, AIME25, AIME26, MATH-500, and AMC23.

Key Insights and Ideas

  • A smarter teacher is already inside the room: Simply extrapolating the vector from Loop 1 to Loop 4 represents the direction of refinement. Following that arrow slightly past the final loop naturally re-ranks tokens toward better reasoning without needing a second model or privileged reference solutions.
  • Division of labor in credit assignment: Mathematical analysis of ELGO's closed-form optimum shows a clean separation of duties: the sparse outcome reward shifts overall probability mass from incorrect responses to correct ones, while the dense loop-teacher decides which specific tokens are preferred inside a response—even providing learning signal when all responses in a group fail.
  • Diagnosing why intermediate-loop RL fails: Tracking per-loop token entropy reveals why rewarding intermediate loops (RLTT) backfires: Loop 1's entropy plummets to 23% of its starting value, destroying the early exploration space the recurrent stack relies on.

Key Results

Trained for 100 steps on Ouro-1.4B-Thinking (4 loops) and evaluated using avg@8 across the five math benchmarks:

  • ELGO achieves 64.20% average accuracy, beating every baseline on every single benchmark.
  • It more than doubles the improvement of reward-only GRPO (62.32%, vs. 61.15% for the untrained Base model), with standout gains over Base on AIME26 (+5.42 points) and AMC23 (+4.68 points).
  • Reward-free on-policy self-distillation (OPSD) barely nudges performance (61.77%), proving that dense guidance needs the outcome reward to truly shine.
  • Spreading rewards across all loops (RLTT) severely degrades the model, dropping average accuracy to 50.16%.

Limitations and Future Work

  • Compute and memory overhead: ELGO requires storing one extra float32 anchor copy of the model in CPU memory and running one additional forward pass per training step.
  • Scope: Experiments were limited to a single model scale (1.4B parameters), a single domain (mathematics), and a relatively short training horizon (100 update steps).
  • Myopic dense reward: The distillation term uses a discount factor of zero, meaning each token is only rewarded for matching the teacher at that exact step, ignoring downstream effects. Future work points toward non-zero discounts, dynamic schedules for extrapolation weights, larger looped models, and broader domains.

Summary updated

BibTeX
@misc{zhang2026beyond,
  author = {Linghua Zhang},
  title = {{Beyond the Last Loop: Reinforcement Learning with a Teacher Extrapolated from the Model Itself}},
  year = {2026},
  eprint = {2611.31939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31939},
}
Figure