Grouped-Query Attention vs. Standard Multi-Head Attention: A Controlled Comparison at Small Scale

We present a controlled empirical comparison between grouped-query attention (GQA) and standard multi-head attention (MHA) in a small (~13.6M parameter) GPT-style decoder-only Transformer, trained from scratch on the TinyStories dataset. Holding architecture, random seed, data, and training budget (30,000 steps) fixed, and varying only the number of key/value heads (2 for GQA vs. 4 for MHA, with 4 query heads throughout), we find the two configurations reach nearly identical validation loss (2.2500 for GQA vs. 2.2451 for MHA; perplexity 9.49 vs. 9.44) while GQA uses exactly half the key/value projection parameters (65,536 vs. 131,072). This small, controlled result is consistent with the finding reported for GQA at much larger scale: the technique gives a real parameter and memory saving at negligible cost to model quality, and this cost remains negligible even at a scale three-plus orders of magnitude smaller than where GQA is typically studied.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-08-18
DOI
https://doi.org/10.5281/zenodo.22002957
Primary Topic
Advanced Neural Network Applications
Type
preprint
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
preprint

Grouped-Query Attention vs. Standard Multi-Head Attention: A Controlled Comparison at Small Scale

Kapil
Zenodo (CERN European Organization for Nuclear Research)
Advanced Neural Network Applications
preprint

Grouped-Query Attention vs. Standard Multi-Head Attention: A Controlled Comparison at Small Scale

Kapil
preprint en

Abstract

We present a controlled empirical comparison between grouped-query attention (GQA) and standard multi-head attention (MHA) in a small (~13.6M parameter) GPT-style decoder-only Transformer, trained from scratch on the TinyStories dataset. Holding architecture, random seed, data, and training budget (30,000 steps) fixed, and varying only the number of key/value heads (2 for GQA vs. 4 for MHA, with 4 query heads throughout), we find the two configurations reach nearly identical validation loss (2.2500 for GQA vs. 2.2451 for MHA; perplexity 9.49 vs. 9.44) while GQA uses exactly half the key/value projection parameters (65,536 vs. 131,072). This small, controlled result is consistent with the finding reported for GQA at much larger scale: the technique gives a real parameter and memory saving at negligible cost to model quality, and this cost remains negligible even at a scale three-plus orders of magnitude smaller than where GQA is typically studied.

Zenodo (CERN European Organization for Nuclear Research)
University of Petroleum and Energy Studies (IN)
Advanced Neural Network Applications
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.