QUESTION 4 OF 10

How does masked language modeling train an encoder?

Reveal the answer and explore the explanation.

04
MediumCore

How does masked language modeling train an encoder?

Answer
Answer

Selected input tokens are hidden or altered and the model learns to recover the original tokens from context.

Practical example

Learn bidirectional representations from incomplete sentences.

Reference: Further reading ↗

Last 30 min revisionHigh-yield interview Q&As