Skip to main content
QUICK REVIEW

[Paper Review] A Kernel Stein Test for Comparing Latent Variable Models

Heishiro Kanagawa, Wittawat Jitkrittum|arXiv (Cornell University)|Jul 1, 2019
Statistical Methods and Bayesian InferenceMathematics60 references7 citations
TL;DR

This paper introduces a kernel Stein test (LKSD) for comparing latent variable models with intractable marginal likelihoods, leveraging Stein's method and kernelized discrepancy to enable nonparametric, sample-based model comparison without requiring normalizing constants. The method achieves well-controlled type-I error rates and significantly outperforms relative MMD tests in high-dimensional, low-latent-dimensional settings.

ABSTRACT

We propose a kernel-based nonparametric test of relative goodness of fit, where the goal is to compare two models, both of which may have unobserved latent variables, such that the marginal distribution of the observed variables is intractable. The proposed test generalizes the recently proposed kernel Stein discrepancy (KSD) tests (Liu et al., 2016, Chwialkowski et al., 2016, Yang et al., 2018) to the case of latent variable models, a much more general class than the fully observed models treated previously. The new test, with a properly calibrated threshold, has a well-controlled type-I error. In the case of certain models with low-dimensional latent structure and high-dimensional observations, our test significantly outperforms the relative Maximum Mean Discrepancy test, which is based on samples from the models and does not exploit the latent structure.

Motivation & Objective

  • To develop a nonparametric, sample-based test for comparing latent variable models where marginal likelihoods are intractable.
  • To extend kernel Stein discrepancy (KSD) to models with unobserved latent variables, generalizing prior work on fully observed models.
  • To ensure well-controlled type-I error rates through proper calibration of the test threshold.
  • To outperform existing methods like relative MMD in high-dimensional, low-latent-dimensional settings by exploiting latent structure.
  • To provide a practical, computationally efficient alternative to likelihood-ratio tests when marginal densities are intractable.

Proposed method

  • The method uses a kernel Stein discrepancy (KSD) adapted for latent variable models by constructing a model-specific Stein operator that does not require computing the normalizing constant.
  • It formulates a test statistic based on the discrepancy between samples from two rival models and a reference data set, using a witness function from a Stein-transformed reproducing kernel Hilbert space.
  • Three variance estimators are evaluated: jackknife, U-statistic, and V-statistic, with the jackknife and V-statistic showing better robustness and type-I error control.
  • The test statistic is calibrated using a threshold derived from asymptotic normality, ensuring well-controlled type-I error under the null hypothesis.
  • The approach leverages the fact that the Stein operator's expectation is zero under the true model, reducing the discrepancy to a term depending only on the sample.
  • The method is applied to probabilistic PCA (PPCA) and latent Dirichlet allocation (LDA) models, demonstrating performance on synthetic data with varying perturbation parameters.

Experimental results

Research questions

  • RQ1Can a kernel Stein test be generalized to compare latent variable models with intractable marginal distributions?
  • RQ2How does the proposed LKSD test perform in terms of type-I error control compared to existing methods like relative MMD?
  • RQ3Which variance estimator—jackknife, U-statistic, or V-statistic—provides the most reliable type-I error control in practice?
  • RQ4Does exploiting latent structure in high-dimensional models lead to improved statistical power compared to sample-based MMD tests?
  • RQ5What happens to the test's behavior when the two models being compared are identical, violating the asymptotic normality assumption?

Key findings

  • The LKSD test with the jackknife and V-statistic variance estimators maintains type-I error rates close to the nominal level α=0.05, even as models become increasingly similar.
  • The U-statistic variance estimator systematically underestimates the true variance, leading to higher type-I error rates, and occasionally returns negative values, which the authors recommend avoiding.
  • In PPCA and LDA experiments, the LKSD test significantly outperforms the relative MMD test in detecting differences when the latent structure is low-dimensional and observations are high-dimensional.
  • When models are identical, the jackknife and V-statistic LKSD tests remain conservative, rejecting the null at rates well below α=0.05, despite theoretical assumptions being violated.
  • The LKSD test demonstrates robustness and reliability in both null and alternative scenarios, particularly when latent structure is exploited.
  • The proposed method enables effective, calibrated model comparison without requiring marginal likelihood computation, making it suitable for complex latent variable models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.