atlas

Research map / Architectures and efficiency / RNNs and normalization

CSR:Achieving 1 Bit Key-Value Cache via Sparse Representation

AAAI 2025 · Architectures and efficiency › RNNs and normalization · approach: Distributed LLM inference systems · 1 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 CSR, which compresses the LLM KV cache into sparse indices and coefficients over a learned dictionary (NeuralDict), reaching roughly 1-2 bit equivalent storage with accuracy comparable to 2-4 bit KIVI and GEAR on LongBench.

Problem

The KV cache grows linearly with context length and dominates memory during long-context LLM inference; existing KV quantization struggles below 2 bits per channel.

Approach

Treat KV vectors as signals to be sparsely coded over a dictionary: an offline dictionary (shared across adjacent layers with similar JS-divergence-based grouping) is learned by a single linear layer trained with MSE plus a diversity regularizer and sparse matching pursuit, and each token's KV is stored as s indices and coefficients.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CSR-16 instead of FP16 KV cacheLlama2-7B-Chat · LongBench Avgscore: 37.26 -> 37.58Helped
Use CSR-16 instead of 4-bit KIVI or GEARLlama2-7B-Chat · LongBench Avgscore: GEAR 37.42; KIVI-4 37.19; CSR-16 37.58Helped
Use CSR-8 instead of KIVI-2Llama2-7B-Chat · LongBench Avgscore: KIVI-2 37.17; CSR-8 36.60Mixed
Reduce KV cache to CSR-4 (1 bit)Llama2-7B-Chat · LongBench Avgscore: 37.26 -> 33.29Hurt
Increase Value cache split count s_n from 1 to 4 (ablation)NeuralDict · Value Cache, size 8192, s=4MSE loss: 0.259 -> 0.093Helped
Increase Key cache split count s_n from 1 to 4 (ablation)NeuralDict · Key Cache, size 8192, s=4MSE loss: 0.079 -> 0.052Helped
Increase offline dictionary size from 1024 to 2048 (ablation)NeuralDict · Llama3-8B-Instruct Key CacheMSE loss: 0.1023 -> 0.0662Helped
Increase offline dictionary size from 1024 to 2048 (ablation)NeuralDict · Llama3-8B-Instruct Value CacheMSE loss: 0.1935 -> 0.1358Helped
Add diversity regularization to NeuralDict (ablation)Llama2-7B NeuralDict · Converged trainingMSE loss: 0.0572 -> 0.0561Helped
Add diversity regularization to NeuralDict (ablation)Llama3-8B NeuralDict · Converged trainingMSE loss: 0.0702 -> 0.0662Helped
Add online dictionary, size 8192 (ablation)CSR-16 on Llama2-7B-Chat · LongBench Avgscore: 37.12 -> 37.58Helped
Increase online dictionary size from 8192 to 16384 (ablation)CSR-16 on Llama2-7B-Chat · LongBench Avgscore: 37.58 -> 37.61No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: wikitext LongBench

Benchmarks: LongBench

Metrics: F1 score ROUGE score similarity score

Baselines: KIVI-2 KIVI-4 GEAR FP16

Builds on: KIVI GEAR Matching Pursuit

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