Fast and Scalable Score-Based Kernel Calibration Tests
Pierre Glaser, David Widmann, Fredrik Lindsten, Arthur Gretton
TL;DR
This work tackles calibration testing for probabilistic models, including unnormalized densities, where traditional density-based expectations are expensive or intractable. It proposes the Kernel Calibration-Conditional Stein Discrepancy (KCCSD) test, a fast, score-based, kernel CGOF method that avoids density-expectation computations and provides statistically sound type-I error control. The authors introduce two kernel constructions grounded in a Generalized Fisher Divergence (GFD) and its kernelized diffusion variant (KGFD), along with a diffusion interpretation that links these kernels to stochastic processes and MMD, yielding universal, tractable estimators. The approach achieves calibrated performance on synthetic benchmarks and offers practical relevance for Bayesian inference and simulation-based problems, with potential to serve as a regularizer during model training. Overall, KCCSD delivers scalable calibration testing for complex probabilistic models, including unnormalized or energy-based densities, expanding reliable model assessment in SBI and related domains.
Abstract
We introduce the Kernel Calibration Conditional Stein Discrepancy test (KCCSD test), a non-parametric, kernel-based test for assessing the calibration of probabilistic models with well-defined scores. In contrast to previous methods, our test avoids the need for possibly expensive expectation approximations while providing control over its type-I error. We achieve these improvements by using a new family of kernels for score-based probabilities that can be estimated without probability density samples, and by using a conditional goodness-of-fit criterion for the KCCSD test's U-statistic. We demonstrate the properties of our test on various synthetic settings.
