SoftCVI: Contrastive variational inference with self-generated soft labels
<|reference_start|>SoftCVI: Contrastive variational inference with self-generated soft labels: 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.<|reference_end|>
@article{ward2024softcvi:,
    title={SoftCVI: Contrastive variational inference with self-generated soft
  labels},
    author={Daniel Ward, Mark Beaumont and Matteo Fasiolo},
    journal={arXiv preprint arXiv:2407.15687},
    year={2024},
    archivePrefix={arXiv},
    eprint={2407.15687},
    primaryClass={stat.ML cs.LG}
}