Skip to main content
NIHPA Author Manuscripts logoLink to NIHPA Author Manuscripts
. Author manuscript; available in PMC: 2026 Oct 7.
Published in final edited form as: J Mach Learn Res. 2026;27:94.

Transfer Learning via Regularized Random-effects Linear Discriminant Analysis

Hongzhe Zhang 1, Arnab Auddy 2, Hongzhe Li 3
PMCID: PMC13641122  NIHMSID: NIHMS2192745  PMID: 42841065

Abstract

Linear discriminant analysis is a widely used method for classification. However, the high dimensionality of predictors combined with small sample sizes often results in large classification errors. To address this challenge, it is crucial to leverage data from related source models to enhance the classification performance of a target model. This paper proposes a transfer learning approach via regularized random-effects linear discriminant analysis, where the discriminant direction is estimated as a weighted combination of ridge estimates obtained from both the target and source models. Multiple strategies for determining these weights are introduced and evaluated, including one that minimizes the estimation risk of the discriminant vector and another that minimizes the classification error. Utilizing results from random matrix theory, we explicitly derive the asymptotic values of these weights and the associated classification error rates in the high-dimensional setting, where the aspect ratio γ≔p/n as p,n→∞, with p representing the predictor dimension and n the sample size. Extensive numerical studies, including simulations, the analysis of the proteomics-based cardiovascular disease risk classification and the lipid traits classification problem with genotype data, demonstrate the effectiveness of the proposed approach.

Keywords: Covariate shift, Estimation risk, High dimension, Prediction risk, Random matrix theory, Regularization

1. Introduction

Large and diverse data sets are ubiquitous in modern applications, including those in genomics and medical decisions. It is of significant interest to integrate different data sets to obtain more accurate parameter estimates or to make a more accurate prediction or classification of an outcome. The success of a supervised statistical learning method relies on the availability of training data. When data is scarce, choosing an appropriately flexible model becomes critical to achieving optimal prediction accuracy. This is a classic illustration of the well-known “bias-variance tradeoff”. When building a prediction model for a target population, many auxiliary source data sets may exist and provide additional information for building the model for the target population. Modern techniques in the field of transfer learning (Pan and Yang, 2009; Weiss et al., 2016) aim to exploit these additional information. Given a target problem to solve, transfer learning (Torrey and Shavlik, 2010) aims at transferring the knowledge from different but related samples or studies to improve the learning performance of the target problem. In biomedical studies, some clinical or biological outcomes are hard to obtain due to ethical or cost issues, in which case transfer learning can be leveraged to boost the prediction and estimation performance by effectively utilizing information from related studies. Other relevant approaches include meta-learning (Peng, 2020; Huisman et al., 2021), domain adaptation (Redko et al., 2020; Sun et al., 2015), and, more recently, continual learning (De Lange et al., 2021).

In the high dimensional setting, Li et al. (2022, 2023) developed transfer learning methods for sparse high dimensional regressions and demonstrated that one can improve predictions of gene expression levels using data across different tissues. Such sparse models work well when the true models are sparse and the sample sizes are large. However, there are settings where sparse model assumption may not be valid. In genetics, estimating polygenetic risk scores (prss) using genome-wide genotype data (Mak et al., 2017; Torkamani et al., 2018) is an active area of research. Such prss can be used in risk stratification, or can be treated as risk factors in population health studies. However, due to very large number of genetic variants but relatively small sample sizes, building a prs model that accurately predicts the prs scores is challenging. Alternatively, ridge regression, which does not require the sparseness assumption, but can handle the linkage disequilibrium among the genetic variants, provides a viable method for prs prediction. Zhang and Li (2023) studied the estimation and prediction of random coefficient ridge regression in the setting of transfer learning, where in addition to observations from the target model, source samples from different but possibly related regression models are available. The informativeness of the source model to the target model can be quantified by the correlation between the regression coefficients.

The method of Zhang and Li (2023) is developed for continuous outcomes. In this paper, we propose a transfer learning framework for regularized linear discriminant analysis (RDA) (Friedman, 1989), which we term TL-RDA. Our model assumes a random classification weights setup, where the means of the covariates between two classes differ by a random quantity, δ, with zero mean and constant variance. The auxiliary and target populations are related through the correlation structure of δ. The TL-RDA framework aims to estimate the Bayes optimal predictor by combining naive RDA estimates from both the auxiliary and target populations through a weighted summation. The weights are designed to minimize the distance between the TL-RDA estimator and the Bayes optimal direction in a high-dimensional setting, where the number of features p grows proportionally to the sample size n in all populations. We derive the explicit asymptotic error rate for TL-RDA and show that it achieves the lowest error rate among all estimators based on weighted summations, including naive RDA using only target population data.

Several other LDA–style transfer learning methods have been proposed, but differ in the way of incorporating the source discriminant information. Yang and Gao (2013) derive the multi-view discriminant vectors through a single generalized-eigenvalue problem that maximizes the inter-view correlation while reducing domain discrepancy. Wang et al. (2020) imposes a group-sparse Bayesian prior on discriminant weights to select and linearly combine the informative source domains. Han et al. (2020); Liu et al. (2023) reformulate the classical LDA to learn explicitly the domain-invariant projections. They also augment Fisher's between-/within-class scatter ratio with a distribution-alignment regularizer that forces the projected source and target means and covariances to match. However, none of these methods has been analyzed in the high-dimensional random effects regime, and none aggregates source information by explicitly minimizing the target-domain prediction risk; which are two aspects that are central to our proposed TL-RDA.

A separate stream of work chooses to fuse or shrink parameters across populations with different objectives. In multi-task learning frameworks, discriminant directions or regression coefficients are encouraged to be close by adding fused penalties (Price and al., 2014; Okazaki and Aoyagi, 2024; Lozano and Swirszcz, 2012). These methods minimize a joint loss over all tasks, seeking a model that performs reasonably well simultaneously across domains. Komárek and Lesaffre (2010) proposes a related random-effects LDA that pools information through hierarchical priors from a Bayesian perspective. In the domain-adaptation literature, hypothesis-weighting techniques combine pre-trained source classifiers by shrinking the weights toward a simplex that balances average source risk (Mansour et al., 2009). Closer in spirit to our work, Gu et al. (2024) moves a high-dimensional ridge estimate toward multiple source coefficients along geodesic paths, with step-sizes chosen to minimize an asymptotic proxy for the target prediction error. Their analysis, however, is confined to linear regression and assumes access only to fitted source coefficients. A complementary direction is to bypass parameter fusion and instead learn latent features whose label–relationship is invariant across environments (Peters et al., 2016; Arjovsky et al., 2019). Such invariance-seeking objectives inevitably trade off target-specific accuracy, while TL-RDA tailors an optimized discriminant vector for the single target population.

The remainder of the paper is organized as follows. We first provide a detailed problem setup and outline the proposed TL-RDA approach in Section 2. We then introduce various types of weights used to integrate auxiliary information, followed by the technical assumptions required for analyzing the estimator in the context of random matrix theory in Section 3. In Section 4, we present the analysis of TL-RDA in the proportional regime, providing explicit asymptotic expressions for the different weighting schemes, along with their corresponding error rates. Section 5 offers interpretations of these weights and guidance on how users can select the most appropriate weights for their applications. In the first five sections, we have assumed all populations share the same population covariance matrix. Section 6 extends the TL-RDA to a heterogeneous population covariance matrix set up. In Section 7, we evaluate the proposed methods on two tasks: (i) cardiovascular-disease classification using proteomics data from the Chronic Renal Insufficiency Cohort (CRIC), and (ii) binary lipid traits prediction using gene-expression data from the Penn Medicine BioBank (PMBB). Section 8 offers a brief discussion.

2. Transfer Learning via Regularized Discriminant Analysis

We consider the setting of two-class LDA in the setting of transfer learning, where we have data observed from both the target model, indexd by K, and K-1 source models, indexed by k=1,⋯,K-1. We assume that all models, k=1,⋯,K, follow the classic two-class Gaussian mixture model. More specifically, for i=1,…,nk and k=1,…,K,

yk∈-1,+1Pyk=±1=π±1Xki∣yk~Nμy,k,Σ. (1)

Here Xki,i=1,⋯,nk is a p–dimensional vector, and for ease of notation, we write Xk=Xk1Xk2…Xknk⊤∈Rnk×p as a nk×p dimensional matrix. For simplicity of notation, we assume that the mixing proportions π±1 remain the same across populations. In fact, without much loss of generality, we mainly discuss the simpler case π-1=π+1=1/2. The more general case can be managed in a similar manner without significant technical difficulty (Appendix C). Moreover, in most of the paper, we assume the population covariance matrix are the same for all K populations, and are denoted by Σ. This assumption is relaxed in Section 6 where we allow each population to have their own covariance matrix Σk for k=1,…,K.

