[Paper Review] Pre-Train Your Loss: Easy Bayesian Transfer Learning with Informative Priors
This paper proposes a novel Bayesian transfer learning framework that replaces standard pre-trained model weights with a learned, informative prior derived from the source task's posterior distribution. By reweighting the loss surface of downstream tasks using this prior—learned via supervised or self-supervised pre-training—the method achieves significant accuracy gains and data efficiency improvements across image classification and semantic segmentation benchmarks, outperforming both standard fine-tuning and non-learned Bayesian baselines.
Deep learning is increasingly moving towards a transfer learning paradigm whereby large foundation models are fine-tuned on downstream tasks, starting from an initialization learned on the source task. But an initialization contains relatively little information about the source task. Instead, we show that we can learn highly informative posteriors from the source task, through supervised or self-supervised approaches, which then serve as the basis for priors that modify the whole loss surface on the downstream task. This simple modular approach enables significant performance gains and more data-efficient learning on a variety of downstream classification and segmentation tasks, serving as a drop-in replacement for standard pre-training strategies. These highly informative priors also can be saved for future use, similar to pre-trained weights, and stand in contrast to the zero-mean isotropic uninformative priors that are typically used in Bayesian deep learning.
Motivation & Objective
- To address the limitation of standard transfer learning, which relies on parameter initialization rather than rich task-specific inductive biases.
- To improve data efficiency and model generalization in downstream tasks by leveraging informative priors from source task representations.
- To demonstrate that Bayesian transfer learning with learned priors outperforms standard fine-tuning and non-learned priors.
- To explore the transferability of priors learned via self-supervised vs. supervised pre-training.
- To provide a drop-in replacement for standard pre-training that enhances both optimization and Bayesian inference.
Proposed method
- Learn a posterior distribution over model weights from a source task using supervised or self-supervised pre-training (e.g., SimCLR).
- Represent the source task posterior as a Gaussian with a low-rank plus diagonal covariance matrix to capture informative parameter space directions.
- Re-scale the source posterior to serve as a prior for the downstream task, reflecting distributional differences between source and target tasks.
- Use the re-scaled prior to modify the negative log-posterior (i.e., the loss function) in the downstream task, reshaping the loss surface.
- Perform downstream training via standard SGD or full Bayesian inference using Monte Carlo sampling over the posterior.
- Save the learned prior as a reusable component, analogous to pre-trained weights, for future downstream tasks.
Experimental results
Research questions
- RQ1Can a learned, informative prior from a source task significantly improve downstream performance in transfer learning?
- RQ2Does Bayesian inference with a learned prior outperform standard fine-tuning and non-learned priors in terms of accuracy and likelihood?
- RQ3How does the choice of pre-training objective (supervised vs. self-supervised) affect prior transferability and downstream performance?
- RQ4To what extent do informative priors improve data efficiency in fine-tuning?
- RQ5Can a pre-trained prior be used as a drop-in replacement for standard pre-trained weights in downstream models?
Key findings
- On CIFAR-10.1, the method achieves superior accuracy across all training set sizes compared to SGD fine-tuning and Bayesian inference with non-learned priors, demonstrating improved robustness to distribution shift.
- On PASCAL VOC 2012 with ResNet-50, Bayesian inference with a self-supervised learned prior achieves 74.15% Mean-IoU, outperforming the baseline SGD method (73.17%) and non-learned prior (73.72%).
- On Cityscapes with ResNet-101, the method achieves 77.63% Mean-IoU using a self-supervised learned prior, surpassing the SGD baseline (77.04%) and non-learned prior (77.02%).
- Bayesian inference with a learned prior achieves lower test negative log-likelihood than all other methods, indicating better-calibrated uncertainty estimates.
- The method improves performance even when using MAP estimation (SGD), showing that the benefit of informative priors extends beyond full Bayesian inference.
- Priors learned via self-supervised pre-training (SimCLR) transfer better than those from supervised pre-training, suggesting stronger inductive biases for downstream tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.