Compete in HackAPrompt 2.0, the world's largest AI Red-Teaming competition!

Check it out →

Masked Language Models (MLMs)

Last updated on November 12, 2024

MLMs are a type of NLP model, which have a special token, usually [MASK], which is replaced with a word from the vocabulary. The model then predicts the word that was masked. For example, if the sentence is "The dog is [MASK] the cat", the model will predict "chasing" with high probability.


© 2025 Learn Prompting. All rights reserved.