Under this set up, the Bayes optimal prediction direction for the target population K (Anderson, 1958) is given by,

dBayes≔Σ-1δKwhereμ‾K=μ+1,K+μ-1,K2forμ±1,K=μ‾K±δK,

and δK=μ+1,K-μ-1,K/2. The Bayes prediction for a testing data point x0 from population K is

y^Bayesx0=signdBayes⊤x0-μ‾K.

The regularized discriminant analysis (RDA) classifier uses an empirical version of the unkown Bayes direction. The RDA classifier for population k is a linear classifier

y^RDA,kx0=signd^k⊤x0+b^k,

where we use the plug-in estimates for the population parameters Σk and δk as follows:

d^k=Σ^k+λkIp-1δ^k
b^k=-δ^k⊤Σ^k+λkIp-1μ^-1,k+μ^+1,k/2
μ^±1,k=2nk∑i:yki=±1Xkiδ^k=μ^+1,k-μ^-1,k2
Σ^k=1nk-2∑i=1nkXki-μ^yki,kXki-μ^yki,k⊤.

Here Σ^k is the usual sample covariance matrix, while μ^±1,k,δ^k are simple estimators and the population-level counterpart μ±1,k,δk. The sample covariance matrix is penalized on its diagonal to overcome the overwhelming variances in this estimation when p grows proportionally with n. As the penalization parameter λk goes to zero or infinity, this classifier recover the Fisher's discriminant analysis or the naive Bayes method (Bickel and Levina, 2004).

To utilize the underlying relatedness of the RDA problems in K populations, for a vector of weights w∈RK, we now define a classifier based on a weighted linear combination of the population specific discriminator vectors d^ks as follows:

d^w=∑k=1Kwkd^k.

Note that taking the co-ordinate basis vectors as weights, i.e., w=ek∈RK, we end up with the population specific discriminant directions d^ek=d^k for k=1,…,K. Now using the weighted combination discriminant vector we define the transfer-learning (TL) classifier

y^wx0=signd^(w)⊤x0+b^K (2)

where x0∈Rp is a test point in the target population. We call this TL-RDA. We use the regular intercept term b^K as all intercept terms are asymptotically zero in the regime considered.

We formulate two criteria to be optimized over w. Let us recall the Bayes classification direction dBayes. Now for a testing data pair x0,y0 sampled from population K, we consider the two errors:

dBayes-∑k=1Kwkd^k22, (3)
Ex0dBayes-∑k=1Kwkd^k⊤x02. (4)

The first criteria compares the transfer-learning classifier (TL-RDA) with the Bayes optimal classifier in terms of the estimation error, while the second criteria compares the two classifiers in terms of their prediction errors. In later sections, we present explicit solutions for optimal w that optimizes the two criteria above. Though none of (3) or (4) is explicitly related to prediction error rate, we show the optimal weight that minimizes (4) also minimizes the prediction error rate in the target population. We will also show the weights that minimizes these two criteria, are in fact related to one another.

In addition, we assume that the population covariance matrix are the same for all K populations (assumption 1). With this in mind, a natural way to further exploit mutual information across populations is to use a pooled sample covariance for all discriminant directions d^k. We write Σ^P to denote the pooled sample covariance matrix

Σ^P=∑k=1K∑i=1nkXki-μ^yi,kXki-μ^yi,k⊤/∑k=1Knk-2.

We then define the pooled classification weights and pooled transfer learning regularized discriminant analysis (TLP-RDA) estimator as

y^wPx0=signd^P(w)⊤x0+b^K (5)

where the direction estimates d^kP are now estimated using the pooled covariance matrix as follows

d^kP≔Σ^P+λkIp-1δ^kandd^Pw≔∑k=1Kwkd^kP.

Once again using (3) and (4), we can optimize w in y^wPx0 with respect to the two criteria above as well, and we will discuss how to choose between y^wPx0 and y^wx0.

This form of TL estimator (2) has been used in Zhang and Li (2023) and Dobriban and Sheng (2020) for regression methods. Helm et al. (2024) also considers a TL estimator that aggregates auxiliary information by weighted summations of individual discriminant directions. However, their aggregation is less adaptive in the form d^(w)*=ad^K+(1-a)∑k=1K-1d^k/(K-1) where a is a constant. In addition, the final weight a minimizes only empirical quantities and does not guarantee to minimize population-level criteria such as (3) or (4).

3. Random-effects RDA and the Assumptions on Population Parameters

To find the weights that minimize the estimation or prediction risk defined as 3 and 4, we consider random-effects RDA where the population means are random and are potentially correlated across different models. In addition, we also make the random matrix assumptions on the covariance matrix, which allows us to apply the recent advances in random matrix theory to derive the limiting values of the weights and the corresponding classification errors.

3.1. Classification Weights

A key parameter in the two-class classification problem is the classification weights δk that separate the two classes. In this paper, we consider a random classification weights set up formalized below.

Assumption 1 (Random Classification Weights) The following conditions hold for populations k=1,⋯,K.

  1. The class-specific population mean vectors μ-1,k,μ+1,k∈Rp are randomly generated as μ±1,k=μ‾k±δk, where each δk has i.i.d. coordinates with
    Eδki=0Varδki=αk2/pEδki4+η≤Cp2+η
    for fixed C,η>0.
  2. μ‾k are either fixed or randomly distributed independent of δk,Xk,yk. The second moment of μ‾k are bounded almost surely such that lim supp→∞μ‾k/p1/2-ξ≤C for some constants ξ,C>0.

The parameter αk2 here plays the role of signal strength. This key assumption asserts that all coordinates of δk have the same zero mean and diminishing variance, therefore, all coordinates of an observation play equally important roles on determining the response class. This assumption also used by Dobriban and Wager (2018), is standard in the large n, large p regime. In addition, the bounded moment assumptions allow use to circumvent difficulties arise when minimizing criteria (3) and (4) which depends on unknown quantities such as δk,Σ-1 by invoking Lemma A.5. The performance of the TL estimators clearly depends on how the K populations are related. We further pose the correlated classification weight assumption below.

Assumption 2 (Correlated Classification Weights) For k=1,⋯,K the vectors δk are correlated across populations such that Corrδk,δk′=ρkk′Ip,k≠k′.

For most of the paper, we assume that the parameters αk2 and ρk,k′ are known constants. We discuss consistent estimators for these parameters in Appendix B.3.

3.2. Random Matrix Assumption and Related Results

The sample covariance matrix is an important part of the transfer learning estimator. We consider the Marchenko-Pastur type sample covariance matrices as in several relevant works (Dobriban and Wager, 2018; Zhao et al., 2023; Zhang and Li, 2023). For a symmetric matrix, we can characterize its spectral distribution by a cumulative distribution function that places equal point mass on its eigenvalues. Our asymptotic analysis is based on the convergences of spectral distributions of sample covariance matrices, for which the following assumptions are required.

Assumption 3 (rmt assumption) For k=1,⋯,K, the design matrix Xk∈Rnk×p is generated as

Xk=μyk1,kμyk2,k⋯μyknk,k⊤+ZkΣ1/2

for a matrix Zk∈Rnk×p with i.i.d. entries coming from an infinite array. The entries Zkij of Zk satisfy the moment conditions: EZkij=0 and EZkij2=1.

  1. The population covariance matrix Σ∈Rp×p is deterministic. The observations have unit variance, i.e., Σjj=1 for j=1,⋯,p.

  2. The eigenvalues of Σ are uniformly bounded from above and away from zero with constants independent of the dimension p.

  3. The sequence of spectral distributions T≔TΣ,p of Σ≔Σp converges weakly to a limiting distribution H supported on [0,∞), called the population spectral distribution (psd).

For sample covariance Σ^≔(X-EX)⊤(X-EX)/n with X∈Rn×p generated following the Assumption 3, its empirical spectral distribution (esd) is the probability measure

FΣ^ω=1p∑i=1p1λiΣ^≤ω,ω∈R,

where λi(Σ^) is the ith eigenvalue of Σ^. The Marchenko-Pastur theorem (Marchenko and Pastur, 1967) claims that FΣ^ converges weakly (in distribution) to a limiting distribution Fγ≔Fγ(H) supported on [0,∞) with probability 1, where γ is the aspect ratio defined as the limit of p/n→γ as p,n→∞.

Furthermore, for any distribution G supported on [0,∞), we define its Stieltjes transform as

