Learn Before
Concept
Regularization Techniques in the Transformer Model
The Transformer model employs two primary regularization techniques during training:
-
Residual Dropout: Applied to the output of each sub-layer before it is added to the sub-layer input and normalized. Dropout is also applied to the sums of the embeddings and the positional encodings in both the encoder and decoder stacks. For the base model, a dropout rate of is used.
-
Label Smoothing: Employed during training. While this hurts perplexity, as the model learns to be more unsure, it improves accuracy and BLEU (Bilingual Evaluation Understudy) scores.

0
1
Updated 2026-07-04
Tags
Data Science