[Paper Review] Efficient Gradient-Based Inference through Transformations between Bayes Nets and Neural Nets
This paper introduces a differentiable reparameterization technique that transforms between centered and non-centered parameterizations of latent variables in Bayesian networks and neural networks, enabling efficient gradient-based inference. The key contribution is showing that non-centered parameterization reduces posterior correlations and improves sampling efficiency, especially in high-dimensional or highly correlated models.
Hierarchical Bayesian networks and neural networks with stochastic hidden units are commonly perceived as two separate types of models. We show that either of these types of models can often be transformed into an instance of the other, by switching between centered and differentiable non-centered parameterizations of the latent variables. The choice of parameterization greatly influences the efficiency of gradient-based posterior inference; we show that they are often complementary to eachother, we clarify when each parameterization is preferred and show how inference can be made robust. In the non-centered form, a simple Monte Carlo estimator of the marginal likelihood can be used for learning the parameters. Theoretical results are supported by experiments.
Motivation & Objective
- Address the inefficiency of gradient-based inference in hierarchical Bayesian networks and deep generative models due to high posterior correlations.
- Explore the duality between Bayesian networks and neural networks through reparameterization of continuous latent variables.
- Demonstrate that non-centered parameterization (DNCP) reduces posterior dependencies and improves sampling efficiency.
- Develop a robust inference strategy that switches between parameterizations to maintain efficiency across different model regimes.
- Enable differentiable marginal likelihood estimation for end-to-end learning in deep generative models.
Proposed method
- Introduce a differentiable non-centered parameterization (DNCP) where latent variables are expressed as deterministic functions of noise variables and parameters: $\mathbf{z}_j = g_j(\mathbf{pa}_j, \boldsymbol{\epsilon}_j, \boldsymbol{\theta})$.
- Use the reparameterization trick to make the joint log-likelihood differentiable with respect to model parameters, enabling backpropagation.
- Apply Hybrid Monte Carlo (HMC) and no-U-turn samplers to perform posterior inference in the DNCP form, leveraging smooth gradients.
- Use a Monte Carlo estimator of the marginal likelihood in DNCP for parameter learning via gradient ascent.
- Design a mixture MCMC strategy that alternates between centered and non-centered forms to improve mixing in high-correlation regimes.
- Implement and compare Maximum Monte Carlo Likelihood (MMCL) and MCEM for training deep generative models on MNIST.
Experimental results
Research questions
- RQ1How do posterior correlations in hierarchical models depend on the parameterization of latent variables?
- RQ2Can the non-centered parameterization reduce posterior dependencies and improve sampling efficiency in gradient-based inference?
- RQ3In what scenarios is the non-centered parameterization more effective than the centered form?
- RQ4Can a hybrid MCMC strategy that switches between parameterizations improve robustness and mixing in high-dimensional models?
- RQ5How does the performance of differentiable marginal likelihood estimation compare to traditional MCEM in deep generative models?
Key findings
- The non-centered parameterization (DNCP) significantly reduces posterior correlations when latent variables are strongly influenced by their parents, leading to faster mixing in HMC.
- For small variances in latent variables ($\sigma_z^2 \to 0$), the centered parameterization (CP) exhibits very high posterior correlations, causing slow HMC mixing.
- The DNCP form enables efficient gradient-based learning via a simple Monte Carlo estimator of the marginal likelihood, which is differentiable with respect to model parameters.
- MMCL with $L=500$ samples achieved competitive marginal likelihood on MNIST, outperforming MCEM in training speed and scalability to large datasets.
- Despite slower mixing in high-dimensional latent spaces, DNCP still provided better convergence than CP in the same settings.
- Theoretical analysis confirmed that posterior correlations are complementary between CP and DNCP: high in one, low in the other, enabling robust MCMC via parameterization switching.
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.