mGz≔∫l=0∞dGll-z,z∈C∖R+. (6)

The esd of sample covariance matrix is uniquely determined by a fixed-point equation for its Stieltjes transform. The limit of the Stieltjes transform for the ESD is given by:

mFΣ^(z)=trΣ^-zIp-1/p→a.s.mFγ(z). (7)

This can be understood by noting that the Stieltjes transform is a smooth, continuous functional of the esd and the esd converges weakly to Fγ.

We continue to define the Stieltjes transform of the limiting spectral distribution of Σ‾≔(X-EX)(X-EX)⊤/p as vFγ(z), called companion Stieltjes transform. For all z∈C∖R+, the Stieltjes transform vFγ(z) is related to mFγ(z) by

γmFγ(z)+1z=vFγ(z)+1z (8)

where γ is the limiting aspect ratio. In addition, we denote by mF′(-λ) the derivative of the Stieltjes transform mF(z) evaluated at z=-λ, where

mFγ′(z)=∫l=0∞dG(l)(l-z)2vFγ′(z)=γmFγ′(z)-1z2+1z2. (9)

In terms of the empirical quantities, similarly we have

mFΣ^′(z)=trΣ^-zIp-2/p→a.s.mFγ′(z).(Bai and Silverstein,2010)

These convergences form the bases on which we develop the limiting error rate and the limiting optimal weights according to criteria (3) and (4).

4. Asymptotic Analysis of Weights and Classification Errors

In this section, we present the expressions for the limiting prediction erorrs and the optimal weights. All formulae are compared with simulated data, and in Appendix B, they are demonstrated to be accurate even under small data sizes.

4.1. Classification Error

Under the two-class Gaussian classification model (Assumption 1), the expected test error of the linear classifier TL-RDA under weight w in target population K can be written as

Err(w)=πK,-Φ(d^(w))⊤μ-1,K+b^K(d^(w))⊤Σ(d^(w))+πK,+Φ-(d^(w))⊤μ1,K+b^K(d^(w))⊤Σ(d^(w))
d^(w)≔∑k=1Kwkd^k

where Φ(⋅) is the cumulative density function of a standard normal distribution and d^(w) is the transfer learning discriminating vector. A simple proof of this formula is given in the Appendix. In this paper, we assume the balanced class such that π+=π-. The proof techniques generalize immediately to unbalanced cases, which is discussed briefly in Appendix C. The limiting form of Err(w) is given by Theorem 4.1 below. Two technical assumptions are required so Zk and the spectrum of Σ are well-behaved.

Assumption 4 (Bounded Moment) Assume for each natural number p, the entries of Z written by Zkij has uniformly bounded p-th moment. That is, there are constants Cp such that

EZkijp≤Cp.

Assumption 5 (Anisotropic Local Laws) Define the cumulative distribution function of H as F(x)=∑i=1pIλi≤x/p, where I(⋅) is the indicator function. Recall λ1≥λ2≥⋯≥λp≥0 are the eigenvalues of Σ. For a arbitrarily small positive constant τ>0, we assume

Fτ≤1-τ.

We are now in position to state the first main result of this section. The following theorem describes the asymptotic classification error for the regularized transfer learning classifier defined in (2). The result holds under the aforementioned model assumptions.

Theorem 4.1 (Asymptotic Classification Error for TL-RDA) Suppose that assumptions 1–2 as well as 4 and 5 hold. Then for a fixed K≥2, as nk,p→∞,p/nk→γk∈(0,∞] for 1≤k≤K, we have that the limiting form of Err(w) for a given weight vector w∈RK is given by:

Φ-u⊤ww⊤𝒜w (10)

where the elements of u∈RK and 𝒜∈RK×K are as follows:

uk=ρkKαkαKmFγk-λkfork=1,…,K,

and

𝒜kk′=αk2vFγk-λk-λkvFγk′-λkγkλkvFγk-λk2+vFγk′-λk-vFγk2-λkλk2vFγk4-λkifk=k′,ρkk′αkαk′ℳkk′otherwise,

for k,k′=1,⋯,K. Here mFγk(⋅), vFγk(⋅) and vFγk′(⋅) are the Stieltjes transform, the companion Stieltjes transform and its derivative respectively, as defined in (6)–(9). Moreover for k,k′=1,⋯,K let ℳkk′ be the constants defined as the following limiting quantities:

trΣ^k+λkIp-1Σ^k′+λk′Ip-1Σ/p→a.s.ℳkk′.

Remark 4.2 The limits of the off-diagonal terms in 𝒜 depends on the interplay of sample covariances in separated populations. Similar terms also appear later in the paper when finding the optimal weight vector (see Theorems 4.5, 4.10). Depending on the specific scenario, the term ℳkk′ has explicit expressions, some of which are presented separately in Lemma A.8.

Remark 4.3 When K=1, writing λ1,γ1,α1,mFγ1-λ1,vFγ1-λ1, and vFγ1′-λ1 as λ,γ,α,m,v and v′ respectively yields

𝒜11=1λ2v2α2v-λv′γ+v′v2-1,

which implies that the limiting misclassification error is given by

Err(w)→Φα2m𝒜11=Φ-α2λmvα2v-λv′γ+v′v2-1-1/2.

This matches exactly with Theorem 3.1 of Dobriban and Wager (2018).

We now consider the classification error of the transfer learning classifier, when using the pooled covariance matrix. Let us replace d^(w) with d^P(w) in Err(w) and define this new function of w as ErrP(w). This gives us the classification error for TLP-RDA given a weight vector w.

Corollary 4.4 (Asymptotic Classification Error for TLP-RDA) Under the same set up as Theorem 4.1, we further define p/∑k=1Knk→γ‾. Then assuming λ1=⋯=λK=λ, we have

ErrP(w)=Φ-uP⊤ww⊤𝒜Pw

where the elements of uP∈RK and 𝒜P∈RK×K are as follows:

uPk=ρkKαkαKmFγ‾-λfork=1,…,K,

and

𝒜Pkk′=αk2vFγ‾(-λ)-λvFγ‾′(-λ)γ‾λvFγ‾(-λ)2+γkvFγ‾′-λk-vFγ‾2(-λ)γ‾λ2vFγ‾4(-λ)ifk=k′,ρkk′αkαk′vFγ‾(-λ)-λvFγ‾′(-λ)γ‾λvFγ‾(-λ)2otherwise,

for k,k′=1,⋯,K. Here mFγ‾(⋅),vFγ‾(⋅) and vFγ‾′(⋅) are the Stieltjes transform, the companion Stieltjes transform and its derivative respectively, as defined in (6)–(9).

In this corollary, we make the assumption that all studies have the same degree of penalization, which brings us the simplified cross terms in 𝒜P and a more amenable expression for 𝒜P as a whole. This assumption might not be reasonable when the signal strengths αk2 are vastly different, as lighter penalization may be given to population with stronger signal strength. In this case, one can use the general formula in Theorem 4.1.

4.2. Minimum Estimation Risk Weight

We firstly present the way to minimize the coordinate-wise estimation error of d^(W) with respect to dBayes.

Theorem 4.5 (Asymptotic Estimation Error Minimization for TL-RDA) Suppose that assumptions 1–2 as well as 4 and 5 hold. Then for a fixed K≥2, as nk,p→∞,p/nk→γk∈(0,∞] for 1≤k≤K, the weight for minimizing the error in estimating the Bayes optimal discriminator dBayes is given by:

wE≔argminwdBayes-∑k=1Kwkd^k22=𝒜E+ℛE-1uE,

where the elements of uE∈RK,𝒜E∈RK×K, and ℛE∈RK×K are:

uEk=ρkKαkαK1λkET-1-mFγk-λk2fork=1,…,K,
𝒜kk′E=αk2mFγk′-λkifk=k′,ρkk′αkαk′ℰkk′otherwise,

and

ℛkk′E=vFγk-λk-λkvFγk′-λkλkvFγk-λk2ifk=k′,0otherwise,

for k,k′=1,⋯,K. Here mFγk(⋅), vFγk(⋅) and vFγk′(⋅) are the Stieltjes transform, the companion Stieltjes transform and its derivative respectively, as defined in (6)–(9), while T is the limiting spectral distribution of the population covariance matrix Σ. Moreover for k,k′=1,⋯,K, let ℰkk′ be the constants defined as the following limiting quantities:

trΣ^k+λkIp-1Σ^k′+λk′Ip-1/p→a.s.ℰkk′.

