KV-weights are all you need for skipless transformers
Not on the map. Why?
Abstract (arXiv)
He and Hofmann (arXiv:2311.01906) detailed a skipless transformer without the V and P (post-attention projection) linear layers, which reduces the total number of weights. However, this scheme is only applicable to MHA (multi-head attention), but not for MQA (multi-query attention) and GQA (grouped-query attention). The latter schemes are used by many popular LLMs such as Llama 2, Mistral, Mixtral, PaLM, and Gemma. Therefore, this micro-paper proposes mathematically equivalent versions that are suitable for MQA and GQA. For example, removing Q and P from a skipless version of Mistral-7B would remove 15% of its weights (and thus reduce its compute and memory complexity). Watch our explainer video https://youtu.be/Tx_lMpphd2g and see https://github.com/OpenMachine-ai/transformer-tricks for code and more transformer tricks.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 10 of its 21 references that are in the map. First posted on arXiv 18 Apr 2024.
Builds on
10 of 21 references.
References · 10
- 2017Attention Is All You Needcited by 59,932
- 2020GLU Variants Improve Transformercited by 1,724
- 2019Root Mean Square Layer Normalizationcited by 1,425
- 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,311
- 2019Fast Transformer Decoding: One Write-Head is All You Needcited by 700
- 2018Generating Wikipedia by Summarizing Long Sequencescited by 333
- 2023Deep Transformers without Shortcuts: Modifying Self-attention for Faithful Signal Propagationcited by 44
- 2023Simplifying Transformer Blockscited by 37
- 2024Transformer tricks: Precomputing the first layercited by 3
- 2023The Micro-Paper: Towards cheaper, citable research ideas and conversationscited by 2
Built on by
Not cited yet.