Abstract
We consider the problem of learning -- gaining knowledge from one source task and applying it to a different but related target task. A fundamental question in learning is whether combining the data of both tasks works better than using only the target task's data (equivalently, whether a 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 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 in a random-effect model, leading to several theoretical insights. For example, the risk curve is non-monotone under model shift, thus motivating a 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.
Introduction
In transfer learning, practitioners aim to improve a model for a "target task" by leveraging data from a related "source task." While this approach is a cornerstone of modern machine learning, it frequently encounters the phenomenon of negative transfer: a scenario where including source data actually degrades performance compared to using target data alone.
The difficulty in predicting transfer outcomes stems from the complex interplay between covariate shift (differences in input distributions) and model shift (differences in the underlying relationship between inputs and labels). This paper provides a rigorous mathematical framework using Random Matrix Theory (RMT) to derive precise high-dimensional asymptotics, offering exact formulas for bias and variance to determine when transfer is beneficial.
Theoretical Framework and Methods
The study focuses on a classical Hard Parameter Sharing (HPS) estimator. In this setup, a single parameter vector $\beta$ is learned by minimizing the combined squared error of both the source and target tasks. To find exact performance limits, the authors employ RMT and Free Probability in the proportional limit, where the number of samples ($n_1, n_2$) and the number of features ($p$) go to infinity at fixed ratios.
A significant technical contribution of this work is the derivation of "local laws" for the sum of two independent sample covariance matrices with distinct population covariances. This allows for a precise bias-variance decomposition of the Excess Risk, revealing how source data simultaneously reduces variance while potentially increasing bias due to model divergence.
The Phase Transition of Negative Transfer
One of the most striking findings is the mathematical proof of a "dichotomy" in transfer performance based on the distance ($\mu$) between source and target models. The relationship between the amount of source data ($n_1$) and the excess risk is not always monotonic.
As illustrated in the figure above, three distinct regimes emerge:
- Always Positive: When $\mu$ is small, adding source data consistently reduces risk.
- Always Negative: When $\mu$ is large, any amount of source data increases risk.
- Phase Transition: In the intermediate regime, transfer helps initially (reducing variance), but as $n_1$ increases, the bias eventually dominates, causing the risk to rise. This U-shaped curve suggests that there is an optimal, finite amount of source data to include.
Key Insights and Results
- The Covariate Shift Paradox: Covariate shift is not always a hindrance. When target samples are scarce ($n_1 < n_2$), a different source distribution can stabilize the covariance matrix's spectrum, potentially lowering overall risk.
- Precise Asymptotic Formulas: The paper provides exact limits for variance and bias (Theorems 3 and 6) as functions of the singular values of the shift matrices. These formulas match empirical results almost perfectly, even at relatively small dimensions ($p=100$).
- Minimax Optimality: The authors prove a matching lower bound (Theorem 9), demonstrating that an adjusted transfer learning procedure—which may involve reweighting or downsizing the source task—can achieve the minimax optimal rate.
Conclusion
By moving beyond loose upper bounds to precise asymptotics, this work provides a foundational understanding of the mechanics of information transfer. While the current analysis is centered on linear regression and under-parameterized regimes, it sets the stage for extending these RMT-based insights to non-linear neural networks and the complex "double descent" phenomena observed in over-parameterized models.
Summary updated