A student model can agree with its teacher on nearly every word and still produce a much longer response. The distillation researchers trace one mechanism to different end-of-sequence tokens within the same declared stopping set. When the teacher assigns its stopping probability somewhere the student does not expect, ordinary imitation can disturb the decision to terminate.
One correction can leave a second effect unexplained
The termination study follows K2-Horizon training stages and describes length inflation late in an on-policy distillation run that persists after aligning termination choices. That residual is important evidence about scope. Correcting a mismatch between teacher and student can identify a mechanism that matters without accounting for every long answer in the run. A follow-up test could track stopping-token probabilities alongside the distribution of response lengths at successive checkpoints. A divergence after the mismatch had been corrected would sharpen the question about what else changed.
Termination-Token Mismatch as a Root Cause
In OPD, the student generates responses based on its own rollouts while receiving supervision from a teacher model that evaluates each generated token. The teacher assigns a distillation signal only when it observes a specific termination token in the student’s output. If the student and teacher use different tokens to indicate end-of-response—even if both are labeled as “stop”—the teacher’s preferred token receives positive feedback, while the student’s native stopping action is suppressed. This mismatch arises because models can learn to associate different EOS tokens with the same semantic decision: ending a response. Since the teacher only evaluates tokens generated by the student, any student-generated EOS token that does not match the teacher’s preferred one receives negative feedback. Over time, this leads to a cycle where the student avoids its original termination point and instead generates longer sequences in an attempt to reach a token that the teacher favors.
In on-policy distillation (OPD), student models often generate longer responses than intended, even when the teacher model is trained to stop at specific points. Instead, it arises from a mismatch in how base and post-trained models interpret termination tokens. Even when both models declare the same set of stopping tokens, they assign different probabilities to individual EOS tokens. For example, a runtime may recognize two distinct token identifiers as valid stopping actions. Moving probability from one identifier to the other can change a distillation target even though either token would end a completed generation. This divergence means that during distillation, the student receives weak or inconsistent signals about when to stop, leading it to extend its response beyond the intended length. The mismatch is not a rare edge case; across Qwen3, Llama-3.2, and Gemma-3, distinct termination behaviors emerge even with shared vocabularies and declared stopping sets.
Designing a Robust Termination Interface
To address this issue, the researchers evaluated four different strategies for aligning termination behavior between base students and teachers. This alone proved insufficient: even with identical token lists, the student still failed to adopt the teacher’s preferred termination point due to differences in how each model assigns stopping probability across those tokens. A second strategy treated all functionally equivalent EOS tokens as a single semantic stopping action, regardless of their position or identity in the vocabulary. This means that if two tokens both signal “end of response,” they are grouped together and treated as one unified termination event during distillation. The student receives positive feedback whenever any token in this group is generated, effectively allowing it to stop at any point where the teacher would have stopped.
The evaluation tracked both response length and termination behavior directly: for each student rollout, they recorded the probability distribution over all tokens at the final position and computed a total stopping mass—the sum of probabilities assigned to all tokens that could terminate the sequence. They also measured how many responses reached the token budget (clipping ratio) and assessed correctness on standard math benchmarks like AMC23 and AIME24–25. Training budgets were set at 1,024 prompt and 7,168 response tokens; evaluation allowed up to 8,192 generated tokens.
Further analysis revealed that termination preferences evolve during training. In early stages, both student and teacher show similar stopping behavior. However, as training progresses through supervised fine-tuning phases, the student begins to shift its termination probability toward later positions—sometimes even after reaching a correct answer. This shift is not fully corrected by alignment at the end of training. A distinct late-stage re-inflation emerges in the final phase of K2-Horizon training: after an initial plateau, response length increases again, stopping probabilities drop sharply, and nearly all rollouts exceed the generation budget. This effect is more pronounced under vanilla OPD but is mitigated when functionally equivalent EOS tokens are grouped into a shared semantic class.
The design choices reflect a focus on practical implementation: rather than requiring identical token-level behavior between models, the approach recognizes that different tokens can serve the same purpose in terminating output. By treating such tokens as semantically equivalent, the system avoids overfitting to specific positions and enables more stable, reliable stopping behavior across model families. This method does not eliminate all length inflation but substantially reduces it—especially when the student lacks explicit tool or turn-level control mechanisms that would otherwise distinguish between different types of termination events.
To address this issue, researchers introduced semantic EOS aggregation—a method that treats functionally equivalent EOS tokens as representing the same stopping action. Rather than relying on exact token identity, the system computes a combined stopping probability across all tokens that serve similar termination roles in practice. For example, if two different EOS tokens are used to signal end-of-response and both appear in similar contexts (such as after a final answer enclosed in a box), they are grouped together. During training, the student learns from this aggregated stopping mass instead of individual token probabilities. This approach ensures that the student receives consistent termination signals regardless of surface-level differences in token choice. In practice, it operates at the decoding stage during generation, where the model’s internal stopping logic is evaluated based on the semantic equivalence of tokens.
Observing Evolution of Termination Preferences Over Training
A key experiment tracked how termination preferences evolve across different stages of a model’s training lifecycle using the K2-Horizon framework. In this setup, students are initialized from early checkpoints—pretraining, midtraining, supervised fine-tuning—and trained to match a final post-trained teacher model. The study fixed the teacher at the end-stage checkpoint and monitored response length, clipping ratio, and termination probabilities throughout training. Early in training (e.g., pretraining), student models show minimal stopping probability on any EOS token, as they have not yet learned to recognize response endpoints. By midtraining, students begin to develop a preference for specific tokens, often aligning with the teacher’s early termination behavior. However, even at this stage, significant mismatch persists—students may favor one EOS token while the teacher assigns strong stopping mass to another. After supervised fine-tuning (SFT), both student and teacher show stronger alignment in termination preferences, especially when evaluated using the TTRL template that requires answers to be boxed. The results reveal a clear pattern: termination behavior improves progressively with training, but the improvement is not uniform across all stages.
Importantly, the study found that length inflation does not disappear after termination alignment. Even when students and teachers share similar stopping probabilities, a distinct phase of excessive response length appears late in the OPD process—after the initial convergence of termination signals. This late-stage inflation suggests that termination behavior alone is insufficient to prevent overgeneration; other factors such as reward shaping or internal generation dynamics may continue to drive longer outputs. The semantic EOS aggregation method effectively suppresses early-stage mismatches and maintains stable response lengths throughout training, but it does not eliminate the late-phase inflation entirely. This indicates that while termination alignment is a critical step, it is part of a broader challenge in controlling response length during distillation.
No degradation in downstream accuracy was observed when applying semantic EOS aggregation, even at later training stages where termination preferences were already aligned. This supports the method’s reliability as a general correction tool, especially in cases of strong surface-level token mismatch. However, the absence of long-term inflation suppression suggests that further work is needed to understand and address underlying generation dynamics beyond termination signals.
Termination-Token Mismatch vs. Template-Induced Generation Bias
The observed length inflation in on-policy distillation cannot be fully attributed to termination-token mismatch alone, as the phenomenon persists even when termination tokens are aligned at the probability level. This raises a competing explanation: that training templates—specifically the phrasing of prompts and evaluation criteria—induce systematic generation biases that favor longer outputs, independent of model-level stopping behavior. In single-turn mathematical reasoning tasks, the structure of the prompt (e.g., whether it explicitly requests “show all steps” or “final answer only”) may shape how both student and teacher models generate responses. If the training template encourages verbose intermediate reasoning while the evaluation format rewards completeness, the student may be incentivized to extend its response beyond necessary bounds. This would manifest not as a failure of termination but as an overproduction driven by alignment with prompt expectations. However, prior work has already tested this hypothesis through cross-template experiments: when the same base and teacher models are trained on different prompt templates, length inflation remains consistent across setups, even when the evaluation format changes. The fact that response lengths correlate strongly with training template design—rather than with termination token differences—suggests that template effects are not merely additive but may be structurally embedded in the generation process. Still, this does not rule out that template-induced verbosity and termination mismatch operate in parallel, with one amplifying the other. A definitive test would require a controlled experiment where training templates are held constant across all variants, while termination tokens are systematically varied—such as by swapping between different EOS tokens or grouping them semantically—and then measuring whether length inflation persists independently of prompt design.
Late-Stage Length Inflation Beyond Termination Alignment
While termination-token mismatch explains much of the early-stage length inflation during training, a distinct and persistent increase in response length emerges later in the OPD process—after the student has already adopted the teacher’s preferred termination token. This late-stage inflation occurs even under semantic EOS correction, where functionally equivalent tokens are treated as a single stopping action. The fact that this behavior is not eliminated by alignment suggests that termination mismatch alone cannot account for the full dynamics of length growth. Instead, it points to an underlying mechanism operating at a later stage of training, possibly related to model instability, shifting internal preferences, or unintended feedback loops in the distillation objective. For instance, once the student learns to terminate correctly, its internal policy may begin to overestimate the value of continued generation—perhaps due to misaligned reward signals or reduced sensitivity to termination penalties. This would manifest as a second peak in response length that does not correlate with any change in declared stopping sets or token probabilities. The absence of such behavior in earlier training stages implies that this late-phase inflation is not a direct consequence of initial mismatch but rather a distinct phenomenon. Yet, the current evidence does not specify what drives it: whether it stems from overfitting to intermediate reasoning patterns, degradation in policy stability, or a failure of the teacher’s reward signal to properly constrain student behavior. Without further analysis of training loss curves, policy entropy changes, or internal state dynamics during generation, this late-stage effect remains unexplained and thus represents an open boundary in our understanding.
How End Tokens Differ in Multi-Turn Contexts
The current work assumes that functionally equivalent EOS tokens—such as those marking the end of a response—can be treated as semantically identical for alignment purposes. This assumption holds in single-turn tasks where termination is unambiguous and context-free. However, in multi-turn or agentic settings, different special tokens serve distinct functional roles: one may mark the end of an assistant turn, another may signal document completion, and a third might trigger a handoff to a tool. In such environments, treating these as equivalent would not only misalign behavior but could fundamentally alter interaction control flow. For example, if a student model is trained to terminate after a tool call using one token, but the teacher uses a different token for message completion, the student may learn to generate responses that incorrectly assume all interactions end at the same point. This raises a critical question: can termination alignment be meaningfully defined without collapsing functionally distinct events into a single semantic class? The current experiments do not address this because they rely on base models lacking tool use or multi-turn capability—conditions under which such distinctions are irrelevant. A direct test would involve training student models in a multi-turn setting with explicit turn-level and tool-use termination signals, using post-trained teachers that maintain distinct termination behaviors. If length inflation still occurs despite semantic alignment, it would suggest that the mismatch is not just token-level but protocol-level—where the interaction structure itself is misaligned. Conversely, if alignment reduces verbosity and improves task success, it would support the idea that functional equivalence can be preserved in certain domains.


