Saved in:
Bibliographic Details
Main Authors: Ward, Daniel, Beaumont, Mark, Fasiolo, Matteo
Format: Preprint
Published: 2024
Subjects:
Online Access:https://arxiv.org/abs/2407.15687
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915271860551680
author Ward, Daniel
Beaumont, Mark
Fasiolo, Matteo
author_facet Ward, Daniel
Beaumont, Mark
Fasiolo, Matteo
contents Estimating a distribution given access to its unnormalized density is pivotal in Bayesian inference, where the posterior is generally known only up to an unknown normalizing constant. Variational inference and Markov chain Monte Carlo methods are the predominant tools for this task; however, both are often challenging to apply reliably, particularly when the posterior has complex geometry. Here, we introduce Soft Contrastive Variational Inference (SoftCVI), which allows a family of variational objectives to be derived through a contrastive estimation framework. The approach parameterizes a classifier in terms of a variational distribution, reframing the inference task as a contrastive estimation problem aiming to identify a single true posterior sample among a set of samples. Despite this framing, we do not require positive or negative samples, but rather learn by sampling the variational distribution and computing ground truth soft classification labels from the unnormalized posterior itself. The objectives have zero variance gradient when the variational approximation is exact, without the need for specialized gradient estimators. We empirically investigate the performance on a variety of Bayesian inference tasks, using both simple (e.g. normal) and expressive (normalizing flow) variational distributions. We find that SoftCVI can be used to form objectives which are stable to train and mass-covering, frequently outperforming inference with other variational approaches.
format Preprint
id arxiv_https___arxiv_org_abs_2407_15687
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SoftCVI: Contrastive variational inference with self-generated soft labels
Ward, Daniel
Beaumont, Mark
Fasiolo, Matteo
Machine Learning
Estimating a distribution given access to its unnormalized density is pivotal in Bayesian inference, where the posterior is generally known only up to an unknown normalizing constant. Variational inference and Markov chain Monte Carlo methods are the predominant tools for this task; however, both are often challenging to apply reliably, particularly when the posterior has complex geometry. Here, we introduce Soft Contrastive Variational Inference (SoftCVI), which allows a family of variational objectives to be derived through a contrastive estimation framework. The approach parameterizes a classifier in terms of a variational distribution, reframing the inference task as a contrastive estimation problem aiming to identify a single true posterior sample among a set of samples. Despite this framing, we do not require positive or negative samples, but rather learn by sampling the variational distribution and computing ground truth soft classification labels from the unnormalized posterior itself. The objectives have zero variance gradient when the variational approximation is exact, without the need for specialized gradient estimators. We empirically investigate the performance on a variety of Bayesian inference tasks, using both simple (e.g. normal) and expressive (normalizing flow) variational distributions. We find that SoftCVI can be used to form objectives which are stable to train and mass-covering, frequently outperforming inference with other variational approaches.
title SoftCVI: Contrastive variational inference with self-generated soft labels
topic Machine Learning
url https://arxiv.org/abs/2407.15687