English

Draft on the Fly: Adaptive Self-Speculative Decoding using Cosine Similarity

Computation and Language 2024-10-03 v1

Abstract

We present a simple on the fly method for faster inference of large language models. Unlike other (self-)speculative decoding techniques, our method does not require fine-tuning or black-box optimization to generate a fixed draft model, relying instead on simple rules to generate varying draft models adapted to the input context. We show empirically that our light-weight algorithm is competitive with the current SOTA for self-speculative decoding, while being a truly plug-and-play method.

Keywords

Cite

@article{arxiv.2410.01028,
  title  = {Draft on the Fly: Adaptive Self-Speculative Decoding using Cosine Similarity},
  author = {Michael R. Metel and Peng Lu and Boxing Chen and Mehdi Rezagholizadeh and Ivan Kobyzev},
  journal= {arXiv preprint arXiv:2410.01028},
  year   = {2024}
}
R2 v1 2026-06-28T19:04:21.556Z