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

TL;DR

OmniDraft is a novel framework that breaks the strict vocabulary-matching requirement in speculative decoding, enabling a single, tiny draft model to accelerate any large target LLM. By combining an online n-gram translation cache with real-time knowledge distillation, it dynamically adapts to new target models and user data on the fly, delivering up to 2x inference speedups on-device.

What Problem Does This Paper Address?

Speculative decoding (SpD) is a popular technique to speed up Large Language Model (Model) inference. It uses a small, fast "draft" model to guess a sequence of tokens, which a larger "target" model then verifies in a single parallel step.

However, standard speculative decoding has a major catch: the draft and target models must share the exact same tokenizer and vocabulary. If they don't, the draft model might propose sub-word tokens that the target model doesn't recognize or structures differently, leading to "false rejections" and breaking the mathematical formulation of the verification phase. This tight coupling means developers must train and maintain a unique draft model for every single target model family (e.g., one for Llama, one for Qwen). This overhead is highly impractical for resource-constrained edge devices (like phones or laptops) where users might want to swap models or customize them over time.

Methods

OmniDraft introduces a "one drafter for all" paradigm using three core components:

  1. Cross-Vocabulary N-gram Cache: To bridge the vocabulary gap, the framework maintains a dynamic cache that tracks how target tokens translate into draft sub-tokens based on the current context. During inference, a translation layer scans the draft's proposals and merges sub-tokens that match the cache into single target-compatible tokens before verification.
  2. Online Cross-Vocabulary Distillation: Instead of offline training, OmniDraft updates the draft model during inference (online learning) using the target model's verified outputs. It employs a hybrid loss function: Reverse KL divergence for tokens that map directly between vocabularies, and Maximum Log-Likelihood (NLL) to boost the probability of successful n-gram combinations. To keep on-device compute minimal, this can be done efficiently using LoRA adapters.
  3. Online Adaptive Drafting: Tokenization mismatches implicitly shorten the effective draft length when multiple sub-tokens merge. OmniDraft integrates a lightweight prediction head that estimates the acceptance probability of upcoming tokens, allowing the drafter to dynamically halt generation early if confidence drops, saving compute.
Overview of the OmniDraft framework showing the cross-vocabulary translation and distillation process.

Datasets

The authors evaluated OmniDraft across four distinct tasks to demonstrate its generalized capabilities:

  • GSM8K: Grade-school math reasoning.
  • Alpaca: General instruction-following and text generation.
  • XSum: Extreme text summarization.
  • MBPP + HumanEval (Combined): Python coding tasks to test highly structured token distributions.

Key Insights and Ideas

  • Decoupling Tokenizers is Feasible: The paper proves that a draft model doesn't need to understand the target's vocabulary natively. A lightweight, context-aware translation layer (the n-gram cache) can fix alignment issues on the fly.
  • Resilience to Model and Task Drift: Because the distillation happens online, the draft model can adapt when a user switches tasks (e.g., from writing code to summarizing text) or even when the target model itself shifts due to personalization.
  • The N-gram Cache Accelerates Recovery: When a sudden distribution shift occurs, the n-gram cache allows the system to recover its high acceptance rate much faster than relying on weight updates alone.
Figure 2: Cross-vocabulary SpD online distillation on Llama-68M with Qwen2-7B as target

Key Results

The authors paired a tiny Llama-68M draft model with various larger target models from entirely different families: Vicuna-7B, Qwen2-7B, and Llama3-8B.

  • Substantial Speedups: OmniDraft achieved a 1.5x to 2.0x wall-time speedup across the evaluation tasks compared to vanilla autoregressive generation.
  • Cache Effectiveness: Incorporating the hybrid n-gram loss ($\mathcal{L}_{\text{DM}} + \lambda\mathcal{L}_{\text{N-gram}}$) significantly outperformed standard direct-mapping distillation, raising token acceptance rates substantially (e.g., from 0.10 to 0.42 when pairing Llama-68M with Llama3-8B on GSM8K).
  • LoRA Compatibility: Using parameter-efficient LoRA adapters retained most of the full fine-tuning performance while drastically reducing the memory and compute overhead required for on-device training.

Limitations and Future Work

  • Data Stream Instability: Because the online adaptation trains on a single pass of incoming data, there is a risk of localized instability or catastrophic forgetting if the data distribution fluctuates wildly.
  • Cache Memory Management: The framework currently utilizes a full n-gram cache per task. For strict edge-device deployment, an optimized cache eviction policy (like Least Frequently Used) will be necessary to prevent memory bloat over long periods.
  • Special Tokens: Special formatting or control tokens that lack direct cross-vocabulary mappings still require manual engineering or extra handling to prevent translation errors.

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