The pretraining and fine-tuning (PT+FT) pipeline is the backbone of modern artificial intelligence, driving the success of everything from large language models to vision foundation models. While the empirical success of this paradigm is undeniable, the theoretical "why" remains surprisingly elusive. Why do some models seamlessly adapt to new tasks while others seem to "forget" their pretraining or fail to learn new features entirely?
A recent paper, "A Theory of How Pretraining Shapes Inductive Bias in Fine-Tuning," provides a rigorous theoretical map for this process. By analyzing a tractable mathematical model, the authors reveal that the secret to successful fine-tuning lies in the relative scale of weights across different layers at the start of training.
The Tension Between Feature Reuse and Refinement
While the machine learning community has developed a solid understanding of "rich" (feature-learning) versus "lazy" (kernel-like) learning in single-task settings, the multi-stage PT+FT pipeline introduces new complexities. Until now, there has been a lack of comprehensive theory explaining how initialization choices interact with pretraining data to shape a final model's inductive bias.
The central challenge in fine-tuning is navigating the tension between feature reuse (leveraging previously learned representations) and feature refinement (adapting those representations to a novel task). If a model is too "lazy," it reuses features but cannot adapt them to new distributions. Conversely, if it is too "rich" and independent, it may ignore useful pretrained features entirely, effectively learning from scratch. The authors sought to identify the "Goldilocks zone" where a model successfully balances both behaviors.
A Theoretical Map: The Four Regimes of Fine-Tuning
To establish an exact analytical theory, the researchers utilized diagonal linear networks. While linear, these networks are sufficiently "rich" to exhibit feature-learning dynamics analogous to deep ReLU networks.
Using the replica method—a powerful analytical tool borrowed from statistical physics—the authors derived closed-form expressions for generalization error in the high-dimensional limit. They characterized the model's behavior using two primary metrics:
- $\ell$-order: Measures the model's bias toward sparsity (a lower value indicates a more "rich," feature-learning regime).
- Pretraining Dependence (PD): Measures the extent to which the fine-tuning penalty relies on the magnitude of pretrained features.
By varying the absolute scale ($c_{PT}$) and the relative scale ($\lambda_{PT}$) of the initial weights, the authors mapped out the fine-tuning landscape, identifying four distinct behavioral regimes:
- Regime I (Rich, Independent): The model learns sparse features from scratch, largely ignoring its pretraining.
- Regime II (Lazy, Dependent): The model reuses pretrained features but exhibits almost no adaptation or refinement.
- Regime III (Lazy, Independent): The model behaves like a standard $\ell_2$ kernel machine, ignoring both pretraining and sparsity.
- Regime IV (Rich, Dependent): The optimal "sweet spot" where the model reuses pretrained features and refines them through continued feature learning.
The "Imbalance Lever"
The most actionable insight from the theory is the critical role of the relative initialization scale ($\lambda_{PT}$). The authors demonstrate that introducing an imbalanced initialization—specifically, making the first-layer weights smaller relative to the second-layer weights (a negative $\lambda_{PT}$)—drives the model directly into the desirable "Rich, Dependent" regime.
This imbalance allows the model to benefit significantly from pretraining, even when the fine-tuning task only partially overlaps with the original pretraining data distribution. Furthermore, the theory reveals a fundamental, universal trade-off: a model cannot simultaneously possess a perfect sparsity bias ($\ell$-order = 1) and perfect pretraining dependence (PD = -1). Practitioners must trade one for the other, with the optimal balance dictated by the degree of overlap between the pretraining and fine-tuning tasks.
Empirical Validation Across Architectures
To ensure their theoretical findings extended beyond linear models, the authors validated their claims across multiple datasets and architectures:
- Analytical Proofs & Synthetic Data: Using a teacher-student setup with "spike-and-slab" distributions (sparse active dimensions), the authors proved that imbalanced initialization is particularly beneficial when pretraining data is limited ($\alpha_{PT} < 1$).
- Vision Models (ResNets): In experiments using ResNet-18 models pretrained on 98 classes of CIFAR-100 and fine-tuned on the remaining two (as well as SVHN experiments), scaling the early layers by a factor $\kappa < 1$ consistently improved fine-tuning generalization.
- Representation Signatures: The authors confirmed a key prediction of their theory: in the "Rich, Dependent" regime, fine-tuning actually compresses the representation dimensionality while keeping it aligned with the pretrained features.
- Reasoning Tasks (Transformers): The core principles also held true for non-vision architectures. Transformers trained on modular arithmetic (grokking-style tasks) showed faster and better transfer when the embedding layer exhibited smaller "balancedness."
Limitations and Future Directions
While the empirical results on ResNets and Transformers strongly suggest the theory generalizes to deep learning practice, the core mathematical framework is built on diagonal linear networks. These models inherently lack the complexities of non-linearities, residual connections, and batch normalization found in production-grade architectures.
Looking forward, the authors propose several promising directions:
- Continual Learning: Extending the theory to study forward and backward transfer across sequential tasks.
- Novel Regularization: Applying these insights to design new regularization objectives that explicitly push models into the "Rich, Dependent" regime, bypassing the need to manually tune initialization scales.
- Biological Systems: Exploring how these dynamics of feature reuse and refinement might manifest in biological neural networks.
Ultimately, this work provides a vital theoretical stepping stone, proving that the success of fine-tuning is not just about the data, but about how we set the initial stage for learning.
Summary updated