Reproduce “A Kernel Stein Test for Comparing Latent Variable Models” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Heishiro Kanagawa, Wittawat Jitkrittum, Lester Mackey, Kenji Fukumizu, Arthur Gretton

The authors introduce latent-variable kernel Stein discrepancy (LKSD) testing to compare generative models when observed-data likelihoods are intractable. The method averages each model’s conditional score over posterior latent states sampled by MCMC, then compares squared KSDs. In experiments, LKSD rejected 0.913 versus relative MMD’s 0.197 at n=300, but failed under support mismatch and depends on kernels and sampler quality.

Key insights

  • The marginal score function of a latent variable model can be expressed as an expectation of the conditional score function over the latent posterior, which can be estimated via MCMC.
  • Leveraging this generalized Stein identity allows KSD-based goodness-of-fit testing for LVMs even when their marginal likelihoods are intractable, providing a robust frequentist framework.
  • By incorporating model structure through the score function, the proposed test can detect subtle model misspecifications more effectively than purely sample-based two-sample tests.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.