Just like the expressions for the asymptotic classification rate in Theorem 4.1, more explicit forms of ℰkk′ are available if γk and λk are the same across populations. We call wE the minimum estimation weight, as it minimizes the ℓ2 error in estimating the Bayes optimal discriminating vector dBayes. In order to better illustrate the effect of transfer learning, we consider next a simpler situation where all the sources are homogeneous, in that γ1=γ2=⋯=γK and the corresponding regularization parameters are also the same, i.e., λ1=λ2=⋯=λK. We further assume equal correlation among all sources, i.e., ρkk′=ρ whenever k≠k′.

Corollary 4.6 (Estimation Error for Homogeneous Sources) Under the setup of Theorem 4.5, suppose γ1=γ2=⋯=γK≕γ,λ1=λ2=⋯=λK≕λ, and ρkk′=ρ whenever k≠k′,1≤k,k′≤K. Then the weight vector wE that minimizes the asymptotic error in estimating dBayes is given by:

wE=αK1λET-1-mFγ(-λ)2vec{ρ-ξ+(1-ρ)I(k=K)}αktm,ε,λαk2+tv,λ:1≤k≤K

where ε=ℰ12,tρ,ε,λ≔-ρε+mFγ′(-λ),tv,λ≔vFγ(-λ)-λvFγ′(-λ)λvFγ(-λ)2 and

ξ=ρε∑k=1K{ρ+(1-ρ)I(k=K)}αktm,ε,λαk2+tv,λ1+ρε∑k=1Kαk2tm,ε,λαk2+tv,λ.

The above corollary shows that when all sources have equal sample sizes, and equal correlation, the optimal weight is proportional to αkαK/tm,ε,λαk2+tv,λ. In particular, if αk→0 for some source population, then the corresponding weight for that source increases at the rate of 1/αk. This is intuitive since in the homogeneous setting of equal sample sizes, the signal strength is completely determined by the inverse of the variance of δk, which is precisely 1/αk. For practical usage of the optimal transfer weights, we now turn to the estimation of the above quantities.

Remark 4.7 (Estimating optimal weights) The Marchenko-Pastur law, along with the equations (6), (7), (8), and (9) imply that the sample Stieltjes transform trΣ^k-zIp-1 can be suitably used to estimate the functions mFγk(⋅), vFγk(⋅), and mFγk′(⋅) reliably. We remind the reader that the estimation of αk2 and ρkk′ is tackled in Appendix B.3. Finally, we note that the expression of uE in all the above cases involves the expectation of T-1, and we discuss a consistent estimator for ET-1 in the following proposition, the proof of which is immediate from Corollary 4.2 of Dobriban and Sheng (2021).

The following proposition holds under Assumptions 3.

Proposition 4.8 When γk<1, we have trΣ^k-1/p→a.s.ET-1/1-γk.

Since in our developments so far we have assumed all populations to share the same covariance matrix Σ, one can always use the pooled sample covariance in the estimation scheme above. That means we can reliably estimate ET-1 as long as γ‾<1. We then present the optimal estimation for TLP-RDA, i.e., the transfer learning discriminant analysis done using the pooled covariance matrix.

Corollary 4.9 (Asymptotic Estimation Error Minimization for TLP-RDA) Under the same set up as Theorem 4.5, assuming λ1=⋯=λK=λ, we have

wPE≔argminwdBayes-∑k=1KwkdˆkP22=𝒜PE+ℛPE-1uPE,

where the elements of uPE∈RK,𝒜PE∈RK×K, and ℛPE∈RK×K are:

uPEk=ρkKαkαK1λET-1-mFγ‾(-λ)2fork=1,…,K,

while

𝒜PEkk′=ρkk′αkαk′mFγ‾′(-λ)

and

ℛPEkk′=γkvFγ‾(-λ)-λvFγ‾′(-λ)γ‾λvFγ‾(-λ)2ifk=k′,0otherwise,

for k,k′=1,⋯,K.

Once again we can follow the remark and proposition above for estimating the weight that minimizes the estimation error when using the pooled covariance matrix.

4.3. Minimum Prediction Risk Weight

In the high dimensional regime considered in this paper, a weight minimizing the estimation error does not translate into maximizing the classification score d^(w)⊤x0. We can as well compute the optimal prediction weight by directly minimizing the difference between the TL-RDA classification score and the Bayes classification score. This is precisely the objective of the next theorem.

Theorem 4.10 (Asymptotic Prediction Error Minimization for TL-RDA) Suppose that Assumptions 1–2 as well as 4 and 5 hold. Then for a fixed K≥2, as nk,p→∞,p/nk→γk∈(0,∞] for 1≤k≤K, the weight for minimizing the excess risk, i.e., the error in predicting the class at a random test point x0, when compared to the Bayes optimal discriminator dBayes, is given by:

wP≔argminwEx0dBayes-∑k=1Kwkd^k⊤x02=𝒜P+ℛP-1uP,

where the elements of uP∈RK,𝒜P∈RK×K, and ℛP∈RK×K are:

uPk=ρkKαkαKmFγk-λkfork=1,…,K,
𝒜kk′P=αk2vFγk-λk-λkvFγk′-λkγkλkvFγk-λk2ifk=k′,ρkk′αkαk′ℳkk′otherwise,

and

ℛkk′E=vk′-λk-vk2-λkλk2vk4-λkifk=k′,0otherwise,

for k,k′=1,⋯,K. Here mFγk(⋅),vFγk(⋅) and vFγk′(⋅) are the Stieltjes transform, the companion Stieltjes transform and its derivative respectively, as defined in (6)–(9). Moreover for k,k′=1,⋯,K, let ℳkk′ be the constants defined as the following limiting quantities:

trΣ^k+λkIp-1Σ^k′+λk′Ip-1Σ/p→a.s.ℳkk′.

As in the case of estimation error weights, we discuss the issue of estimating the optimal weight that minimizes prediction error in this setting. Note that unlike the estimation error minimizing weight 𝒲E, the prediction risk minimizing weight 𝒲P, involves no population spectral distribution. It is thus estimable in all cases, including the case when γ>1. On the other hand, estimating ℳkk′ requires more care, especially in the case k=K or k′=K. The following proposition describes the estimation in this case.

Proposition 4.11 We have the following consistent estimators ℳ^kk′ for ℳkk′ separately for three cases:

ℳ^kk′=trΣ^k+λkIp-1Σ^k′+λk′Ip-1Σ^K/pifk≠k′,k≠K,k′≠KtrΣ^k+λkIp-2Σ^K/pifk=k′≠K1pxptrΣ^k′+λk′Ip-1-λKpxptrΣ^K+λKIp-1Σ^k′+λk′Ip-1ifk=K,k′≠K

where xp=xγK,λK is the solution to the equation:

1-xp=γK1-λK∫xpt+λK-1dHK(t)

Then

ℳkk′-ℳ^kk′→a.s.0.

In order to better illustrate the effect of transfer learning, we consider next a simpler situation where all the sources are homogeneous, in that γ1=γ2=⋯=γK and the corresponding regularization parameters are also the same, i.e., λ1=λ2=⋯=λK. We further assume equal correlation among all sources, i.e., ρkk′=ρ whenever k≠k′.

Corollary 4.12 (Prediction Error for Homogeneous Sources) Under the earlier setup of Theorem 4.5, suppose γ1=γ2=⋯=γK≕γ,λ1=λ2=⋯=λK≕λ, and ρkk′=ρ whenever k≠k′,1≤k,k′≤K. Then the weight vector wP that minimizes the asymptotic excess risk is given by:

wP=αKmFγ(-λ)vecρ-ξP+(1-ρ)I(k=K)αktv,ρ,λPαk2+tv,λP:1≤k≤K

where m=ℳ12,tv,ρ,λP≔-mρ+vFγ(-λ)-λvFγ′(-λ)γλvFγ(-λ)2,tv,λP≔v′(-λ)-v2(-λ)λ2v4(-λ) and

ξP=mρ∑k=1K{ρ+(1-ρ)I(k=K)}αk2tv,ρ,λPαk2+tv,λP1+mρ∑k=1Kαk2tv,ρ,λPαk2+tv,λP.

The above corollary shows that when all sources have equal sample sizes, and equal correlation, the optimal weight is proportional to αkαK/tv,ρ,λPαk2+tv,λP. Thus similar to Corollary 4.6, if αk→0 for some source population, then the corresponding weight for that source increases at the rate of 1/αk. This is intuitive since in the homogeneous setting of equal sample sizes, the signal strength is completely determined by the inverse of the variance of δk, which is precisely 1/αk. Finally, since our assumption so far posits the same variance Σ for all populations, we also describe the estimation based on the pooled sample covariance matrix. This is given in the following corollary for the pooled covariance based classifier TLP-RDA.

