Statistical Model Criticism of Variational Auto-Encoders

Claartje Barkhof, Wilker Aziz · OpenReview

Abstract

We propose a framework for the statistical evaluation of variational auto-encoders (VAEs) and test two instances of this framework in the context of modelling images of handwritten digits and a corpus of English text. Our take on evaluation is based on the idea of statistical model criticism, popular in Bayesian data analysis, whereby a statistical model is evaluated in terms of its ability to reproduce statistics of an unknown data generating process from which we can obtain samples. A VAE learns not one, but two joint distributions over a shared sample space, each exploiting a choice of factorisation that makes sampling tractable in one of two directions (latent-to-data, data-to-latent). We evaluate samples from these distributions, assessing their (marginal) fit to the observed data and our choice of prior, and we also evaluate samples through a pipeline that connects the two distributions starting from a data sample, assessing whether together they exploit and reveal latent factors of variation that are useful to a practitioner. We show that this methodology offers possibilities for model selection qualitatively beyond intrinsic evaluation metrics and at a finer granularity than commonly used statistics can offer.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Penn Treebank (PTB), held-out evaluationBETA-VAE (β=0.50; Distil roBERTa decoder)IW LL-89.176Importance-sampling estimate on held-out data; β=0.50.
Source quote
L397: Distil roBERTa │ BETA-VAE │ 0.50 │ -89.176 │ -91.301 │ 4.669 │ 86.632 │ 0.000131
Penn Treebank (PTB), held-out evaluationFB-VAE (λ_FB=4; Distil roBERTa decoder)IW LL-89.834Importance-sampling estimate on held-out data; λ_FB=4.
Source quote
L395: Distil roBERTa │ FB-VAE │ 4 │ -89.834 │ -91.519 │ 3.829 │ 87.690 │ 0.000075
Penn Treebank (PTB), held-out evaluationINFO-VAE (λ_MMD=100, λ_rate=1.0; Distil roBERTa decoder)IW LL-86.616Importance-sampling estimate on held-out data; λ_MMD=100 and λ_rate=1.0.
Source quote
L401: Distil roBERTa │ INFO-VAE │ 100 │ 1.0 │ -86.616 │ -90.574 │ 0.004 │ 90.570 │ 0.000018
BibTeX
@misc{barkhof2022statistical,
  author = {Claartje Barkhof and Wilker Aziz},
  title = {{Statistical Model Criticism of Variational Auto-Encoders}},
  year = {2022},
  eprint = {2204.03030},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2204.03030},
}
Figure