mlsanityData to 14 Oct 2026

Knocking-Heads Attention

arXiv 2510.23052 ↗First posted 27 Oct 2025cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Multi-head attention (MHA) has become the cornerstone of modern large language models, enhancing representational capacity through parallel attention heads. However, increasing the number of heads inherently weakens individual head capacity, and existing attention mechanisms - whether standard MHA or its variants like grouped-query attention (GQA) and grouped-tied attention (GTA) - simply concatenate outputs from isolated heads without strong interaction. To address this limitation, we propose knocking-heads attention (KHA), which enables attention heads to "knock" on each other - facilitating cross-head feature-level interactions before the scaled dot-product attention. This is achieved by applying a shared, diagonally-initialized projection matrix across all heads. The diagonal initialization preserves head-specific specialization at the start of training while allowing the model to progressively learn integrated cross-head representations. KHA adds only minimal parameters and FLOPs and can be seamlessly integrated into MHA, GQA, GTA, and other attention variants. We validate KHA by training a 6.1B parameter MoE model (1.01B activated) on 1T high-quality tokens. Compared to baseline attention mechanisms, KHA brings superior and more stable training dynamics, achieving better performance across downstream tasks.

Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 35 of its 38 references that are in the map. First posted on arXiv 27 Oct 2025.

Builds on

35 of 38 references.

References · 35

  1. 2017Attention Is All You Needcited by 60,361
  2. 2021Training Verifiers to Solve Math Word Problemscited by 10,109
  3. 2025Qwen3 Technical Reportcited by 8,820
  4. 2020Measuring Massive Multitask Language Understandingcited by 7,963
  5. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
  6. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  7. 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
  8. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,673
  9. 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
  10. 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
  11. 2019ALBERT: A Lite BERT for Self-supervised Learning of Language Representationscited by 2,790
  12. 2023Efficient Streaming Language Models with Attention Sinkscited by 2,186
23 more
  1. 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
  2. 2018CommonsenseQA: A Question Answering Challenge Targeting Commonsense Knowledgecited by 1,822
  3. 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
  4. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
  5. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  6. 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 867
  7. 2017RACE: Large-scale ReAding Comprehension Dataset From Examinationscited by 861
  8. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
  9. 2023AGIEval: A Human-Centric Benchmark for Evaluating Foundation Modelscited by 716
  10. 2023C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Modelscited by 708
  11. 2023CMMLU: Measuring massive multitask language understanding in Chinesecited by 449
  12. 2024DuoAttention: Efficient Long-Context LLM Inference with Retrieval and Streaming Headscited by 288
  13. 2025Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Freecited by 283
  14. 2024Auxiliary-Loss-Free Load Balancing Strategy for Mixture-of-Expertscited by 205
  15. 2023CMATH: Can Your Language Model Pass Chinese Elementary School Math Test?cited by 90
  16. 2020Low-Rank Bottleneck in Multi-head Attention Modelscited by 89
  17. 2021Think you have Solved Direct-Answer Question Answering? Try ARC-DA, the Direct-Answer AI2 Reasoning Challengecited by 80
  18. 2020Talking-Heads Attentioncited by 62
  19. 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60
  20. 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 52
  21. 2024MoH: Multi-Head Attention as Mixture-of-Head Attentioncited by 44
  22. 2025Hardware-Efficient Attention for Fast Decodingcited by 10
  23. 2025Elucidating the Design Space of Decay in Linear Attentioncited by 1

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 1.

1 paper.

Similar, not cited

Close in wording, no citation either way

  1. 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Models
  2. 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQA
  3. 2024DHA: Learning Decoupled-Head Attention from Transformer Checkpoints via Adaptive Heads Fusion
  4. 2026Linear Predictability of Attention Heads in Large Language Models
  5. 2026Virtual Head Attention
  6. 2025GTA: Grouped-head latenT Attention
  7. 2024Cross-layer Attention Sharing for Pre-trained Large Language Models
  8. 2026BOSCH: Black-Box Binary Optimization for Short-Context Attention-Head Selection in LLMs