Corollary 4.13 (Asymptotic Prediction Error Minimization for TLP-RDA) Under the same set up as theorem 4.10, assume λ1=⋯=λK=λ, we have

wPP≔argminwEx0dBayes-∑k=1Kwkd^kP⊤x02=𝒜PP+ℛPP-1uPP

where the elements of uPP∈RK,𝒜PP∈RK×K, and ℛPP∈RK×K are:

uPPk=ρkKαkαKmFγ‾-λfork=1,…,K,

while

𝒜PPkk′=ρkk′αkαk′vFγ‾(-λ)-λvFγ‾′(-λ)γ‾λvFγ‾(-λ)2

and

ℛPPkk′=γkvFγ‾′-λk-vFγ‾2(-λ)γ‾λ2vFγ‾4(-λ)ifk=k′,0otherwise,

for k,k′=1,⋯,K.

The optimal prediction weights wPE,wPP dominate wE,wP respectively in classification error, meaning

ErrwE≥ErrwP,ErrPwPE≥ErrPwPP.

Note that a priori it is not immediate that the weight which minimizes the difference in prediction error from the Bayes optimal direction, also minimizes the classification error. In particular, the accuracy of classification depends on the sign of d^(w)⊤x0, and not the actual value. However, we now show that in addition to optimizing the score d^(w)⊤x0, the prediction weights wP and wPP also minimize the misclassification error. This is formalized by the following proposition.

Proposition 4.14 The optimal prediction weight minimizes the testing data classification error:

wP=argminwEx0,y0Isign(d^(w))⊤x0≠y0,
wPP=argminwEx0,y0Isignd^P(w)⊤x0≠y0.

We conclude this section by validating the existence of the optimal weights. Indeed, the solution to all four types of weights implicitly assume that the matrices 𝒜E+ℛE,𝒜P+ℛP,𝒜PE+ℛPE,𝒜PP+ℛPP are invertible. We prove this is always the case in the following proposition.

Proposition 4.15 (Existence of Optimal Weights) The matrices 𝒜E+ℛE,𝒜P+ℛP,𝒜PE+ℛPE,𝒜PP+ℛPP are invertible, and hence the limiting optimal weights wE,wP,wPE,wPP exist.

We compare the error rates of the four transfer learning estimators under several different scenarios in Appendix B.

4.4. Geometric Interpretation

We now provide some geometric interpretations on the optimal weights derived in the previous subsections. Let us define the following discriminant directions:

dest≔d^wE,derr≔d^wP.

Also recall the Bayes discriminant direction dBayes. These discriminant directions are visualized in Figure 1. The blue plane is the space spanned by linear combinations of the local discriminant directions d^k, and the top black line stands for the Bayes direction, which is not necessarily in the linear span of d^k. Since both the TL-RDA directions dest and derr are linear combinations of d^k, they both lie on the blue plane and are denoted by colored lines. The direction obtained by minimizing the error in estimating dBayes is given by dest, which is the projection of dBayes onto the blue plane, denoting spand^k. The criterion 3 suggests that dest is the minimizer of the OLS loss when fitting dBayes with linear combinations of dk.

Figure 1:

Figure 1:

Geometric interpretations of optimal weights

Denoting the angle between dBayes and d^(w) as θ, we now show that the cosine of θ is directly related to Err(w) accounting for the scaling Σ. Let us define the scaled inner product ⟨a,b⟩Σ=a⊤Σb and the scaled cos angle cosΣ(a,b)=⟨a,b⟩Σ/⟨a,a⟩Σ⟨b,b⟩Σ. Then we have

cosθ≔cosΣ∠d^(w),dBayes=d^(w)⊤δK/d^(w)⊤Σd^(w)δK⊤Σ-1δK=Θ(w)ΘBayes
Θ(w)≔d^(w)⊤δKd^(w)⊤Σd^(w),ΘBayes≔δK⊤Σ-1δK

Recall that Φ(-Θ(w)) is the classification error rate of TL-RDA (Theorem 4.1) and Φ-ΘBayes is the Bayes error rate. This implies that

cosθ=Θ(w)ΘBayes=Φ-1(Err(w))Φ-1ErrBayes.

Since Φ-1(⋅) is a monotonically increasing function, it is clear that cos(θ) is close to one, i.e., θ is close to zero, if and only if Err(w) is close to the Bayes error ErrBayes. Therefore, the size of θ directly quantifies the inefficiency of TL-RDA relative to dBayes in terms of classification error, and wP simultaneously minimizes the classification error and cosθ (Proposition 4.14).

Finally, let us also consider an observation x0 pointing in a random direction, and denote the angle between derr and x0 as β and the angle between dBayes and x0 as α. Straightforwardly, derr minimizes the difference between β and α as wP minimizes the difference between the inner products derr⊤x0 and dBayes⊤x0.

5. Robustness and Weight Selection

In this section, we present some guidance on how one can choose between different weighting schemes. As we have repeatedly illustrated in the previous section, the dest is dominated by derr in terms of classification error on unseen data. This claim, however, holds only when the test data distribution is as given by Assumption 1. The first goal of this section is to demonstrate that dest outperforms derr considerably in terms of classification error, when there is a distribution shift in the covariates. The second goal is to compare between the individual vs. pooled covariance estimators: i.e., TL-RDA and TLP-RDA. We will prove, at least in special cases, that the optimal TLP-RDA outperforms the optimal TL-RDA when the aspect ratio is large enough.

5.1. Robustness of Optimal Estimation Weight

In this section we demonstrate the robustness of dest to covariate shifts in test data. This robustness is intuitive as we know the optimal estimation weight only attempts to minimize the difference in TL discriminant direction (d^(w)) and the Bayes discriminant direction dBayes. In fact, we can show the weights obtained by minimizing criteria (3) are equivalent to a conservative solution to the problem of minimizing criteria (4) when test data distribution is unknown. A similar argument is in Zhang and Li (2023), we summarize it in the following proposition.

Proposition 5.1 (Robustness of Estimation Weight) For the class of covariate distributions given by 𝒫≔P:x~P,EP‖x‖2≤c, we have:

argminwdBayes-∑k=1Kwkd^k2=argminwmaxx0∈𝒫Ex0dBayes-∑k=1Kwkd^k⊤x02.

Proposition 5.1 claims that, when we only know the target data comes from a distribution with bounded expected norm, the safest option to minimize prediction error criteria (4) is to focus only on the estimation error criteria (3). We demonstrate the usefulness of this in Figure 2. Here p=150 and nk=250,⋯,160 for study 1 to study K. The pairwise correlations across studies are fixed at 0.5. We use the same Toeplitz covariance matrix for all training data, however, the eigenvalues of the test data x0 covariance matrix are modified to decay much faster. The testing accuracy of the three methods are shown on the y axis as λ changes. One can see the optimal estimation weight consistently outperforms others, suggesting the robustness and conservative nature of the optimal estimation weight boost the performance of TL-RDA when there is a change in testing data distribution.

Figure 2:

Figure 2:

TL-RDA with the optimal estimation weight outperforms regular RDA and TL-RDA with the optimal prediction weight when the target distribution changes.

5.2. Pooled Sample Covariance and Individual Sample Covariance Matrix

For TLP-RDA, all discriminant directions uses the same covariance estimate Σ^P. Although Σ^P is a better covariance estimate than all Σ^k,d^kP are inevitably similar and the columns space of d^kP would be less informational. This essentially becomes a bias-variance trade off. When γk is small, the estimates d^k are reliable already. In this case, individual covariance matrices bring more variances to this column space, therefore, increase the quality of final TL-RDA estimator. When γk are large, direction estimate based on Σ^k are no longer reliable and one should consider the more stable Σ^P. We will formalize this statement in this section also.

Proposition 5.2 (TLP-RDA out performs TL-RDA when γ is large) Assume Σ=Ip,γ1=⋯=γK=γ,λ1,⋯,λK=λ=rγ-1r+1 for some fixed r>(1-γ)+/γ. For the pooled covariance matrix, we choose λ′=r′γ/K-1r′+1 for some r′>(K-γ)+/γ.

  1. When ρ=1,ErrwP≥ErrPwPP, if and only if
    γ21+r′2-K(1+r)2≥Kγ(1+r)2-1∑kαk2.
  2. When ρ=0,ErrwP≥ErrPwPP, if and only if
    γ1+r′2-(1+r)2≥K-1.

