# The Teacher Is Already Inside: Self-Distilling Looped Language Models Beyond Their Last Loop

> ELPSD enables a looped language model to self-distill without rewards by training its last loop against an extrapolated contrastive teacher from its own frozen weights, beating GRPO on math benchmarks.

- **Source:** [arXiv](https://arxiv.org/abs/2611.32452)
- **Published:** 2026-11-28
- **Permalink:** https://picx.dev/p/C0z5t6
- **Whiteboard:** https://picx.dev/p/C0z5t6/image

## Summary

## Summary (Overview)

- **ELPSD (Extrapolated-Loop Policy Self-Distillation)** is a novel reward-free post-training method for looped language models, where the deployed last loop learns from the LoopCD (cross-loop contrastive decoding) distribution of the model's own frozen initial weights.
- The key insight is that a looped model already contains a policy better than its last loop: extrapolating next-token distributions from loop 1 through loop T (i.e., $(1+w)\log P^{(T)} - w\log P^{(1)}$) yields a superior teacher without any external supervision.
- Without any reward, verifier, external teacher, or privileged context, ELPSD raises the average avg@8 of Ouro-1.4B-Thinking from 61.15 to 63.69 across five math benchmarks, outperforming GRPO (62.32), OPSD (61.77), and RLTT (50.16).
- Theoretical analysis shows the objective decomposes into a contrastive pull toward the base model's last loop (weight $1+w$) and away from its first loop (weight $w$), and proves that the extrapolated teacher must stay frozen to avoid divergence.
- ELPSD requires no changes to rollouts or decoding—the trained model uses standard last-loop sampling at deployment.

## Introduction and Theoretical Foundation

### Background and Motivation

Looped language models reuse one set of transformer parameters across several passes per token. Ouro applies the same stack $T=4$ times per token, with every loop $t$ readable as a next-token distribution $P_\theta^{(t)}$ through the shared language-model head. The deployed policy is the last loop: $\pi_\theta = P_\theta^{(T)}$.

Post-training these models is challenging:
- **GRPO** (reward-only RL) needs a verifier and learns from one sparse scalar per response; groups with all-correct or all-wrong responses yield no gradient (only +1.17 avg@8 over 100 steps).
- **RLTT** spreads reward over loops, causing loop-1 entropy to collapse to 23% of its initial value and degrading performance below the base model.
- **LoopOPD** (cross-loop self-distillation) can only teach intermediate loops, since a last loop taught by its own frozen copy starts at zero loss and zero gradient.

### Key Observation

Cross-loop contrastive decoding (LoopCD) extrapolates log-probabilities from loop 1 through loop T:

$$\log \pi_{\mathrm{T}}(\cdot|s) = \log \operatorname{softmax}\bigl((1+w)\ell_T - w\ell_r\bigr) = \ell_T + wf - \log Z(s)$$

where $\ell_t = \log P_{\theta_0}^{(t)}(\cdot|s)$ and $f = \ell_T - \ell_r$ is the loop direction. Without any training, LoopCD raises AIME24 pass@1 of Ouro-1.4B-Thinking from 50.83 to 59.17.

### Three Challenges Addressed

- **C1**: The deployed last loop has no teacher above it inside the model; with $w=0$ the teacher is its own frozen copy and the objective is degenerate.
- **C2**: An extrapolated teacher recomputed from the current model extrapolates its own extrapolation; contrast grows geometrically with no stable fixed point.
- **C3**: The extrapolated teacher amplifies tokens that loop 1 strongly disprefers, which the student rarely uses.

## Methodology

### Preliminaries

A looped language model applies one shared transformer stack $T$ times per token. With $h^{(t)}(s)$ the normalized hidden state after loop $t$ at the last position of prefix $s$, the shared LM head $W$ gives:

$$P_\theta^{(t)}(\cdot|s) = \mathrm{softmax}\bigl(Wh^{(t)}(s)\bigr), \qquad t = 1, \ldots, T$$

The student policy is the last loop: $\pi_\theta := P_\theta^{(T)}$.

### The ELPSD Objective

The loss is the exact reverse KL from the student to the teacher at every visited prefix, averaged over tokens and responses:

$$\mathcal{L}_{\mathrm{ELPSD}}(\theta) = \frac{1}{N}\sum_{i=1}^{N}\frac{1}{|y_i|}\sum_{j=1}^{|y_i|}\mathrm{KL}\bigl(\pi_\theta(\cdot|s_{i,j}) \| \pi_{\mathrm{T}}(\cdot|s_{i,j})\bigr)$$

Each prefix contributes only its own KL, computed in closed form over the vocabulary—the gradient is exact, with no importance ratio or clipping needed.

### Key Design Choices

- **Teacher**: LoopCD distribution of the frozen base model with $w=0.5$, $r=1$ (the LoopCD setting for Ouro-1.4B-Thinking on math).
- **Reverse KL** (mode-seeking): penalizes mass where the teacher has little but doesn't force coverage of all teacher-supported tokens, suiting an extrapolated teacher.
- **Frozen teacher**: A float32 copy of the initial model on every training GPU; loop-1 and loop-4 hidden states are passed to the student's forward pass.

## Empirical Validation / Results

### Setup

- **Base model**: Ouro-1.4B-Thinking (24 layers, $T=4$), trained on 14,684 problems from DeepMath.
- **Training**: 100 steps, 64 prompts × 8 responses per step ($N=512$), temperature 1.0, learning rate $10^{-6}$, no KL term to reference, no entropy bonus.
- **Evaluation**: AIME24, AIME25, AIME26, MATH-500, AMC23 (630 problems total); 8 samples per problem at temperature 0.6, top-p 0.95.

### Main Results (avg@8, step 100)

| Method | AIME24 | AIME25 | AIME26 | MATH-500 | AMC23 | Avg. |
|--------|--------|--------|--------|----------|-------|------|
| Base | 45.42 | 40.83 | 42.08 | 91.78 | 85.63 | 61.15 |
| GRPO | 45.00 | 40.83 | 45.00 | 92.65 | 88.13 | 62.32 |
| RLTT | 32.50 | 27.92 | 29.17 | 85.58 | 75.63 | 50.16 |
| OPSD | 44.58 | 40.00 | 44.58 | 92.20 | 87.50 | 61.77 |
| **ELPSD** | **47.50** | **41.25** | **46.67** | **93.05** | **90.00** | **63.69** |

Key findings:
- ELPSD is the **best method on all five benchmarks** despite using no reward.
- ELPSD exceeds GRPO by 1.37 points on average (and on every benchmark), even though GRPO calls the verifier on all 512 rollouts per step.
- ELPSD exceeds OPSD by 1.92 points on average without needing reference solutions.
- RLTT collapses: loop-1 entropy falls from 1.684 to 0.382 nats (23% of start), and avg@8 drops 10.99 points below base.

## Theoretical and Practical Implications

### Proposition 1 (Contrastive Decomposition)

For every distribution $\pi$ over the vocabulary:

$$\mathrm{KL}(\pi \| \pi_{\mathrm{T}}) = (1+w)\mathrm{KL}\bigl(\pi \| P_{\theta_0}^{(T)}\bigr) - w\mathrm{KL}\bigl(\pi \| P_{\theta_0}^{(r)}\bigr) + \log Z$$

with $\log Z = wD_{1+w}\bigl(P_{\theta_0}^{(T)} \| P_{\theta_0}^{(r)}\bigr) \geq 0$, where $D_\alpha(p\|q)$ is the Rényi divergence of order $\alpha$. At initialization:

$$\mathrm{KL}\bigl(P_{\theta_0}^{(T)} \| \pi_{\mathrm{T}}\bigr) = w\bigl[D_{1+w}\bigl(P_{\theta_0}^{(T)} \| P_{\theta_0}^{(r)}\bigr) - \mathrm{KL}\bigl(P_{\theta_0}^{(T)} \| P_{\theta_0}^{(r)}\bigr)\bigr] \geq 0$$

This shows ELPSD pulls the last loop toward the base model's last loop (weight $1+w$) and pushes it away from loop $r$ (weight $w$). The initial gap is large where loops disagree and zero where they agree.

### Proposition 2 (Self-Refreshed Teacher Diverges)

If the teacher is recomputed from the current model each round, then $\log \pi^{(k)} = \ell_r + (1+w)^k f - \log Z_k$—the contrast compounds geometrically. For $w > 0$, the policy concentrates on $\arg\max_v f(v)$, a degenerate policy. The frozen teacher is therefore essential: it provides a stable fixed point (the teacher itself).

### Implications

- **Self-distillation with computational privilege**: ELPSD shows that a model's own extra loops (read through extrapolation) can be a better teacher than privileged context (reference solutions in OPSD).
- **Complementarity with RL**: ELPSD is reward-free and can be combined with reward-based training by adding an outcome reward anchored at the extrapolated teacher.
- **Practical deployment**: The trained model decodes with standard last-loop sampling on any serving stack, unlike LoopCD which requires custom model classes.

## Conclusion

ELPSD demonstrates that a looped language model can distill itself: the deployed last loop learns, on its own rollouts, the LoopCD distribution of its own frozen initial weights—with no reward, verifier, external teacher, or privileged context. The objective pulls the last loop toward the base loop $T$ and away from the base loop 1, and the teacher must stay frozen to avoid compounding contrast. Without any reward, ELPSD achieves the best avg@8 on all five math benchmarks, surpassing GRPO (which uses a verifier), OPSD (which needs reference solutions), and RLTT.

**Future directions** include: adding outcome rewards on top of the self-distillation term, scheduling $w$ and $r$ to extrapolate further during training, applying test-time LoopCD to the self-distilled model, and extending to larger looped models and non-mathematical domains.

---

_Markdown view of https://picx.dev/p/C0z5t6, served by PicX — AI-generated visual whiteboard summaries of research papers._
