Grouped Query Experts: Mixture-of-Experts on GQA Self-Attention
A new method called Grouped Query Experts (GQE) applies mixture-of-experts routing to the attention mechanism of Transformer models, selectively activating only a subset of query heads per token while leaving the key-value pathway unchanged, researchers report in a paper posted to arXiv [1]. Self-attention is a core driver of Transformer performance but becomes the dominant computational cost at long context lengths because pairwise token interactions scale quadratically with sequence length [1][2]. Standard dense attention applies the same set of attention heads to every token regardless of that token's difficulty or information content, a uniform activation pattern that wastes compute as sequences grow longer [1][3]. The Transformer architecture, introduced in the 2017 paper "Attention Is All You Need," underpins most modern large language models and has been widely adopted across natural language processing, computer vision, and other domains [6]. The proposed GQE method builds on grouped-query attention, or GQA, which reduces key-value cache memory and bandwidth by sharing keys and values across groups of query heads [3][4]. GQA keeps all query heads active, however. GQE keeps the GQA key-value path unchanged and instead routes each token to a sparse subset of query-head experts within each GQA group, resizing the output projection accordingly [1][5]. A router selects k query-head experts per token, and the design includes an always-on shared head to anchor the routing signal [3][5]. On a fixed 30-billion-token training budget at the 250-million-parameter scale, GQE matched the all-active GQA baseline in downstream accuracy while activating half of the routed query-head experts per token [1][2]. In the main experimental setting, this corresponds to computing 9 of 16 total query-attention heads once the shared head is included [3][5]. The approach also achieved a 1.7–1.8× prefill speedup at long context lengths [3][4]. The researchers note that straightforward routing without renormalized scoring falls below the baseline, and the corrected method is necessary to recover full accuracy [3][5]. Conditional computation via mixture-of-experts layers has previously been applied to Transformer MLP blocks. Chinese AI firm DeepSeek, for instance, incorporated mixture-of-experts techniques to reduce training costs for its R1 model, which was trained for a reported US$6 million—far less than the estimated US$100 million cost of OpenAI's GPT-4 [7]. The GQE paper asks whether that conditional-computation idea can be moved into the attention block itself [3][4]. The work was submitted to arXiv on June 18, 2026, by Vishesh Tripathi and revised on June 23, 2026 [1].
research-paper
Background sources we checked (7)
- arxiv.org ↗ Self-attention is central to Transformer performance and is often the most expensive part of the Transformer at long context lengths because its pairwise token interactions scale quadratically with sequence length. Standard dense attention also applies the same set of attention h…
- arxiv.org ↗ Self-attention is central to Transformer performance and is often the most expensive part of the Transformer at long context lengths, because its pairwise token interactions scale quadratically with sequence length. Standard dense attention also applies the same set of attention …
- arxiv.org ↗ Self-attention is central to Transformer performance and is often the most expensive part of the Transformer at long context lengths, because its pairwise token interactions scale quadratically with sequence length. Standard dense attention also applies the same set of attention …
- arxiv.org ↗ Self-attention is central to Transformer performance and is often the most expensive part of the Transformer at long context lengths, because its pairwise token interactions scale quadratically with sequence length. Standard dense attention also applies the same set of attention …
- en.wikipedia.org ↗ In deep learning, the transformer is a family of artificial neural network architectures based on the multi-head attention mechanism, in which text is converted to numerical representations called tokens, and each token is converted into a vector via lookup from a word embedding …
- en.wikipedia.org ↗ Hangzhou DeepSeek Artificial Intelligence Basic Technology Research Co., Ltd., doing business as DeepSeek, is a Chinese artificial intelligence (AI) company that develops large language models (LLMs). Based in Hangzhou, Zhejiang, DeepSeek is owned and funded by High-Flyer, a Chin…
- en.wikipedia.org ↗ Environmental monitoring is the scope of processes and activities that are done to characterize and describe the state of the environment. It is used in the preparation of environmental impact assessments, and in many circumstances in which human activities may cause harmful effe…
Sources
- export.arxiv.org — Grouped Query Experts: Mixture-of-Experts on GQA Self-Attention ↗