HeadMem compresses retrieval heads into 290x smaller LLM memory, training-free
_reachsumit · x · 2026-12-02
The HeadMem paper (Qingsen Ma, Irwin King et al.) turns an LLM's own retrieval heads into a compact memory for long-read-later-asked settings.
Approach
- Retrieval heads are detected once per model; they are token-matching heads, and masking them hurts long-context reading far more than random heads
- Only compressed keys of these heads are stored—no training, no extra retriever, no full KV cache
- For each question, the heads' own softmax selects which tokens the model re-reads
Results
- 290x less memory than Llama-3.1-8B's full KV cache
- On multi-question RULER-style contexts it beats four KV compression methods by a wide margin
- It can share token budgets with StreamingLLM/SnapKV-compressed caches and keep over 90% of full-budget scores
More from Research
- Ablated 'friendliness' concepts in models won't grow back, argues alignment researcher — jd_pressman · 2026-12-04
- OpenAI fast matrix multiplication paper yields first superlinear circuit lower bound — thomasahle · 2026-12-04
- After the Riemann proof, P vs NP is CS's biggest open problem—don't expect AI to crack it — fortnow · 2026-12-04
- LUCid, a paper on situational relevance for LLM personalization, accepted to EACL Main — radamihalcea · 2026-12-04
- Developer formalizes nine sciences in Lean: 1,306 definitions and 3,334 proven statements for AI agents — RichardsonDx · 2026-12-04
- AI-generated YouTube channel breaks down OpenAI's new tensor geometry theory — MikePFrank · 2026-12-04