Nujan Split Reader
Natural Language Processing · arXiv:2305.13245

GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints

Authors: Joshua Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebrón et al. (arXiv:2305.13245) · arXiv: 2305.13245

Core Methodological Innovation

Featured in Nujan's Natural Language Processing Literature Digest. Open side-by-side with interactive equation, methodology, and citation breakdowns.

Key Quantitative & Theoretical Takeaway: Open arXiv:2305.13245 in Nujan to inspect every mathematical symbol, experimental baseline, and citation directly alongside the original PDF.

Abstract

Multi-query attention (MQA), which only uses a single key-value head, drastically speeds up decoder inference. However, MQA can lead to quality degradation, and moreover it may not be desirable to train a separate model just for faster inference. We (1) propose a recipe for uptraining existing multi-head language model checkpoints into models with MQA using 5% of original pre-training compute, and (2) introduce grouped-query attention (GQA), a generalization of multi-query attention which uses an intermediate (more than one, less than number of query heads) number of key-value heads. We show that uptrained GQA achieves quality close to multi-head attention with comparable speed to MQA.

Step-by-Step Equation & Methodology Breakdown

What is GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints (arXiv:2305.13245) about?

Multi-query attention (MQA), which only uses a single key-value head, drastically speeds up decoder inference. However, MQA can lead to quality degradation, and moreover it may not be desirable to train a separate model just for faster inference. We (1) propose a recipe for uptraining existing multi-head language model checkpoints into models with MQA using 5% of original pre-training compute, and (2) introduce grouped-query attention (GQA), a generalization of multi-query attention which uses an intermediate (more than one, less than number of query heads) number of key-value heads. We show that uptrained GQA achieves quality close to multi-head attention with comparable speed to MQA.

How can I read arXiv:2305.13245 with interactive explanations?

Visit https://nujan.app/abs/2305.13245 to open GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints in Nujan's split-screen research workspace with instant equation and methodology breakdowns.

Read Any arXiv Paper Side-by-Side in Nujan

Replace arxiv.org with nujan.app on any arXiv URL (for example, https://nujan.app/abs/2006.11239) to open the PDF and AI research partner side-by-side.

Launch Interactive Split Reader for ARXIV-2305.13245