stat.MLDec 23, 2025

Computationally efficient goodness-of-fit tests through kernelized Stein discrepancy

Authors: Zhihan Huang, Ziang Niu

Organizations: Department of Statistics and Data Science University of Pennsylvania

Abstract

Models with intractable normalizing constants are widely used in statistics and machine learning. Assessing the adequacy of such models poses significant challenges: obtaining samples from the fitted model often requires sophisticated sampling algorithms. Moreover, model fitting sometimes requires iterative numerical optimization, making bootstrap procedures that require repeated refitting computationally expensive. In this paper, we leverage the kernel-based testing framework to develop a general semiparametric goodness-of-fit test based on the kernelized Stein discrepancy. We establish the consistency and the asymptotic null distribution of the test statistic under general nuisance estimation. To produce a level-αα test, we propose a novel influence-adjusted wild bootstrap that requires neither refitting the model nor sampling from it. We prove the consistency of the proposed bootstrap test procedure under the null and the alternative, and characterize its limiting power under contiguous local alternatives. Across simulations ranging from classical normality testing to models with intractable likelihoods, the proposed test delivers competitive or superior power at a computational cost orders of magnitude lower than that of existing approaches. We illustrate the method by assessing the adequacy of a protein signaling network model for reverse-phase protein array data from lung adenocarcinoma tumors. As a complementary insight, we show that the SKSD test can be regarded as a nonparametric score test under exponentially tilted models, connecting score-based and distance-based goodness-of-fit testing.

Figures & tables

Appendix figures & tables4 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Nyström Kernel Stein Discrepancy Tests

    May 24, 2026Florian Kalinke, Zoltán Szabó, Bharath K. SriperumbudurKernel MethodDiscrepancy

  2. Nonparametric Goodness-of-fit Testing under Covariate Shift

    Aug 5, 2026Zhen Hou, Dong XiaCovariate ShiftExponential Family

  3. Kernel Selection is Model Selection: A Unified Complexity-Penalized Approach for MMD Two-Sample Tests

    May 7, 2026Yijin Ni, Xiaoming HuoMaximum Mean DiscrepancyKernel Method