mlsanityData to 7 Oct 2026

DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion

arXiv 2406.06567 ↗First posted 3 Jun 2024cs.LG cs.AI cs.CLcited by 6

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2015Distilling the Knowledge in a Neural Networkcited by 10,076
  4. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
  5. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
  6. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  7. 2020Longformer: The Long-Document Transformercited by 3,362
  8. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
  9. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  10. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
  11. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
  12. 2019Transformer-XL: Attentive Language Models Beyond a Fixed-Length Contextcited by 1,830
31 more
  1. 2019Similarity of Neural Network Representations Revisitedcited by 1,695
  2. 2020Big Bird: Transformers for Longer Sequencescited by 1,673
  3. 2020Reformer: The Efficient Transformercited by 1,658
  4. 2020Knowledge Distillation: A Surveycited by 1,578
  5. 2019Generating Long Sequences with Sparse Transformerscited by 1,523
  6. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
  7. 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
  8. 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
  9. 2020Efficient Transformers: A Surveycited by 784
  10. 2017Crowdsourcing Multiple Choice Science Questionscited by 742
  11. 2023AlpacaFarm: A Simulation Framework for Methods that Learn from Human Feedbackcited by 738
  12. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
  13. 2023Model Tells You What to Discard: Adaptive KV Cache Compression for LLMscited by 466
  14. 2023Scissorhands: Exploiting the Persistence of Importance Hypothesis for LLM KV Cache Compression at Test Timecited by 428
  15. 2023Sheared LLaMA: Accelerating Language Model Pre-training via Structured Pruningcited by 408
  16. 2023Adapting Language Models to Compress Contextscited by 350
  17. 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
  18. 2015Net2Net: Accelerating Learning via Knowledge Transfercited by 245
  19. 2020Retrieve, Program, Repeat: Complex Knowledge Base Question Answering via Alternate Meta-learningcited by 216
  20. 2019Structured Pruning of Large Language Modelscited by 201
  21. 2022Recurrent Memory Transformercited by 197
  22. 2024Transformers are Multi-State RNNscited by 120
  23. 2020On the Effect of Dropping Layers of Pre-trained Transformer Modelscited by 118
  24. 2020Accelerating Training of Transformer-Based Language Models with Progressive Layer Droppingcited by 93
  25. 2023Learning to Grow Pretrained Models for Efficient Transformer Trainingcited by 81
  26. 2017All You Need is Beyond a Good Init: Exploring Better Solution for Training Extremely Deep Convolutional Neural Networks with Orthonormality and Modulationcited by 58
  27. 2019Splitting Steepest Descent for Growing Neural Architecturescited by 52
  28. 2020ERNIE-Doc: A Retrospective Long-Document Modeling Transformercited by 31
  29. 2022Exploring Mode Connectivity for Pre-trained Language Modelscited by 26
  30. 2023CRaSh: Clustering, Removing, and Sharing Enhance Fine-tuning without Full Large Language Modelcited by 5
  31. 2022PILE: Pairwise Iterative Logits Ensemble for Multi-Teacher Labeled Distillationcited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 2; 2025: 2; 2026: 2.

6 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models
  2. 2026BOSCH: Black-Box Binary Optimization for Short-Context Attention-Head Selection in LLMs
  3. 2024MoH: Multi-Head Attention as Mixture-of-Head Attention
  4. 2022Mixture of Attention Heads: Selecting Attention Heads Per Token
  5. 2026Linear Predictability of Attention Heads in Large Language Models
  6. 2025Knocking-Heads Attention
  7. 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
  8. 2026Attention Sink Forges Native MoE in Attention Layers: Sink-Aware Training to Address Head Collapse