betaFeedback

WorksMathematics

The Geometry of Multitask Learning: Sharp Rates for Shared Subspace Estimation

Abstract

Learning a shared subspace in multitask learning is an important statistical problem, yet exact rates remain poorly understood in many of the formal settings considered in the literature. To address this gap, which arises from limitations of existing upper-bound techniques, we propose a general multitask lemma. The lemma provides sufficient conditions for fast subspace estimation in generic multitask settings, in the form of geometric conditions on the task regression functions and their estimators. We subsequently show that the multitask lemma yields sharp minimax rates—previously unknown—for linear regression and classification in the regimes considered, and rates matching up to logarithmic factors for additive-noise regression.

Introduction

Multitask representation learning exploits common structure across a collection of related prediction problems. Rather than learning each task separately in the ambient covariate space, one first estimates a shared low-dimensional representation and then carries out task-specific prediction within that representation. This principle, often referred to as pretraining or feature learning, is now the prevalent approach in modern machine learning: e.g., various downstream tasks such as classification, image segmentation, depth perception across evolving categories of objects all rely on pretrained image features [20, 18, 2] (Zhuang et al. 2025); this is the same with modern text analysis and completion (question answering) with LLMs which all rely on pretrained features of natural language [14, 21, 22, 5]. Multitask representation learning also arises in scientific applications in which the shared representation is itself the inferential target. Examples include identifying common functional patterns across neuroimaging studies [12, 15] (Wang et al. 2026), recovering biological pathways shared across treatment-response problems [Yuan et al., 2016, Wu et al., 2025], and estimating latent risk factors across different financial assets [10, 27].

These modern applications motivate understanding how accurately a shared representation can be learned from data across tasks. We study this question in settings where each task’s regression function ft(x),t∈[T]f_t(x), t \in[T], depends on the covariates only through their projection onto a common low-dimensional subspace V\mathcal{V}. In other words, learning the shared representation amounts to estimating V\mathcal{V} by somehow aggregating data from the collection of tasks. The accuracy of this estimation depends not only on the number of tasks and sample sizes per task, but also on how strongly different directions in V\mathcal{V} are represented across the task collection. A weakly represented direction can become a statistical bottleneck, even when other directions are well represented. The central question of this paper is therefore

How does the geometry of the task collection determine the statistical rate for estimating the shared representation subspace V\mathcal{V}?

Despite extensive work establishing prediction and representation-learning guarantees in multitask settings [1, 19, 13, 25, 23], such a fundamental question is still not well understood, even in basic parametric models, leaving open the optimality or lack-thereof of existing estimation procedures. For instance, in multitask linear regression, where ft(x)=βtTxf_t(x) = \beta_t^\mathsf{T}x and V=span⁡(β1,…,βT)\mathcal{V} = \operatorname{span}(\beta_1,\ldots,\beta_T), exact minimax rates are known only in restrictive isotropic regimes where the nonzero eigenvalues of the task covariance Σβ=1T∑t=1TβtβtT\Sigma_\beta= \frac{1}{T}\sum_{t=1}^{T}\beta_t\beta_t^\mathsf{T} are of comparable order [17, 24]. For multitask nonlinear models with ft(x)=g(βtTx)f_t(x) = g(\beta_t^\mathsf{T}x), including classification and additive-noise regression, existing upper bounds are likewise not sharp, and matching lower bounds are not available [17].

This paper establishes for the first time how the smallest nonzero eigenvalue of the task covariance governs the rate of shared-subspace estimation in several well-studied parametric settings considered in the literature. We obtain sharp minimax rates for linear regression and classification in the regimes considered, and matching rates up to logarithmic factors for additive-noise regression. These results follow from new techniques for deriving tight upper bounds, paired with new lower bounds in nonlinear settings. Furthermore, the analysis yields new insights into the optimality or lack thereof of traditional estimators, including basic algorithmic modifications that lead to optimality in the linear (§ 3.2.1) and nonlinear (Appendix § 14) case.

Problem Formulation

We now formalize the shared-subspace model and notation previewed above. We consider TT prediction tasks. For each task t∈[T]t \in[T], we observe nn independent pairs

{(Xt,i,Yt,i):i∈[n]},\{(X_{t,i},Y_{t,i}) : i \in[n]\},

and the regression function has the shared single-index form

ft(x)=E(Yt∣Xt=x)=g(βtTx),βt∈Rd,(1)f_t(x) = \mathbb{E}(Y_t \mid X_t = x) = g(\beta_t^\mathsf{T}x), \qquad\beta_t \in\mathbb{R}^{d}, \tag*{(1)}

where the link gg is common across tasks. For ease of presentation, we use a common link in the main text; Appendix § 13 considers the more general case of task-dependent links gtg_t. We write

V:=span⁡(β1,…,βT)⊂Rd\mathcal{V} := \operatorname{span}(\beta_1,\ldots,\beta_T) \subset\mathbb{R}^{d}

for the kk-dimensional subspace spanned by the task parameters. The identity link gives linear regression, while suitable nonlinear links cover binary classification and non-linear regression. Throughout the principal results, the rank kk is treated as known and the different task datasets are independent.

As previewed above, the geometry of the task collection is encoded by the task covariance

Σβ:=1T∑t=1TβtβtT,(2)\Sigma_\beta:= \frac{1}{T}\sum_{t=1}^{T}\beta_t\beta_t^\mathsf{T}, \tag*{(2)}

whose range is V\mathcal{V}. Let λ1≥⋯≥λk>0\lambda_1 \ge\cdots\ge\lambda_k > 0 denote its nonzero eigenvalues. The smallest nonzero eigenvalue λk\lambda_k measures the strength of the weakest represented direction. A small λk\lambda_k means that some direction in V\mathcal{V} is only weakly expressed across the task collection, making the full subspace difficult to identify even when other directions are strongly represented.

For a subspace U⊂Rd\mathcal{U} \subset\mathbb{R}^{d}, let ΠU\Pi_{\mathcal{U}} denote the orthogonal projector onto U\mathcal{U}. We measure the error in estimating V\mathcal{V} using the operator sine-theta loss

sin⁡Θ(V^,V):=∥ΠV^−ΠV∥op.\sin_{\Theta}(\widehat{\mathcal{V}},\mathcal{V}) := \lVert\Pi_{\widehat{\mathcal{V}}} - \Pi_{\mathcal{V}} \rVert_{\mathrm{op}}.

The sin⁡Θ\sin_{\Theta} error naturally upper-bounds the downstream prediction risk. In particular, Proposition 2.2 shows that the excess squared prediction loss on a downstream task—after projection onto V^\widehat{\mathcal{V}}—can be upper-bounded by the sum of sin⁡Θ2(V^,V)\sin_{\Theta}^{2}(\widehat{\mathcal{V}},\mathcal{V}) and estimation error. For instance, for least-squares linear regression with mm samples from the downstream task, under the assumptions of Remark 2.3, such a downstream upper bound takes the form

O(km+sin⁡Θ2(V^,V)).O\left(\frac{k}{m} + \sin_{\Theta}^{2}(\widehat{\mathcal{V}},\mathcal{V})\right).

It follows that, to improve performance in downstream regression, e.g., achieve an excess risk of O(k/m)O(k/m) down from the usual high-dimensional rates of O(d/m)O(d/m), it suffices to estimate V\mathcal{V} at a rate sin⁡Θ2(V^,V)=O(k/m)\sin_{\Theta}^{2}(\widehat{\mathcal{V}},\mathcal{V}) = O(k/m). However, the optimal rate for estimating V\mathcal{V} remains unclear despite much work on the subject.

Indeed, even in the basic linear-regression setting, where ft(x)=βtTxf_t(x) = \beta_t^\mathsf{T}x, existing upper and lower bounds on sin⁡Θ(V^,V)\sin_{\Theta}(\widehat{\mathcal{V}},\mathcal{V}) leave a potentially large gap in terms of the dependence of the spectrum of Σβ\Sigma_\beta (i.e., the geometry of task parameters βt\beta_t), especially in regimes where λ1≫λk\lambda_1 \gg\lambda_k, i.e., when not all directions in V\mathcal{V} are well represented in the data. In particular, previous works either assume λ1≍λk\lambda_1 \asymp\lambda_k [24], i.e., that somehow all directions in the unknown subspace V\mathcal{V} are equally represented, or show upper-bounds of the form

