Features are fate: a theory of transfer learning in high-dimensional regression

Javan Tahir, Surya Ganguli, Grant M. Rotskoff

In the era of foundation models, adapting massive pretrained networks to smaller, specialized tasks is standard practice. Yet, despite the ubiquity of this approach, a rigorous mathematical understanding of when and why transfer learning succeeds remains elusive.

Transfer learning success isn't just about how "similar" two datasets are; it’s about whether the target task fits into the specific feature space carved out during pretraining. This paper introduces a theoretical "phase diagram" for transfer learning, revealing that the very process of learning "rich" features for a source task can sometimes make a model too rigid to succeed on a new one.

Moving Beyond Empirical "Vibes"

Current metrics for "task similarity" (like KL divergence or Wasserstein distance) often fail to predict transfer performance. Furthermore, we don't always know if transfer learning will outperform simply training a model from scratch on the target data. This paper seeks to move beyond empirical intuition by providing a feature-centric theory that identifies the precise conditions—specifically, dataset size and feature overlap—under which transfer learning succeeds or fails (resulting in "negative transfer").

A Mathematically Tractable Sandbox

The authors utilize Deep Linear Networks (DLNs) as a mathematically tractable sandbox. While linear, these models are "rich" enough to exhibit complex neural network behaviors like feature learning and "double descent."

Key methodological components include:

  • Feature Sparsification: The authors prove that during pretraining, a model’s feature space "sparsifies," collapsing to represent only the components necessary for the source task.
  • Analytical Phase Diagrams: They derive exact equations for transferability ($\mathcal{T}$), defined as the difference in generalization error between a transferred model and one trained from scratch.
  • Comparison of Strategies: The study analyzes both Linear Transfer (freezing the backbone and training only the head) and Full Fine-tuning.
  • Nonlinear Validation: To ensure findings aren't just artifacts of linear math, they replicate the results numerically using Student-Teacher ReLU networks.

The study relies on synthetic high-dimensional datasets where the ground truth is known. Source and target tasks are defined as linear functions (or ReLU networks) with a controllable angle ($\theta$) or overlap between them. By using synthetic data, the authors can precisely sweep through parameters like the number of target samples and task overlap to map out the boundaries of successful transfer.

Key Insights and Results

"Features are Fate" The success of transfer is determined by the geometry of the learned feature space. If the target task requires features that were "pruned" or ignored during pretraining, transfer will likely fail. There is a trade-off in pretraining: training a model to be "rich" (learning the specific features of the source task) makes it excellent at the source task but potentially worse at transferring to anything outside that narrow subspace.

Transferability phase diagram illustrating regions of positive (blue) and negative (orange) transfer based on target data size $\gamma$ and task overlap $\theta$.

The Transferability Phase Diagram The authors identify a clear boundary for Negative Transfer. In the "underparameterized" regime (where you have more target data than dimensions), training from scratch often wins because the transferred model is "stuck" with its old, incomplete features.

Anomalous Positive Transfer Surprisingly, transfer can be beneficial even when the source and target tasks are completely orthogonal ($\theta = \pi/2$). This happens in the "low data limit" because the pretrained model effectively acts as a low-rank regularizer, preventing the overfitting that a "scratch" model would suffer from.

Fine-tuning Bias and Regularization In overparameterized models, fine-tuning doesn't completely "forget" the source task. Instead, it remains biased toward the pretrained initialization. If the target task is more than 60 degrees away from the source task ($\cos \theta < 1/2$), this bias actually hurts performance. Furthermore, adding Ridge regularization to the target task can actually expand the region of negative transfer, as it further attenuates the already sparse features learned during pretraining.

Limitations and Future Work

The primary limitation of this work is its reliance on linear and shallow nonlinear models. While these provide deep theoretical insights, real-world foundation models (like Transformers) operate in much more complex, non-convex landscapes where "features" are harder to define.

The authors suggest several future directions:

  1. Lazy vs. Rich Trade-offs: Exploring if there is an "optimal" amount of pretraining that learns enough to be useful but not so much that it becomes rigid.
  2. Architecture Depth: Investigating how depth and hierarchical feature learning (where lower layers are more general) affect these phase diagrams.
  3. Data Diversity: Extending the theory to cases where the source task consists of many diverse tasks rather than just one.

Summary updated

BibTeX
@inproceedings{tahir2025features,
  author = {Javan Tahir and Surya Ganguli and Grant M. Rotskoff},
  title = {{Features are fate: a theory of transfer learning in high-dimensional regression}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=rLM4qDBJKA},
}
Figure