When EOS Tokens Disagree: Understanding Length Inflation in On-Policy Distillation

Yuxiao Yang, Tianrun Yu, Shangzhe Li, Kaixiang Zhao, Xuchao Zhang, Chetan Bansal, Huaxiu Yao, Taylor W. Killian, Weitong Zhang

arXiv:2609.20511 · 2026-09-19 공개 · arXiv · PDF

on-policy-distillation qwen3 model-training llama gemma stopping-set eos-token-mismatch length-inflation

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.

한국어 요약

한 줄 요약

OPD에서 길이 과장 문제를 유발하는 EOS 토큰 불일치를 분석하고, 이를 해결하기 위한 종단 동작 정렬 전략을 제안한다.

핵심 기여도

핵심 아이디어

기존 OPD 연구는 길이 과장의 원인을 훈련 목적이나 롤아웃 안정성에 주로 집중했으나, 본 연구는 종단 토큰 불일치가 직접적인 원인일 수 있음을 제시한다. 학습된 종단 확률이 동일한 EOS 집합 내에서도 모델 간 다르게 분포될 수 있으며, 이는 학생 모델의 종단 동작이 교사 모델의 종단 토큰과 일치하지 않을 경우, 학생의 종단 토큰이 부정적 디스틸레이션 신호로 간주되어 억제되는 현상을 유발한다. 예를 들어 Qwen3에서 학생의 종단 확률이 10⁻¹¹ 수준으로 감소하는 현상이 관찰되었다. 이에 따라, 단순한 디코딩 정지 집합 정렬 대신, 의미적으로 동등한 EOS 토큰을 하나의 종단 동작으로 집약하는 전략이 효과적임을 보인다.

기술적 접근법

주요 결과

의의 및 한계

본 연구는 OPD에서 종단 토큰 불일치가 길이 과장의 주요 원인임을 밝히며, 종단 동작 정렬이 학습 효과에 중요한 역할을 함을 실증적으로 입증한다. 특히, 단순한 디코딩 인터페이스 정렬이 부족하다는 점을 강조하며, 의미적 EOS 집약이 효과적임을 보인다. 그러나 이는 길이 과장의 유일한 원인이 아니며, 훈련 후기 단계에서 나타나는 추가적인 메커니즘은 아직 명확하지 않다. 또한, 다턴 및 에이전트 기반 환경으로의 확장 가능성은 제시되었으나, 구체적 실험은 수행되지 않았다.

실용적 활용

본 연구의 종단 처리 정렬 전략은 OPD 기반의 모델 축소 및 행동 전이 작업에서 길이 과장을 방지하는 데 유용하게 활용될 수 있다. 특히, Qwen3, Llama, Gemma와 같은 대형 언어 모델의 후 훈련 과정에서 종단 토큰 불일치를 진단하고 해결하는 데 적용 가능하다. 또한, 평가 형식의 영향을 고려한 정확도 측정 프로토콜은 모델 평가의 신뢰성을 높이는 데 기여할 수 있다.