atlas

Research map / Architectures and efficiency / Attention and transformers

SpeCache: Speculative Key-Value Caching for Efficient Generation of LLMs

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: KV cache eviction and compression · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SpeCache, a training-free KV cache method that offloads the full 16-bit KV cache to CPU and keeps a low-bit (1/2-bit) GPU copy, using a speculative token decoded in parallel to predict and prefetch top-k 16-bit KV pairs for the next step.

Problem

LLM decoding on long sequences is bottlenecked by KV cache memory in GPU VRAM; existing compression (eviction, merging, quantization) is irreversible and offloading incurs CPU-GPU transfer latency.

Approach

Keep a low-bit KV copy in VRAM and the full 16-bit cache in CPU RAM; decode a speculative token alongside the output token to predict next-step top-k attended KV pairs, prefetching them in parallel with computation. Also modifies 1-bit KIVI quantization (new zero-point and scale).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add speculative KV prefetch to 2-bit KIVI (g=32)LLaMA-2-7B-Chat · LongBench averageaverage score: 28.1 -> 29.1Helped
Add speculative KV prefetch to 2-bit KIVI (g=64)LLaMA-2-7B-Chat · LongBench averageaverage score: 27.5 -> 29.1Helped
Add speculative KV prefetch to 2-bit KIVILLaMA-2-13B-Chat · LongBench averageaverage score: 30.0 -> 30.7Helped
Add speculative KV prefetch to 2-bit KIVIMistral-7B-Instruct-v0.2 · LongBench averageaverage score: 40.7 -> 41.5Helped
Add speculative KV prefetch to 1-bit KIVI (g=32)Mistral-7B-Instruct-v0.2 · LongBench averageaverage score: 30.4 -> 40.4Helped
Add speculative KV prefetch to 1-bit KIVILLaMA-3-8B-Instruct · LongBench averageaverage score: 26.7 -> 41.8Helped
Use improved zero-point and scaling factor for 1-bit KIVI (ablation)LLaMA-3-8B-Instruct with SpeCache · LongBench Qasperscore: 4.1 -> 43.2Helped
Use improved zero-point and scaling factor for 1-bit KIVI (ablation)LLaMA-3-8B-Instruct with SpeCache · LongBench 2WikiMQAscore: 6.5 -> 36.9Helped
Use improved zero-point and scaling factor for 1-bit KIVI (ablation)LLaMA-3-8B-Instruct with SpeCache · LongBench RB-Pscore: 21.6 -> 51.0Helped
Replace speculative-token prefetch with output-token-based non-speculative fetching (ablation)SpeCache, 2-bit · LongBench average, 2k contextlatency (ms/step): 643 -> 877Hurt
Replace speculative-token prefetch with output-token-based non-speculative fetching (ablation)SpeCache, 1-bit · LongBench average, 2k contextlatency (ms/step): 775 -> 1144Hurt
Increase the number of prefetched KV pairs k (ablation)SpeCache · LongBenchmodel performanceHelped

Surprising findings

Limitations

Experimental setup

Datasets: PG19 LongBench Needle-in-a-Haystack

Benchmarks: LongBench Needle-in-a-Haystack

Metrics: F1/score on LongBench tasks NIAH score (1-10) decoding throughput decoding latency (ms/step)

Baselines: KIVI InfLLM StreamLLM H2O

Builds on: KIVI H2O FlexGen InfLLM

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy