paper-with-me

Papers

Query-Key Normalization for Transformers

2020-10-08 · Findings of the Association for Computational Linguistics 2020 · Alex Henry, Prudhvi Raj Dachapally, Shubham Pawar, Yuxuan Chen

Low-resource language translation is a challenging but socially valuable NLP task. Building on recent work adapting the Transformer's normalization to this setting, we propose QKNorm, a normalization technique that modifies the attention mechanism to make the softmax function less prone to arbitrary saturation without sacrificing expressivity. Specifically, we apply $\ell_2$ normalization along the head dimension of each query and key matrix prior to multiplying them and then scale up by a learnable parameter instead of dividing by the square root of the embedding dimension. We show improvements averaging 0.928 BLEU over state-of-the-art bilingual benchmarks for 5 low-resource translation pairs from the TED Talks corpus and IWSLT'15.

📄 PDF Abstract BibTeX arXiv:2010.04245

Code (2)

CyndxAI/QKNorm 공식 구현 pytorch
JunnYu/x-transformers-paddle jax

Tasks

Translation

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…

Similar Papers 제목 키워드 기반

Enhanced QKNorm normalization for neural transformers with the Lp norm

2026-02-04 · Ezequiel Lopez-Rubio, Javier Montes-Perez, Esteban Jose Palomo arxiv

The normalization of query and key vectors is an essential part of the Transformer architecture. It ensures that learning is stable regardless of the scale of these vectors. Some normalization approaches are available. I…

Transformers without Normalization

2025-03-13 · CVPR 2025 1 · Jiachen Zhu, Xinlei Chen, Kaiming He, Yann Lecun 외

Normalization layers are ubiquitous in modern neural networks and have long been considered essential. This work demonstrates that Transformers without normalization can achieve the same or better performance using a rem…

Self-Supervised Learning

Dynamic Short Convolutions Improve Transformers

2026-06-02 · Oliver Sieberling, Bharat Runwal, Rameswar Panda, Yoon Kim arxiv

Transformers have become the dominant architecture for large language models, largely due to the scalability and flexibility of attention, feed-forward layers, residual connections, and normalization. This paper introduc…

Pre-RMSNorm and Pre-CRMSNorm Transformers: Equivalent and Efficient Pre-LN Transformers

2023-05-24 · NeurIPS 2023 11 · Zixuan Jiang, Jiaqi Gu, Hanqing Zhu, David Z. Pan

Transformers have achieved great success in machine learning applications. Normalization techniques, such as Layer Normalization (LayerNorm, LN) and Root Mean Square Normalization (RMSNorm), play a critical role in accel…

Stability of Transformers under Layer Normalization

2025-10-10 · Kelvin Kan, Xingjian Li, Benjamin J. Zhang, Tuhin Sahai 외 arxiv

Despite their widespread use, training deep Transformers can be unstable. Layer normalization, a standard component, improves training stability, but its placement has often been ad-hoc. In this paper, we conduct a princ…