Research map / Architectures and efficiency / Attention and transformers
Head-wise Shareable Attention for Large Language Models
Yifei Yang, Hai Zhao
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 ↗
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 DirectShare at 30% head sharing | Llama2-7B · five reasoning benchmarks | accuracy relative to base: 99.51% of base average | No clear effect |
| apply DirectShare at 30% head sharing | Llama2-7B · RACE-middle | accuracy: 33.15 -> 21.45 | Hurt |
| use DirectShare instead of Magnitude Pruning (30%) | Llama2-7B · MMLU | accuracy: 23.15 -> 26.53 | Improved |
| use DirectShare instead of LLM-Pruner (10%) | Llama2-7B · MMLU | accuracy: 38.11 -> 43.43 | Improved |
| use DirectShare instead of LLM-Pruner (30%) | Llama2-7B · BoolQ | accuracy: 54.77 -> 54.43 | Hurt |
| add constrained post-training (PostShare) after selecting heads | DirectShare, Llama2-7B, 30% · BoolQ | accuracy: 54.43 -> 66.57 | Improved |
| add constrained post-training (PostShare) after selecting heads | DirectShare, Llama2-7B, 30% · MMLU | accuracy: 26.53 -> 33.36 | Improved |
| train PostShare for 0.5 instead of 0.3 epoch (ablation) | PostShare, Llama2-7B · BoolQ | accuracy: 68.29 -> 66.57 | Hurt |
| share Wq, Wk, Wv separately instead of Wq||Wk concatenation (ablation) | DirectShare, Baichuan2-7B, 10% · PIQA | accuracy: 75.30 -> 63.55 | Hurt |
| use only Wv instead of Wq||Wk concatenation as match function (ablation) | DirectShare, Baichuan2-7B, 10% · PIQA | accuracy: 75.30 -> 74.48 | Hurt |
| quantize to 4-bit GPTQ after 30% DirectShare | DirectShare, Llama2-7B · MMLU | accuracy: 26.53 -> 25.38 | Hurt |
| keep head weights from the former layer instead of the latter layer (ablation) | DirectShare, Llama2-7B · 14-benchmark average | accuracy: 37.25 vs 37.18 | No clear effect |
Open problems this paper states
- “Experiments do not go beyond 13B-parameter LLMs, because of compute limits.” → Validated only on models up to about 13B parameters. (an open problem in long-context KV and memory attention)
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?
- Validated only on models up to about 13B parameters. · 8 papers state it
- Speedups are limited because the code is not fused or kernel-optimized. · 5 papers state it
- Compressed or sparse attention still trails full attention. · 4 papers state it
Closest papers by meaning
- Pay Better Attention to Attention: Head Selection in Multilingual and Multi-Domain Sequence Modeling (NeurIPS 2021 · similarity 0.86)
- Pit One Against Many: Leveraging Attention-head Embeddings for Parameter-efficient Multi-head Attention (EMNLP 2023 · similarity 0.86)
- Focusing on Language: Revealing and Exploiting Language Attention Heads in Multilingual Large Language Models (AAAI 2026 · similarity 0.84)
- LongHeads: Multi-Head Attention is Secretly a Long Context Processor (EMNLP 2024 · similarity 0.84)
- A Decomposable Attention Model for Natural Language Inference (EMNLP 2016 · similarity 0.84)
- Unveiling and Harnessing Hidden Attention Sinks: Enhancing Large Language Models without Training through Attention Calibration (ICML 2024 · similarity 0.82)
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.