NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

OmniDraft: A cross-vocabulary, online adaptive drafter for on-device speculative decoding

Ramchalam Kinattinkara Ramakrishnan, Zhaocong Yuan, Shaojie Zhuo, Chen Feng, Yicheng Lin, Chenzheng Su, Xiaopeng Zhang

Introduction

Speculative decoding (SpD) is a highly effective technique for accelerating Large Language Model (LLM) inference. It operates by using a small, fast "draft" model to predict a sequence of tokens, which a larger, more powerful "target" model then verifies in a single parallel step.

However, current SpD approaches face two major limitations that hinder real-world, on-device deployment:

  1. Vocabulary Mismatch: Traditionally, the drafter and the target model must share the exact same tokenizer. If a developer wants to use a Llama-based drafter to speed up a Qwen-based target, the system fails because the models "speak" different token languages.
  2. Static Alignment: Drafters are typically trained offline on general datasets. They do not adapt to a specific user’s writing style or sudden shifts in tasks (e.g., switching from drafting emails to writing Python code). This static nature leads to lower "acceptance rates" and diminished speed gains over time.

To address these challenges, researchers propose OmniDraft, a unified framework that enables a single, tiny draft model (like a Llama-68M) to accelerate any large target model—even those with completely different vocabularies. Furthermore, OmniDraft dynamically adapts to user data in real-time, achieving impressive 1.5x–2x speedups.

Methods

The OmniDraft framework relies on three core components to enable its "one drafter for all" paradigm:

OmniDraft Architecture
  • Cross-Vocabulary N-gram Cache: This component acts as a dynamic translator. Because different tokenizers split words differently (e.g., one might tokenize "travelled" as a single token, while another splits it into "tra", "vel", "led"), the cache stores these mappings. During inference, it merges drafter tokens into the target model's vocabulary space so they can be accurately verified.
  • Online Hybrid Distillation: As the model generates text, OmniDraft uses the target model’s "correct" answers to fine-tune the drafter in real-time. It employs a hybrid loss function: Kullback-Leibler (KL) Divergence for tokens that map directly 1-to-1, and Negative Log-Likelihood (NLL) for complex n-gram mappings. This ensures the drafter's probability distribution aligns more closely with the target model over time.
  • Online Adaptive Drafting: Recognizing that not all guesses are equally reliable, OmniDraft adds a lightweight "head" to the drafter that predicts the likelihood of a token being accepted. If confidence is low, the drafter stops early, avoiding wasted computation on guesses that are likely to be rejected.

Key Insights and the "One Drafter for All" Paradigm

Instead of maintaining a library of different drafters for every LLM on a device, developers can deploy a single, optimized 68M-parameter model. This drastically reduces the storage footprint on memory-constrained edge devices like smartphones.

The system treats every "rejected" token from the target model as a teaching moment. By updating the drafter online, the system becomes more efficient the more a user interacts with it. Furthermore, the authors found that the n-gram cache remains remarkably small (only a few megabytes), making it highly feasible for mobile deployment. Even when tasks suddenly shift—such as moving from math to coding—the drafter quickly "re-aligns" itself to the new distribution thanks to its online learning capabilities.

Key Results

The researchers evaluated OmniDraft across four diverse tasks: GSM8K (math), MBPP + HumanEval (coding), Alpaca (instruction following), and XSum (summarization). They paired a Llama-68M universal drafter with various targets, including Vicuna-7B, Qwen2-7B, and Llama3-8B.

Speedup and Acceptance Rate over Time
  • Significant Speedups: OmniDraft achieved 1.5x to 2.0x wall-time acceleration across the tested models and tasks.
  • Improved Alignment: On the GSM8K math task, the acceptance rate (how often the target model agrees with the drafter) jumped from a baseline of ~10% to over 40% after online adaptation.
  • Cross-Family Success: The framework successfully enabled a Llama-based drafter to work with a Qwen target—two models with entirely different architectures and vocabularies—providing a 1.6x speedup where standard SpD would be impossible.
  • LoRA Compatibility: OmniDraft works seamlessly with Low-Rank Adaptation (LoRA), allowing for highly parameter-efficient on-device updates.

Limitations and Future Work

While OmniDraft presents a significant leap forward for on-device LLM inference, the authors note a few limitations. Currently, online adaptation is limited to a single iteration of the data stream; more complex data might cause instability if not handled carefully. Additionally, while the n-gram cache is currently small, long-term usage might require sophisticated eviction policies (like LRU or LFU) to prevent indefinite growth. Finally, handling special control tokens or multi-modal inputs (images/audio) remains an open direction for future research, as does fully integrating the explicit adaptive drafting head into the cross-vocabulary pipeline.

Summary updated

BibTeX
@inproceedings{ramakrishnan2025omnidraft,
  author = {Ramchalam Kinattinkara Ramakrishnan and Zhaocong Yuan and Shaojie Zhuo and Chen Feng and Yicheng Lin and Chenzheng Su and Xiaopeng Zhang},
  title = {{OmniDraft: A cross-vocabulary, online adaptive drafter for on-device speculative decoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=RALtozQipi},
}
Figure