scimeatlas

Research map / Architectures and efficiency / Attention and transformers

Head-wise Shareable Attention for Large Language Models

Yifei Yang, Hai Zhao

EMNLP 2024Architectures and efficiency › Attention and transformersapproach: Long-context KV and memory attentionopen problems in this approach15 citations (OpenAlex)

Shanghai Jiao Tong University · Shanghai Key Laboratory of Trusted Data Circulation and Governance in Web

Read the paperPlace an idea next to itCheck your own paper ↗

15measured effects
5improved
2no clear effect
8hurt

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
apply DirectShare at 30% head sharingLlama2-7B · five reasoning benchmarksaccuracy relative to base: 99.51% of base averageNo clear effect
apply DirectShare at 30% head sharingLlama2-7B · RACE-middleaccuracy: 33.15 -> 21.45Hurt
use DirectShare instead of Magnitude Pruning (30%)Llama2-7B · MMLUaccuracy: 23.15 -> 26.53Improved
use DirectShare instead of LLM-Pruner (10%)Llama2-7B · MMLUaccuracy: 38.11 -> 43.43Improved
use DirectShare instead of LLM-Pruner (30%)Llama2-7B · BoolQaccuracy: 54.77 -> 54.43Hurt
add constrained post-training (PostShare) after selecting headsDirectShare, Llama2-7B, 30% · BoolQaccuracy: 54.43 -> 66.57Improved
add constrained post-training (PostShare) after selecting headsDirectShare, Llama2-7B, 30% · MMLUaccuracy: 26.53 -> 33.36Improved
train PostShare for 0.5 instead of 0.3 epoch (ablation)PostShare, Llama2-7B · BoolQaccuracy: 68.29 -> 66.57Hurt
share Wq, Wk, Wv separately instead of Wq||Wk concatenation (ablation)DirectShare, Baichuan2-7B, 10% · PIQAaccuracy: 75.30 -> 63.55Hurt
use only Wv instead of Wq||Wk concatenation as match function (ablation)DirectShare, Baichuan2-7B, 10% · PIQAaccuracy: 75.30 -> 74.48Hurt
quantize to 4-bit GPTQ after 30% DirectShareDirectShare, Llama2-7B · MMLUaccuracy: 26.53 -> 25.38Hurt
keep head weights from the former layer instead of the latter layer (ablation)DirectShare, Llama2-7B · 14-benchmark averageaccuracy: 37.25 vs 37.18No clear effect

Open problems this paper states

Open problems in long-context KV and memory attention

How can long-context attention be made fast and small in memory without losing quality against full attention?

All 5 open problems and what was already tried →

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