Shuffled OPSD: Word-Order Shuffling in On-Policy Self-Distillation
In OPSD, the word order of the shared problem is a training variable that can be deliberately broken, while the structure of the teacher-only worked example should be preserved.
On this page
A team has 50 optimizer steps and three Qwen3 checkpoints, but the usual advice says the shared training problem must stay intact. The team is deciding whether to rewrite its on-policy self-distillation recipe: the same model acts as student and teacher, the student sees only the problem, and the teacher also sees a fully worked example and scores every token the student writes. Most people assume that a fluent, semantically coherent problem statement must help, because the student can follow it and the teacher can align its feedback. This paper tests that assumption by shuffling the words of the shared problem while leaving the teacher-only worked example intact. Across three math benchmarks and three model scales, shuffling improves mean accuracy, while shuffling the teacher-only reference hurts [1]. The result has clear boundaries, which this article will mark.
The Default Assumption: Intact Problems Help
Start with the default. In on-policy self-distillation (OPSD), a student model sees only the problem and generates its own solution path; a frozen copy of the same model acts as teacher, sees the problem plus a complete worked example, and produces a probability distribution at every token along that path. The student is pulled toward the teacher. Because both sides share the problem, keeping its semantic structure seems natural: a fluent problem should make student rollouts more sensible, and a shared problem should make token-level feedback align. The paper asks whether that natural default actually produces a better student. OPSD does not directly reward a coherent input; it trains through teacher feedback on student-generated trajectories. Those two goals need not coincide.
How the Experiment Was Built: Three Models, Three Benchmarks, 50 Steps
The experiment uses Qwen3-1.7B, Qwen3-4B, and Qwen3-8B with LoRA adapters (r=64, alpha=128), which train a small low-rank slice instead of all weights. Training examples come from the OpenThoughts math-reasoning subset used in the original OPSD study. Every condition runs for 50 optimizer steps with batch size 16, learning rate 5e-6, training seed 42, and student rollouts capped at 1,024 tokens. The teacher is the frozen initial backbone in thinking mode; the student generates in non-thinking mode. Evaluation covers AIME 2024, AIME 2025, and HMMT February 2025, with 30 problems per benchmark and 12 sampled responses per problem. Avg12 is the primary metric, and the three-benchmark mean weights each benchmark equally. Sampling uses thinking mode, temperature 1, top-p 0.95, and up to 38,912 new tokens. Paired 95% confidence intervals use 10,000 problem-cluster bootstrap resamples. Evaluation always uses the original intact problems and gives no teacher-only context.
Main Results: Shuffling the Shared Problem Helps at All Three Scales
The core comparison is Shuffle-1. It first replaces the teacher reference with a complete worked example from an unrelated problem (UnrelatedRef), then shuffles the words of the shared problem while keeping that reference intact. Every word, number, and symbol survives; only order is destroyed. The loss, optimizer, and reference pairing are unchanged. Relative to UnrelatedRef, Shuffle-1 raises three-benchmark mean accuracy by 3.98, 0.56, and 1.11 percentage points at 1.7B, 4B, and 8B. Relative to Standard OPSD, it raises mean accuracy by 3.52, 1.11, and 1.38 points. The largest gain is at the smallest model, 1.7B. The reverse intervention matters just as much: AllShuffle-1 also shuffles the teacher reference and drops mean accuracy by 2.41, 0.65, and 1.57 points relative to Shuffle-1.
| Condition | Shared problem | Teacher reference | 1.7B relative change | 4B relative change | 8B relative change |
|---|---|---|---|---|---|
| Standard OPSD | Intact | Solution tied to the problem | Baseline | Baseline | Baseline |
| UnrelatedRef | Intact | Worked example from another problem | Within 0.55 points of Standard | Same | Same |
| Shuffle-1 | Word-level shuffle | Worked example from another problem | +3.52 vs Standard; +3.98 vs UnrelatedRef | +1.11; +0.56 | +1.38; +1.11 |
| AllShuffle-1 | Word-level shuffle | Reference also shuffled | −2.41 vs Shuffle-1 | −0.65 | −1.57 |
Controls: Where You Shuffle Decides Gain or Loss
Controls isolate which structure matters. UnrelatedRef changes only the reference and stays within 0.55 percentage points of Standard OPSD at all three scales, so the teacher does not need a solution paired with the current problem. Shuffle-k permutes blocks of k words; larger blocks preserve more local order. The paper reports no advantage for larger blocks over word-level shuffling at 1.7B and 4B, and the abstract limits the claim to the evaluated scales. CrossShuffle pools words across problems and redistributes them by original word counts; it beats Standard OPSD at every scale but remains below Shuffle-1, so keeping each problem's own words and changing only their order is better than mixing words across problems. NoTarget removes the specific problem statement and keeps the general instruction, separating problem content from word order. AllShuffle-1 shows that the reference structure cannot be disrupted along with the problem.
- Standard OPSD: intact problem plus a solution tied to that problem
- UnrelatedRef: intact problem plus a worked example from another problem
- Shuffle-1: word-level problem shuffle plus the unrelated reference
- Shuffle-k: block-level problem shuffle plus the unrelated reference
- CrossShuffle: words mixed across problems and redistributed plus the unrelated reference
- NoTarget: specific problem statement removed, general instruction kept
- AllShuffle-1: shuffled problem plus shuffled teacher reference
Why It Works: The Shared Problem Is a Training Interface, Not an Exam
Why can disruption help? The paper treats the shared problem as a training interface, not as an exam question. It determines two things: which prefixes the student generates from, and where teacher and student distributions are compared. Shuffling word order changes the student's trajectory and the teacher's scores on the same prefixes, yet every word, number, and symbol remains; what is lost is local order. The teacher-only reference affects scoring, not student generation, and supplies a complete demonstration. Shuffling that reference makes the teacher's feedback less reliable, which is why accuracy falls. The loss also caps each signed teacher-to-student KL contribution at 0.05 before summation (KL measures the gap between two probability distributions), so this is not ordinary KL and not every token carries equal weight.
Boundaries: When This Method Does Not Apply
The boundaries are narrow. First, the evidence is specific to OPSD, where one model plays both roles under different contexts; it does not cover supervised fine-tuning, reinforcement learning, or distillation from a separate teacher. Second, it covers three competition-math benchmarks and three Qwen3 scales, with 50 optimizer steps, LoRA, and the OpenThoughts subset; code, multilingual text, long documents, and larger models are out of scope. Third, evaluation uses intact problems, so the result does not say inference should shuffle questions; disruption happens only in training input. Fourth, the paper does not report the same block-size conclusion for 8B, and CrossShuffle remains below Shuffle-1, so more disruption is not better. When a vendor says semantic structure must be preserved, ask whether that means the shared input or the teacher context; this paper supports disrupting the former and preserving the latter.
