When EOS Tokens Disagree: Understanding Length Inflation in On-Policy Distillation
Abstract
We study length inflation in on-policy distillation (OPD), where student responses can become excessively long and even exhaust the generation budget. We identify termination-token mismatch between base students and post-trained teachers as an important source of this behavior. Across Qwen3, Llama, and Gemma, the two models can place their stopping probability on different EOS tokens, even when their declared stopping sets are identical. This mismatch can suppress the student's preferred termination action without reliably transferring the teacher-preferred alternative. We show that aligning the decoding stopping set alone is insufficient, while treating functionally equivalent EOS tokens as a shared semantic stopping action substantially mitigates mismatch-induced length inflation across all three model families. To further understand how termination behavior evolves over training, we study OPD across different K2-Horizon training stages. This stage-wise analysis shows that termination preferences can shift substantially during training, while also revealing a distinct length inflation late in the OPD run that persists beyond termination alignment. Together, these results identify termination mismatch as an important, but not exhaustive, source of OPD length dynamics. We release an implementation incorporating the proposed termination-handling corrections.
Community
🚨 Your OPD Run May Be Penalizing the Model for Stopping
In one Qwen3 rollout, the student reaches the correct answer after 1,094 tokens, then generates 7,098 redundant tokens. We investigate how on-policy distillation (OPD) can produce this failure.
🔍 The mechanism: base students and post-trained teachers can favor different EOS tokens, even within the same declared stopping set. Sampled-token OPD can then suppress the student’s preferred EOS without reliably transferring the teacher’s alternative.
💡 The correction: aggregate probabilities over functionally equivalent EOS tokens and supervise them as one semantic stopping action. Matching the decoding stopping sets alone is insufficient.
📉 The evidence: this correction substantially reduces response length and truncation in our Qwen3, Llama, and Gemma experiments on mathematical reasoning.
🧩 Beyond EOS mismatch: with a pretrained K2-Horizon student, length inflation reappears later in training even after the correction, leaving additional dynamics to explain.
💬 Have you observed similar termination failures in your OPD experiments? We welcome comparisons and discussion!
🔗 Project page · 💻 Code
Get this paper in your agent:
hf papers read 2609.20511 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper