Definition

Formal Definition of the Masking Process in Masked Language Modeling (MLM)

In Masked Language Modeling (MLM), the masking process is formally defined for an input sequence x=x0xm\mathbf{x} = x_0 \dots x_m. A set of positions, A(x)={i1,,iu}\mathcal{A}(\mathbf{x}) = \{i_1, \dots, i_u\}, is selected to be masked. This procedure generates a modified token sequence, xˉ\bar{\mathbf{x}}, in which the token at each selected position in A(x)\mathcal{A}(\mathbf{x}) is replaced with a special [MASK][\mathrm{MASK}] symbol.

0

1

Updated 2026-07-02

Contributors are:

Who are from:

Tags

Ch.1 Pre-training - Foundations of Large Language Models

Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences