Research map / Architectures and efficiency / Attention and transformers
SALS: Sparse Attention in Latent Space for KV Cache Compression
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 SALS, which compresses multi-head pre-RoPE keys into a shared low-rank latent space, selects top-k tokens by scoring in that latent space, and reconstructs only the selected keys for exact sparse attention.
Problem
KV cache size and memory bandwidth limit long-context LLM inference; low-rank KV compression conflicts with RoPE (raising key rank) and full reconstruction is costly.
Approach
Apply joint multi-head low-rank projection to pre-RoPE keys, use the latent keys (first r* dimensions) to pick top-k critical tokens, and reconstruct and RoPE-rotate only those keys before sparse attention.
Key results
- On LongBench with LLaMA2-7B-chat, SALS-25% matches baseline average (32.26 vs 32.65) at 0.11 memory access ratio, while SALS-12.5% reaches 31.97 at 0.06.
- On RULER 128k-style setting with Llama3.1-8B-Instruct at 4k length, SALS-25% averages 80.81 vs baseline 81.60; SALS-12.5% averages 75.86.
- End-to-end throughput vs GPT-Fast at 32k sequence length with batch size 8 reaches 89.47 vs 19.8 tokens/s for SALS-12.5% (about 4.5x).
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| Use SALS with 25% KV cache compression instead of the uncompressed baseline | LLaMA2-7B-chat · GSM8K (strict) | accuracy: 0.2335 -> 0.2312 | Hurt |
| Use SALS with 12.5% KV cache compression instead of the uncompressed baseline | LLaMA2-7B-chat · CoQA | accuracy: 0.5997 -> 0.6070 | Helped |
| Use SALS with 25% KV cache compression instead of the uncompressed baseline | LLaMA2-7B-chat · LongBench | Avg: 32.65 -> 32.26 | Hurt |
| Use SALS with 12.5% KV cache compression instead of the uncompressed baseline | LLaMA2-7B-chat · LongBench | Avg: 32.65 -> 31.97 | Hurt |
| Tighten SALS KV cache compression from 25% to 12.5% (ablation) | SALS on LongBench · LongBench | Avg: 32.26 -> 31.97 | Hurt |
| Use SALS with 25% KV cache compression instead of the uncompressed baseline | LLaMA3.1-8B-Instruct · RULER (4k sequence length) | avg: 81.60 -> 80.81 | Hurt |
| Tighten SALS KV cache compression from 25% to 12.5% (ablation) | SALS on RULER · RULER (4k sequence length) | avg: 80.81 -> 75.86 | Hurt |
| Use SALS-12.5% instead of Flash-attn | Attention operator (bs=8, 4k) · 4k sequence length | latency (ms): 1.630 -> $0.439\pm0.016$ | Helped |
| Use SALS-12.5% instead of GPT-Fast | End-to-end generation · 32k sequence | token/second: 19.8 -> $89.47\pm1.4$ | Helped |
Surprising findings
- Applying RoPE to keys increases their variance and rank, so pre-RoPE latent compression is preferred despite reconstruction cost.
- SALS introduces overhead on short sequences (1k) where it is slower than some sparse baselines in attention latency.
Limitations
- Short-sequence overhead: reconstruction cost makes SALS slower at 1k sequence length.
- Accuracy drops noticeably at 12.5% compression on RULER (e.g., Multi-Key-2 falls to 42.2 from 73.6).
- Layers 0, 1 and 31 are manually skipped for sparsification based on empirical observation, without a principled rule.
Experimental setup
Datasets: C4 GSM8K CoQA LongBench RULER
Benchmarks: GSM8K CoQA LongBench RULER
Metrics: accuracy memory access ratio attention operator latency (ms) end-to-end throughput (tokens/s)
Baselines: Palu KIVI Double Sparse Hshare Loki Quest StreamingLLM FlashAttention2 GPT-Fast
Builds on: Palu Double Sparse Loki KIVI Hshare
Closest papers by meaning
- RocketKV: Accelerating Long-Context LLM Inference via Two-Stage KV Cache Compression (ICML 2025 · similarity 0.91)
- AttentionPredictor: Temporal Patterns Matter for KV Cache Compression (NeurIPS 2025 · similarity 0.91)
- Value-Guided KV Compression for LLMs via Approximated CUR Decomposition (NeurIPS 2025 · similarity 0.91)
- MiniCache: KV Cache Compression in Depth Dimension for Large Language Models (NeurIPS 2024 · similarity 0.91)
- SqueezeAttention: 2D Management of KV-Cache in LLM Inference via Layer-wise Optimal Budget (ICLR 2025 · similarity 0.91)
- RazorAttention: Efficient KV Cache Compression Through Retrieval Heads (ICLR 2025 · similarity 0.91)
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.