[λ1dλk2nT+dλk2n2T]∧1.(3)\left[\sqrt{\frac{\lambda_1 d}{\lambda_k^2 nT}}+\sqrt{\frac{d}{\lambda_k^2 n^2T}}\right]\wedge1. \tag*{(3)}

while the best known lower-bounds of Niu et al. [ [17] suggest the faster rates (removing a factor λ1/λk\sqrt{\lambda_1/\lambda_k})

R⋆(d,T,n,λk):=[dλknT+dλk2n2T]∧1.(4)\mathcal{R}_{\star}(d,T,n,\lambda_k):=\left[\sqrt{\frac{d}{\lambda_k nT}}+\sqrt{\frac{d}{\lambda_k^2 n^2T}}\right]\wedge1. \tag*{(4)}

Optimal rates (and therefore procedures) are even less understood in more general settings (1) with nonlinear link functions gg. Namely, while various works such as [17] establish upper-bounds of the form (3), no lower-bounds are known in general settings.

The following simple example highlights the importance of this gap, by relating λ1,λk\lambda_1,\lambda_k more concretely to (the a priori unknown) geometry of βt\beta_t’s.

Example 1. Assume nn samples per task, and consider the following simple linear regression example: let V=span⁡{e1,e2}⊂Rd\mathcal{V}=\operatorname{span}\{e_1,e_2\}\subset\mathbb{R}^d, and suppose that (T−1)(T-1) tasks have unknown βt\beta_t equal to e1e_1 while only one task has βt=e2\beta_t=e_2. Intuitively the direction e2e_2 is thus harder to identify, and hence, so is V\mathcal{V}. Such difficulty in identifying the rare direction e2e_2 is encoded in the top two non-zero eigenvalues of Σβ\Sigma_\beta, namely, λ1=1−1T\lambda_1=1-\frac{1}{T} and λ2=1T\lambda_2=\frac{1}{T}. We can now get a qualitative sense of the gap between the above upper and lower-bounds: the upper-bound in (3) specializes here to λ1d/λ22nT≈dT/n\sqrt{\lambda_1d/\lambda_2^2nT}\approx\sqrt{dT/n}, which becomes vacuous as TT grows toward nn; instead, if an upper bound matching the lower-bound (4) were achievable, it would yield, for this example much faster rates of the form d/λ2nT=d/n\sqrt{d/\lambda_2nT}=\sqrt{d/n}, when T=O(n)T=O(n), or of the form dT/n2\sqrt{dT/n^2} when T=Ω(n)T=\Omega(n), i.e., still considerably faster than dT/n\sqrt{dT/n}.

From the example, we see that the gap is consequential on how much information might be pulled out of the TT tasks, i.e., we could get significantly further speedup in downstream prediction tasks if it turns out that the lower bound (4) is in fact achievable in any of the settings considered.

Our Contribution

Our main aim in this work is to provide a general theoretical framework for deriving sharp rates for shared representation learning across multiple tasks, that properly account for the geometry of the tasks, and provide insight on the design of procedures that achieve these rates. Within this framework, we characterise the minimax rate of estimation for V\mathcal{V} in several canonical parametric settings with regression functions of the form ft(x):=g(βtTx)f_t(x):=g(\beta_t^\mathsf{T}x), t∈[T]t\in[T]. Our main contributions are summarized below.

  • Multitask Lemma. We start with a generic estimation result that applies to general multitask settings with unknown V\mathcal{V}, as defined in Section 1.1, and is agnostic to the choice of task statistics β^t\widehat{\beta}_t, t∈[T]t\in[T]. Such task statistics β^t\widehat{\beta}_t may directly estimate βt\beta_t or may instead estimate suitable surrogates β~t:=E[β^t]\widetilde{\beta}_t:=\mathbb{E}[\widehat{\beta}_t] of βt\beta_t’s, provided V\mathcal{V} can be recovered from V~:=span⁡{β~t}t∈[T]\widetilde{\mathcal{V}}:=\operatorname{span}\{\widetilde{\beta}_t\}_{t\in[T]}. The importance of this result, as we will see, is in providing useful guidance in designing problem-specific task statistics β^t\widehat{\beta}_t, so as to yield tighter rates of estimation than previously known when instantiated in various settings of interest, e.g., in linear and generalized linear regression and classification settings as alluded to above. For simplicity, we refer to this generic result as a multitask lemma.

References

  1. [1]J. Baxter. A model of inductive bias learning. Journal of Artificial Intelligence Research, 12:149–198, 2000.DOI
  2. [2]D. Bolya, P.-Y. Huang, P. Sun, J. H. Cho, A. Mадotto, C. Wei, T. Ma, J. Zhi, J. Rajasegaran, H. Bangalath, J. Wang, M. Monteiro, H. Xu, S. Dong, N. Ravi, S.-W. Li, P. Dollár, and C. Feichtenhofer. Perception encoder: The best visual embeddings are not at the output of the network. In Advances in Neural Information Processing Systems, volume 38, 2025. doi: 10.52202/085713-2036.DOI
  3. [3]T. T. Cai and A. Zhang. Rate-optimal perturbation bounds for singular subspaces with applications to high-dimensional statistics. The Annals of Statistics, 46(1):60–89, 2018.arxiv.org/abs/1605.00353
  4. [4]K. Chua, Q. Lei, and J. D. Lee. How fine-tuning allows for effective meta-learning. In Advances in Neural Information Processing Systems, volume 34, 2021.arxiv.org/abs/2105.02221
  5. [5]H. W. Chung, L. Hou, S. Longpre, B. Zoph, Y. Tay, W. Fedus, Y. Li, X. Wang, M. Dehghani, S. Brahma, A. Webson, S. S. Gu, Z. Dai, M. Suzgun, X. Chen, A. Chowdhery, A. Castro-Ros, M. Pellat, K. Robinson, D. Valter, S. Narang, G. Mishra, A. Yu, Y. Zhao, Y. Huang, A. Dai, H. Yu, S. Petrov, E. H. Chi, J. Dean, J. Devlin, A. Roberts, D. Zhou, Q. V. Le, and J. Wei. Scaling instruction-finetuned language models. Journal of Machine Learning Research, 25(70):1–53, 2024.
  6. [6]L. Collins, H. Hassani, A. Mokhtari, and S. Shakkottai. Exploiting shared representations for personalized federated learning. In International conference on machine learning, pages 2089–2099. PMLR, 2021.arxiv.org/abs/2102.07078
  7. [7]L. Collins, H. Hassani, M. Soltanolkotabi, A. Mokhtari, and S. Shakkottai. Provable multi-task representation learning by two-layer ReLU neural networks. In Proceedings of the 41st International Conference on Machine Learning, volume 235 of Proceedings of Machine Learning Research, pages 9292–9345, 2024.arxiv.org/abs/2307.06887
  8. [9]J. C. Duchi, V. Feldman, L. Hu, and K. Talwar. Subspace recovery from heterogeneous data with non-isotropic noise. In Advances in Neural Information Processing Systems, volume 35, 2022.arxiv.org/abs/2210.13497
  9. [10]M. Lettau and M. Pelger. Estimating latent asset-pricing factors. Journal of Econometrics, 218(1):1–31, 2020.
  10. [11]K.-C. Li and N. Duan. Regression analysis under link violation. The Annals of Statistics, 17(3):1009–1052, 1989. doi: 10.1214/aos/1176347254.DOI
  11. [12]A. F. Marquand, M. Brammer, S. C. R. Williams, and O. M. Doyle. Bayesian multi-task learning for decoding multi-subject neuroimaging data. NeuroImage, 92:298–311, 2014. doi: 10.1016/j.neuroimage.2014.02.008.DOI
  12. [13]A. Maurer, M. Pontil, and B. Romera-Paredes. The benefit of multitask representation learning. Journal of Machine Learning Research, 17(81):1–32, 2016.arxiv.org/abs/1505.06279
  13. [14]B. McCann, N. S. Keskar, C. Xiong, and R. Socher. The natural language decathlon: Multitask learning as question answering. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics, pages 1177–1186, 2018.arxiv.org/abs/1806.08730
  14. [15]A. Mensch, J. Mairal, B. Thirion, and G. Varoquaux. Extracting representations of cognition across neuroimaging studies improves brain decoding. PLOS Computational Biology, 17(5):e1008795, 2021. doi: 10.1371/journal.pcbi.1008795.DOI
  15. [16]P. Naik and C.-L. Tsai. Partial least squares estimator for single-index models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 62(4):763–771, 2000. doi: 10.1111/1467-9868.00262.DOI
  16. [17]X. Niu, L. Su, J. Xu, and P. Yang. Learning with shared representations: Statistical rates and efficient algorithms. arXiv preprint arXiv:2409.04919, 2024. Version 3, revised November 22, 2025.arxiv.org/abs/2409.04919
  17. [18]M. Oquab, T. Darcet, T. Moutakanni, H. Vo, M. Szafraniec, V. Khalidov, P. Fernandez, D. Haziza, F. Massa, A. El-Nouby, M. Assran, N. Ballas, W. Galuba, R. Howes, P.-Y. Huang, S.-W. Li, M. Misra, M. Rabbat, V. Sharma, G. Synnaeve, H. Xu, H. Jégou, J. Mairal, P. Labatut, A. Joulin, and P. Bojanowski. DINOv2: Learning robust visual features without supervision. Transactions on Machine Learning Research, 2024.arxiv.org/abs/2304.07193
  18. [19]M. Pontil and A. Maurer. Excess risk bounds for multitask learning with trace norm regularization. In Proceedings of the 26th Annual Conference on Learning Theory, volume 30 of Proceedings of Machine Learning Research, pages 55–76, 2013.
  19. [20]A. Radford, J. W. Kim, C. Hallacy, A. Ramesh, G. Goh, S. Agarwal, G. Sastry, A. Askell, P. Mishkin, J. Clark, G. Krueger, and I. Sutskever. Learning transferable visual models from natural language supervision. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 8748–8763, 2021.arxiv.org/abs/2103.00020
  20. [21]C. Raffel, N. Shazeer, A. Roberts, K. Lee, S. Narang, M. Matena, Y. Zhou, W. Li, and P. J. Liu. Exploring the limits of transfer learning with a unified text-to-text transformer. Journal of Machine Learning Research, 21(140):1–67, 2020.arxiv.org/abs/1910.10683
  21. [22]V. Sanh, A. Webson, C. Raffel, S. H. Bach, L. Sutawika, Z. Alyafeai, A. Chaffin, A. Stiegler, A. Raja, M. Dey, M. S. Bari, C. Xu, U. Thakker, S. Sharma, E. Szczecɡhla, T. Kim, G. Chhablani, N. Nayak, D. Datta, J. Chang, M. T.-J. Jiang, H. Wang, M. Manica, S. Shen, Z. X. Yong, H. Pandey, R. Bawden, T. Wang, T. Neeraj, J. Rozen, A. Sharma, A. Santilli, T. Fevry, J. A. Fries, R. Teehan, T. Le Scao, S. Biderman, L. Gao, T. Wolf, and A. M. Rush. Multitask prompted training enables zero-shot task generalization. In International Conference on Learning Representations, 2022.arxiv.org/abs/2110.08207
  22. [23]K. K. Thekumparampil, P. Jain, P. Netranalli, and S. Oh. Statistically and computationally efficient linear meta-representation learning. In Advances in Neural Information Processing Systems, volume 34, 2021.
  23. [24]Y. Tian, Y. Gu, and Y. Feng. Learning from similar linear representations: Adaptivity, minimaxity, and robustness. Journal of Machine Learning Research, 26(187):1–125, 2025.
  24. [25]N. Tripuraneni, C. Jin, and M. Jordan. Provable meta-learning of linear representations. In Proceedings of the 38th International Conference on Machine Learning, volume 139 of Proceedings of Machine Learning Research, pages 10434–10443, 2021.arxiv.org/abs/2002.11684
  25. [26]R. Vershynin. High-Dimensional Probability: An Introduction with Applications in Data Science. Cambridge University Press, 2018.
  26. [27]R. Wan, Y. Li, W. Lu, and R. Song. Mining the factor zoo: Estimation of latent factor models with sufficient proxies. Journal of Econometrics, 239(2):105386, 2024. doi: 10.1016/j.jeconom.2022.08.013.DOI

Paper details

vlnc:W_d2nvmyju
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 4

downloads · 1

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents