Composite Goodness-of-fit Tests with Kernels
Oscar Key, Arthur Gretton, François-Xavier Briol, Tamara Fernandez
TL;DR
The paper tackles the problem of model misspecification in probabilistic modeling by introducing kernel-based composite goodness-of-fit tests that decide whether data come from any distribution within a parametric family {P_θ}. The main approach combines minimum distance estimation with kernel discrepancies (primarily MMD^2, with discussion of KSD) to jointly estimate the closest model and test goodness-of-fit on the same data, using bootstrap methods to set thresholds without data-splitting. Theoretical results show the MMD-based statistic has a well-behaved null distribution and consistent power under the alternative, even when estimation and testing use the same data, and practical implementations via wild and parametric bootstraps are explored. Empirical studies on Gaussian models, toggle-switch networks, and kernel-exponential-family density estimation demonstrate the method’s applicability to unnormalised and simulator-based models, while highlighting limitations related to kernel choice, optimization stability, and computational cost. The work bridges kernel-based testing with classical likelihood-ratio and characteristic-function approaches, providing a versatile toolkit for assessing model adequacy in complex, high-dimensional settings. The proposed framework offers a principled way to quantify misspecification and guide model refinement in practical scientific and engineering applications.
Abstract
Model misspecification can create significant challenges for the implementation of probabilistic models, and this has led to development of a range of robust methods which directly account for this issue. However, whether these more involved methods are required will depend on whether the model is really misspecified, and there is a lack of generally applicable methods to answer this question. In this paper, we propose one such method. More precisely, we propose kernel-based hypothesis tests for the challenging composite testing problem, where we are interested in whether the data comes from any distribution in some parametric family. Our tests make use of minimum distance estimators based on the maximum mean discrepancy and the kernel Stein discrepancy. They are widely applicable, including whenever the density of the parametric model is known up to normalisation constant, or if the model takes the form of a simulator. As our main result, we show that we are able to estimate the parameter and conduct our test on the same data (without data splitting), while maintaining a correct test level. Our approach is illustrated on a range of problems, including testing for goodness-of-fit of an unnormalised non-parametric density model, and an intractable generative model of a biological cellular network.
