PulseExploreJournal ClubDebatesTrendingResearchersJournals
Instagram
HomeExploreJournal ClubTrending
Synapse
⌘+K
Synapse
January 1, 2023372 citationsOpen Access

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

JAJoshua AinslieJLJames Lee-ThorpMJMichiel de Jong

Key Points

Key points are not available for this paper at this time.

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.

Ask AI
Helpful
Bookmark
Share
View Full Paper

Cite This Study

Ainslie et al. (2023) studied this question.

synapsesocial.com/papers/6a0331f975054b3fdf9e262bhttps://doi.org/10.18653/v1/2023.emnlp-main.298
Ask AI
Helpful
Bookmark
Share
View Full Paper

Also Consider

Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context:

  1. 1FiDO: Fusion-in-Decoder optimized for stronger performance and faster inference2023 · 18 citations
  2. 2MediaSum: A Large-scale Media Interview Dataset for Dialogue Summarization2021 · 91 citations
  3. 3GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers2022 · 136 citations
  4. 4Abstractive Text Summarization using Sequence-to-sequence RNNs and Beyond2016 · 2,233 citations
  5. 5LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scale2022 · 117 citations