paper-with-me

홈 › Papers

Transformers without Tears: Improving the Normalization of Self-Attention

2019-10-14 · EMNLP (IWSLT) 2019 11 · Toan Q. Nguyen, Julian Salazar

We evaluate three simple, normalization-centric changes to improve Transformer training. First, we show that pre-norm residual connections (PreNorm) and smaller initializations enable warmup-free, validation-based training with large learning rates. Second, we propose $\ell_2$ normalization with a single scale parameter (ScaleNorm) for faster training and better performance. Finally, we reaffirm the effectiveness of normalizing word embeddings to a fixed length (FixNorm). On five low-resource translation pairs from TED Talks-based corpora, these changes always converge, giving an average +1.1 BLEU over state-of-the-art bilingual baselines and a new 32.8 BLEU on IWSLT'15 English-Vietnamese. We observe sharper performance curves, more consistent gradient norms, and a linear relationship between activation scaling and decoder depth. Surprisingly, in the high-resource setting (WMT'14 English-German), ScaleNorm and FixNorm remain competitive but PreNorm degrades performance.

📄 PDF Abstract BibTeX arXiv:1910.05895

Code (5)

tnq177/transformers_without_tears 공식 구현 pytorch
JunnYu/x-transformers-paddle jax
MindCode-4/code-2/tree/main/persimmon mindspore
facebookresearch/xformers pytorch
yangyucheng000/University/tree/main/model-1/persimmon mindspore

Tasks

DecoderMachine TranslationTranslationWord Embeddings

Methods 이 논문이 사용한 방법론

Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Position-Wise Feed-Forward Layer 설명 없음
Residual Connection 설명 없음
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
ReLU How Do I Communicate to Expedia? How Do I Communicate to Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Live Support & Special Travel…

Similar Papers 제목 키워드 기반

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

Normalized Attention Without Probability Cage

2020-05-19 · Oliver Richter, Roger Wattenhofer

Attention architectures are widely used; they recently gained renewed popularity with Transformers yielding a streak of state of the art results. Yet, the geometrical implications of softmax-attention remain largely unex…

Attention Sinks Are Provably Necessary in Softmax Transformers: Evidence from Trigger-Conditional Tasks

2026-03-12 · Yuval Ran-Milo arxiv

Transformers often display an attention sink: probability mass concentrates on a fixed, content-agnostic position. Are sinks a byproduct of the optimization/training regime? Or are they sometimes functionally necessary i…

TorchScale: Transformers at Scale

2022-11-23 · Shuming Ma, Hongyu Wang, Shaohan Huang, Wenhui Wang 외

Large Transformers have achieved state-of-the-art performance across many tasks. Most open-source libraries on scaling Transformers focus on improving training or inference with better parallelization. In this work, we p…

Language ModelingLanguage ModellingMachine TranslationTranslation

Dependency Parsing is More Parameter-Efficient with Normalization

2025-05-26 · Paolo Gajo, Domenic Rosati, Hassan Sajjad, Alberto Barrón-Cedeño

Dependency parsing is the task of inferring natural language structure, often approached by modeling word interactions via attention through biaffine scoring. This mechanism works like self-attention in Transformers, whe…

Dependency ParsingSentence