Masked Language Model (MLM)

A way of training an AI by hiding random words in a sentence and making the model guess them — teaching it to understand context from both directions.

Technically: Self-supervised pre-training objective where about 15% of input tokens are masked (or randomly replaced) and the model predicts the originals using bidirectional context, attending to both left and right neighbors at once. This yields rich contextual embeddings, each token represented relative to its full context. It is the objective of BERT-style encoders.

Category: Model Architectures

Related ideas