betaFeedback

WorksMathematics

Adaptive Two-Sample Testing for Regression Discrepancy and Model Misspecification in High Dimensions

Abstract

In two-sample regression comparisons, testing for equality is often too restrictive because minor discrepancies in functional form are unavoidable in practice. We study whether the functional discrepancy falls within a practically acceptable tolerance. Such tolerance-based comparison can, however, be unreliable when either regression model is misspecified. To address both issues, we propose a unified adaptive-to-model testing framework for high-dimensional regressions that integrates model checking with functional similarity testing for the two populations. For functional similarity, we develop an adaptive boundary-proxy test whose rejection probability converges to the nominal level at every fixed configuration of the composite null hypothesis, overcoming the conservatism of conventional least favorable configuration tests. For model misspecification, we use projection-based tests for sparse high-dimensional regression models. These components are combined through adaptive gating into a joint test. We investigate its asymptotic null distribution and power properties under global and local alternatives. Numerical studies examine its finite-sample performance.

Introduction

Given two independent populations, a central question is whether some of the underlying distributional or structural characteristics are identical, or sufficiently close to each other. Classical two-sample procedures typically focus on comparisons of means, covariance matrices, distributions, or other finite-dimensional parameters. In many modern applications, however, the object of interest is a regression relationship, and the goal is to determine whether the relationships between a response and a set of covariates are sufficiently similar across two populations. Such problems arise naturally in many areas, including transfer learning with one source dataset, where one seeks to determine whether information from a source population can be appropriately used for a target population.

For parametric regression models, a natural way to compare two populations is through the discrepancy between their regression functions. Rather than comparing parameter vectors directly, one may quantify the difference between the corresponding regression functions using a functional distance, such as the squared L2L_2-distance. Distance-based comparisons of regression functions have been extensively studied in the literature; see, among others, Munk and Dette [1998], Dette and Neumeyer [2001], Dette et al. [2018], Möllenhoff et al. [2020]. Depending on the scientific objective, the distance may be used to formulate either an exact comparison or a threshold-based testing problem. The latter formulation is particularly relevant to the present paper. Instead of requiring the functional distance to be exactly zero, a prespecified threshold can be introduced to distinguish practically negligible differences from relevant departures. In particular, Dette et al. [2020] considered two-sample functional problems in which an L2L_2-distance is compared with a relevance threshold. Motivated by this perspective, we consider a tolerance testing problem for two regression functions, where the null hypothesis allows a certain degree of discrepancy as long as it remains within a prespecified acceptable range.

Distance-based similarity testing, however, addresses only one aspect of the two-sample regression problem. Its validity depends on the adequacy of the regression models used to construct the functional distance. If the working regression model is misspecified in either population, the estimated discrepancy may partly reflect model approximation error rather than a genuine difference between the underlying regression relationships. As a result, a comparison based solely on the functional distance may lead to misleading conclusions. This issue is particularly relevant in transfer learning, where a small estimated source-target discrepancy is not sufficient to support information sharing if the regression model in either domain is itself misspecified.

To this end, we extend the distance-based inequality testing problem by simultaneously incorporating model misspecification assessment for the two populations. The overall testing problem requires not only that the functional discrepancy remain below the prespecified tolerance level, but also that the working regression models provide adequate representations of the corresponding conditional mean functions. To achieve this goal, we construct an adaptive-to-model testing procedure that combines the adaptive similarity statistic with model-checking statistics for the two samples through a gating mechanism. Under correct model specification, the model-checking components are asymptotically inactive, whereas under model misspecification the corresponding components can be adaptively activated. The resulting procedure is therefore able to respond to excessive functional discrepancy, model misspecification in either population, or combinations of these departures. Moreover, the proposed framework is developed for sparse high-dimensional regression settings, allowing the predictor dimension to be comparable to or substantially larger than the sample sizes.

Transfer learning may be one of the potential application scenarios of this joint testing framework. In a single-source transfer problem, the two samples naturally correspond to a target domain and a source domain. Successful transfer generally requires a certain degree of compatibility between the two domains, whereas substantial heterogeneity can lead to negative transfer [22, 29, 25] (Li et al. 2022). Existing high-dimensional transfer learning methods typically impose some notion of source-target similarity when deciding whether source information should be incorporated into the target analysis. From the perspective of the present paper, such compatibility can be examined through a two-sample regression test: the regression functions should be sufficiently close, while the working models used to describe them should also be correctly specified.

