Guide-linked quiz · Medium Level
Masked Language Modeling Quiz
Understand masked language modeling, BERT’s token-selection scheme and later alternatives for bidirectional pretraining.
Question 1 of 8
What is the core training task in masked language modeling?
Preview every question8 questions
Answers and explanations appear as you take the quiz.
- What is the core training task in masked language modeling?
- Predicting deliberately hidden words from surrounding context
- Predicting the next word after a sentence
- Translating text between two languages
- Ranking sentences by grammatical correctness
- Roughly what percentage of tokens does BERT typically mask during pretraining?
- About 50%
- About 15%
- About 1%
- About 90%
- Why does MLM give a model bidirectional understanding?
- It reads sentences backward
- It uses two separate models
- Each token attends to words on both its left and right
- It only looks at the previous word
- In BERT's masking scheme, what happens to about 10% of selected positions instead of becoming [MASK]?
- They are deleted entirely
- They are duplicated
- They are capitalized
- They are replaced with a random word
- On which positions is the MLM loss computed?
- Only the masked positions
- Every token in the sentence
- Only the first and last tokens
- Only punctuation tokens
- Compared with next-token prediction, what does MLM trade away?
- The ability to use context
- The ability to generate fluent text left-to-right
- Access to a vocabulary
- The use of attention
- How does RoBERTa’s dynamic masking differ from BERT’s original setup?
- It masks only the first token of every sentence
- It predicts future tokens with a causal decoder
- The masked positions can be regenerated across training passes instead of remaining fixed
- It replaces all masked tokens with random numbers
- What auxiliary objective did the original BERT pretraining recipe combine with MLM?
- Image patch reconstruction
- Audio speaker diarization
- A reward model for code generation
- Next-sentence prediction
Keep testing yourself
More quizzes picked for your level.