A Kernel Stein Test of Goodness of Fit for Sequential Models
Jerome Baum, Heishiro Kanagawa, Arthur Gretton
Abstract
We propose a goodness-of-fit measure for probability densities modeling observations with varying dimensionality, such as text documents of differing lengths or variable-length sequences. The proposed measure is an instance of the kernel Stein discrepancy (KSD), which has been used to construct goodness-of-fit tests for unnormalized densities. The KSD is defined by its Stein operator: current operators used in testing apply to fixed-dimensional spaces. As our main contribution, we extend the KSD to the variable-dimension setting by identifying appropriate Stein operators, and propose a novel KSD goodness-of-fit test. As with the previous variants, the proposed KSD does not require the density to be normalized, allowing the evaluation of a large class of models. Our test is shown to perform well in practice on discrete sequential data benchmarks.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- A Bias-Variance-Covariance Decomposition of Kernel Scores for Generative ModelsSebastian Gregor Gruber, Florian BuettnerICML 2024 · 6 citations
- A Kernelized Stein Discrepancy for Biological SequencesAlan Nawzad Amin, Eli N. Weinstein, Debora Susan MarksICML 2023 · 4 citations
- Anchor-based Maximum Discrepancy for Relative Similarity TestingZhijian Zhou, Liuhua Peng, Xunye Tian, Feng LiuNeurIPS 2025 · 2 citations
- Sequential Kernel Goodness-of-fit TestingZhengyu Zhou, Weiwei LiuICML 2024 · 1 citation
- Kernel-Based Evaluation of Conditional Biological Sequence ModelsPierre Glaser, Steffanie Paul, Alissa M. Hummer, Charlotte M. Deane et al.ICML 2024
Builds on2
- Gradient Estimation with Discrete Stein OperatorsJiaxin Shi, Yuhao Zhou, Jessica Hwang, Michalis K. Titsias et al.NeurIPS 2022 · 27 citations
- Kernelized Stein Discrepancy Tests of Goodness-of-fit for Time-to-Event DataTamara Fernandez, Nicolas Rivera, Wenkai Xu, Arthur GrettonICML 2020 · 16 citations
Related papers
- Sliced Kernelized Stein DiscrepancyWenbo Gong, Yingzhen Li, José Miguel Hernández-LobatoICLR 2021 · 14 citations
- Using Perturbation to Improve Goodness-of-Fit Tests based on Kernelized Stein DiscrepancyXing Liu, Andrew B. Duncan, Axel GandyICML 2023 · 8 citations
- A Kernelised Stein Statistic for Assessing Implicit Generative ModelsWenkai Xu, Gesine D. ReinertNeurIPS 2022 · 4 citations
- The Polynomial Stein Discrepancy for Assessing Moment ConvergenceNarayan Srinivasan, Matthew Sutton, Christopher C. Drovandi, Leah F. SouthICML 2025
- Learning the Stein Discrepancy for Training and Evaluating Energy-Based Models without SamplingWill Grathwohl, Kuan-Chieh Wang, Jörn-Henrik Jacobsen, David Duvenaud et al.ICML 2020 · 93 citations
