atlas

Research map / Architectures and efficiency / Attention and transformers

CateKV: On Sequential Consistency for Long-Context LLM Inference Acceleration

ICML 2025 · Architectures and efficiency › Attention and transformers · approach: Long-context KV and memory attention · 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.

Identifies attention heads with sequential consistency between prefilling and decoding and proposes CateKV, a hybrid KV cache that keeps few critical tokens for consistent heads and most tokens for adaptive heads, classified by a coefficient-of-variation score.

Problem

Long-context LLM inference is limited by KV cache memory and decoding latency; existing eviction methods lose accuracy and retrieval methods do not reduce memory.

Approach

A coefficient-of-variation score over binarized observation-window attention from prefilling classifies heads as consistent or adaptive; a static per-model head map from a reference dataset then assigns a small chunk budget to consistent heads and a large retention ratio to adaptive heads.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use CateKV instead of full attention with r=0.3 and η=0.7Llama-3-8B-1M · RULER-128KAverage accuracy: 84.10 -> 83.85Hurt
Use CateKV instead of full attention with r=0.3 and η=0.7Llama-3-8B-1M · LongBenchAverage performance: 31.27 -> 31.21No clear effect
Use CateKV with r=0.3 and η=0.7 rather than full attentionLlama-3-8B-1M · Single-sample inferenceLatency: 54.28 -> 24.86; $2.18×Helped
Use CateKV with r=0.3 and η=0.7 rather than full attentionLlama-3-8B-1M · Batch-sample inferenceThroughput: 229.37 -> 909.69; $3.96×Helped
Add CateKV to Duoattention by replacing part of streaming heads with consistent headsDuoattention on Llama-3-8B-1M · RULER 8K–256KAvg. accuracy: 68.46 -> 87.26Helped
Add CateKV to MInferenceMInference on Llama-3-8B-1M · RULER 8K–256KAvg. accuracy: 87.32 -> 87.74Helped
Reduce the adaptive-head ratio to 0.1 (ablation)CateKV · RULER-128KAccuracyNo clear effect
Reduce the adaptive-head ratio below approximately 0.2 (ablation)CateKV · RULER-128KAccuracyHurt
Reduce adaptive-head retention ratio below approximately 0.6 (ablation)CateKV · RULER-128KAccuracyHurt
Reduce the consistent-head sparse budget to approximately 0.78% (1024) (ablation)CateKV with r=0.4 and η=1.0 · RULER-128KAverage accuracyNo clear effect
Reduce the consistent-head sparse budget (ablation)CateKV with r=0.4 and η=1.0 · RULER-128KMemory usage and latencyNo clear effect
Set adaptive-head ratio to 0.3 instead of 0.4 (ablation)CateKV on Phi-3-Mini-128K · RULER-128KAverage accuracy: 71.69 -> 71.48Hurt

Surprising findings

Limitations

Experimental setup

Datasets: RULER Variable Tracking (reference set, 100 samples at 128K) WikiText

Benchmarks: RULER LongBench Needle in a Haystack Full LongBench

Metrics: accuracy memory usage decoding latency throughput batch size

Baselines: StreamingLLM SnapKV PyramidKV DuoAttention Quest ShadowKV MInference

Builds on: StreamingLLM SnapKV DuoAttention Quest ShadowKV

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