Masked Language Model
A model trained to restore hidden tokens: parts of words in the text are replaced with a mask, and the model must guess them based on the context from both sides.
How It Works
Input: The cat [MASK] milk.
Output: drinks
A classic example is BERT. This task teaches the model to understand the meaning of the text as a whole, not just from left to right.
Where It Is Applied
- search and ranking;
- classification and entity extraction;
- understanding tasks where generation is not needed.