by Amit Shekhar · 22 April 2026
Grouped Query Attention
Grouped-Query Attention (GQA) and how it differs from Multi-Head Attention (MHA).
Read on Outcome School ↗then come back to lock it in
Before you read, guessWhat memory issue arises from storing Key and Value vectors for every head during text generation?
Ten seconds, a guess, then read — a wrong guess still makes the answer stick.
What this article covers
- The Big Picture
- Quick Recap: Multi-Head Attention (MHA)
- The Problem with Multi-Head Attention
- What is Multi-Query Attention (MQA)?
- What is Grouped-Query Attention (GQA)?
- How Grouped-Query Attention Works
- GQA is a Generalization of MHA and MQA
- GQA vs MHA vs MQA
- Real-World Use Cases
- A Note on Terminology
- Uptraining: Converting MHA to GQA
The article lives on outcomeschool.com. Read it there, then come back: the tutor in the margin has read it and will answer questions, and the questions below check what stayed.
