arXiv(opens in a new tab)cs.CLSep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.09338

Osprey: Target-agnostic Pre-training Makes Stronger Drafters in Speculative Decoding

Fengxiang Bie, Yuqing Jian, Yifan Yu, Zhongzhu Zhou, Zelei Shao, Ben Athiwaratkun, Shuaiwen Leon Song, Chenfeng Xu, Xiaoxia Wu, Tianyi Zhang

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Speculative decoding is critical for accelerating LLM inference. However, the speedup is fragile: drafters are typically trained against a narrow distribution for a single target model, and their acceptance rate collapses under workload shifts. This is a striking inversion of modern LLM development, where target models are valued precisely for the broad generalization they acquire through large-scale pretraining. We argue that the natural remedy—pretraining—has been hard to apply to drafters because existing recipes are target-specific: the drafter consumes the target's hidden states and is distilled on the target's logits, so pretraining must be repeated for each target. We introduce Osprey, which instead bootstraps drafters from off-the-shelf pretrained small language models, treating broad pretraining as a reusable, target-agnostic asset and reducing per-target work to a lightweight adaptation step. Realizing this requires overcoming two challenges: small LMs are far deeper than a latency-bound drafter can afford, and their pretrained computation must remain intact while the drafter learns to ingest target hidden states and emit tokens in the target's vocabulary. Osprey addresses both by pruning to a shallow backbone, restoring its language-modeling capability with target-agnostic next-token pretraining, and adapting it to each target through vocabulary alignment, zero-initialized QKV expansion, and distillation from the target model's output distribution. Empirically, a single pretrained Osprey backbone transfers across targets and improves mean acceptance length by 16.1% for Qwen3-8B, 21.2% for Llama-3.3-70B-Instruct, and 22.7% for the 229B MiniMax-M2.5 (with 17.5% higher tokens per second), with the largest gains on out-of-domain and multilingual data. Our code is available at https://github.com/LeanModels/Osprey.

1 Introduction

Speculative decoding (Leviathan et al., 2023; Chen et al., 2023; Li et al., 2025; Cai et al., 2024) has emerged as one of the most effective techniques for accelerating LLM serving. A lightweight drafter proposes a block of future tokens, while a larger target model verifies these tokens in parallel. Since accepted tokens are committed exactly according to the target distribution and rejected positions fall back to standard autoregressive decoding, speculative decoding provides a rare combination of acceleration and losslessness. This has made it particularly attractive for latency-sensitive and resource constrained deployment settings, where prior systems commonly report 2−5×2-5\times decoding speedups (Xia et al., 2024b).

Yet this success hides a fundamental fragility. In practice, the drafter is often trained or tuned on a particular data distribution, model family, or deployment domain (Hong et al., 2025). When the serving workload shifts, for example, from chat to code, from general QA to domain-specific reasoning, or from short responses to long-form generation, the drafter's predictions can become poorly aligned with the target model. The result is a sharp drop in acceptance rate, and therefore a sharp loss of the very speedup that speculative decoding is designed to provide. As we show in Figure 2, a state-of-the-art Eagle3 (Li et al., 2025) drafter that is trained on a certain distribution of data performs well on in-domain data while performing noticeably worse on out-of-domain data (e.g. Eagle3 trained on math achieves an average of 5.06 acceptance length on math data, and an average of only 1.86 acceptance length on code data).

This brittleness is interesting in the context of today’s LLM development (Kaplan et al., 2020). The target models we serve today are trained on increasingly broad mixtures of data and are valued precisely for their ability to generalize across do-

∗^{*}Equal Contribution. Correspondence to: Tianyi Zhang tonyzhang@together.ai.

mains, tasks, and interaction styles (Radford et al., 2018). Domain shift, once a central concern in classical machine learning, is rarely a dominant narrative for frontier LLMs; the LLM field instead emphasizes emergent capabilities and broad transfer (Wei et al., 2022). However, the drafter used to accelerate these models remains a much more narrow and fragile component. In other words, speculative decoding inherits the latency benefits of small models, but not the generalization benefits of the large models it accelerates.

