A kernel Stein test of goodness of fit for sequential models

Jerome Baum, Heishiro Kanagawa, Arthur Gretton
10/19/2022
stat.MLcs.LGstat.CO

Official code: test-for-sequential-models/code (4 stars, Python, last commit 2023-07-24).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

40PythonOct 13, 20223 years ago

Similar Papers

Cite this paper

@article{baum2022kernel,
  title  = {A kernel Stein test of goodness of fit for sequential models},
  author = {Jerome Baum and Heishiro Kanagawa and Arthur Gretton},
  year   = {2022},
  eprint = {2210.10741},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.10741}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.10741.svg)](https://codeofpaper.com/paper/2210.10741)

Discussion