We also numerically demonstrate this phenomenon by plugging values into the limiting expressions under a more general set up (Figure 3). We again use ρ=0.5 while changing the other parameters, including the number of auxiliary studies K, the decay rate of the eigenvalues of Σ and the signal strength α. We can see that TLP-RDA can outperform TL-RDA in all cases as γK grows, as the error rates of TLP-RDA decrease at slower rates. The transition point γ*, defined as the γK when TLP-RDA outperforms TL-RDA, differs in different scenarios. One can see that it decreases when the eigenvalues of Σ decrease slower, and interestingly, also when the number of auxiliary population decreases.

Figure 3:

Figure 3:

TLP-RDA outperforms TL-RDA when γ is large under general setups.

6. Heterogeneous Population Covariance Matrix

The previous discussions of TL-RDA have been restricted to the case where observed covariates Xk in all populations k=1,⋯,K share the same covariance matrix Σ. In this section we extend TL-RDA to accommodate the scenario when covariance matrices are different. We call this generalization beyond identical matrices as transfer-learning-heterogeneous (TLH)-RDA. We firstly formalize this set up.

Assumption 6 (Heterogeneous Two-class Gaussian) We assume all populations k=1,⋯,K follow the classic two-class Gaussian mixture model. More specifically, for i=1,…,nk and k=1,…,K,

yki∈{-1,+1}Pyki=±1=π±1Xki∣yki~Nμyki,Σk (11)

Note that this is identical to the original set up except each population has a different population covariance matrix Σk. In addition, we assume the assumption 3 holds for all covariance matrices Σk.

Assumption 7 (Heterogeneous rmt assumption) For k=1,⋯,K, the design matrix Xk∈Rnk×p is generated as

Xk=μyk1,kμyk2,k…μyknk,k⊤+ZkΣk1/2

for a matrix Zk∈Rnk×p with i.i.d. entries coming from an infinite array. The entries Zkij of Zk satisfy the moment conditions:

EZkij=0,EZkij2=1andEZkij4≤C.
  1. The population covariance matrix Σk∈Rp×p is deterministic. The observations have unit variance, i.e., Σkjj=1 for j=1,⋯,p.

  2. The eigenvalues of Σk are uniformly bounded from above and away from zero with constants independent of the dimension p.

  3. The sequence of spectral distributions Tk≔TkΣ,p of Σk≔Σkp converges weakly to a limiting distribution Hk supported on [0,∞), called the population spectral distribution (psd).

We can then derive the optimal prediction and estimation weights in a manner identical to Theorems 4.5 and 4.10. Since the Bayes optimal discriminant direction is given by ΣK-1δK, and as before we aim to leverage the related observations in each source through a weighted linear combination of their discriminant directions d^k, for k=1,…,K.

Theorem 6.1 (Asymptotic Estimation Error Minimization for TLH-RDA) Suppose that assumptions 1, 2, 4, 5 as well as 6 and 7 hold. Then for a fixed K≥2, as nk,p→∞,p/nk→γk∈(0,∞] for 1≤k≤K, the weight for minimizing the error in estimating the Bayes optimal discriminator dBayes is given by:

wHE≔argminwdBayes-∑k=1Kwkd^k22=𝒜HE+ℛHE-1uHE,

where the elements of uHE∈RK,𝒜HE∈RK×K, and ℛHE∈RK×K are:

uHEk=ρkKαkαKtrΣK-1Σ^k+λkIp-1ifk=1,…,K-1,αK21λkETK-1-mFγk-λk2ifk=K.
𝒜HEkk′=αk2mFγk′-λkifk=k′,ρkk′αkαk′𝒰kk′otherwise,

and

ℛHEkk′=vFγk-λk-λkvFγk′-λkλkvFγk-λk2ifk=k′,0otherwise,

for k,k′=1,⋯,K. Moreover for k,k′=1,⋯,K, let 𝒰kk′ be the constants defined as the following limiting quantities:

trΣ^k+λkIp-1Σ^k′+λk′Ip-1/p→a.s.𝒰kk′. (12)

Since the quantities on the left hand side of (12) are exactly known in terms of sample quantities, we do not seek the exact limits of the traces of the cross sample covariance terms 𝒰kk′. Instead, we advocate directly using the known quantities

trΣ^k+λkIp-1Σ^k′+λk′Ip-1/p.

The situation changes however for estimating uHEk when k≠K, since they depend on the unknown target population covariance ΣK. This is guaranteed by the almost sure convergence of a suitable sample based quantity, as recorded in the following proposition.

Proposition 6.2

trΣK-1Σ^k+λkIp-1-1-γKtrΣ^K-1Σ^k+λkIp-1→a.s.0

as nk,p→0;p/nk→γk for k=1,⋯,K-1.

The proof of this proposition is immediate from Corollary 4.2 of Dobriban and Sheng (2021). We next move on to the optimal prediction weights for TLH-RDA.

Theorem 6.3 (Asymptotic Prediction Error Minimization for TLH-RDA) Suppose that assumptions 1, 2 as well as 6 and 7 hold. Then for a fixed K≥2, as nk,p→∞,p/nk→γk∈(0,∞] for 1≤k≤K, the weight for minimizing the excess risk, i.e., the error in predicting the class at a random test point x0, when compared to the Bayes optimal discriminator dBayes, is given by:

wHP≔argminwEx0dBayes-∑k=1Kwkd^k⊤x02=𝒜HP+ℛHP-1uHP,

where the elements of uP∈RK,𝒜P∈RK×K, and ℛP∈RK×K are:

uHPk=ρkKαkαKmFγk-λkfork=1,…,K,
𝒜HPkk′=αk2vFγk-λk-λkvFγk′-λkγkλkvFγk-λk2ifk=k′=K,ρkk′αkαk′𝒴kk′otherwise,

and

ℛHEkk′=vk′-λk-vk2-λkλk2vk4-λkifk=k′,0otherwise,

for k,k′=1,⋯,K. Moreover for k,k′=1,⋯,K, let 𝒴kk′ be the constants defined as the following limiting quantities:

trΣ^k+λkIp-1Σ^k′+λk′Ip-1ΣK/p→a.s.𝒴kk′.

In order to utilize the above weights in a practical scenario, we need to replace all unknown quantities by their estimates. As before, the Marcenko Pastur law is crucial in estimating the parameters related to the spectral distributions of Σk, for k=1,…,K. Most of the details are straightforward and identical in estimation procedure as the rest of the paper. It remains to provide consistent estimators for 𝒴kk′, which we describe in the following proposition.

Proposition 6.4 We have the following consistent estimators 𝒴^kk′ for 𝒴kk′ separately for three cases:

𝒴^kk′=trΣ^k+λkIp-1Σ^k′+λk′Ip-1Σ^K/pifk≠k′,k≠K,k′≠KtrΣ^k+λkIp-2Σ^K/pifk=k′≠K1pxptrΣ^k′+λk′Ip-1-λKpxptrΣ^K+λKIp-1Σ^k′+λk′Ip-1ifk=K,k′≠K

where xp=xγK,λK is the solution to the equation:

1-xp=γK1-λK∫xpt+λK-1dHK(t)

Then

𝒴kk′-𝒴^kk′→a.s.0.

7. Real Data

7.1. Proteomics-based Prediction of 10-year Cardiovascular Disease Risk

We utilize the data set from the Chronic Renal Insufficiency Cohort (CRIC) study to evaluate the performance of the proposed transfer learning methods. The dataset comprises observations from 2, 182 subjects who had not had any cardiovascular disease at the baseline, with 4, 830 protein measurements collected. The number of subjects are 272, 280, 333, 326, 409, 180, 382 respectively for seven university sites. Our goal is to build a classification model for 10-year cardiovascular disease risk based on the baseline plasma proteomic data. We hypothesize that while the mechanisms by which proteins predict events are related across these sites, they are not identical. Consequently, we sequentially designate each site as the target population, with the remaining sites serving as auxiliary populations, aiming to enhance prediction accuracy using TL-RDA or TLP-RDA.

For each target population, approximately 20% of the patients were set aside as a testing dataset, while the remaining 80% were used for training. We ensured that the proportion of events was consistent between the training and testing datasets (~7%). A univariate filtering procedure was applied to the training dataset using two-sample t-tests, and we evaluated the benefits of transfer learning using the top 500, 1000, and 1500 proteins. All predictors are centered and scaled within each sites, using training dataset information only. We considered all four variants of transfer learning RDA: TL-RDA with optimal estimation or prediction weights and TLP-RDA with optimal estimation/prediction weights. The “optimal weights” were estimated as instructions given by remark 4.7. The tuning parameters λ for each model were selected independently by four-fold cross-validations over a length 9 logarithmically spaced grid ranges from 0.01 to 100. The domain specific penalization is obtained by λk=λγk/αk2. We refit each model on full training data with chosen λ and test them on the held-out testing dataset. All transfer learning weights are estimated based on empirical estimators provided in the theorems.

The testing AUCs were then compared with those obtained from competing methods, namely naive RDA and pool-RDA. As implied by their names, naive RDA is fitted using only the target population data, while pool-RDA is fitted on data pooled from all populations. These procedures were repeated 25 times, and we report the average AUCs and standard deviations of the AUCs in Figure 4.

Figure 4:

Figure 4:

AUC ± SD on testing data for 10-year cardiovascular disease risk for each of the 7 clinical sites in the CRIC cohort using 500, 1000 and 1500 proteins, respectively. TL-RDA-E, TL-RDA-P, TLP-RDA-E and TLP-RDA-P denote TL-RDA with optimal estimation/prediction weights and TLP-RDA with optimal estimation/prediction weights, respectively.

It is evident that the transfer learning RDA methods outperform the others in the vast majority of cases. This demonstrates that not only are TL-RDAs capable of borrowing information to improve prediction accuracy, but they also do so more efficiently than simply pooling the data. Notably, TLP-RDA with optimal prediction weights outperforms the other methods most frequently. The amount of improvement brought by transfer learning also seemingly increase as we include more proteins in the model. Additionally, we observe that methods based on pooled sample covariance tend to perform better when the number of features p is larger, consistent with Proposition 5.2.

7.2. Lipid traits classification using genotype data

We also evaluate the proposed transfer-learning estimators using a data set from Penn Medicine BioBank, which contains both genome-wide genotype data and the electronic health record–derived phenotypes. We focus on three lipid traits with substantial genetic signal, high-density lipoprotein cholesterol (HDL), low-density lipoprotein cholesterol (LDL), and triglycerides (TRI), and dichotomize each outcome using guideline-based clinical cutoffs (Grundy et al., 2019, 2005; NCEP, 2002). To emulate settings where related auxiliary traits are available, we analyze each trait in turn as the target and use the remaining two traits as sources. The analytic cohort contains approximately 12000 individuals, partitioned into three trait-specific datasets. For each target analysis, feature screening is performed solely on the target training split via univariate association tests, and the top 1000, 2000, and 3000 nucleotide polymorphism (SNPs) (ranked by significance) are retained as the predictors.

All regularization hyperparameters were tuned exactly as in the proteomics experiment, using the same grid of candidate values. Figure 5 reports averaged AUCs and their standard deviations on held-out test sets for the proposed methods and the baselines. The statistics are based on 25 independent train / test splits and cross-validations. Across most configurations, Trans-Ridge improves upon target-only ridge regression. In contrast to the proteomics based prediction across different clinical sites in previous Section, the TL-RDA methods outperform the TLP-RDA variants based on pooled sample-covariance estimators. This ordering is again consistent with Proposition 5.2, which predicts an advantage for TL-RDA in the regime of small γk, the regime relevant to the present data.

Figure 5:

Figure 5:

AUC ± SD on testing data for HDL/LDL/Trig using 1000, 2000 and 3000 SNPs, respectively. TL-RDA-E, TL-RDA-P, TLP-RDA-E and TLP-RDA-P denote TL-RDA with optimal estimation/prediction weights and TLP-RDA with optimal estimation/prediction weights, respectively.

8. Discussion

We have developed methods of transfer learning for classification using regularized random effects linear discriminant analysis. In this approach, the discriminant direction is estimated through a weighted combination of the regularized estimates of discriminant directions derived from both the target and source models. By leveraging results from random matrix theory, we have demonstrated that the weights, as well as the classification error rate, can be accurately estimated using the data. Our findings highlight that the optimal choice of weights depends critically on the underlying true models and the presence or absence of distributional shifts between the testing and training data in the target model.

Through comprehensive empirical evaluations, we have illustrated the practical utility of the proposed methods. Specifically, we applied the transfer learning approach to predict 10-year cardiovascular disease risk using high-dimensional protein expression data and to the lipid trait prediction problem with genotype data. The results demonstrate that incorporating information from related source datasets substantially improved classification performance compared to target-only models or models based on pooled data. This improvement underscores the importance of accounting for shared information across datasets while accommodating potential distributional differences. In addition, the theoretical guidance for selecting among the four candidate weighting schemes is supported by the empirical evidence. In the high-dimensional proteomics application, pooled-covariance weighting performs the best, consistent with its variance-reduction advantage when signals are diffuse. For the genotype data, where target and source data includes correlated but different outcomes, weights optimized for estimation typically outperform those optimized for prediction. When the requisite assumptions are uncertain, we recommend selecting among the four schemes using cross-validation.

In terms of computational scalability, TL-RDA has the same leading complexity as running the K source RDA models. To compute RDA directions with naive algorithms, forming the covariances costs OKnkp2 and the K+1 matrix inversions cost OKp3. Solving and estimating the optimal weights are equivalent to at most two linear systems and one eigen-problem of size K×K. This OK3 overhead is negligible because K≪p in our applications. In addition, all heavy computations are performed locally within each domain. Each domain returns only its RDA direction and a few scalar trace statistics required by Theorem 4.5 and Theorem 4.10. The central node only needs to combine these O(Kp) and O(K) summaries to obtain the weight vector. Moreover, because each inversion has the ridge form Σ^k+λIp-1, we can apply Woodbury and perform a Cholesky factorization on an nk×nk system, thereby eliminating the cubic dependence on p and reducing per-domain cost to Onk3+nkp when nk≪p.

This paper focuses on two-class LDA models. A promising direction for future research is extending these methods to multi-class classification within the framework of transfer learning. Other interesting avenues include exploring this problem under privacy or communication constraints, as has been recently studied for other classification methods, or analyzing LDA trained with mixed in-distribution and out-of-distribution samples (see, e.g., Auddy et al., 2024; De Silva et al., 2023). Also, we have assumed the number of source domains K is small compared to number of observations and predictors (nk,p). If instead K is very large, source selection becomes necessary. As noted in Section 4.4, the optimal weight vectors solves a least-squares problem in which the Bayes discriminant direction is regressed on the collection of domain-specific discriminant directions. When the number of sources K grows to the same order as n and p, this becomes a high-dimensional regression and variable-selection problem. A simple heuristic is to retain only those sources whose discriminant directions have the largest absolute correlations with the target estimate; however, this ignores cross-source dependencies and may discard complementary information. A natural extension is to add a ridge-type weight penalization ‖w‖22 on criterion 3 or criterion 4. The resulting estimator can still be computed in closed form via the machinery of Theorems 4.5 and Theorems 4.10. Developing principled, sparsity-inducing penalties or screening rules that account for inter-source correlations and analyzing their theoretical guarantees, remains an interesting direction for future research.

Supplementary Material

1

Acknowledgments

This research was supported by NIH grants R01GM129781 and U01HG013841.

Contributor Information

Hongzhe Zhang, Department of Biostatistics, Epidemiology and Informatics, University of Pennsylvania, Philadelphia, PA 19104, USA.

Arnab Auddy, Department of Statistics, The Ohio State University, Columbus, OH 43210, USA.

Hongzhe Li, Department of Biostatistics, Epidemiology and Informatics, University of Pennsylvania, Philadelphia, PA 19104, USA.

References

  1. Anderson GW, Guionnet A, and Zeitouni O. An introduction to random matrices. Number 118. Cambridge university press, 2010. [Google Scholar]
  2. Anderson TW. An introduction to multivariate statistical analysis, volume 2. Wiley; New York, 1958. [Google Scholar]
  3. Arjovsky M, Bottou L, Gulrajani I, and Lopez-Paz D. Invariant risk minimization. arXiv preprint arXiv:1907.02893, 2019. [Google Scholar]
  4. Auddy A, Cai TT, and Chakraborty A. Minimax and adaptive transfer learning for nonparametric classification under distributed differential privacy constraints. arXiv preprint arXiv:2406.20088, 2024. [DOI] [PMC free article] [PubMed] [Google Scholar]
  5. Bai Z and Silverstein JW. Spectral analysis of large dimensional random matrices, volume 20. Springer, 2010. [Google Scholar]
  6. Bickel PJ and Levina E. Some theory for fisher's linear discriminant function,naive bayes', and some alternatives when there are many more variables than observations. Bernoulli, 10(6):989–1010, 2004. [Google Scholar]
  7. Capitaine M and Casalis M. Asymptotic freeness by generalized moments for gaussian and wishart matrices. application to beta random matrices . Indiana University mathematics journal, pages 397–431, 2004. [Google Scholar]
  8. De Lange M, Aljundi R, Masana M, Parisot S, Jia X, Leonardis A, Slabaugh G, and Tuytelaars T. A continual learning survey: Defying forgetting in classification tasks. IEEE transactions on pattern analysis and machine intelligence, 44(7):3366–3385, 2021. [DOI] [PubMed] [Google Scholar]
  9. De Silva A, Ramesh R, Priebe C, Chaudhari P, and Vogelstein JT. The value of out-of-distribution data. In International Conference on Machine Learning, pages 7366–7389. PMLR, 2023. [Google Scholar]
  10. Dobriban E and Sheng Y. Wonder: Weighted one-shot distributed ridge regression in high dimensions. Journal of Machine Learning Research, 21(66):1–52, 2020. [Google Scholar]
  11. Dobriban E and Sheng Y. Distributed linear regression by averaging. The Annals of Statistics, 419:918–943, 2021. [Google Scholar]
  12. Dobriban E and Wager S. High-dimensional asymptotics of prediction: Ridge regression and classification. The Annals of Statistics, 46(1):247–279, 2018. [Google Scholar]
  13. Friedman JH. Regularized discriminant analysis. Journal of the American statistical association, 84(405):165–175, 1989. [Google Scholar]
  14. Grundy SM, Cleeman JI, Daniels SR, Donato KA, Eckel RH, Franklin BA, Gordon DJ, Krauss RM, Savage PJ, Smith SC, Spertus JA, and Costa F. Diagnosis and management of the metabolic syndrome: An american heart association/national heart, lung, and blood institute scientific statement. Circulation, 112(17):2735–2752, 2005. doi: 10.1161/CIRCULATIONAHA.105.169404. [DOI] [PubMed] [Google Scholar]
  15. Grundy SM, Stone NJ, Bailey AL, and et al. 2018 aha/acc/aacvpr/aapa/abc/acpm/ada/ags/apha/aspc/nla/pcna guideline on the management of blood cholesterol. Circulation, 139(25):e1082–e1143, 2019. doi: 10.1161/CIR.0000000000000625. [DOI] [PMC free article] [PubMed] [Google Scholar]
  16. Gu T, Han Y, and Duan R. Robust angle-based transfer learning in high dimensions. Journal of the Royal Statistical Society, Series B, 84(1):149–173, 2024. doi: 10.1093/jrsssb/qkad045. [DOI] [PMC free article] [PubMed] [Google Scholar]
  17. Han N, Wu J, Fang X, Wen J, Zhan S, Xie S, and Li X. Transferable linear discriminant analysis. IEEE Transactions on Neural Networks and Learning Systems, 31(12):5630–5638, 2020. doi: 10.1109/TNNLS.2020.2973202. [DOI] [PubMed] [Google Scholar]
  18. Helm H, De Silva A, Vogelstein JT, Priebe CE, and Yang W. Approximately optimal domain adaptation with fisher's linear discriminant. Mathematics, 12(5):746, 2024. [Google Scholar]
  19. Huisman M, Van Rijn JN, and Plaat A. A survey of deep meta-learning. Artificial Intelligence Review, 54(6):4483–4541, 2021. [Google Scholar]
  20. Knowles A and Yin J. Anisotropic local laws for random matrices. Probability Theory and Related Fields, 169:257–352, 2017. [Google Scholar]
  21. Komárek A and Lesaffre E. Discriminant analysis using a multivariate linear mixed model. Biostatistics, 2010. [DOI] [PubMed] [Google Scholar]
  22. Ledoit O and Péché S. Eigenvectors of some large sample covariance matrix ensembles. Probability Theory and Related Fields, 151(1–2):233–264, 2011. [Google Scholar]
  23. Li S, Cai TT, and Li H. Transfer learning for high-dimensional linear regression: Prediction, estimation, and minimax optimality. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 84(1):149–173, 2022. [DOI] [PMC free article] [PubMed] [Google Scholar]
  24. Li S, Zhang L, Cai TT, and Li H. Estimation and inference for high-dimensional generalized linear models with knowledge transfer. Journal of the American Statistical Association, 119(546):1274–1285, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]
  25. Liu G, Li X, and Liu W. Indirect category data transfer learning algorithm using regularization discrimination. Big Data, 11(1):59–70, 2023. doi: 10.1089/big.2022.0156. [DOI] [PubMed] [Google Scholar]
  26. Lozano AC and Swirszcz G. Multi-level lasso for sparse multi-task regression. ICML, 2012. [Google Scholar]
  27. Mak TSH, Porsch RM, Choi SW, Zhou X, and Sham PC. Polygenic scores via penalized regression on summary statistics. Genetic Epidemiology, 41(6):469–480, 2017. [DOI] [PubMed] [Google Scholar]
  28. Mansour Y, Mohri M, and Rostamizadeh A. Domain adaptation with multiple sources. In NIPS, 2009. [Google Scholar]
  29. Marchenko VA and Pastur LA. Distribution of eigenvalues for some sets of random matrices. Matematicheskii Sbornik, 114(4):507–536, 1967. [Google Scholar]
  30. NCEP. Third report of the national cholesterol education program (ncep) expert panel on detection, evaluation, and treatment of high blood cholesterol in adults (adult treatment panel III) final report. Circulation, 106(25):3143–3421, 2002. doi: 10.1161/circ.106.25.3143. [DOI] [PubMed] [Google Scholar]
  31. Okazaki A and Aoyagi M. Multi-task learning regression via convex clustering. Statistical Papers, 2024. [Google Scholar]
  32. Pan SJ and Yang Q. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345–1359, 2009. [Google Scholar]
  33. Peng H. A comprehensive overview and survey of recent advances in meta-learning. arXiv preprint arXiv:2004.11149, 2020. [Google Scholar]
  34. Peters J, Bühlmann P, and Meinshausen N. Causal inference by using invariant prediction: identification and confidence intervals. Journal of the Royal Statistical Society Series B: Statistical Methodology, 78(5):947–1012, 2016. [Google Scholar]
  35. Price BS and al. Fusion penalties in statistical learning. arXiv:1405.xxxx, 2014. [Google Scholar]
  36. Redko I, Morvant E, Habrard A, Sebban M, and Bennani Y. A survey on domain adaptation theory: learning bounds and theoretical guarantees. arXiv preprint arXiv:2004.11829, 2020. [Google Scholar]
  37. Serdobolskii VI. Multiparametric statistics. Elsevier, 2007. [Google Scholar]
  38. Sheng Y and Dobriban E. One-shot distributed ridge regression in high dimensions. In D. H III and Singh A, editors, Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pages 8763–8772. PMLR, 13–18 Jul 2020. [Google Scholar]
  39. Silverstein JW. Strong convergence of the empirical distribution of eigenvalues of large dimensional random matrices. Journal of Multivariate Analysis, 55(2):331–339, 1995. [Google Scholar]
  40. Sun S, Shi H, and Wu Y. A survey of multi-source domain adaptation. Information Fusion, 24:84–92, 2015. [Google Scholar]
  41. Torkamani A, Wineinger NE, and Topol EJ. The personal and clinical utility of polygenic risk scores. Nature Reviews Genetics, 19:581–590, 2018. [DOI] [PubMed] [Google Scholar]
  42. Torrey L and Shavlik J. Transfer learning. In Handbook of research on machine learning applications and trends: algorithms, methods, and techniques, pages 242–264. IGI Global, 2010. [Google Scholar]
  43. Wang J, Yu T, and Huang Z. Integrated transfer learning based on group sparse bayesian linear discriminant analysis for error-related potentials detection. In 2020 IEEE International Conference on Artificial Intelligence and Computer Applications (ICAICA), pages 645–650, 2020. doi: 10.1109/ICAICA50127.2020.9182754. [DOI] [Google Scholar]
  44. Weiss K, Khoshgoftaar TM, and Wang D. A survey of transfer learning. Journal of Big data, 3:1–40, 2016. [Google Scholar]
  45. Yang P and Gao W. Multi-view discriminant transfer learning. In Proceedings of the 23rd International Joint Conference on Artificial Intelligence (IJCAI), pages 1340–1346, 2013. [Google Scholar]
  46. Zhang H and Li H. Transfer learning with random coefficient ridge regression. arXiv preprint arXiv:2306.15915, 2023. [Google Scholar]
  47. Zhao B, Zou F, and Zhu H. Cross-trait prediction accuracy of summary statistics in genome-wide association studies. Biometrics, 79(2):841–853, 2023. [DOI] [PMC free article] [PubMed] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

1

RESOURCES