DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion
Not on the map. Why?
Abstract (arXiv)
Large language models (LLMs) with billions of parameters demonstrate impressive performance. However, the widely used Multi-Head Attention (MHA) in LLMs incurs substantial computational and memory costs during inference. While some efforts have optimized attention mechanisms by pruning heads or sharing parameters among heads, these methods often lead to performance degradation or necessitate substantial continued pre-training costs to restore performance. Based on the analysis of attention redundancy, we design a Decoupled-Head Attention (DHA) mechanism. DHA adaptively configures group sharing for key heads and value heads across various layers, achieving a better balance between performance and efficiency. Inspired by the observation of clustering similar heads, we propose to progressively transform the MHA checkpoint into the DHA model through linear fusion of similar head parameters step by step, retaining the parametric knowledge of the MHA checkpoint. We construct DHA models by transforming various scales of MHA checkpoints given target head budgets. Our experiments show that DHA remarkably requires a mere 0.25% of the original model's pre-training budgets to achieve 97.6% of performance while saving 75% of KV cache. Compared to Group-Query Attention (GQA), DHA achieves a 5× training acceleration, a maximum of 13.93% performance improvement under 0.01% pre-training budget, and 4% relative improvement under 0.05% pre-training budget.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 43 of its 58 references that are in the map. First posted on arXiv 3 Jun 2024.
Builds on
43 of 58 references.
References · 43
- 2017Attention Is All You Needcited by 59,932
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
31 more
- 2019Similarity of Neural Network Representations Revisitedcited by 1,695
- 2020Big Bird: Transformers for Longer Sequencescited by 1,673
- 2020Reformer: The Efficient Transformercited by 1,658
- 2020Knowledge Distillation: A Surveycited by 1,578
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2020Efficient Transformers: A Surveycited by 784
- 2017Crowdsourcing Multiple Choice Science Questionscited by 742
- 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
- 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
- 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
- 2023Adapting Language Models to Compress Contextscited by 350
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2015Net2Net: Accelerating Learning via Knowledge Transfercited by 245
- 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
- 2019Structured Pruning of Large Language Modelscited by 201
- 2022Recurrent Memory Transformercited by 197
- 2024Transformers are Multi-State RNNscited by 120
- 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
- 2020Accelerating Training of Transformer-Based Language Models with Progressive Layer Droppingcited by 93
- 2023Learning to Grow Pretrained Models for Efficient Transformer Trainingcited by 81
- 2017All You Need is Beyond a Good Init: Exploring Better Solution for Training Extremely Deep Convolutional Neural Networks with Orthonormality and Modulationcited by 58
- 2019Splitting Steepest Descent for Growing Neural Architecturescited by 52
- 2020ERNIE-Doc: A Retrospective Long-Document Modeling Transformercited by 31
- 2022Exploring Mode Connectivity for Pre-trained Language Modelscited by 26
- 2023CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Modelcited by 5
- 2022PILE: Pairwise Iterative Logits Ensemble for Multi-Teacher Labeled Distillationcited by 3
Built on by
Citing papers per year: 2024: 2; 2025: 2; 2026: 2.
6 papers.
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 125
- 2026ERNIE 5.0 Technical Reportcited by 9
- 2026Mixture of Universal Experts: Scaling Virtual Width via Depth-Width Transformationcited by 7
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQAcited by 6
- 2025Mixture of Weight-shared Heterogeneous Group Attention Experts for Dynamic Token-wise KV Optimizationcited by 1
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Trainingcited by 1
- 2026Mixture of Universal Experts: Scaling Virtual Width via Depth-Width Transformation5 Mar 2026
- 2026ERNIE 5.0 Technical Report4 Feb 2026
- 2025MTraining: Distributed Dynamic Sparse Attention for Efficient Ultra-Long Context Training21 Oct 2025
- 2025Mixture of Weight-shared Heterogeneous Group Attention Experts for Dynamic Token-wise KV Optimization16 Jun 2025
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQA30 Dec 2024
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
Similar, not cited
Close in wording, no citation either way
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models
- 2026BOSCH: Black-Box Binary Optimization for Short-Context Attention-Head Selection in LLMs
- 2024MoH: Multi-Head Attention as Mixture-of-Head Attention
- 2022Mixture of Attention Heads: Selecting Attention Heads Per Token
- 2026Linear Predictability of Attention Heads in Large Language Models
- 2025Knocking-Heads Attention
- 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
- 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse