HyperAIHyperAI

Command Palette

Search for a command to run...

Draft-OPD: 추론적 초안 모델을 위한 온-정책 증류

초록

스퓨큘레이티브 디코딩은 타겟 모델과 경량 드래프트 모델을 페어링하여, 드래프트 모델이 제안한 tokens를 병렬로 검증함으로써 대규모 언어 모델 추론을 가속화합니다. EAGLE3이나 DFlash와 같은 드래프트 모델을 구축하는 일반적인 방법은 타겟이 생성한 트래젝토리를 대상으로 한 지도 미세 조정(SFT)입니다. 그러나 우리는 SFT가 빠르게 정체되는 현상을 관찰합니다. 즉, 테스트 데이터에서 드래프트 모델의 수용 길이가 더 이상 개선되지 않습니다. 그 이유는 오프라인 학습과 추론 단계 간의 불일치 때문입니다. SFT에서 드래프터는 고정된 타겟 생성 트래젝토리에서 학습하는 반면, 스퓨큘레이티브 디코딩 중에는 자체 정책 하에 제안된 블록에 대해 평가받기 때문입니다. 이는 타겟 모델이 드래프트 유도 상태(draft-induced states)에서 드래프터를 지도하는 온-폴리시 증류(On-Policy Distillation, OPD)를 필요로 하게 만듭니다. 그러나 OPD는 드래프트 모델에게 여전히 적용하기 어렵습니다. 드래프트 모델은 완전한 시퀀스를 독립적으로 신뢰할 수 있게 롤아웃할 수 없는 반면, 타겟 보조 생성(target-assisted generation)은 수집된 시퀀스가 타겟 분포를 따르도록 만들어 결과적으로 온-폴리시 신호를 소멸시키기 때문입니다. 이에 따라 우리는 안정적인 연속 생성을 위해 타겟 보조 롤아웃을 활용하고, 검증 과정에서 드러난 오류 위치부터 드래프팅을 재시도하는 Draft-OPD를 제안합니다. 이를 통해 드래프터는 수용된 제안과 거부된 제안 모두에 대한 타겟 피드백에서 학습할 수 있으며, 스퓨큘레이티브 디코딩의 수용률을 제한하는 드래프트 유도 오류에 훈련을 집중할 수 있습니다. 실험 결과, Draft-OPD는 다양한 작업에서 사고 모델(thinking models)에 대해 5imes5 imes5imes 이상의 무손실 가속을 달성하였으며, EAGLE-3 및 DFlash 대비 각각 23%와 13% 성능을 개선했습니다.

One-sentence Summary

The authors propose Draft-OPD, an on-policy distillation method for speculative draft models that resolves the offline-to-inference mismatch of supervised fine-tuning by combining target-assisted rollouts with replaying drafts at verification-exposed error positions to train drafters on target feedback for both accepted and rejected proposals.

Key Contributions

  • The proposed Draft-OPD framework transitions draft model optimization from offline supervised fine-tuning to on-policy distillation, resolving the offline-to-inference mismatch that limits speculative decoding efficiency.
  • The method integrates a target-assisted rollout strategy with error-position replay to generate stable continuations while preserving the necessary on-policy training signal.
  • By focusing optimization on verification-exposed error positions, the approach enables draft models to learn from both accepted and rejected proposals, effectively breaking the acceptance length plateau observed in prior methods.

Introduction

Speculative decoding accelerates autoregressive language model inference by having a lightweight draft model propose multiple tokens that a larger target model verifies in parallel, preserving output quality while significantly reducing latency. Recent advances enhance this pipeline by extracting features from frozen target models or designing stronger draft architectures, yet they all depend on offline supervised fine-tuning using target-generated trajectories. This static training paradigm ultimately caps draft model acceptance rates and restricts further efficiency gains. To overcome this bottleneck, the authors introduce an on-policy distillation framework that trains draft models directly on the inference policy, enabling substantially longer accepted sequences and pushing speculative decoding beyond traditional offline training limits.