The main contributions of this paper are threefold. First, we develop an adaptive boundary-proxy test for distance-based tolerance testing that alleviates the over-conservatism of the conventional inequality testing procedure based on the least favorable configuration (LFC) in the interior of the null region while retaining its favorable locally asymptotically uniformly most powerful (LAUMP) property near the boundary. Second, we go beyond functional similarity testing by explicitly incorporating model misspecification assessment into the two-sample comparison, thereby yielding an adaptive-to-model joint testing framework. Third, the proposed methodology is developed for sparse high-dimensional regression models, allowing both functional similarity and model adequacy to be assessed when the predictor dimension may substantially exceed the sample size. We establish the asymptotic properties of the proposed test statistics and investigate their power under various global and local alternatives.

The remainder of this paper is organized as follows. § 2 introduces the problem setup and formulates the joint hypotheses for functional similarity and model specification. § 3 develops the adaptive boundary-proxy test for functional similarity and establishes its asymptotic properties. § 4 constructs the adaptive-to-model joint test, introduces the model specification components, and analyzes the behavior of the proposed statistic under various global and local alternatives. § 5 discusses the application to transfer learning. § 6 presents the simulation studies and the real-data application, and § 7 discusses extensions to multi-source transfer learning and other directions for future research. All technical proofs are provided in the supplementary material.

Notation. Bold capital letters (e.g., A) represent matrices, and for a matrix A we write ∥A∥\lVert A\rVert for its Frobenius norm. For a vector vv and q≥1q \ge1, ∥v∥q\lVert v\rVert_q denotes its ℓq\ell_q-norm and ∥v∥0\lVert v\rVert_0 denotes the number of its nonzero components. Let Sp−1={α∈Rp:∥α∥2=1}\mathbb{S}^{p-1} = \{\alpha\in\mathbb{R}^p : \lVert\alpha\rVert_2 = 1\} denote the unit sphere in Rp\mathbb{R}^p. We use I(⋅)\mathbb{I}(\cdot) to denote the indicator function and P(⋅)\mathbb{P}(\cdot) the probability measure. For any function g(x)g(x), let g˙(x)=dg(x)dx\dot{g}(x) = \frac{dg(x)}{dx} and g¨(x)=dg˙(x)dx\ddot{g}(x) = \frac{d\dot{g}(x)}{dx}. We write →P\xrightarrow{P} and →D\xrightarrow{D} to denote convergence in probability and convergence in distribution, respectively. The notation X∼FX \sim F indicates that XX follows the distribution FF. We use s≪ps \ll p to denote s/p→0s/p \to0. Moreover, a∨b=max⁡(a,b)a \vee b = \max(a,b), a∧b=min⁡(a,b)a \wedge b = \min(a,b), a∨b∨c=max⁡{a,b,c}a \vee b \vee c = \max\{a,b,c\}, and a∧b∧c=min⁡{a,b,c}a \wedge b \wedge c = \min\{a,b,c\}. Throughout this paper, CC represents a generic constant independent of the sample size nn, and its value may change across appearances.

Problem Setup and Preliminary Definitions

In this paper, we consider a two-sample regression problem. Suppose that we have two independent datasets {(Xi(0),Yi(0))}i=1n0\{(X_i^{(0)},Y_i^{(0)})\}_{i=1}^{n_0} and {(Xi(1),Yi(1))}i=1n1\{(X_i^{(1)},Y_i^{(1)})\}_{i=1}^{n_1}, where (Xi(l),Yi(l))∈Rp+1(X_i^{(l)},Y_i^{(l)}) \in\mathbb{R}^{p+1} for l=0,1l = 0, 1 are independent and identically distributed within each dataset. underlying regression model is

Y(l)=ml(X(l))+ϵ(l),l=0,1,Y^{(l)} = m_l(X^{(l)}) + \epsilon^{(l)}, \qquad l = 0,1,

where ml(x)=E(Y(l)∣X(l)=x)m_l(x) = \mathbb{E}(Y^{(l)} \mid X^{(l)} = x) denotes the unknown regression function and ϵ(l)\epsilon^{(l)} denotes the random error with zero mean and finite variance. Given a parametric family of functions {gl(⋅,θ(l)):θ(l)∈Θl⊂Rql}\{g_l(\cdot,\theta^{(l)}):\theta^{(l)}\in\Theta_l\subset\mathbb{R}^{q_l}\}, our objective is two-fold. The first is model checking, which is used to determine whether each parametric model gl(X(l),θ(l))g_l(X^{(l)},\theta^{(l)}) accurately represents its respective data-generating process. The other is similarity evaluation. The issue is to assess whether the discrepancies between models are negligible. If the models are sufficiently similar, the data from different groups may be pooled. This also serves as the core motivation for transfer learning, where structural commonalities allow knowledge to be adapted from source to target domains. When applied to single-source transfer learning, the two populations 0 and 1 can be interpreted as the target and source domains, respectively.

