SoftCVI: Contrastive variational inference with self-generated soft labels
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 56 of its 92 references that are in the map. First posted on arXiv 22 Jul 2024.
Builds on
56 of 92 references.
References · 56
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2020A Simple Framework for Contrastive Learning of Visual Representationscited by 12,049
- 2018Representation Learning with Contrastive Predictive Codingcited by 7,777
- 2019Momentum Contrast for Unsupervised Visual Representation Learningcited by 7,513
- 2016Variational Inference: A Review for Statisticianscited by 1,472
- 2019When Does Label Smoothing Help?cited by 988
- 2017Masked Autoregressive Flow for Density Estimationcited by 684
- 2016Improving Variational Inference with Inverse Autoregressive Flowcited by 640
- 2019Neural Spline Flowscited by 596
- 2015Importance Weighted Autoencoderscited by 456
- 2020Understanding the Behaviour of Contrastive Losscited by 398
- 2015Adversarial Autoencoderscited by 364
38 more
- 2013Black Box Variational Inferencecited by 319
- 2020Neural Additive Models: Interpretable Machine Learning with Neural Netscited by 319
- 2021What Are Bayesian Neural Network Posteriors Really Like?cited by 308
- 2015MADE: Masked Autoencoder for Distribution Estimationcited by 307
- 2018Sequential Neural Likelihood: Fast Likelihood-free Inference with Autoregressive Flowscited by 221
- 2019Automatic Posterior Transformation for Likelihood-Free Inferencecited by 219
- 2019Composable Effects for Flexible and Accelerated Probabilistic Programming in NumPyrocited by 191
- 2021Benchmarking Simulation-Based Inferencecited by 162
- 2018Neural Importance Samplingcited by 155
- 2021Equinox: neural networks in JAX via callable PyTrees and filtered transformationscited by 148
- 2018Validating Bayesian Inference Algorithms with Simulation-Based Calibrationcited by 124
- 2020Telescoping Density-Ratio Estimationcited by 108
- 2017Adversarial Variational Bayes: Unifying Variational Autoencoders and Generative Adversarial Networkscited by 107
- 2016R'enyi Divergence Variational Inferencecited by 104
- 2017Sticking the Landing: Simple, Lower-Variance Gradient Estimators for Variational Inferencecited by 98
- 2020On Contrastive Learning for Likelihood-free Inferencecited by 98
- 2016Likelihood-free inference by ratio estimationcited by 81
- 2018Tighter Variational Bounds are Not Necessarily Bettercited by 76
- 2019Flow Contrastive Estimation of Energy-Based Modelscited by 75
- 2019NeuTra-lizing Bad Geometry in Hamiltonian Monte Carlo Using Neural Transportcited by 74
- 2020A Contrastive Learning Approach for Training Variational Autoencoder Priorscited by 66
- 2019Quality of Uncertainty Quantification for Bayesian Neural Network Inferencecited by 59
- 2018Yes, but Did It Work?: Evaluating Variational Inferencecited by 53
- 2013Hamiltonian Monte Carlo for Hierarchical Modelscited by 52
- 2020Markovian Score Climbing: Variational Inference with KL(p||q)cited by 46
- 2022Robust Neural Posterior Estimation and Statistical Model Criticismcited by 46
- 2022Investigating the Impact of Model Misspecification in Neural Simulation-based Inferencecited by 45
- 2022Variational methods for simulation-based inferencecited by 43
- 2017Variational Inference using Implicit Distributionscited by 39
- 2022Ranking Info Noise Contrastive Estimation: Boosting Contrastive Learning via Ranked Positivescited by 37
- 2021Challenges and Opportunities in High-dimensional Variational Inferencecited by 35
- 2021Variational Refinement for Importance Sampling Using the Forward Kullback-Leibler Divergencecited by 29
- 2020f-Divergence Variational Inferencecited by 28
- 2021A Trust Crisis In Simulation-Based Inference? Your Posterior Approximations Can Be Unfaithfulcited by 28
- 2019Automatic Reparameterisation of Probabilistic Programscited by 18
- 2022Adaptive Soft Contrastive Learningcited by 13
- 2018Good Initializations of Variational Bayes for Deep Modelscited by 11
- 2022The Optimal Noise in Noise-Contrastive Learning Is Not What You Thinkcited by 11
50 most cited of 56 All 56 (JSON)
Built on by
Citing papers per year: 2025: 1.
1 paper.
- 2025Probabilistic Variational Contrastive Learningcited by 2
- 2025Probabilistic Variational Contrastive Learning11 Jun 2025