Transfer learning improves ridge regression with optimal scaling rates
Minimax-optimal Scaling Laws in Ridge Regression via Transfer Learning
Machine Learning
Summary
This paper looks at how starting with a pretrained model can help improve predictions when training a new model on related data, specifically in high-dimensional regression tasks. The authors analyze a two-step approach where a model fit on source data is fine-tuned with a regularization linked to the original model. They find a scenario where this transfer approach achieves the best possible speed of improvement as more data is added, and that the best way to regularize depends only on the source data. They also show that a simple training method called stochastic gradient descent can reach this optimal performance. Experiments back up their theoretical findings.
What this means in practice
- •For machine learning engineers: Improve model accuracy on related tasks by reusing pretrained regression models with targeted fine-tuning.
- •For data scientists: Optimize transfer learning strategies in high-dimensional regression problems by tuning source regularization independent of target data.
Authors
Yalda Shabanzadeh, Diyuan Wu, Marco Mondelli
Abstract
Pretrained models are often reused across downstream tasks, motivating the question of whether this transfer learning procedure can provide a substantial performance improvement, namely, in terms of the scaling law. We address this question in the prototypical setting of high-dimensional regression, where (i) a pretrained \emph{source} model is trained via ridge regression, and (ii) a fine-tuned \emph{target} model is regularized via the $L_2$ distance from the source estimator. First, we establish a deterministic equivalent for the risk of this two-step procedure under both model and covariance shift. Next, by specializing the deterministic equivalent to a shared regression function and commuting power-law covariance spectra, we identify a regime where the resulting scaling law achieves the minimax-optimal exponent. Notably, in this regime, the optimal source regularization depends on source data only, indicating its universality across all targets. Furthermore, we show that the same optimal rate is achieved by performing the fine-tuning step via one-pass stochastic gradient descent. We support our theoretical analysis via experiments on both synthetic settings and language models.