We now formulate the hypothesis testing problem to simultaneously assess the model adequacy and similarity between two regression models in high-dimensional settings, where the predictor dimension may substantially exceed the sample size. Recall that for the model checking problem, our objective is to test whether the mean function ml(⋅)m_l(\cdot) belongs to a given parametric class of functions {gl(⋅,θ(l)):θ(l)∈Θl⊂Rql}\{g_l(\cdot,\theta^{(l)}):\theta^{(l)}\in\Theta_l\subset\mathbb{R}^{q_l}\} for l=0,1l=0,1. In this paper, we focus on testing for model misspecification for generalized linear models (GLMs). Extensions to more general model checking problems are straightforward. The null and alternative hypotheses for model checking for the populations 0 and 1 are

H0(0):P{E(Y(0)∣X(0))=g0((θ0(0))⊤X(0))}=1, for some θ0(0)∈Θ0,versusH1(0):P{E(Y(0)∣X(0))≠g0(θ⊤X(0))}>0, for any θ∈Θ0,(1)\begin{aligned} H_0^{(0)} &: \mathbb{P}\{\mathbb{E}(Y^{(0)}\mid X^{(0)})=g_0((\theta_0^{(0)})^\top X^{(0)})\}=1,\text{ for some }\theta_0^{(0)}\in\Theta_0,\quad\text{versus}\\ H_1^{(0)} &: \mathbb{P}\{\mathbb{E}(Y^{(0)}\mid X^{(0)})\ne g_0(\theta^\top X^{(0)})\}>0,\text{ for any }\theta\in\Theta_0, \tag*{(1)} \end{aligned}

and

H0(1):P{E(Y(1)∣X(1))=g1((θ0(1))⊤X(1))}=1, for some θ0(1)∈Θ1,versusH1(1):P{E(Y(1)∣X(1))≠g1(θ⊤X(1))}>0, for any θ∈Θ1,(2)\begin{aligned} H_0^{(1)} &: \mathbb{P}\{\mathbb{E}(Y^{(1)}\mid X^{(1)})=g_1((\theta_0^{(1)})^\top X^{(1)})\}=1,\text{ for some }\theta_0^{(1)}\in\Theta_1,\quad\text{versus}\\ H_1^{(1)} &: \mathbb{P}\{\mathbb{E}(Y^{(1)}\mid X^{(1)})\ne g_1(\theta^\top X^{(1)})\}>0,\text{ for any }\theta\in\Theta_1, \tag*{(2)} \end{aligned}

