When Does Online Imitation Learning Help in LLM Post-Training? The Role of (Non-)Realizability Beyond Horizon

Huaqing Zhang, Jingchu Gai, Juno Kim, Bingbin Liu, Andrej Risteski

TL;DR

While online imitation learning (like on-policy distillation) is widely believed to outperform offline supervised fine-tuning (SFT) by mitigating compounding errors over long horizons, this paper reveals a different truth. The authors demonstrate that the true advantage of online interaction lies in handling non-realizability—situations where a student model is too small or restricted to perfectly represent a massive expert model. When the setting is fully realizable, offline SFT is completely sufficient to match expert performance.

What Problem Does This Paper Address?

In large language model (LLM) post-training, online imitation learning (IL) methods consistently outperform offline approaches like SFT. The classical explanation for this gap comes from reinforcement learning theory: in offline settings, small errors compound quadratically over long horizons ($O(H^2)$), whereas online interaction allows the model to correct its course.

However, recent theoretical work has challenged this view, showing that under standard log-likelihood objectives, offline learning can match online learning if the student model is expressive enough to contain the expert's policy (a condition known as realizability). This paper investigates the root cause of online IL's practical superiority, asking: Is it really about long horizons and compounding errors, or does it stem from non-realizability (misspecification), which naturally occurs when we distill massive frontier models into smaller, deployment-friendly student models?

Methods

To isolate the effects of non-realizability from compounding horizon errors, the authors abstract LLM post-training into a contextual bandit framework with a horizon of $H=1$ (treating an entire generated response as a single action).

They evaluate two distinct regimes:

  1. The Realizable Setting (Sanity Check): They train an expert model using Reinforcement Learning (Group Relative Policy Optimization, or GRPO) on a base model, and then train a student initialized from the exact same base model family. This guarantees that the student policy class can perfectly represent the expert.
  2. The Non-Realizable Setting: They evaluate scenarios where the student model is structurally restricted or significantly smaller than the expert (e.g., distilling a 692B parameter model into an 8B parameter model).

The authors provide both a new information-theoretic lower bound proving why offline IL fails under misspecification, and introduce a novel structural condition—the Misspecification-Reward Alignment Condition. This condition mathematically explains how online IL can successfully ignore reward-irrelevant expert quirks (like style or length) and still achieve high task performance.

Datasets

The paper evaluates these methods across both synthetic and real-world mathematical reasoning benchmarks:

  • Countdown: A synthetic arithmetic task requiring models to combine a set of numbers using basic operators to reach a target value.
  • GSM8K: A standard benchmark consisting of grade-school math word problems.
  • DeepScaleR (MATH & AIME): High-difficulty math benchmarks used to evaluate advanced reasoning capabilities.
  • DAPO-Math-17K: Used for evaluating distillation performance under different expert models.

Key Insights and Ideas

  • SFT Suffices Under Realizability: If a student model has the capacity to fully represent the expert, offline SFT completely recovers the expert's performance and training efficiency. Online interaction provides no additional benefit here.
  • The Horizon is a Red Herring: The performance gap between offline and online imitation learning emerges even when the horizon $H=1$. This proves that error accumulation over long sequences is not the primary reason online distillation beats SFT in practice.
  • Distribution Matching is Too Pessimistic: Traditional imitation learning theories dictate that a student fails if its output distribution diverges from the expert's. The authors show this is a red herring for LLMs: a student can exhibit massive distributional discrepancies from the expert (e.g., using different reasoning keywords or lengths) but still achieve near-identical task accuracy.
  • Why Online IL Wins: In non-realizable settings, an expert might place very little probability mass on the specific, simpler correct responses that a restricted student model is actually capable of learning. Offline SFT gets trapped by this information bottleneck, while online IL actively queries the expert on student-generated tokens to find a high-reward policy within the student's limited capacity.

Key Results

  • Realizable Equivalence: Across Countdown, GSM8K, and DeepScaleR benchmarks, SFT with a realizable expert perfectly matches both the final accuracy and sample efficiency of online distillation and direct RL training.
Figure 1: Offline IL suffices with realizable experts. Across different tasks, SFT with a realizable expert fully matches expert performance, and on-policy distillation yields no accuracy gains or faster training. In contrast, when the expert is non-realizable, SFT exhibits a significant performance gap.
  • The Discrepancy Gap: When distilling the 692B DeepSeek-R1 expert into a Qwen-8B student on the AIME benchmark, the student shows a massive 29.99% length-induced Total Variation (TV) distance and up to a 29.12% gap in keyword frequencies. Despite this massive distributional mismatch, the actual performance gap on the task is a mere 5.46%, validating that strict distribution matching is unnecessary for high performance.
Figure 2: Bounding performance gap by expert-student discrepancy can be overly pessimistic. We compare DeepSeek-R1-0528 (expert) and DeepSeek-R1-0528-Qwen3-8B (student) on AIME benchmark. (a) The expert and student differ substantially in response-length distributions and keyword frequencies. (b) Length-induced TV distance and keyword-frequency gaps are lower bounds of the TV distance between response distributions, yet already far exceed the performance gap. This suggests that discrepancy-based guarantees can be overly loose for explaining reward performance.

Limitations and Future Work

While the paper successfully isolates non-realizability as the core driver of online IL's success, the authors note a few areas for future exploration:

  • Distillation vs. RLVR: The current framework does not fully explain why on-policy distillation often achieves better empirical training efficiency than Reinforcement Learning from Verifiable Rewards (RLVR).
  • Multi-step Dynamics: Future work is needed to re-introduce and analyze the multi-step token generation structure of LLMs to characterize how dense, token-level expert signals interact with misspecification.

Summary updated

BibTeX
@inproceedings{zhang2026when,
  author = {Huaqing Zhang and Jingchu Gai and Juno Kim and Bingbin Liu and Andrej Risteski},
  title = {{When Does Online Imitation Learning Help in LLM Post-Training? The Role of (Non-)Realizability Beyond Horizon}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=I9Lk9swTfx},
}
Figure