TL;DR
Recent theory says simple offline supervised fine-tuning (Behavior Cloning) is all you need to copy an expert, yet in practice, interactive On-Policy Distillation consistently beats it when training language models. This paper resolves the paradox by modeling a simple reality: real-world "experts" make mistakes. When learning from a noisy teacher, offline methods fail catastrophically on long tasks, whereas querying the teacher on the student's own trajectories rescues performance—especially when using a subtle tweak to how the student generates rollouts.
What Problem Does This Paper Address?
When we train language models, we are essentially doing Imitation Learning (IL)—teaching a student policy to mimic an expert over a sequence of steps (the "horizon," $H$).
There are two main ways to do this:
- Offline IL: Hand the student a static dataset of expert demonstrations. In language modeling, this is Supervised Fine-Tuning (SFT), or Behavior Cloning (BC).
- Online IL: Let the student generate its own attempts, and ask the expert, "What would you have done in the states I just visited?" In LLM land, this is On-Policy Distillation (OPD).
Here is the puzzle: recent theoretical breakthroughs proved that offline BC is optimal and "horizon-free" (meaning task length doesn't blow up the required data). Yet, empirically, online OPD crushes SFT—even when a student LLM is distilling from a teacher LLM of the exact same architecture (ruling out capacity mismatches).
The authors propose a noisy expert model to bridge this gap. Whether due to human typos in pretraining data or an RL-trained teacher model that hasn't fully converged, our teachers occasionally slip up. If you only have access to a noisy expert (corrupted with probability $\eta$), how can you train a student to perform as well as the underlying clean expert?
Methods
The authors analyze a noisy expert $\pi^\star_\eta = (1-\eta)\pi^\star + \eta\nu$, which follows the true expert $\pi^\star$ most of the time, but occasionally injects actions from a noise distribution $\nu$.
To beat the noise, they look at augmented trajectory distributions: roll out the student policy to visit states, and at every step, ask both the noisy expert and a noisy version of the student what action they would take without letting those auxiliary actions alter the trajectory.
This theoretical lens yields two theoretical algorithms—NAIL (when noise parameters are known, using trajectory-level exponential weights) and NAILGUN (when noise is unknown, assuming a deterministic clean expert and "smooth" spread-out noise).
More importantly for practitioners, minimizing their theoretical upper bound via gradient descent suggests a practical tweak to standard OPD. While standard OPD samples stochastically from the student during training, practical NAIL rolls out the student as it will be used at deployment—greedily—and then uses forward or reverse KL divergence to match the noisy teacher's action probabilities on those visited states.
Datasets
No new benchmarks are introduced; the authors test their theory on two existing setups:
- Synthetic Modular Addition: Adding 31 integers modulo 7 using Chain-of-Thought (CoT) reasoning with nanoGPT models, designed to test long-horizon sensitivity.
- Mathematical Reasoning: Training on prompts from TinyGSM and evaluating zero-shot exact-match accuracy on the GSM-8K test set (distilling from
Gemma3-1B-ITintoGemma3-270M-IT).
Key Insights and Ideas
- Offline IL hits an exponential wall under noise: If an offline expert makes mistakes, the trajectory itself derails. To figure out what the clean expert would have done over horizon $H$, offline BC requires sample complexity that grows exponentially with $H$, specifically scaling with $(1-\eta)^{-(H+2)}$. Long chains of thought become mathematically intractable.
- Online interaction tames the horizon: By letting the student drive the trajectory and only querying the noisy teacher for local course-corrections, sample complexity drops from exponential to polynomial in $H$—and becomes completely horizon-free when the clean expert is deterministic!
- Rollout vs. Scoring matters: Standard OPD blurs the student's rollout distribution and its scoring distribution (e.g., sampling at temperature 1). The authors' math shows you should decouple them: roll out the student greedily to lock onto clean states, then match action distributions at each step.
Key Results
Comparison of offline BC, standard OPD, and proposed NAIL variants across Modular Addition and GSM-8K under low and high noise.
As shown in the figure above, the empirical gap in high-noise settings is stark:
- Modular Addition: With a clean expert ($\eta = 0$), offline BC learns fastest, validating prior theory. Under high noise ($\eta = 0.2$, where a single mistake corrupts the rest of the teacher's CoT), offline BC and standard OPD variants completely flatline at 0% accuracy, even after 1M+ expert trajectories. Both NAIL variants (forward and reverse KL) achieve 100% accuracy.
- GSM-8K: Using temperature $t=1$ as a "clean" teacher (59.89% test accuracy), all online methods easily beat offline BC. When cranking the teacher's temperature to $t=4$ to simulate a "noisy" expert (0% test accuracy on its own!), offline BC and standard OPD learn nothing (0% accuracy). Meanwhile, NAIL extracts the hidden signal from the gibberish-prone teacher, reaching roughly 15%–18% accuracy after 400k trajectories.
Limitations and Future Work
- Statistical vs. Computational Tradeoffs: For general stochastic experts, achieving strictly horizon-free online sample complexity (shown in their appendix) currently requires sequential elimination that scales linearly with the size of the policy class $|\Pi|$ rather than logarithmically. Finding a computationally efficient, horizon-free algorithm for stochastic policies remains an open problem.
- Assumptions for Unknown Noise: When noise levels are unknown, NAILGUN relies on the true expert being deterministic and the noise being "smooth" (spread out across actions). The authors expect this can be relaxed to a more general margin condition in future work.
Summary updated