How do you decide whether to freeze or fine-tune unsupervised pre-trained representations for a downstream task?

Quick Overview

Asks how to choose between freezing a pre-trained encoder and fine-tuning it for a new labeled task. Tests reasoning about label budget, domain shift, compute and serving cost, middle-ground options such as partial unfreezing and LoRA, and how to settle the choice with a linear probe and held-out data.

How do you decide whether to freeze or fine-tune unsupervised pre-trained representations for a downstream task?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

You have an encoder pre-trained with an unsupervised or self-supervised objective (for example contrastive learning on images or masked language modeling on text) and a labeled downstream task. How do you decide whether to freeze or fine-tune unsupervised pre-trained representations for a downstream task? ```hint What drives the choice Compare the number of labels you have with the number of parameters you would update, and ask how far the downstream data is from the pre-training data. ``` ```hint Settle it with data One cheap experiment tells you how much the frozen features already capture. Think about what you would compare it against, and on which data. ``` ### What a Strong Answer Covers - The conditions that favor freezing: label count, domain similarity, compute, many tasks sharing one backbone, forgetting - The conditions that favor fine-tuning: plenty of labels, real domain shift, features the pre-training objective did not capture - Middle-ground options between a fully frozen and a fully fine-tuned encoder - An empirical decision process with a frozen baseline, a careful fine-tuning run and a held-out comparison - The cost of each option in training compute, storage per task and serving ### Follow-up Questions - Why can fine-tuning with a randomly initialized head damage the pretrained features, and how does LP-FT avoid it? - How would you choose which layers to unfreeze? - When would you pick LoRA or adapters over full fine-tuning in production? - Your linear probe is weak and you have only 1,000 labels. What do you try?

Overview: Asks how to choose between freezing a pre-trained encoder and fine-tuning it for a new labeled task. Tests reasoning about label budget, domain shift, compute and serving cost, middle-ground options such as partial unfreezing and LoRA, and how to settle the choice with a linear probe and held-out data.

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

You have an encoder pre-trained with an unsupervised or self-supervised objective (for example contrastive learning on images or masked language modeling on text) and a labeled downstream task. How do you decide whether to freeze or fine-tune unsupervised pre-trained representations for a downstream task?

What a Strong Answer Covers Guidance

  • The conditions that favor freezing: label count, domain similarity, compute, many tasks sharing one backbone, forgetting
  • The conditions that favor fine-tuning: plenty of labels, real domain shift, features the pre-training objective did not capture
  • Middle-ground options between a fully frozen and a fully fine-tuned encoder
  • An empirical decision process with a frozen baseline, a careful fine-tuning run and a held-out comparison
  • The cost of each option in training compute, storage per task and serving

Follow-up Questions Guidance

  • Why can fine-tuning with a randomly initialized head damage the pretrained features, and how does LP-FT avoid it?
  • How would you choose which layers to unfreeze?
  • When would you pick LoRA or adapters over full fine-tuning in production?
  • Your linear probe is weak and you have only 1,000 labels. What do you try?