{"id":"arxiv:2410.01028","kind":"preprint","title":"Draft on the Fly: Adaptive Self-Speculative Decoding using Cosine Similarity","authors":["Michael R. Metel","Peng Lu","Boxing Chen","Mehdi Rezagholizadeh","Ivan Kobyzev"],"author_count":5,"year":2024,"published":"2024-10-01","venue":null,"cited_by":null,"doi":null,"arxiv_id":"2410.01028","nct_id":null,"source_url":"https://arxiv.org/abs/2410.01028","archive_url":"https://space-kitty.com/papers/arxiv:2410.01028","updated":"2024-10-01","pmid":null,"pmcid":null,"openalex_id":null,"pdf_url":"https://arxiv.org/pdf/2410.01028","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.","abstract_license":"CC0-1.0 (arXiv descriptive metadata)","license":null,"is_open_access":false,"retracted":false,"peer_reviewed":false,"categories":["cs.CL"],"details":null,"provenance":"arxiv","attribution":"Abstract: arXiv descriptive metadata (CC0). Thank you to arXiv for use of its open access interoperability. This service was not reviewed or approved by, nor does it necessarily express or reflect the policies or opinions of, arXiv.","topics":[],"cited_in_dossiers":[]}