Sharp Bias-variance Tradeoffs of Hard Parameter Sharing in High-dimensional Linear Regression

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

Introduction

Transfer learning is a cornerstone of modern artificial intelligence, leveraging data from a "source" task to improve performance on a "target" task. However, practitioners frequently encounter the phenomenon of negative transfer, where the inclusion of source data degrades the target model's performance compared to training on target data alone. While intuition suggests that transfer fails when tasks are sufficiently dissimilar, precisely quantifying this relationship has remained elusive. This paper provides a rigorous mathematical foundation for understanding these dynamics in high-dimensional linear regression.

Problem Formulation

The research focuses on Hard Parameter Sharing (HPS), a classic multi-task learning method where a single model is trained by minimizing the combined loss of both tasks. The authors address the gap in existing theories—which often rely on loose generalization bounds—by providing precise asymptotics for HPS in settings where the number of features ($p$) is comparable to the number of samples ($n$). They specifically investigate two types of heterogeneity:

  1. Covariate Shift: Differences in feature distributions ($X$) between tasks.
  2. Model Shift: Differences in the underlying true relationship ($\beta$) between features and labels.

Methodology

The analysis is conducted under the proportional limit, where $n_1, n_2, p \to \infty$ at fixed ratios. To derive exact formulas for excess risk, the authors employ sophisticated tools from Random Matrix Theory (RMT) and Free Probability. By deriving "local laws" for the sum of two independent sample covariance matrices with distinct population structures, they decompose the excess risk of the HPS estimator into exact bias and variance terms. This approach offers a significantly sharper characterization of model behavior than traditional bounds.

Key Insights: The Phase Transition of Transfer

A central contribution of this work is the mathematical proof of a phase transition in transfer learning. In a random-effects model, the "model shift" (parameterized by $\mu$) determines the effectiveness of transfer:

  • Threshold Effect: Below a certain threshold of model shift, adding source data consistently improves performance.
  • Optimal Data Volume: Above this threshold, there exists an optimal amount of source data; exceeding this point triggers negative transfer.
  • Dominant Shift: In cases of extreme shift, any amount of source data becomes detrimental.

Surprisingly, the authors find that covariate shift is not inherently negative. If the source task provides samples in feature space directions where the target task is data-poor (complementary spectra), the shift can actually enhance transfer performance.

Results and Discussion

The theoretical derivations identify three distinct regimes for transfer based on the distance $\mu$ between task parameters:

  1. Always Positive: HPS outperforms Ordinary Least Squares (OLS) for all sample sizes $n_1$.
  2. Phase Transition: HPS is superior to OLS only up to a specific $n_1$ threshold.
  3. Always Negative: HPS consistently performs worse than OLS.
Excess risk of HPS vs. OLS across different task similarity levels ($\mu$).

As shown in the figure above, numerical simulations perfectly match the derived asymptotic formulas. The empirical "U-shaped" error curves observed in practice are captured with high precision, even for finite dimensions (e.g., $p=100$). Furthermore, the authors demonstrate that a "rebalanced" HPS estimator—which weights the source task based on the degree of model shift—can achieve minimax optimal rates.

Conclusion and Future Work

This paper establishes the first precise asymptotic limits for the bias and variance of HPS under arbitrary covariate shifts. While the current work is limited to linear regression and assumes Gaussian covariates for precise bias limits, it provides a robust framework for future exploration. Extending these RMT-based asymptotics to non-linear models, deep neural networks, and a full characterization of "Soft Parameter Sharing" (SPS) remains a promising direction for future research.

Summary updated

Abstract

We consider the problem of transfer learning -- gaining knowledge from one source task and applying it to a different but related target task. A fundamental question in transfer learning is whether combining the data of both tasks works better than using only the target task's data (equivalently, whether a "positive information transfer" happens). We study this question formally in a linear regression setting where a two-layer linear neural network estimator combines both tasks' data. The estimator uses a shared parameter vector for both tasks and exhibits positive or negative information transfer by varying dataset characteristics. We characterize the precise asymptotic limit of the prediction risk of the above estimator when the sample sizes increase with the feature dimension proportionally at fixed ratios. We also show that the asymptotic limit is sufficiently accurate for finite dimensions. Then, we provide the exact condition to determine positive (and negative) information transfer in a random-effect model, leading to several theoretical insights. For example, the risk curve is non-monotone under model shift, thus motivating a transfer learning procedure that progressively adds data from the source task. We validate this procedure's efficiency on text classification tasks with a neural network that applies a shared feature space for both tasks, similar to the above estimator. The main ingredient of the analysis is finding the high-dimensional asymptotic limits of various functions involving the sum of two independent sample covariance matrices with different population covariance matrices, which may be of independent interest.
BibTeX
@misc{zhang2020sharp,
  author = {Hongyang R. Zhang and Fan Yang and Sen Wu and Weijie J. Su and Christopher Ré},
  title = {{Sharp Bias-variance Tradeoffs of Hard Parameter Sharing in High-dimensional Linear Regression}},
  year = {2020},
  eprint = {2010.11750},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2010.11750},
}
Figure