NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Theory of How Pretraining Shapes Inductive Bias in Fine-Tuning

Nicolas Anguita, Francesco Locatello, Andrew M. Saxe, Marco Mondelli, Flavia Mancini, Samuel Lippl, Clementine Domine

This paper, recently presented at ICML 2026, provides a rigorous theoretical framework for one of the most successful yet poorly understood pipelines in modern AI: pretraining followed by fine-tuning (PT+FT). While we know that initialization matters, we haven't had a clear "map" of how it dictates whether a model will stubbornly reuse old features or adaptively learn new ones.

TL;DR

The authors develop an analytical theory using diagonal linear networks to show how initialization scale—specifically the balance between early and late layers—determines the success of fine-tuning. They identify a "rich, pretraining-dependent" regime, enabled by smaller initial weights in earlier layers, that allows models to both reuse and refine features for superior generalization.

What Problem Does This Paper Address?

In deep learning, we typically pretrain on a massive dataset and then fine-tune on a specific target task. Success depends on a delicate balance: the model must reuse relevant features from pretraining while refining them or learning new ones for the target task.

Prior research has shown that the scale of initial weights can push a network into either a "lazy" regime (behaving like a fixed kernel) or a "rich" regime (actively learning new features). However, how these regimes interact across two distinct training stages remained a mystery. Without a theory, practitioners rely on heuristics for initialization, which might inadvertently prevent the model from effectively transferring knowledge.

Methods

The authors tackle this by studying diagonal linear networks (DLNs). While linear, these models are non-trivial because their training dynamics can transition between rich and lazy regimes, mimicking the behavior of much larger non-linear ReLU networks.

To derive exact generalization errors, they employ the replica method from statistical physics. This allows them to characterize the high-dimensional limit of the PT+FT process as a function of:

  • $c_{PT}$: The absolute scale of initialization.
  • $\lambda_{PT}$: The relative scale between the first and second layers.
  • $\gamma_{FT}$: The scale of the readout layer after re-initialization for fine-tuning.

The training follows a standard gradient flow to minimize mean-squared error, first on a pretraining task and then on a fine-tuning task with varying degrees of feature overlap.

Datasets

The study uses a mix of synthetic and large-scale benchmarks:

  • Synthetic Teacher-Student Tasks: Used to precisely control sparsity and the "overlap" between pretraining and fine-tuning features.
  • Vision Tasks: ResNet-18 architectures trained on CIFAR-100 (pretraining on 98 classes, fine-tuning on the remaining 2) and SVHN.
  • Modular Arithmetic: Transformers trained on modular addition and multiplication to test if these insights hold for non-linear, attention-based architectures.

Key Insights and Ideas

The central "aha moment" is the identification of four distinct learning regimes in fine-tuning, defined by two metrics: $\ell$-order (how much the model benefits from sparsity) and Pretraining Dependence (how much it reuses pretrained features).

The four learning regimes of fine-tuning. Regime IV represents the ideal balance of feature reuse and refinement.
  • The Four Regimes:
    1. Rich, PT-independent: Learns new sparse features but ignores pretraining.
  • Lazy, PT-dependent: Reuses features exactly but cannot adapt or learn new ones.
  • Lazy, PT-independent: The standard "kernel" regime where pretraining is useless.
  • Rich, PT-dependent (The Sweet Spot): The model leverages pretrained features while remaining flexible enough to refine them.
  • The Imbalance Lever: The authors show that a negative $\lambda_{PT}$ (meaning the first layer is initialized with much smaller weights than the second) is the key to entering the optimal Regime IV. This "imbalanced initialization" forces the network to remain in a feature-learning mode during fine-tuning.
  • A Universal Trade-off: They prove (Proposition 5.1) that there is a fundamental tension: you cannot have perfect sparsity and perfect pretraining dependence simultaneously. You must choose a point on the "trade-off diagonal" shown in Figure 2.

Key Results

  • Theoretical Accuracy: The replica-theoretic predictions for generalization error perfectly match empirical simulations in diagonal networks across various data scales ($\alpha$).
Generalization curves showing how different initialization parameters ($\lambda_{PT}$, $c_{PT}$, $\gamma_{FT}$) impact performance across varying task overlaps.
  • ResNet Performance: In vision tasks, reducing the relative scale of early layers (using a factor $\kappa < 1$) consistently improved fine-tuning accuracy, especially when the number of fine-tuning samples was small.
  • Transformer Transfer: The same principles held for Transformers; smaller "balancedness" (initialization scale) improved generalization on modular arithmetic tasks, particularly when the fine-tuning task involved novel prime factors.

Limitations and Future Work

The primary limitation is the reliance on diagonal linear networks for the core theory. While the authors demonstrate that the insights transfer to ResNets and Transformers, these complex models have non-linearities (like ReLU and Attention) and architectural features (like Batch Norm) that the linear theory doesn't explicitly model.

Additionally, the study assumes a specific "spike-and-slab" task structure. Future work could explore more complex data distributions and extend the analysis to continual learning, where the model must learn a sequence of tasks without forgetting the earlier ones.

Summary updated

BibTeX
@inproceedings{anguita2026theory,
  author = {Nicolas Anguita and Francesco Locatello and Andrew M. Saxe and Marco Mondelli and Flavia Mancini and Samuel Lippl and Clementine Domine},
  title = {{A Theory of How Pretraining Shapes Inductive Bias in Fine-Tuning}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=jsOKNGu8ac},
}
Figure