[Paper Review] A Kernelized Stein Discrepancy for Goodness-of-fit Tests and Model Evaluation
This paper introduces a kernelized Stein discrepancy (KSD) for likelihood-free goodness-of-fit testing in complex, high-dimensional models with intractable normalization constants. By combining Stein's identity with reproducing kernel Hilbert space (RKHS) theory, it enables efficient U-statistic-based empirical estimation of discrepancy using only the score function of the model, achieving powerful, computationally tractable tests without likelihood evaluation.
We derive a new discrepancy statistic for measuring differences between two probability distributions based on combining Stein's identity with the reproducing kernel Hilbert space theory. We apply our result to test how well a probabilistic model fits a set of observations, and derive a new class of powerful goodness-of-fit tests that are widely applicable for complex and high dimensional distributions, even for those with computationally intractable normalization constants. Both theoretical and empirical properties of our methods are studied thoroughly.
Motivation & Objective
- To develop a computationally tractable discrepancy measure for goodness-of-fit testing when likelihoods are intractable.
- To enable model evaluation in high-dimensional and complex probabilistic models, such as deep generative models and graphical models.
- To provide a test with calibrated statistical significance that avoids reliance on likelihood or CDF comparisons.
- To ensure the method depends only on the score function, which is independent of normalization constants.
- To offer a general-purpose, scalable alternative to traditional tests like chi-squared or Kolmogorov-Smirnov in settings with intractable likelihoods.
Proposed method
- Proposes a kernelized Stein discrepancy (KSD) by restricting the test function space to an RKHS ball, enabling tractable computation.
- Derives an explicit form of the discrepancy as an expectation over i.i.d. samples: $\hat{\mathbb{S}}(p,q) = \frac{1}{n(n-1)}\sum_{i \neq j} u_q(x_i, x_j)$, where $u_q$ depends only on the score function $\nabla_x \log q(x)$.
- Employs U-statistics to estimate the discrepancy, allowing for well-characterized sampling distributions and valid hypothesis testing.
- Uses the score function $\mathbf{s}_q = \nabla_x \log q(x)$, which avoids normalization constant dependence, enabling application to unnormalized models.
- Applies the method to test $H_0: p = q$ by testing whether $\mathbb{E}_p[u_q(x,x')] = 0$, leveraging asymptotic theory of U-statistics.
- Introduces variants including KSD-linear (for $O(n)$ complexity) and KSD-U (for higher power), with block averaging as a complexity trade-off.
Experimental results
Research questions
- RQ1Can a discrepancy measure be constructed that is both computationally tractable and powerful for high-dimensional, unnormalized models?
- RQ2Can the score function alone—without the normalization constant—enable effective goodness-of-fit testing?
- RQ3How does the proposed KSD-based test compare in power to MMD and likelihood ratio tests in scenarios with intractable likelihoods?
- RQ4Can the method maintain statistical significance and power when likelihoods are computationally infeasible to compute?
- RQ5What is the theoretical and empirical performance of KSD compared to existing methods like MMD and MCMC-based approximations?
Key findings
- KSD-U outperforms MMD-MC(1000) and MMD-MCMC in detecting deviations in high-dimensional Gaussian-Bernoulli RBMs, especially when MCMC samples are unrepresentative.
- KSD-linear performs worse than KSD-U but offers a computationally efficient $O(n)$ alternative, useful for large-scale models.
- The oracle likelihood ratio test achieves the best power, confirming that KSD-U is competitive despite not using full likelihoods.
- MMD-MCMC fails to distinguish $p=q$ from $p \neq q$ in the RBM experiment, indicating poor performance with inaccurate MCMC samples.
- The discrepancy measure under the null ($p=q$) is consistently lower than under alternatives ($p \neq q$), validating the method’s ability to detect model misfit.
- The method enables valid hypothesis testing via U-statistic theory, with well-characterized sampling distributions for $\hat{\mathbb{S}}(p,q)$.
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.