[Paper Review] Learning Model Reparametrizations: Implicit Variational Inference by Fitting MCMC distributions
This paper proposes a novel implicit variational inference method that combines Markov chain Monte Carlo (MCMC) transitions with learnable model-based reparametrizations to construct flexible, differentiable variational approximations without requiring log density ratio computations. By applying the reparametrization trick to MCMC-derived implicit distributions, the method enables stable, scalable optimization in continuous, differentiable models, achieving superior posterior approximation and generative performance on complex distributions and variational autoencoders.
We introduce a new algorithm for approximate inference that combines reparametrization, Markov chain Monte Carlo and variational methods. We construct a very flexible implicit variational distribution synthesized by an arbitrary Markov chain Monte Carlo operation and a deterministic transformation that can be optimized using the reparametrization trick. Unlike current methods for implicit variational inference, our method avoids the computation of log density ratios and therefore it is easily applicable to arbitrary continuous and differentiable models. We demonstrate the proposed algorithm for fitting banana-shaped distributions and for training variational autoencoders.
Motivation & Objective
- To address the trade-off between optimization efficiency and approximation flexibility in variational inference by leveraging MCMC for non-parametric flexibility.
- To enable stable, differentiable optimization of implicit variational distributions without requiring explicit log density ratio computation.
- To combine the strengths of MCMC (flexible, non-parametric posterior approximation) and variational inference (fast, scalable optimization) via model-based reparametrization.
- To develop a method applicable to arbitrary continuous and differentiable models that supports amortized inference and end-to-end training.
Proposed method
- Constructs an implicit variational distribution by applying a deterministic transformation to samples from an MCMC transition kernel, enabling differentiability via the reparametrization trick.
- Uses a learnable reparametrization function $ L(\mathbf{x}) $ and $ \bm{\mu}(\mathbf{x}) $ to map noise variables $ \bm{\epsilon} \sim q_{\text{MCMC}}(\bm{\epsilon}) $ to latent variables $ \mathbf{z} = L(\mathbf{x})\bm{\epsilon} + \bm{\mu}(\mathbf{x}) $.
- Optimizes the variational lower bound $ \mathcal{F}(\bm{\theta}) = \mathbb{E}_{q(\mathbf{z};\bm{\theta})}[\log p(\mathbf{x},\mathbf{z}) - \log q(\mathbf{z};\bm{\theta})] $ using stochastic gradient descent with reparameterized gradients.
- Employs Hamiltonian Monte Carlo (HMC) or random walk Metropolis-Hastings (MH) as the MCMC kernel to generate flexible, complex posterior approximations.
- Avoids computation of log density ratios by treating the MCMC output as an implicit distribution, enabling gradient-based optimization without explicit density evaluation.
- Applies amortized inference: for a test input $ \mathbf{x}_* $, generate $ \bm{\epsilon}_* \sim q_{\text{MCMC}}(\bm{\epsilon}) $, then compute $ \mathbf{z}_* = L(\mathbf{x}_*)\bm{\epsilon}_* + \bm{\mu}(\mathbf{x}_*) $ for fast posterior sampling.
Experimental results
Research questions
- RQ1Can MCMC transitions be used to construct flexible, implicit variational distributions that are differentiable and trainable via reparametrization?
- RQ2Does avoiding explicit log density ratio computation improve stability and scalability in implicit variational inference?
- RQ3Can MCMC-based reparametrizations outperform standard Gaussian or normalizing flow-based variational approximations in modeling complex posteriors?
- RQ4How does the combination of MCMC and reparametrization affect training stability and reconstruction quality in variational autoencoders?
Key findings
- The HMC-based method achieved a cross-entropy reconstruction score of -104.1400 on MNIST test data with latent dimension $ n=5 $, compared to -111.2939 for the standard Gaussian approximation.
- With $ n=10 $, the HMC-based method achieved -82.3134 cross-entropy, compared to -87.3213 for the Gaussian baseline, showing improved generative performance.
- The proposed method successfully captured complex, banana-shaped posterior distributions, demonstrating superior flexibility over standard VI with Gaussian approximations.
- Amortized inference enabled fast, sample-based posterior approximation for test data without re-running optimization, using only MCMC and reparametrization.
- The method achieved better convergence and training stability than existing implicit VI methods that require log density ratio estimation.
- The algorithm demonstrated effective performance on both synthetic posteriors and real-world VAE training, with no need for explicit density evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.