Method

The authors propose Draft-OPD, an on-policy distillation framework tailored for training-based draft models in speculative decoding. The core challenge addressed is the offline-to-inference mismatch: standard supervised fine-tuning (SFT) trains the draft model on fixed trajectories generated by the target model, while speculative decoding evaluates the draft model on sequences it generates itself. This mismatch causes SFT to plateau, as the model learns from states it does not encounter during actual inference. On-policy distillation (OPD) aims to close this gap by training the draft model on states induced by its own policy. However, direct application of OPD to draft models is problematic. As shown in the framework diagram, forcing a draft model to self-rollout full sequences (a) leads to unreliable, repetitive outputs. Alternatively, using target-assisted rollouts (b) produces stable, high-quality continuations but discards the draft model's rejected proposals, which are the most informative for learning where the draft model fails. This breaks the on-policy signal.

To overcome these limitations, Draft-OPD employs a three-stage process. First, it uses speculative decoding to collect a stable, high-quality rollout from the target model. During this rollout, it records the starting position of each draft block proposed by the draft model as an anchor. This ensures the collected sequence is reliable, while preserving the exact state where the draft model made its proposal. As illustrated in the figure below, the draft model proposes a block, which is verified by the target model. The starting index of each block is saved as an anchor. The process continues until the sequence ends. Second, the framework replays the drafting process from each anchor. For each anchor, the draft model's proposed block is re-generated, and the log-probabilities of the tokens are computed using both the draft model and the target model on the same prefix. This allows the target model to provide feedback on the draft model's proposals, including the rejected tokens that were discarded during the initial verification. The verification outcome partitions the drafted tokens into accepted and rejected sets, enabling the model to learn from both successful and failed predictions. Third, Draft-OPD employs an acceptance-aware distillation objective. For accepted tokens, it uses forward KL divergence to encourage the draft model's distribution to cover the target model's distribution, reinforcing reliable agreement. For rejected tokens, it uses reverse KL divergence to penalize the draft model's high-probability predictions where the target model disagrees, focusing learning on the errors that limit acceptance length. To prioritize early errors, rejected tokens are weighted exponentially by their position within the draft block. The final objective is a weighted average of the accepted and rejected loss components, enabling the draft model to learn from both stable, high-quality rollouts and the critical failure points exposed by speculative verification.

Experiment

The evaluation setup tests Draft-OPD against established baselines across mathematical, coding, and general reasoning benchmarks under matched computational budgets, alongside deployment efficiency tests on optimized inference engines. Main results demonstrate consistent improvements in decoding speed and token acceptance, while ablation studies validate that these gains stem from on-policy distillation targeting verification-time errors rather than simple supervised data augmentation. Analysis experiments further confirm that preserving draft-induced mistakes during training is essential, and they identify a performance gap in highly uncertain thinking-mode scenarios. Collectively, these findings establish Draft-OPD as a robust, efficiency-focused post-training framework that strengthens draft-target alignment and accelerates speculative decoding without altering the target model's output distribution.

The authors compare Draft-OPD with EAGLE-3 and DFlash on Qwen3 models, evaluating decoding speedup and average acceptance length across different tasks and settings. Results show that Draft-OPD consistently improves performance over baselines, particularly in terms of speedup and acceptance length, both with and without thinking mode enabled, and maintains these gains under varying temperatures and in a deployed inference environment. Draft-OPD achieves higher decoding speedup and acceptance length than EAGLE-3 and DFlash across all tested models and tasks. The method maintains its advantage under different decoding temperatures and with thinking mode enabled or disabled. Performance improvements translate to practical gains in serving throughput, with consistent benefits observed across concurrency levels.

