GQA-μP: The maximal parameterization update for grouped query attention

Kyle R. Chickering, Huijuan Wang, Mengxi Wu, Alexander Moreno, Muhao Chen, Xuezhe Ma, Daria Soboleva, Joel Hestness, Zhengzhong Liu, Eric Xing

TL;DR

This paper introduces GQA-$\mu$P, extending the Maximal Update Parameterization ($\mu$P) framework to Grouped-Query Attention (GQA) architectures. By replacing the standard spectral norm with a novel "expected operator norm," the authors derive mathematically principled scaling laws that enable zero-shot hyperparameter transfer across model widths, depths, weight decay, and head configurations.

What Problem Does This Paper Address?

Tuning hyperparameters (like learning rate and weight decay) for Large Language Models (LLMs) is incredibly expensive. The Maximal Update Parameterization ($\mu$P) framework solves this by allowing practitioners to find optimal hyperparameters on a small, cheap proxy model and transfer them directly to a massive production model.

However, standard $\mu$P rules break down for modern architectures that use Grouped-Query Attention (GQA)—such as LLaMA 3 and Mistral. Because GQA shares key and value heads across multiple query heads, its weight matrices are inherently low-rank (rank-degenerate). This low-rank structure skews the expected size of layer outputs, causing standard $\mu$P implementations to fail at transferring learning rates. Compounding the issue, standard debugging tools ("coordinate checks") fail to catch this breakdown, falsely indicating that the parameterization is correct.

Methods

To resolve the mathematical challenges introduced by GQA, the authors propose three key updates to spectral $\mu$P theory:

  1. Expected Operator Norm: Traditional spectral norm assumes full-rank matrices and tracks the absolute maximum deformation of a vector. Because GQA inputs are independent and identically distributed (i.i.d.), the vectors that cause this "maximum deformation" occur with zero probability. The authors introduce a new norm that measures the expected deformation under the actual input distribution.
  2. GQA Scaling Rules: Using this new norm, they derive exact initialization variances, learning rates, and weight decay multipliers based on the number of key-value head repetitions ($r$).
  3. Unified Feature Learning Definition: They redefine feature learning based strictly on weight matrix spectral conditions. This allows them to naturally recover depth and weight-decay scalings (similar to Complete-P) without relying on complex "lazy-learning" assumptions.

The exact parameterization rules derived for GQA are summarized below:

Table 1: The table summarizes the parameterization of Transformers with Grouped-Query Attention (GQA), where n denotes the input dimension and r is the number of key-value head repetitions. Modifications specific to GQA are highlighted in blue. The derivations of learning rate and weight decay follow the AdamW implementation in PyTorch.

Datasets

The authors evaluated their theoretical derivations empirically by training Transformer language models from scratch on the OpenWebText corpus.

Key Insights and Ideas

  • The Coordinate Check Illusion: Traditional $\mu$P validation relies on checking activation norms during training. The authors demonstrate that for GQA, activation checks pass cleanly even when learning rate transfer fails. To diagnose scaling issues properly in low-rank architectures, researchers must directly check the spectral norms of the weight updates.
  • The GQA Dichotomy: GQA introduces a fundamental trade-off in $\mu$P. While you can achieve stable feature learning and learning rate transfer, reducing the number of KV heads inherently introduces noisier training dynamics. The authors note that if perfectly stable and predictable transfer dynamics are critical to a project, it may be safer to avoid GQA entirely.

Key Results

  • Successful Learning Rate Transfer: As shown in Figure 1, standard parameterization (SP) and vanilla Adam-$\mu$P exhibit drifting optimal learning rates as the number of KV heads changes. GQA-$\mu$P successfully stabilizes the optimal learning rate into a tight, predictable window.
GQA-μP aligns optimal learning rates across different numbers of KV heads.
  • Weight Decay Transfer: The framework successfully decouples and transfers coupled weight decay across model scales (from 26M to 177M parameters), significantly reducing the variance of optimal configurations compared to standard baselines.

Limitations and Future Work

  • Noisy Dynamics: Transferring hyperparameters across vastly different numbers of GQA repetitions ($r$) remains inherently noisy due to the variance shifts caused by head repetition.
  • Extension to Other Architectures: While this paper masterfully solves GQA, many other sparse or rank-degenerate architectures remain unaddressed. The authors suggest that future work should leverage their expected operator norm framework to derive scaling laws for Mixture-of-Experts (MoE) models.

Summary updated

BibTeX
@misc{chickering2026gqa,
  author = {Kyle R. Chickering and Huijuan Wang and Mengxi Wu and Alexander Moreno and Muhao Chen and Xuezhe Ma and Daria Soboleva and Joel Hestness and Zhengzhong Liu and Eric Xing},
  title = {{GQA-μP: The maximal parameterization update for grouped query attention}},
  year = {2026},
  eprint = {2605.15290},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.15290},
}
Figure