English

CREST: Effectively Compacting a Datastore For Retrieval-Based Speculative Decoding

Computation and Language 2024-08-12 v1 Artificial Intelligence Databases

Abstract

We present CREST (Compact Retrieval-Based Speculative Decoding), a redesign of REST that allows it to be effectively "compacted". REST is a drafting technique for speculative decoding based on retrieving exact n-gram matches of the most recent n tokens generated by the target LLM from a datastore. The key idea of CREST is to only store a subset of the smallest and most common n-grams in the datastore with the hope of achieving comparable performance with less storage space. We found that storing a subset of n-grams both reduces storage space and improves performance. CREST matches REST's accepted token length with 10.6-13.5x less storage space and achieves a 16.5-17.1% higher acceptance length than REST using the same storage space on the HumanEval and MT Bench benchmarks.

Keywords

Cite

@article{arxiv.2408.04678,
  title  = {CREST: Effectively Compacting a Datastore For Retrieval-Based Speculative Decoding},
  author = {Sophia Ho and Jinsol Park and Patrick Wang},
  journal= {arXiv preprint arXiv:2408.04678},
  year   = {2024}
}
R2 v1 2026-06-28T18:08:03.256Z