Learn Before
Example

Example of Span Masking

To illustrate span masking, consider an original sequence x\mathbf{x}: 'The 0 puppies are frolicking outside the house .'. By applying this corruption method to produce xnoise\mathbf{x}_{\mathrm{noise}}, two specific spans are targeted. First, a zero-length span, indicated by '0', results in the insertion of a [MASK] token. Second, the contiguous span 'frolicking outside the' is entirely replaced by another single [MASK] token. The final corrupted sequence xnoise\mathbf{x}_{\mathrm{noise}} becomes: 'The [MASK] puppies are [MASK] house .'.

0

1

Updated 2026-04-17

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