[Paper Review] Robust Hypothesis Test for Nonlinear Effect with Gaussian Processes
This paper proposes a robust hypothesis test for detecting nonlinear effects using Gaussian processes, leveraging a one-sided score test based on variance components in a linear mixed model framework. It introduces a cross-validated kernel ensemble (CVEK) estimator to ensure reliable performance under model misspecification and small samples, demonstrating superior Type I error control and power across diverse data-generating functions, especially when compared to standard kernel selection methods.
This work constructs a hypothesis test for detecting whether an data-generating function $h: R^p ightarrow R$ belongs to a specific reproducing kernel Hilbert space $\mathcal{H}_0$ , where the structure of $\mathcal{H}_0$ is only partially known. Utilizing the theory of reproducing kernels, we reduce this hypothesis to a simple one-sided score test for a scalar parameter, develop a testing procedure that is robust against the mis-specification of kernel functions, and also propose an ensemble-based estimator for the null model to guarantee test performance in small samples. To demonstrate the utility of the proposed method, we apply our test to the problem of detecting nonlinear interaction between groups of continuous features. We evaluate the finite-sample performance of our test under different data-generating functions and estimation strategies for the null model. Our results reveal interesting connections between notions in machine learning (model underfit/overfit) and those in statistical inference (i.e. Type I error/power of hypothesis test), and also highlight unexpected consequences of common model estimating strategies (e.g. estimating kernel hyperparameters using maximum likelihood estimation) on model inference.
Motivation & Objective
- To develop a hypothesis test for detecting whether a nonlinear data-generating function belongs to a partially known reproducing kernel Hilbert space (RKHS).
- To address the challenge of testing feature effects in black-box models like Gaussian processes, where traditional parameter-based inference is not directly applicable.
- To ensure robustness against kernel mis-specification and model overfitting/underfitting in small-sample settings.
- To propose an ensemble-based estimator (CVEK) that minimizes cross-validation error to select optimal kernel structure for reliable null model estimation.
- To bridge concepts from machine learning (underfit/overfit) and statistical inference (Type I error/power) in the context of kernel-based hypothesis testing.
Proposed method
- Formulate the hypothesis test using a one-sided score test for a scalar parameter encoding the feature effect of interest, derived from the RKHS structure.
- Re-express Gaussian process regression as a linear mixed model (LMM) to enable variance component testing.
- Use the score test statistic based only on null-model estimates, avoiding full alternative model fitting.
- Develop the Cross-validated Kernel Ensemble (CVEK) estimator that selects a kernel from a library by minimizing out-of-sample prediction error.
- Apply CVEK to both RBF and neural network kernels, using a grid of hyperparameters to ensure robustness.
- Use the LMM framework to derive the score test statistic and its asymptotic distribution under the null.
Experimental results
Research questions
- RQ1How can we test for nonlinear effects in a black-box model like Gaussian process when the functional form is unknown and only partial knowledge of the null RKHS is available?
- RQ2What is the impact of kernel mis-specification—especially overfitting or underfitting—on the Type I error and statistical power of the resulting hypothesis test?
- RQ3Can an ensemble-based kernel selection method improve test performance in small samples where standard kernel estimation strategies fail?
- RQ4How do common model estimation practices (e.g., MLE for hyperparameters) affect the validity of the hypothesis test?
- RQ5What is the relationship between machine learning notions like underfit/overfit and statistical inference concepts like Type I error and power?
Key findings
- The proposed test maintains correct Type I error (close to 0.05) across all data-generating functions when using the CVEK estimator, even under model misspecification.
- Polynomial kernels (linear and quadratic) consistently underfit, leading to inflated Type I error and reduced power.
- Lower-order Matérn kernels (1/2 and 3/2) overfit when the true function is smooth, resulting in deflated Type I error and severely diminished power.
- RBF kernels with MLE-estimated hyperparameters suffer from inflated Type I error (up to 0.238) in small samples, especially for complex or rough functions.
- RBF-Median (based on median of data distances) performs well but is slightly conservative; CVEK-RBF and CVEK-NN outperform all non-ensemble methods in both Type I error control and power.
- CVEK-RBF and CVEK-NN show robust performance across all true kernel types, with CVEK-RBF being slightly more powerful, demonstrating the value of ensemble-based kernel selection for reliable inference.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.