respectively, where Θl⊂Rp\Theta_l\subset\mathbb{R}^{p} is a compact set and gl(⋅)g_l(\cdot) is a known inverse link function. To ensure the model checking problem is well-defined in high-dimensional settings when the predictor dimension is larger than the sample size, we follow the framework from Janková et al. [ [13] and Tan et al. [ [23] and impose sparsity under both the null and alternatives. Therefore, under the null H0(l)H_0^{(l)}, we assume ∥θ0(l)∥0=sl≪p\lVert\theta_0^{(l)}\rVert_0=s_l\ll p for l=0,1l=0,1. Let S(l)⊂{1,…,p}S^{(l)} \subset\{1,\ldots,p\} be the active set, i.e., the set of indices of the components of X(l)X^{(l)} truly related to the response Y(l)Y^{(l)}. Under H0(l)H_0^{(l)}, the true regression parameter θ0(l)\theta_0^{(l)} is sparse, and the active set becomes S(l)={1≤j≤p:θ0j(l)≠0}S^{(l)} = \{1 \le j \le p : \theta_{0j}^{(l)} \ne0\}, where θ0j(l)\theta_{0j}^{(l)} denotes the jj-th component of θ0(l)\theta_0^{(l)}.

The parameters θ0(0)\theta_0^{(0)} and θ0(1)\theta_0^{(1)} are unknown, and we estimate them under the high-dimensional GLM setting. For l=0,1l = 0, 1, let θ^(l)\hat{\theta}^{(l)} be a penalized estimator of θ0(l)\theta_0^{(l)} under the GLM setting, that is,

θ^(l)=arg⁡min⁡θ∈Θl{Ln(l)(θ)+∑j=1ppλ(∣θj∣)}(3)\hat{\theta}^{(l)} = \mathop{\arg\min}_{\theta\in\Theta_l} \left\{L_n^{(l)}(\theta) + \sum_{j=1}^{p} p_\lambda(|\theta_j|)\right\} \tag*{(3)}

where Ln(l)(θ)=nl−1∑i=1nlρ(Yi(l),θ⊤Xi(l))L_n^{(l)}(\theta) = n_l^{-1}\sum_{i=1}^{n_l} \rho(Y_i^{(l)}, \theta^\top X_i^{(l)}) with a general loss function ρ(⋅,⋅)\rho(\cdot,\cdot), pλ(⋅)p_\lambda(\cdot) is a penalty function, and λ≥0\lambda\ge0 is the regularization parameter. Depending on the penalty function, the minimizer in (3) yields many popular sparse estimators, such as the GLM Lasso estimator, the GLM SCAD estimator, and the GLM MCP estimator. Under the alternative H1(l)H_1^{(l)}, the GLMs are misspecified. Therefore, to investigate the asymptotic properties of θ^(l)\hat{\theta}^{(l)} and the corresponding test statistics under the alternatives (misspecified GLMs), we define the pseudo-true parameters:

θ~(l)=arg⁡min⁡θ∈ΘlE[ρ(Y(l),θ⊤X(l))],(4)\tilde{\theta}^{(l)} = \mathop{\arg\min}_{\theta\in\Theta_l} \mathbb{E}[\rho(Y^{(l)},\theta^\top X^{(l)})], \tag*{(4)}

References

  1. [2]S. Ben-David, J. Blitzer, K. Crammer, A. Kulesza, F. Pereira, and J. W. Vaughan. A theory of learning from different domains. Machine learning, 79(1):151–175, 2010.
  2. [3]P. Bühlmann and S. Van De Geer. Statistics for high-dimensional data: methods, theory and applications. Springer Science & Business Media, 2011.
  3. [4]P. Bühlmann and S. van de Geer. High-dimensional inference in misspecified linear models. Electronic Journal of Statistics, 9(1):1449 – 1473, 2015. doi: 10.1214/15-EJS1041. URL https://doi.org/10.1214/15-EJS1041.
  4. [10]J. Fan and H. Peng. Nonconcave penalized likelihood with a diverging number of parameters. The Annals of Statistics, 32(3):928–961, 2004.DOI
  5. [11]Y. Ganin, E. Ustinova, H. Ajakan, P. Germain, H. Larochelle, F. Laviolette, M. March, and V. Lempitsky. Domain-adversarial training of neural networks. Journal of machine learning research, 17(59):1–35, 2016.arxiv.org/abs/1505.07818
  6. [13]J. Janková, R. D. Shah, P. Bühlmann, and R. J. Samworth. Goodness-of-fit testing in high dimensional generalized linear models. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 82(3):773–795, 2020.arxiv.org/abs/1908.03606
  7. [14]S. Karlin and H. Rubin. The theory of decision procedures for distributions with monotone likelihood ratio. The Annals of Mathematical Statistics, 27(2):272–299, 1956.DOI
  8. [15]A. K. Kuchibhotla and A. Chakrabortty. Moving beyond sub-Gaussianity in high-dimensional statistics: applications in covariance estimation and linear regression. Information and Inference: A Journal of the IMA, 11(4):1389–1456, 06 2022. doi: 10.1093/imaiai/iaac012.DOI
  9. [18]M. Long, Y. Cao, J. Wang, and M. Jordan. Learning transferable features with deep adaptation networks. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 97–105. PMLR, 07–09 Jul 2015.arxiv.org/abs/1502.02791
  10. [22]S. J. Pan and Q. Yang. A survey on transfer learning. IEEE Transactions on knowledge and data engineering, 22(10):1345–1359, 2009.DOI
  11. [23]F. Tan, J. Liu, H. Peng, and L. Zhu. A two-step projection-based goodness-of-fit test for ultra-high dimensional sparse regressions. arXiv preprint arXiv:2412.10721, 2025. URL https://arxiv.org/abs/2412.10721.
  12. [24]F. Tan, S. Tang, and L. Zhu. Asymptotic distribution-free tests for ultra-high dimensional parametric regressions via projected empirical processes and p-value combination. arXiv preprint arXiv:2601.00541, 2026.arxiv.org/abs/2601.00541
  13. [25]Y. Tian and Y. Feng. Transfer learning under high-dimensional generalized linear models. Journal of the American Statistical Association, 118(544):2684–2697, 2023.DOI
  14. [26]M. Vladimirova, S. Girard, H. Nguyen, and J. Arbel. Sub-weibull distributions: Generalizing sub-gaussian and sub-exponential properties to heavier tailed distributions. Stat, 9(1):e318, 2020. doi: https://doi.org/10.1002/sta4.318.
  15. [27]C. Wang, J. Huang, and X. Li. Model checking for parametric regressions in transfer learning. Journal of Systems Science and Complexity, 39(1):17–37, 2026.DOI
  16. [28]M. Wang and W. Deng. Deep visual domain adaptation: A survey. Neurocomputing, 312:135–153, 2018.DOI
  17. [29]K. Weiss, T. M. Khoshgoftaar, and D. Wang. A survey of transfer learning. Journal of Big data, 3(1):9, 2016.DOI

Paper details

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

views · 0

downloads · 0

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