LoOPSD: On-Policy Self-Distillation with Looped Teachers

Wei Fan, Qingyue Yang, Chao-Hong Tan, Qian Chen, Wen Wang, Xiangang Li, Kejiang Chen, Weiming Zhang, Nenghai YuarXiv 2026

TL;DR

LoOPSD is a novel self-distillation method that improves a model's reasoning capabilities by using a "looped" version of itself as a teacher. By repeating specific layers during a teacher's execution, the model generates higher-quality supervision signals that are distilled back into the standard student model, leading to massive accuracy gains (e.g., +37% on GSM8K) without needing external models or extra data.

What Problem Does This Paper Address?

On-policy distillation is a powerful way to improve Large Language Models (LLMs). Usually, a "student" model learns by trying to match the token predictions of a "teacher." However, this typically requires a much larger external teacher (like GPT-4) or "cheating" by giving a self-teacher privileged information (like the correct answer or extra context).

The authors of LoOPSD ask a fascinating question: Can a model become its own superior teacher simply by changing how it uses its existing layers? They build on the observation that repeating certain layers of a pretrained model at inference time can improve reasoning performance. LoOPSD aims to "bake" this inference-time compute advantage directly into the model's weights through distillation.

Comparison of different supervision sources for reasoning models. LoOPSD (d) constructs a teacher by selecting an alternative layer route.

Methods

LoOPSD (Looped On-Policy Self-Distillation) operates in iterative rounds, each consisting of three main steps:

  1. Teacher Construction (Route Search): The researchers use a small labeled dataset to search for the best "route"—specifically, which contiguous block of layers $[i, j]$ to execute twice. This "looped" model acts as the teacher. It has the same weights as the student but uses more computation per token.
  2. On-Policy Distillation: The student model (running the standard, non-looped path) generates reasoning trajectories. The frozen looped teacher evaluates these same prefixes and provides token-level KL-divergence guidance. This ensures the student learns on the actual paths it generates.
  3. Iteration: After the student is updated, the process repeats. A new optimal loop is searched for the updated student, and another round of distillation begins. This allows the student to progressively "absorb" the gains from alternative execution.

The authors also introduce LoOPSD†, an extension where the teacher is given an additional instruction to "reason concisely," providing an even sharper supervision signal.

Overview of the LoOPSD pipeline: Route search, on-policy distillation, and iterative refinement.

Datasets

The method was evaluated across several challenging reasoning benchmarks:

  • Mathematical Reasoning: GSM8K, SVAMP, and MATH-500.
  • Logical Reasoning: ProofWriter.
  • Robustness/Transfer: GSM-Plus (used to test if models trained on GSM8K could generalize to perturbed versions of the problems).

Training utilized the PRM800K split for MATH-500 and the standard training sets for other tasks, with a tiny fraction (as few as 200-1000 examples) used for the teacher's route search.

Key Insights and Ideas

  • Computation as Supervision: The core "aha moment" is that extra computation (looping layers) can substitute for extra data or a larger model. The teacher isn't "smarter" in its parameters, just more thorough in its execution.
  • Iterative Absorption: A single round of distillation doesn't capture everything. By re-searching for a new loop after the student improves, the researchers found they could continue to push the model's performance higher.
  • Token Efficiency: Surprisingly, LoOPSD doesn't just make models more accurate; it makes them more concise. The distilled students often solve problems using fewer thinking tokens than the original model, despite being trained by a teacher that used more internal computation.
  • Late-Layer Refinement: Using "logit lens" analysis, the authors found that the student's improvements are concentrated in the later layers of the model, where the answer readout becomes significantly more accurate compared to the base model.

Key Results

The performance jumps are substantial, especially for smaller models:

  • GSM8K: Qwen3-1.7B skyrocketed from 42.30% to 79.61% accuracy. Even the highly capable Phi-4-reasoning-plus improved from 89.54% to 94.92%.
  • MATH-500: Qwen3-4B improved from 36.00% to 60.40% using the LoOPSD† configuration.
  • Label Efficiency: LoOPSD is remarkably efficient. In a head-to-head comparison with GRPO (a popular reinforcement learning method), LoOPSD achieved much higher accuracy using the same small number of labeled examples (see Table 3 in the paper).
  • Budget Flexibility: Models trained with a specific "thinking budget" (e.g., 400 tokens) generalized well to both shorter and longer budgets at test time.
Accuracy of various models across different thinking budgets. LoOPSD consistently outperforms the original and baseline models.

Limitations and Future Work

  • Discrete Search: The current route search is a discrete "grid search" over layer blocks. While effective, it might miss more complex, non-contiguous optimal routes.
  • Static Looping: The teacher uses the same loop for every token and every question. Future work could explore dynamic looping, where the model decides to "think harder" (loop more) only on difficult tokens.
  • Labeled Data Requirement: While the amount of labeled data needed is very small (200-1000 samples), the method still relies on having ground-truth answers to select the best teacher route. Moving toward a completely unsupervised teacher selection would be a major next step.

Summary updated

BibTeX
@misc{fan2026loopsd,
  author = {Wei Fan and Qingyue Yang and Chao-Hong Tan and Qian Chen and Wen Wang and Xiangang Li and Kejiang Chen and Weiming Zhang and Nenghai Yu},
  title = {{LoOPSD: On-Policy Self-Distillation with Looped Teachers}},
  year = {2026},
  eprint = {2610.18162},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.18162},
}
Figure