What is masked prediction in self-supervised learning?

Quick Overview

Explain masked prediction as a self-supervised objective, with examples from text, images and speech. Tests whether you know what is masked and predicted, why masking ratios differ between modalities, and how the approach compares with contrastive learning.

What is masked prediction in self-supervised learning?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is masked prediction in self-supervised learning? ```hint Pick the target Think about what exactly the model predicts at a masked position (raw tokens, pixels, discrete codes or learned features) and at which positions the loss is computed. ``` ```hint Redundancy Compare how hard it is to fill in a hidden word with how hard it is to fill in a hidden image patch when most of its neighbors are visible. ``` ### What a Strong Answer Covers - The basic recipe: what gets masked, what the model predicts, and where the loss is computed. - At least one concrete method for text and one for images, with their masking choices. - Why the useful masking ratio differs between modalities. - How masked prediction compares with contrastive learning, and how its representations are usually used downstream. ### Follow-up Questions - Why does BERT replace some selected tokens with random tokens or leave them unchanged? - Why does MAE keep mask tokens out of the encoder, and what does that do to training cost? - How is next-token prediction in GPT-style models related to masked prediction? - What do methods that predict latent features, such as data2vec or I-JEPA, gain over reconstructing pixels?

Overview: Explain masked prediction as a self-supervised objective, with examples from text, images and speech. Tests whether you know what is masked and predicted, why masking ratios differ between modalities, and how the approach compares with contrastive learning.

PracHub logo
General
Nov 25, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

What is masked prediction in self-supervised learning?

What a Strong Answer Covers Guidance

  • The basic recipe: what gets masked, what the model predicts, and where the loss is computed.
  • At least one concrete method for text and one for images, with their masking choices.
  • Why the useful masking ratio differs between modalities.
  • How masked prediction compares with contrastive learning, and how its representations are usually used downstream.

Follow-up Questions Guidance

  • Why does BERT replace some selected tokens with random tokens or leave them unchanged?
  • Why does MAE keep mask tokens out of the encoder, and what does that do to training cost?
  • How is next-token prediction in GPT-style models related to masked prediction?
  • What do methods that predict latent features, such as data2vec or I-JEPA, gain over reconstructing pixels?