DReSD: Dense Retrieval for Speculative Decoding

Milan Gritta, Huiyin Xue, Gerasimos Lampouras


Abstract
Speculative decoding (SD) accelerates Large Language Model (LLM) generation by using an efficient draft model to propose the next few tokens, which are verified by the LLM in a single forward call, reducing latency while preserving its outputs. We focus on retrieval-based SD where the draft model retrieves the next tokens from a non-parametric datastore. Sparse retrieval (CITATION)REST], which operates on the surface form of strings, is currently the dominant paradigm due to its simplicity and scalability. However, its effectiveness is limited due to the usage of short contexts and exact string matching. Instead, we introduce Dense Retrieval for Speculative Decoding (DReSD), a novel framework that uses approximate nearest neighbour search with contextualised token embeddings to retrieve the most semantically relevant token sequences for SD. Extensive experiments show that DReSD achieves (on average) 87% higher acceptance rates, 65% longer accepted tokens and 19% faster generation speeds compared to sparse retrieval (REST).
Anthology ID:
2025.findings-acl.1017
Volume:
Findings of the Association for Computational Linguistics: ACL 2025
Month:
July
Year:
2025
Address:
Vienna, Austria
Editors:
Wanxiang Che, Joyce Nabende, Ekaterina Shutova, Mohammad Taher Pilehvar
Venue:
Findings
SIG:
Publisher:
Association for Computational Linguistics
Note:
Pages:
19822–19832
Language:
URL:
https://preview.aclanthology.org/display_plenaries/2025.findings-acl.1017/
DOI:
Bibkey:
Cite (ACL):
Milan Gritta, Huiyin Xue, and Gerasimos Lampouras. 2025. DReSD: Dense Retrieval for Speculative Decoding. In Findings of the Association for Computational Linguistics: ACL 2025, pages 19822–19832, Vienna, Austria. Association for Computational Linguistics.
Cite (Informal):
DReSD: Dense Retrieval for Speculative Decoding (Gritta et al., Findings 2025)
Copy Citation:
PDF:
https://preview.aclanthology.org/display_plenaries/2025.findings-acl.1017.pdf