BERT's 80/10/10 Masking Rule Explained

Of the 15% of tokens chosen for masking in BERT, 80% are replaced with a `[MASK]` token, 10% with a random word, and 10% remain unchanged. This specific distribution helps prevent 'dataset shift' during fine-tuning and forces the model to learn robust contextual representations by predicting both masked and uncorrupted tokens.

Sources

Open the full topic