When would you choose a masked-prediction objective over a contrastive objective for self-supervised pre-training?

Quick Overview

Asks when a masked-prediction objective such as BERT or MAE is a better choice than a contrastive objective for self-supervised pre-training. Tests understanding of data augmentations, frozen versus fine-tuned downstream use, batch-size needs and the failure modes of each approach.

When would you choose a masked-prediction objective over a contrastive objective for self-supervised pre-training?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

When would you choose a masked-prediction objective over a contrastive objective for self-supervised pre-training? Assume you are pre-training an encoder on a large unlabeled dataset and will later adapt it to one or more downstream tasks. ```hint What each objective needs A contrastive objective needs a way to build positive pairs. Ask what that requires in a given domain, and whether it is easy to get. ``` ```hint How the encoder will be used Think about the downstream use: frozen embeddings for retrieval or a linear probe, or full fine-tuning on a dense task such as segmentation. ``` ### What a Strong Answer Covers - How each objective creates its training signal (reconstructing hidden input versus matching views of the same sample against other samples) - The role of data augmentations, and which domains lack label-preserving ones - Which downstream use each objective favors: dense fine-tuning, or frozen embeddings for probing, retrieval and cross-modal alignment - Batch-size and compute requirements, including negatives and memory banks - The failure mode of each objective and the hybrid methods that combine them ### Follow-up Questions - Why do MAE features usually score lower than contrastive features on a linear probe, yet match or beat them after fine-tuning? - How do joint-embedding methods without negatives, such as BYOL or DINO, avoid representation collapse? - For a medical imaging dataset where color and texture carry diagnostic information, how would you choose augmentations or an objective? - Why is the usual masking ratio so different for text and for images?

Overview: Asks when a masked-prediction objective such as BERT or MAE is a better choice than a contrastive objective for self-supervised pre-training. Tests understanding of data augmentations, frozen versus fine-tuned downstream use, batch-size needs and the failure modes of each approach.

Nov 24, 2026
hardMachine Learning EngineerOtherMachine Learning
0
0

When would you choose a masked-prediction objective over a contrastive objective for self-supervised pre-training?

Assume you are pre-training an encoder on a large unlabeled dataset and will later adapt it to one or more downstream tasks.

What a Strong Answer Covers Guidance

  • How each objective creates its training signal (reconstructing hidden input versus matching views of the same sample against other samples)
  • The role of data augmentations, and which domains lack label-preserving ones
  • Which downstream use each objective favors: dense fine-tuning, or frozen embeddings for probing, retrieval and cross-modal alignment
  • Batch-size and compute requirements, including negatives and memory banks
  • The failure mode of each objective and the hybrid methods that combine them

Follow-up Questions Guidance

  • Why do MAE features usually score lower than contrastive features on a linear probe, yet match or beat them after fine-tuning?
  • How do joint-embedding methods without negatives, such as BYOL or DINO, avoid representation collapse?
  • For a medical imaging dataset where color and texture carry diagnostic information, how would you choose augmentations or an objective?
  • Why is the usual masking ratio so different for text and for images?