AI Paper Atlas

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

EMNLP 2024Architectures and efficiency › Attention and transformersapproach: Sparse attention for long-context LLMsopen problems in this approach37 citations (OpenAlex)

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 changedWhereMeasuredEffect
use top-scoring chunks rather than Last K chunks (ablation)LongHeads · LongBenchaverage score: 26.22 -> 30.14Improved
use query-based selection rather than random (ablation)LongHeads · LongBenchaverage score: 28.77 -> 30.14Improved
keep the first chunk (ablation)LongHeads · LongBenchaverage score: 14.06 -> 30.14Improved
let heads select different chunks (not fixed) (ablation)LongHeads · LongBenchaverage score: 28.72 -> 30.14Improved
increase number of chunks K from 4 to 16 (ablation)LongHeads · LongBenchaverage score: 26.64 -> 30.14Improved
change chunk size to 512 or 128 (ablation)LongHeads · LongBenchaverage score: 30.14 vs 29.95 / 29.35No clear effect
apply LongHeads on top of LLaMA-2-7BLLaMA-2-7B · passkey retrieval 128kaccuracy: 100%Improved
apply LongHeads when extending to 32kLongHeads vs NTK/PI · LongBenchaverage score: 29.95 vs NTK 27.07, PI-16k 23.39Improved
combine LongHeads with PI initLongHeads · LongBenchaverage score: 30.14 -> 32.33Improved
use LongHeads on chat model rather than NTKLLaMA-2-7B-Chat · LongBenchaverage score: 32.90 (NTK) vs 29.12Hurt
use LongHeads rather than LM-InfiniteLLaMA-2-7B · LongBenchaverage score: 25.47 -> 30.14Improved
use LongHeads instead of NTK on PG19 at 32kLLaMA-2-7B · PG19perplexity: 19.3 -> 8.41Improved

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