Large Language Models without QK-Normalization
Not on the map. Why?
Abstract (arXiv)
Query-Key Normalization (QK-Norm) is widely adopted in modern large language models to control the growth of attention logits and improve training stability. However, query and key norms are not merely sources of instability. The query norm controls the sharpness of the attention distribution, while the key norm determines how strongly a token attracts different queries. These norms therefore carry token-specific information about attention selectivity and token importance. By normalizing both, QK-Norm suppresses this information. This raises a natural question: can we control query-key representations without discarding their sensitivity to magnitude? To address this question, we propose QK-MAP, a Magnitude-Aware Projection for constructing queries and keys. Rather than removing magnitude through normalization, QK-MAP transforms the input representation using multiple learnable frequencies, so that changes in magnitude are encoded as bounded phase patterns. This allows magnitude to be represented through phase and direction rather than vector length alone. Its periodic features have a fixed norm while remaining sensitive to magnitude changes, separating magnitude encoding from norm growth. Multiple frequencies further help distinguish magnitudes and reduce periodic ambiguity. Experiments across model scales from 190M to 7B parameters show that QK-MAP achieves lower training and validation loss than both Standard attention and QK-Norm. Further analyses show that QK-MAP preserves sensitivity to input scale, assigns less attention to the first token, and produces stronger attention contrast for relevant evidence in synthetic long-context tests. These results demonstrate that query-key scale can be effectively controlled without sacrificing token-specific magnitude information.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Builds on 47 of its 53 references that are in the map. Submitted 7 Nov 2026.
Builds on
47 of 53 references.
References · 47
- 2017Attention Is All You Needcited by 62,125
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,866
- 2025Qwen3 Technical Reportcited by 9,994
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 5,336
- 2021RoFormer: Enhanced Transformer with Rotary Position Embeddingcited by 5,132
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,388
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,765
- 2016Pointer Sentinel Mixture Modelscited by 3,344
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 3,052
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,575
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,444
- 2020Implicit Neural Representations with Periodic Activation Functionscited by 2,310
35 more
- 2020Fourier Features Let Networks Learn High Frequency Functions in Low Dimensional Domainscited by 2,305
- 2018Can a Suit of Armor Conduct Electricity? A New Dataset for Open Book Question Answeringcited by 2,284
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 2,225
- 2025Gemma 3 Technical Reportcited by 2,058
- 2020Rethinking Attention with Performerscited by 1,669
- 2019Root Mean Square Layer Normalizationcited by 1,624
- 2024RULER: What's the Real Context Size of Your Long-Context Language Models?cited by 1,559
- 2023LongBench: A Bilingual, Multitask Benchmark for Long Context Understandingcited by 1,557
- 2021Swin Transformer V2: Scaling Up Capacity and Resolutioncited by 1,254
- 2024Chameleon: Mixed-Modal Early-Fusion Foundation Modelscited by 1,003
- 2020On Layer Normalization in the Transformer Architecturecited by 971
- 2017Crowdsourcing Multiple Choice Science Questionscited by 823
- 2023Scaling Vision Transformers to 22 Billion Parameterscited by 720
- 2024OLMo: Accelerating the Science of Language Modelscited by 665
- 2024Dolma: an Open Corpus of Three Trillion Tokens for Language Model Pretraining Researchcited by 528
- 2020Query-Key Normalization for Transformerscited by 322
- 2024When Attention Sink Emerges in Language Models: An Empirical Viewcited by 236
- 2019Time2Vec: Learning a Vector Representation of Timecited by 225
- 2023Small-scale proxies for large-scale Transformer training instabilitiescited by 206
- 2022DeepNet: Scaling Transformers to 1,000 Layerscited by 189
- 2020The Lipschitz Constant of Self-Attentioncited by 187
- 2023Stabilizing Transformer Training by Preventing Attention Entropy Collapsecited by 173
- 2019Transformers without Tears: Improving the Normalization of Self-Attentioncited by 159
- 2025NoLiMa: Long-Context Evaluation Beyond Literal Matchingcited by 142
- 2024OLMES: A Standard for Language Model Evaluationscited by 129
- 2021Learnable Fourier Features for Multi-Dimensional Spatial Positional Encodingcited by 97
- 2021NormFormer: Improved Transformer Pretraining with Extra Normalizationcited by 90
- 2023Spike No More: Stabilizing the Pre-training of Large Language Modelscited by 60
- 2021Lipschitz Normalization for Self-Attention Layers with Application to Graph Neural Networkscited by 41
- 2022M2D2: A Massively Multi-domain Language Modeling Datasetcited by 29
- 2024Methods of improving LLM training stabilitycited by 16
- 2025Controlling changes to attention logitscited by 4
- 2025Norm×Direction: Restoring the Missing Query Norm in Vision Linear Attentioncited by 3
- 2026QUEST: A robust attention formulation using query-modulated spherical attentioncited by 2
- 2026QK-Normed MLA: QK normalization without full key cachingcited by 1
Built on by
Not cited yet.