mlsanityData to 13 Oct 2026

Weighted Grouped Query Attention in Transformers

arXiv 2407.10855 ↗First posted 15 Jul 2024cs.CL cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

The attention mechanism forms the foundational blocks for transformer language models. Recent approaches show that scaling the model achieves human-level performance. However, with increasing demands for scaling and constraints on hardware memory, the inference costs of these models remain high. To reduce the inference time, Multi-Query Attention (MQA) and Grouped-Query Attention (GQA) were proposed in (Shazeer, 2019) and (Ainslieet al., 2023) respectively. In this paper, we propose a variation of Grouped-Query Attention, termed Weighted Grouped-Query Attention (WGQA). We introduced new learnable parameters for each key and value head in the T5 decoder attention blocks, enabling the model to take a weighted average during finetuning. Our model achieves an average of 0.53% improvement over GQA, and the performance converges to traditional Multi-head attention (MHA) with no additional overhead during inference. We evaluated the introduction of these parameters and subsequent finetuning informs the model about the grouping mechanism during training, thereby enhancing performance. Additionally, we demonstrate the scaling laws in our analysis by comparing the results between T5-small and T5-base architecture.

Key facts. Cited by 5 papers in the map (data through 13 Oct 2026). Builds on 13 of its 16 references that are in the map. First posted on arXiv 15 Jul 2024.

Builds on

13 of 16 references.

References · 13

  1. 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
  2. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,831
  3. 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,388
  4. 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,884
  5. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,323
  6. 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,289
  7. 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 705
  8. 2024OLMo: Accelerating the Science of Language Modelscited by 605
  9. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  10. 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134
  11. 2024OpenELM: An Efficient Language Model Family with Open Training and Inference Frameworkcited by 75
  12. 2018ROUGE 2.0: Updated and Improved Measures for Evaluation of Summarization Taskscited by 66
1 more
  1. 2021BLEU, METEOR, BERTScore: Evaluation of Metrics Performance in Assessing Critical Translation Errors in Sentiment-oriented Textcited by 22

Built on by

Cited by year

Citing papers per year: 2024: 2; 2025: 3.

5 papers.