[Paper Review] Explicit Multi-head Attention for Inter-head Interaction in Large Language Models
The paper introduces Multi-head Explicit Attention (MEA), which explicitly models cross-head interaction via a Head-level Linear Composition (HLC) and Group Normalization, improving pretraining convergence and enabling 50% KV-cache memory reduction with minimal performance loss on knowledge/science tasks. It also unifies several attention variants and supports KV-cache compression through low-rank reconstruction.
In large language models built upon the Transformer architecture, recent studies have shown that inter-head interaction can enhance attention performance. Motivated by this, we propose Multi-head Explicit Attention (MEA), a simple yet effective attention variant that explicitly models cross-head interaction. MEA consists of two key components: a Head-level Linear Composition (HLC) module that separately applies learnable linear combinations to the key and value vectors across heads, thereby enabling rich inter-head communication; and a head-level Group Normalization layer that aligns the statistical properties of the recombined heads. MEA shows strong robustness in pretraining, which allows the use of larger learning rates that lead to faster convergence, ultimately resulting in lower validation loss and improved performance across a range of tasks. Furthermore, we explore the parameter efficiency of MEA by reducing the number of attention heads and leveraging HLC to reconstruct them using low-rank "virtual heads". This enables a practical key-value cache compression strategy that reduces KV-cache memory usage by 50% with negligible performance loss on knowledge-intensive and scientific reasoning tasks, and only a 3.59% accuracy drop for Olympiad-level mathematical benchmarks.
Motivation & Objective
- Motivate the use of inter-head communication to improve attention performance in Transformers.
- Propose MEA with Head-level Linear Composition to enable explicit cross-head interaction.
- Stabilize training with GroupNorm and relate MEA to existing variants like DFA and THA.
- Demonstrate faster convergence using larger learning rates guided by scaling laws.
- Show KV-cache memory reduction via low-rank reconstruction without major performance loss.
Proposed method
- Define Head-level Linear Composition (HLC) to mix information across heads.
- Develop Multi-head Explicit Attention (MEA) by replacing K and V with HLC-mixed versions and applying GroupNorm over head outputs.
- Provide a unified view showing how DFA and THA relate as special cases of MEA.
- Use scaling laws to choose learning rates efficiently and perform from-scratch pretraining comparisons.
- Propose KV-cache compression via low-rank approximations to reduce memory by 50%.
Experimental results
Research questions
- RQ1Does MEA improve optimization and final performance compared to standard Transformer and other inter-head variants?
- RQ2How does GroupNorm affect training stability and representational diversity in MEA?
- RQ3Can MEA enable memory-efficient KV-cache without significant loss on knowledge/science tasks?
- RQ4How do DFA and Talking-Heads variants relate to MEA in a unified theoretical view?
- RQ5What is the impact of KV-cache compression on complex reasoning benchmarks after continued pretraining?
Key findings
- MEA with GroupNorm achieves the best average downstream performance among evaluated variants.
- MEA enables larger stable learning rates and faster convergence than baselines during pretraining.
- KV-cache memory usage can be reduced by 50% with negligible performance loss on knowledge-intensive and scientific tasks, and ~3.59% loss on Olympiad-level math benchmarks under full compression with recovery.
- DFA and THA can be interpreted within the MEA framework, with DFA without GroupNorm degenerating toward standard attention.
- GroupNorm helps maintain inter-head interactions and stabilizes optimization, allowing MEA to outperform variants that lack normalization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.