This motivates us to rethink the design of the drafter. If the fragility of speculative decoding comes from distribution shift, then a natural question is whether we can improve the drafter's generalization in the same way machine learning has historically improved generalization, such as through pretraining. Indeed, the role of pretraining in learning transferable representations has been studied for decades (Erhan et al., 2010; Radford et al., 2018; Devlin et al., 2019). One might therefore try to pretrain existing speculative drafters, such as EAGLE-style drafters on more diverse data. However, these methods are inherently target-specific: the drafter consumes activations from the target model and is trained in the target's representation space. Consequently, adapting the method to a new target model requires a new, expensive training pipeline. More importantly, such a training pipeline still does not directly inherit the broad generalization ability already learned by existing pretrained language models.

So we suggest a different direction. Today, small language models (SLMs) (Belcak et al., 2025) are increasingly capable, broadly pretrained, and close in scale to the draft models used in speculative decoding. Unlike target-specific drafters trained from scratch, these models already encode general linguistic, reasoning, and domain knowledge from large-scale pretraining. The question is therefore: can speculative decoding use pretrained small LMs as general-purpose drafters, while still aligning them tightly enough with the target model to preserve high acceptance rates?

Building the speculators on top of small language models, however, is non-trivial. Existing small language models (SLMs) are typically 16 or more layers deep (Zhang et al., 2024c). A drafter must be shallow, as a deep drafter would negate the latency benefits of speculation. Furthermore, the backbone needs to be compatible with a wide range of target models. Its embedding and LM head must be adaptable to any target tokenizer, and it must be able to ingest target hidden states without disrupting pretrained capabilities.

To address these challenges, we propose a four-stage training recipe for speculative drafters (Figure 1), named Osprey, that is split into a universal, target-agnostic phase and a per-target adaptation phase. First, we prune an off-the-shelf pretrained small language model down to its embedding, language modeling head, and first few transformer layers to construct a shallow backbone. Second, we pre-train this pruned model off-policy via next-token prediction on a large, generic corpus, which restores robust and target-independent language modeling capabilities. Crucially, this pretraining stage is entirely target-agnostic, yielding a drafter backbone that can be reused across different target models. Third, we adapt this universal checkpoint to a specific target model by replacing the tokenizer and aligning the embedding and language modeling head with the target's vocabulary. During this adaptation step, we also expand the QKV projections with zero-initialized columns, allowing the drafter to ingest target hidden states without disrupting the pretrained initialization. Finally, we distill target-specific behavior into the drafter by conditioning it on target activations and training it to predict target logits. Thus, each deployed drafter is ultimately target-specific, and inherits the broad language prior of the reusable backbone. This decoupled approach allows a single target-agnostic checkpoint to be efficiently reused across a wide range of architectures, from Qwen3 (Team, 2025), through Llama-3.3 (Meta AI, 2024), to MiniMax-M2.5 (MiniMax AI, 2026).

In this work, our primary contributions are twofold. We first propose a target-agnostic pretraining recipe for speculative drafters that disentangles general language modeling from target conditioning, creating a single, highly reusable drafter backbone. Second, we demonstrate that Osprey delivers higher acceptance rates and superior speedups than strong EAGLE-3 baselines. Empirically, on Qwen3-8B, Osprey improves the mean acceptance length over EAGLE-3 across all five evaluation domains (chat, code, commonsense, finance, and math), with the most significant gains at further lookahead positions. For larger targets, Osprey improves mean acceptance length and tokens per second over matched EAGLE-3 (Li et al., 2025) baselines by 21.2% and 17.9% for Llama-3.3-70B-Instruct, and by 22.7% and 17.5% for

MiniMax-M2.5. Furthermore, Osprey exhibits excellent transferability to multilingual data (such as 42-language Global-MMLU and 11-language MGSM benchmarks) despite using only code data for target-specific training.

References (30)