Cacheback: Speculative Decoding With Nothing But Cache
Zhiyao Ma, In Gim, Lin Zhong
TL;DR
Cacheback tackles inference latency in LLMs by using an LRU-based n-gram cache to produce draft tokens for speculative decoding; a tree-attention mechanism validates drafts in a single forward pass and a dual-table initialization mitigates cold-start. Experiments on SpecBench show competitive speedups against other training-free strategies, with strong translation-domain performance. The approach is lightweight and readily integrable, enabling rapid domain adaptation.
Abstract
We present Cacheback Decoding, a training-free and model-agnostic speculative decoding method that exploits the locality in language to accelerate Large Language Model (LLM) inference. Cacheback leverages only Least Recently Used (LRU) cache tables of token n-grams to generate draft sequences. Cacheback achieves state-of-the-art performance among comparable methods despite its minimalist design, and its simplicity allows easy integration into existing systems. Cacheback also shows potential for fast adaptation to new domains.
