Precise High-Dimensional Asymptotics for Quantifying Heterogeneous Transfers

Fan Yang, Hongyang R. Zhang, Sen Wu, Christopher Ré, Weijie J. SuJMLR 2025

TL;DR

This paper provides a rigorous theoretical framework using random matrix theory to precisely quantify when and why combining data from a source task with a target task improves learning performance (transfer learning) versus when it hurts it (negative transfer). The authors derive high-dimensional asymptotic formulas for the bias and variance of a common transfer learning estimator, revealing phase transitions and offering insights into optimal strategies for heterogeneous tasks.

What Problem Does This Paper Address?

Transfer learning aims to leverage knowledge from a source task to improve learning on a related target task. However, a well-known phenomenon is "negative transfer," where using the source task actually degrades performance compared to learning solely from the target task. This often happens when tasks are dissimilar or have different underlying data distributions. Quantifying precisely when transfer is beneficial, especially in high-dimensional settings where the number of features is large compared to the number of samples, has been a significant challenge. This paper tackles this by providing precise mathematical tools to understand the interplay between task similarity, sample sizes, and data distributions in determining the success of transfer learning.

Methods

The core of this paper lies in applying advanced random matrix theory (RMT) techniques to analyze a high-dimensional linear regression setting with two tasks. Specifically, the authors derive precise high-dimensional asymptotic formulas for the bias and variance of the Hard Parameter Sharing (HPS) estimator. This involves:

  • Proportional Limit: Analyzing the behavior as the number of samples and features grow proportionally.
  • Covariate and Model Shifts: Developing methods to handle differences in feature distributions (covariate shift) and the relationship between features and labels (model shift) between tasks.
  • Random Matrix Theory Tools: Utilizing concepts like local laws, Stieltjes transforms, and free probability to analyze the behavior of sums of sample covariance matrices.
  • Bias-Variance Decomposition: Decomposing the total error into bias and variance components to understand their contributions to transfer effects.
  • Phase Transition Analysis: Identifying critical thresholds where the transfer effect switches from positive to negative.

Datasets

The paper does not introduce new datasets. Instead, it relies on simulations to validate its theoretical findings. These simulations are designed to mimic the scenarios described in the paper, varying parameters like sample sizes, feature dimensions, covariate shift levels, and model shift levels.

Key Insights and Ideas

  • Quantifying Negative Transfer: The paper provides a concrete mathematical explanation for negative transfer, showing how it can arise from specific combinations of covariate and model shifts, especially when tasks are dissimilar.
  • Phase Transitions: A crucial insight is the discovery of "phase transitions" in transfer learning. For instance, in a random-effects model, the transfer effect can switch from positive to negative as the model shift increases or the source task sample size changes relative to the target task. This explains why empirical results can be sensitive to these factors.
  • Rebalancing HPS: The analysis suggests that a simple adjustment to the HPS estimator – downscaling the contribution of the source task when the model shift is high – can achieve near-optimal performance, matching minimax lower bounds.
  • Covariate Shift's Dual Role: Covariate shifts can either enhance or hinder transfer learning, depending on the relative sample sizes of the source and target tasks.
  • RMT as a Powerful Tool: The paper demonstrates the effectiveness of advanced RMT tools for analyzing complex statistical learning problems in high dimensions, opening doors for future research.

Key Results

  • Precise Asymptotics: The paper derives exact high-dimensional asymptotic formulas for the bias and variance of the HPS estimator under various types of shifts (covariate, model, and combined).
  • Phase Transition in Random-Effects Model: For a random-effects model, the paper mathematically proves a phase transition from positive to negative transfer based on the model shift and sample sizes.
  • Minimax Optimality: An adjusted HPS estimator that downscales the source task when model shift is high is shown to achieve the minimax optimal rate.
  • Generalization to Multiple Tasks: The findings regarding phase transitions are extended to settings with multiple tasks sharing feature covariates.
  • Simulation Validation: Numerical simulations confirm the accuracy of the derived high-dimensional asymptotics for finite dimensions.

Limitations and Future Work

  • Focus on Linear Regression: The current analysis is primarily focused on linear regression models. Extending these results to more complex models (e.g., non-linear models, classification) is a significant open question.
  • Assumptions on Random Matrices: Some results rely on assumptions about the properties of random matrices (e.g., Gaussian entries for certain bias calculations). Generalizing these to arbitrary distributions with finite moments is an area for future work.
  • Anisotropic Covariance for Bias: Deriving the exact bias limit under arbitrary covariate and model shifts, especially for anisotropic covariance matrices, remains a challenging open problem.
  • Overparameterized Models: While the paper touches upon overparameterized regimes, developing tools for analyzing overparameterized models in transfer learning, potentially with separate data models, is a future research direction.
  • Soft Transfer Generalization: A deeper theoretical understanding of soft transfer, particularly its regularization effects in large models and its comparison to HPS, is suggested for future work.

Summary updated

BibTeX
@article{yang2025precise,
  author = {Fan Yang and Hongyang R. Zhang and Sen Wu and Christopher Ré and Weijie J. Su},
  title = {{Precise High-Dimensional Asymptotics for Quantifying Heterogeneous Transfers}},
  journal = {J. Mach. Learn. Res.},
  year = {2025},
  url = {https://openreview.net/forum?id=45eSivlJjf},
}
Figure