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

By J. Ainslie, James Lee-Thorp, Michiel de Jong, Yury Zemlyanskiy, Federico Lebr'on, Sumit K. Sanghai. 2023

1,604 citations recorded by the source corpus.

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.

Subfields: Artificial Intelligence, Model Architectures

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Jianfeng Gao
  4. Furu Wei
  5. Graham Neubig
  6. Quoc V. Le
  7. Percy Liang
  8. Yoshua Bengio

In Model Architectures

  1. Furu Wei
  2. Quoc V. Le
  3. Yoshua Bengio
  4. Li Dong
  5. Angela Fan
  6. Armand Joulin
  7. Oriol Vinyals
  8. Ankur Bapna

Citations in the corpus