Towards Green Text Generation: Memory-Based Speculative Decoding
TL;DR - Olifant uses a CPU-based memory classifier to draft tokens for speculative decoding with negligible overhead. It improves LLM generation speed and energy efficiency, even with KV-cached verifiers.
- Predicts tokens from four-token windows in under 0.3 ms without GPUs, backpropagation, or accelerator memory.
- On EU legal text without KV caching, it achieved 38.1% acceptance, 2.43Ă— throughput, and 2.51Ă— lower energy per token.
- With KV caching, Olifant still delivered 1.25× throughput and 93 J per 100 tokens—14× below the uncached baseline.
- Energy-optimal draft lengths can be shorter than speed-optimal ones because longer verification raises power draw.