Masked language model
Author: Mehdi Sadriu, independent educator. Last reviewed: 25 November 2026. How we check claims: methodology.
A pretraining task that fills in held-out tokens using both sides of context. Different from causal next-token prediction.
In one paragraph. A pretraining task that fills in held-out tokens using both sides of context. Different from causal next-token prediction.
Related terms
Full glossary