Research map / Architectures and efficiency / Attention and transformers
Squeezed Attention: Accelerating Long Context Length LLM Inference
Coleman Hooper, Sehoon Kim, Hiva Mohammadzadeh, Monishwaran Maheswaran, Sebastian Zhao, June Paik, Michael W. Mahoney, Kurt Keutzer, Amir Gholami
University of California, Berkeley · Furiosa AI · LBNL · International Computer Science Institute
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| apply Squeezed Attention at 70% sparsity (3.1x KV budget reduction) | LongBench, three models · LongBench average | score: LLaMA-2 34.69 -> 34.60 | No clear effect |
| apply Squeezed Attention at 90% sparsity (8x KV budget reduction) | LongBench, three models · LongBench average | score: LongChat 38.89 -> 38.46 | No clear effect |
| cluster keys by semantic similarity instead of sequentially (QUEST) (ablation) | KV retrieval · LongBench All*, LongChat at ~0.125-0.168 budget | score: 37.34 -> 38.25 | Improved |
| cluster keys semantically vs QUEST on LWM at 80% sparsity (ablation) | KV retrieval · LongBench All*, LWM | score: 32.44 -> 32.31 | Hurt |
| use hierarchical lookup instead of single-level at 90% sparsity (ablation) | Squeezed Attention · LongBench All, LLaMA-2 | score: 34.52 -> 34.26 | Hurt |
| raise sparsity from 70% to 90% (ablation) | Squeezed Attention · PreFixQA, LLaMA-2-7B-32K | accuracy: 42.14 -> 36.95 | Hurt |
| raise sparsity from 70% to 90% (ablation) | Squeezed Attention · PreFixQA, LongChat | accuracy: 23.79 -> 23.94 | No clear effect |
| raise sparsity from 70% to 90% (ablation) | Squeezed Attention · RULER 32K, LWM | average score: 69.8 -> 68.0 | Hurt |
| use Squeezed Attention kernels (prefill) | 512K context, H100 · prefill latency | speedup: 4.3x | Improved |
| use Squeezed Attention kernels (decode) | 512K context, H100 · generation latency | speedup: 4.2x | Improved |
| use hierarchical centroid lookup kernel (ablation) | centroid lookup · 512K context lookup runtime | speedup: up to 1.4x | Improved |
Open problems in sparse attention for long-context LLMs
Which attention can a long-context model drop without losing the answer?
- The overhead does not vanish. · 14 papers state it
- Very long contexts hit memory limits or go untested. · 8 papers state it
- Sparsity speeds up prefill or decoding, not both. · 6 papers state it
Closest papers by meaning
- QUEST: Query-Aware Sparsity for Efficient Long-Context LLM Inference (ICML 2024 · similarity 0.91)
- LLM Maybe LongLM: SelfExtend LLM Context Window Without Tuning (ICML 2024 · similarity 0.91)
- MInference 1.0: Accelerating Pre-filling for Long-Context LLMs via Dynamic Sparse Attention (NeurIPS 2024 · similarity 0.91)
- FlexPrefill: A Context-Aware Sparse Attention Mechanism for Efficient Long-Sequence Inference (ICLR 2025 · similarity 0.90)
- Dataset Decomposition: Faster LLM Training with Variable Sequence Length Curriculum (NeurIPS 2024 · similarity 0.90)
- A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts (ICLR 2025 · similarity 0.90)
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.