The authors compare Draft-OPD with a naive rollout baseline on Qwen3-4B, focusing on decoding efficiency metrics. Results show that Draft-OPD achieves higher speedup and acceptance length across multiple benchmarks compared to the naive approach, indicating improved draft-target alignment. The performance difference is consistent across tasks, demonstrating the effectiveness of the proposed method. Draft-OPD achieves higher speedup and acceptance length than the naive rollout baseline across all evaluated benchmarks. The improvement in acceptance length and speedup is consistent across different tasks, indicating robust performance. The results demonstrate that the proposed method effectively enhances draft-target alignment compared to a basic rollout approach.

{"summary": "The authors evaluate Draft-OPD against baseline methods on Qwen3 models across multiple benchmarks, focusing on decoding efficiency metrics such as speedup and average acceptance length. Results show that Draft-OPD consistently improves both metrics compared to alternatives, with performance gains observed under both thinking and non-thinking modes, and these improvements are robust across different model sizes and tasks.", "highlights": ["Draft-OPD achieves higher decoding speedup and acceptance length compared to baseline methods across all evaluated benchmarks and model sizes.", "The method maintains its advantage under both thinking and non-thinking modes, indicating effective draft-target alignment for different generation styles.", "Performance gains are consistent across mathematical, code generation, and out-of-domain benchmarks, demonstrating broad applicability."]

The authors compare Draft-OPD with EAGLE-3 and DFlash on Qwen3 models under a matched training FLOPs budget, focusing on decoding speedup and average acceptance length. Results show that Draft-OPD consistently improves acceptance length and decoding speed across different models, tasks, and decoding modes, with the improvements being more pronounced in non-thinking mode and under higher concurrency in SGLang deployment. Draft-OPD maintains its advantage over baselines by effectively aligning the draft model with the target model through on-policy training that emphasizes verification-time errors. Draft-OPD consistently improves decoding speed and acceptance length across all evaluated models and tasks compared to EAGLE-3 and DFlash. Draft-OPD achieves higher speedup and acceptance length in non-thinking mode than in thinking mode, indicating better alignment with the target model's behavior. The method maintains its performance gains under higher concurrency levels in SGLang, showing practical deployment benefits.

The authors evaluate the performance of Draft-OPD against baselines on Qwen3 models under different tasks and concurrency levels, focusing on decoding speedup and average acceptance length. Results show that Draft-OPD consistently improves acceptance length and speedup across all tested configurations, with higher gains observed under thinking mode and at increased concurrency. The method maintains its advantage regardless of decoding temperature and model size, demonstrating robust draft-target alignment. Draft-OPD consistently improves acceptance length and decoding speed across all tested models and tasks, outperforming baselines under matched training budgets. The method achieves higher speedup and acceptance length under thinking mode compared to non-thinking mode, with gains increasing at higher concurrency levels. Draft-OPD maintains its advantage across different decoding temperatures and model sizes, indicating robustness in draft-target alignment for both reasoning and non-reasoning generations.

The authors evaluate Draft-OPD against multiple baselines on Qwen3 models across diverse tasks, model scales, and deployment conditions to validate its capacity for robust draft-target alignment. Experiments consistently demonstrate that the method yields superior decoding efficiency and token acceptance rates compared to alternatives, with performance remaining stable across varying temperatures, concurrency levels, and reasoning configurations. Gains are particularly pronounced under high load and in non-thinking modes, confirming the approach's practical viability for real-world inference serving. Ultimately, the results establish Draft-OPD as a broadly applicable solution that reliably accelerates generation while maintaining alignment with target models.


AI로 AI 구축

아이디어에서 출시까지 — 무료 AI 코코딩, 즉시 사용 가능한 환경, 최적의 GPU 가격으로 AI 개발을 가속화하세요.

AI 협업 코딩
바로 사용 가능한 GPU
최적의 가격

HyperAI Newsletters

최신 정보 구독하기
한국 시간 매주 월요일 오전 9시 에 이번 주의 최신 업데이트를 메일로 발송합니다
이메일 서비스 제공: MailChimp
Draft-OPD: 추론적 초안 모델을 위한 온-정책 증류 | 문서 | HyperAI초신경