TL;DR
This paper introduces free energy—a classical concept from Bayesian model selection—as a principled criterion to choose the best pretraining checkpoints for downstream fine-tuning. The authors prove that pretraining free energy serves as an upper bound on downstream adaptability without needing access to downstream data, and they demonstrate empirically that minimizing pretraining free energy consistently predicts superior transfer accuracy.
What Problem Does This Paper Address?
In the dominant "pretrain-then-adapt" paradigm, practitioners routinely choose checkpoints using ad-hoc heuristics (such as training loss or validation accuracy on the pretraining task). However, checkpoints with identical pretraining loss often exhibit wildly divergent downstream fine-tuning performance.
While recent work has explored implicit regularization properties like loss landscape flatness or neural collapse, theoretical frameworks that directly connect pretraining characteristics to downstream adaptability remain scarce. Moreover, checkpoint selection must ideally happen without access to downstream data or tasks, which are typically unknown during pretraining.
Methods
The authors reframe checkpoint selection through Bayesian statistics and Singular Learning Theory (SLT):
- Downstream Free Energy: Defined as the negative logarithm of the local marginal likelihood in a neighborhood around a checkpoint. Asymptotically, it decomposes into two terms: task loss (goodness of fit) and the local learning coefficient $\lambda$ (a measure of model complexity/singularity). Lower free energy indicates a higher concentration of parameters nearby that achieve low loss.
- Pretraining Free Energy Proxy: Because downstream data is inaccessible during pretraining, the authors prove Proposition 5.3: under bounded distribution shift (where the density ratio between downstream and pretraining distributions is bounded by $M < \infty$), pretraining free energy asymptotically upper-bounds downstream free energy.
- Estimation via WBIC: To compute pretraining free energy in practice, the authors use a localized version of the Widely Applicable Bayesian Information Criterion (WBIC), sampling the local posterior over the model backbone using Stochastic Gradient Langevin Dynamics (SGLD).
Datasets
The authors evaluate their framework on standard transfer and few-shot image classification benchmarks (no new datasets were created):
- CIFAR-FS: A few-shot adaptation of CIFAR-100 divided into 64 meta-training classes, 16 meta-validation classes, and 20 meta-testing classes (600 images per class).
- mini-ImageNet: A subset of ImageNet structured similarly (64 training, 16 validation, and 20 test classes) evaluated on a VGG-16 backbone.
Key Insights and Ideas
- Complexity Matters as Much as Fit: Free energy explicitly penalizes parameter complexity ($\lambda$). Consequently, a checkpoint with higher pretraining loss can actually yield better downstream adaptation if its local learning coefficient is sufficiently lower.
- Pretraining Loss Stagnation: During later stages of pretraining, empirical training loss often collapses to near-identical values across different runs, making it useless for checkpoint selection. In contrast, free energy continues to differentiate models based on their parameter geometry.
- Implicit Levers of Optimization: Standard optimization hyperparameters act as regularizers for free energy. Specifically, larger learning rates, smaller batch sizes, and higher momentum drive the optimizer toward basins with lower free energy and lower local complexity.
Key Results
- Strong Downstream Correlation: Across ResNet-18 (CIFAR-FS) and VGG-16 (mini-ImageNet), checkpoints with lower pretraining WBIC consistently achieved higher transfer accuracy in both full-dataset fine-tuning and 5-way 5-shot transfer tasks.
- Outperforming Competing Metrics: In a sweep over 85 checkpoints varying learning rate, batch size, and momentum, pretraining free energy showed significantly stronger Pearson correlation with downstream accuracy than existing pretraining metrics:
- Full fine-tune transfer accuracy: Free Energy achieved $-0.820$, outperforming Geometric Complexity ($-0.767$) and Neural Collapse ($-0.632$).
- Avg 5-shot transfer accuracy: Free Energy achieved $-0.8901$, dramatically outpacing Geometric Complexity ($-0.443$) and Neural Collapse ($-0.1875$).
Limitations and Future Work
- Theoretical Gap to Deterministic Fine-Tuning: The theoretical guarantees connecting downstream free energy to downstream performance are formally established for Bayesian model averaging (downstream Bayes test error), rather than standard gradient-based fine-tuning like SGD.
- Computational Cost: Calculating WBIC requires running SGLD chains over thousands of steps, which is computationally expensive and difficult to scale directly to multi-billion-parameter foundation models.
- Future Directions: The authors highlight the need to discover computationally cheaper "levers" or proxies that reflect pretraining free energy without requiring full SGLD sampling.
Summary updated