Virtual Head Attention
On the map: Mixture-of-experts → MoE large language models
also in 1 more
Abstract (arXiv)
The design of attention mechanisms in long-context large language models faces an ``impossible triangle'' among KV cache size, training and prefill FLOPs, and model quality. GQA achieves strong quality but incurs high KV cache overhead; alternative approaches such as MLA and MFA can compress the cache, but MLA suffers from quality loss while MFA substantially increases training and prefill compute. We propose Virtual Head Attention (VHA), which simultaneously improves all three vertices through two lightweight linear operations: Q Premix applies a near-identity transformation to queries within each KV group to recover virtual head diversity from halved physical query heads, and Linear Postmix fuses inter-head features via a low-rank I + AB^top residual structure. Since VHA introduces no nonlinear operations, Premix can be folded into the query projection and Postmix into the output projection at inference time, reducing the model to a standard GQA-2 architecture that directly reuses all existing GQA inference optimizations. With only two KV heads, the group size in large models readily reaches 64, fully exploiting Tensor Core parallelism during decoding. Across four scales with 4K-context 50B-token pretraining, VHA consistently surpasses the standard GQA baseline at every scale (+0.05% to +0.81%), while reducing KV cache by 4× vs. GQA-8 at dense scales and 2× vs. GQA-4 at the MoE scale, and lowering training and prefill FLOPs by 7.9% (1.7B, S=4096). On an industrial 30B-A3B MoE model trained on 500B tokens at 8K context, VHA outperforms both MLA and GQA-4 by +0.70,/,+2.60,% on a 12-benchmark base-model evaluation suite; in a separate matched 10B-A1B MoE comparison after long-context mid-training, VHA attains an average RULER score of 84.4 over 8K--128K versus 73.0 for GQA, while using two rather than four KV heads in the full-attention layers.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Placed in MoE large language models, one of 12 directions in Mixture-of-experts. Builds on 37 of its 42 references that are in the map. First posted on arXiv 13 Oct 2026.
Builds on
37 of 42 references.
Closest ancestors · 1
Same direction, newest first
Other references · 36
- 2017Attention Is All You Needcited by 60,361
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2021Training Verifiers to Solve Math Word Problemscited by 10,109
- 2020Measuring Massive Multitask Language Understandingcited by 7,963
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,371
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,100
- 2021Program Synthesis with Large Language Modelscited by 3,637
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,883
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,879
24 more
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,183
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,164
- 2024MMLU-Pro: A More Robust and Challenging Multi-Task Language Understanding Benchmarkcited by 1,848
- 2022Challenging BIG-Bench Tasks and Whether Chain-of-Thought Can Solve Themcited by 1,807
- 2023Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generationcited by 1,391
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
- 2023SGLang: Efficient Execution of Structured Language Model Programscited by 1,141
- 2017Crowdsourcing Multiple Choice Science Questionscited by 765
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 717
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2021RepVGG: Making VGG-style ConvNets Great Againcited by 522
- 2024Are We Done with MMLU?cited by 194
- 2024You Only Cache Once: Decoder-Decoder Architectures for Language Modelscited by 144
- 2024Reducing Transformer Key-Value Cache Size with Cross-Layer Attentioncited by 131
- 2024INCLUDE: Evaluating Multilingual Language Understanding with Regional Knowledgecited by 86
- 2020Talking-Heads Attentioncited by 62
- 2020Multi-Head Attention: Collaborate Instead of Concatenatecited by 60
- 2025Tensor Product Attention Is All You Needcited by 31
- 2024Multi-matrix Factorization Attentioncited by 6
- 2025SAS: Simulated Attention Scorecited by 4
- 2025GTA: Grouped-head latenT Attentioncited by 3
- 2026Low-Rank Key Value Attentioncited by 2
- 2026Explicit Multi-head Attention for Inter-head Interaction in Large Language Modelscited by 2
- 2026Interleaved Head Attentioncited by 1
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026GQLA: Group-Query Latent Attention for Hardware-Adaptive Decoding
- 2024Align Attention Heads Before Merging Them: An Effective Way for Converting MHA to GQA
- 2026Multi-Head Low-Rank Attention
- 2026ART: Attention Run-time Termination for Efficient Large Language Model Decoding
- 2025EG-MLA: Embedding-Gated Multi-head Latent Attention for Scalable and Efficient LLMs
- 2024Effectively Compress KV Heads for LLM
- 2025Task-KV: Task-aware KV Cache Optimization via Semantic Differentiation of Attention Heads
- 2026Linear Predictability of Attention Heads in Large Language Models