Research map / Architectures and efficiency / Attention and transformers
LongHeads: Multi-Head Attention is Secretly a Long Context Processor
Yi Lu, Xin Zhou, Wei He, Jun Zhao, Tao Ji, Tao Gui, Qi Zhang, Xuanjing Huang
Fudan University
Read the paperPlace an idea next to itCheck your own paper ↗
12measured effects
10improved
1no clear effect
1hurt
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 |
|---|---|---|---|
| use top-scoring chunks rather than Last K chunks (ablation) | LongHeads · LongBench | average score: 26.22 -> 30.14 | Improved |
| use query-based selection rather than random (ablation) | LongHeads · LongBench | average score: 28.77 -> 30.14 | Improved |
| keep the first chunk (ablation) | LongHeads · LongBench | average score: 14.06 -> 30.14 | Improved |
| let heads select different chunks (not fixed) (ablation) | LongHeads · LongBench | average score: 28.72 -> 30.14 | Improved |
| increase number of chunks K from 4 to 16 (ablation) | LongHeads · LongBench | average score: 26.64 -> 30.14 | Improved |
| change chunk size to 512 or 128 (ablation) | LongHeads · LongBench | average score: 30.14 vs 29.95 / 29.35 | No clear effect |
| apply LongHeads on top of LLaMA-2-7B | LLaMA-2-7B · passkey retrieval 128k | accuracy: 100% | Improved |
| apply LongHeads when extending to 32k | LongHeads vs NTK/PI · LongBench | average score: 29.95 vs NTK 27.07, PI-16k 23.39 | Improved |
| combine LongHeads with PI init | LongHeads · LongBench | average score: 30.14 -> 32.33 | Improved |
| use LongHeads on chat model rather than NTK | LLaMA-2-7B-Chat · LongBench | average score: 32.90 (NTK) vs 29.12 | Hurt |
| use LongHeads rather than LM-Infinite | LLaMA-2-7B · LongBench | average score: 25.47 -> 30.14 | Improved |
| use LongHeads instead of NTK on PG19 at 32k | LLaMA-2-7B · PG19 | perplexity: 19.3 -> 8.41 | Improved |
Closest papers by meaning
- A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts (ICLR 2025 · similarity 0.91)
- DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Heads (ICLR 2025 · similarity 0.91)
- Training-Free Long-Context Scaling of Large Language Models (ICML 2024 · similarity 0.90)
- Efficient Length-Generalizable Attention via Causal Retrieval for Long-Context Language Modeling (ICML 2025 · similarity 0.90)
- Virtual Head Attention (NeurIPS 2026 · similarity 0.89)
- Retrieval meets Long Context Large Language Models (ICLR 2024 · similarity 0.89)
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.
