What is a masked language model (MLM) objective?

Chris Staff asked 4 months ago
1 Answers
Best Answer
Chris Staff answered 2 months ago

In a Masked Language Modeling task, language models don’t have access to the full input – but rather to a masked input, where some (10-20 percent) of the input tokens are masked. This simply means replacing the tokens (or some token spans) with a special token representing <mask>. The goal for the MLM task becomes reconstructing the original sequence, i.e. to reveal what is hidden under the mask. This adds complexity on top of regular language modeling tasks, and some works argue that it can help boost performance.

MachineCurve. (2021, March 2). Easy masked language modeling with machine learning and HuggingFace transformershttps://www.machinecurve.com/index.php/2021/03/02/easy-masked-language-modeling-with-machine-learning-and-huggingface-transformers/

Your Answer

11 + 16 =