Weighted Grouped Query Attention in Transformers
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
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,231
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,831
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,388
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,884
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,323
- 2019ZeRO: Memory Optimizations Toward Training Trillion Parameter Modelscited by 1,289
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 705
- 2024OLMo: Accelerating the Science of Language Modelscited by 605
- 2017Beam Search Strategies for Neural Machine Translationcited by 232
- 2023Full Parameter Fine-tuning for Large Language Models with Limited Resourcescited by 134
- 2024OpenELM: An Efficient Language Model Family with Open Training and Inference Frameworkcited by 75
- 2018ROUGE 2.0: Updated and Improved Measures for Evaluation of Summarization Taskscited by 66
Built on by
Citing papers per year: 2024: 2; 2025: 3.
5 papers.
- 2024A Survey on Large Language Model Acceleration based on KV Cache Managementcited by 126
- 2025MorphServe: Efficient and Workload-Aware LLM Serving via Runtime Quantized Layer Swapping and KV Cache Resizingcited by 4
- 2025FastCache: Optimizing Multimodal LLM Serving through Lightweight KV-Cache Compression Frameworkcited by 3
- 2024Beyond Uniform Query Distribution: Key-Driven Grouped Query Attentioncited by 2
- 2025Opt-GPTQ: An Optimized GPTQ Combining Sparse Attention and Quantization Techniquescited by 0
- 2025MorphServe: Efficient and Workload-Aware LLM Serving via Runtime Quantized Layer Swapping and KV Cache Resizing24 May 2025
- 2025Opt-GPTQ: An Optimized GPTQ Combining Sparse Attention and Quantization Techniques5 May 2025
- 2025FastCache: Optimizing Multimodal LLM Serving through Lightweight KV-Cache Compression Framework11 Mar 2025
- 2024A Survey on Large Language Model Acceleration based on KV Cache Management27 Dec 2024
- 2024Beyond Uniform Query Distribution: Key-Driven Grouped Query Attention15 Aug 2024