Concept

Regularization Techniques in the Transformer Model

The Transformer model employs two primary regularization techniques during training:

  1. 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 Pdrop=0.1P_{drop} = 0.1 is used.

  2. 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.

Image 0

0

1

Updated 2026-07-04

Tags

Data Science