ML Systems Lab Open interactive version →
Advanced 70 min read fine-tuninglinear probeprompt tuningadapterscatastrophic forgetting

Downstream Adaptation from SSL

Linear probing, fine-tuning, prompt tuning, adapters, catastrophic forgetting, representation evaluation

MAE achieves 68% ImageNet linear probe accuracy. SimCLR achieves 70%. On this metric, SimCLR wins. Full fine-tuning reverses the result: MAE reaches 83.6%, SimCLR reaches approximately 76%. The same pretrained representations, evaluated two ways, produce opposite rankings. This is not a measurement error—it is a direct counterexample to the assumption that linear probe accuracy predicts fine-tuning performance, and understanding why the divergence exists is more useful than memorizing the numbers.

The divergence comes from what each pretraining objective preserves. SimCLR's contrastive loss organizes representations around object-level similarities—which invariances to augmentation the model should learn. Representations become linearly separable by ImageNet category because the loss explicitly pushes same-class views together and different-class views apart. But the same loss discards fine-grained local detail: color invariance, crop invariance, texture invariance are all baked in. MAE's pixel reconstruction objective preserves that local detail because reconstruction at 75% masking requires encoding spatial relationships, texture, and pixel-level structure. This information is not linearly organized by ImageNet category—it is distributed across the representation in ways a frozen linear layer cannot access. A fine-tuned nonlinear network can access it, which is why MAE's fine-tuning performance exceeds SimCLR's.

The adaptation strategy is not purely a compute decision. Full fine-tuning on small labeled datasets risks catastrophic forgetting: the downstream supervised loss overwrites pretrained weights in a few hundred steps. The gradient signal from 1,000 labeled examples is insufficient to provide stable weight updates across the full model depth—each gradient step in the wrong direction is not corrected by subsequent steps because the dataset is too small to cover the loss landscape adequately. Fine-tuning on fewer than 10,000 examples without regularization is high risk. With 1,000 labeled examples and an MAE pretrained ViT, the right strategy is LoRA or adapters—not full fine-tuning—with a low learning rate and early stopping.

Layer-wise learning rate decay (LLRD) encodes a prior about what each layer should do. Lower layers encode general features (edges, textures, spatial relationships) that should not change for a new downstream task. Upper layers encode task-specific representations that should adapt. Scaling the learning rate by d^{L-l} (d ≈ 0.75) gives near-zero rates to lower layers and base rates to upper layers. This is standard practice for BERT and ViT fine-tuning precisely because it substantially reduces catastrophic forgetting without sacrificing adaptation capacity in the layers that need it.

NOT this. "Linear probe accuracy predicts fine-tuning performance" is directly refuted by MAE vs SimCLR. The linear probe measures whether downstream task structure is linearly separable in the pretrained space. MAE's representations are richer than SimCLR's but less linearly organized—a distinction the linear probe cannot detect. When choosing between SSL models for fine-tuning, run both evaluations; the linear probe alone will mislead.

Key points

Takeaway

MAE vs SimCLR is the direct counterexample to trusting linear probe as a proxy for fine-tuning performance: lower linear probe, higher fine-tuning accuracy, because MAE's pixel reconstruction preserves fine-grained local information that is not linearly organized but is accessible to a fine-tuned nonlinear network. With 1,000 labeled examples, full fine-tuning erases the pretrained representations that justified using SSL—use LoRA or adapters with low learning rate and early stopping.

Recap

Check your understanding

Q1. A ViT-B/16 model pretrained with MAE achieves 68% linear probe and 83.6% fine-tuned accuracy on ImageNet. A SimCLR model achieves 70% linear probe but only 76% fine-tuned. Your team has 1000 labeled examples. Which model do you choose for adaptation, and with what strategy?

Q2. Select the two true statements about why early stopping is more critical during fine-tuning than during pretraining.

Q3. LoRA and prompt tuning both keep the original model weights frozen. When would you choose one over the other for adapting a large language model to a new domain?

Q4. A team uses k-NN accuracy on a validation set as the primary metric for evaluating SSL representation quality before fine-tuning. What does this metric miss that linear probe catches, and vice versa?

Try it interactively

ML Systems Lab is a free interview-prep platform for ML engineers — work through the full interactive module, quizzes, and drills.

Open ML Systems Lab →