[Paper Review] Doubly Reparameterized Gradient Estimators for Monte Carlo Objectives
This paper introduces the Doubly Reparameterized Gradient (DReG) estimator, a novel, unbiased gradient estimator for Monte Carlo objectives in variational inference. By applying the reparameterization trick twice, DReG eliminates the bias present in prior estimators like Roeder et al.'s, significantly reducing variance as the number of samples increases—leading to improved performance across IWAE, RWS, and JVI objectives on MNIST, Omniglot, and structured prediction tasks.
Deep latent variable models have become a popular model choice due to the scalable learning algorithms introduced by (Kingma & Welling, 2013; Rezende et al., 2014). These approaches maximize a variational lower bound on the intractable log likelihood of the observed data. Burda et al. (2015) introduced a multi-sample variational bound, IWAE, that is at least as tight as the standard variational lower bound and becomes increasingly tight as the number of samples increases. Counterintuitively, the typical inference network gradient estimator for the IWAE bound performs poorly as the number of samples increases (Rainforth et al., 2018; Le et al., 2018). Roeder et al. (2017) propose an improved gradient estimator, however, are unable to show it is unbiased. We show that it is in fact biased and that the bias can be estimated efficiently with a second application of the reparameterization trick. The doubly reparameterized gradient (DReG) estimator does not suffer as the number of samples increases, resolving the previously raised issues. The same idea can be used to improve many recently introduced training techniques for latent variable models. In particular, we show that this estimator reduces the variance of the IWAE gradient, the reweighted wake-sleep update (RWS) (Bornschein & Bengio, 2014), and the jackknife variational inference (JVI) gradient (Nowozin, 2018). Finally, we show that this computationally efficient, unbiased drop-in gradient estimator translates to improved performance for all three objectives on several modeling tasks.
Motivation & Objective
- Address the counterintuitive poor performance of standard gradient estimators for the IWAE bound as the number of samples increases.
- Identify and quantify the bias in Roeder et al.'s (2017) proposed gradient estimator for IWAE.
- Develop an unbiased, computationally efficient gradient estimator that maintains low variance even with large numbers of samples.
- Extend the proposed method to other multi-sample training techniques such as reweighted wake-sleep (RWS) and jackknife variational inference (JVI).
- Demonstrate empirically that the DReG estimator improves training stability and performance across diverse generative modeling and structured prediction tasks.
Proposed method
- Apply the reparameterization trick twice to derive an unbiased gradient estimator for the IWAE objective, resulting in the DReG estimator.
- Derive the DReG estimator by taking the expectation of the gradient of the IWAE bound with respect to both the inference network parameters and the latent variables.
- Show that the DReG estimator is unbiased and has lower variance than standard estimators, especially as the number of samples increases.
- Extend the DReG framework to RWS and JVI by applying the same double reparameterization principle to their respective objectives.
- Implement the DReG estimators as drop-in replacements for existing gradient estimators with no change in computational cost.
- Use convex combinations of DReG estimators (e.g., IWAE-DReG and RWS-DReG) to explore hybrid training strategies with improved performance on specific tasks.
Experimental results
Research questions
- RQ1Why does the standard gradient estimator for the IWAE bound degrade in performance as the number of samples increases?
- RQ2Is Roeder et al.'s (2017) gradient estimator for IWAE truly unbiased, and if not, what is the nature of its bias?
- RQ3Can a second application of the reparameterization trick eliminate the bias and reduce variance in gradient estimation for Monte Carlo objectives?
- RQ4To what extent can the DReG framework be generalized to other multi-sample variational inference methods like RWS and JVI?
- RQ5Does the DReG estimator lead to measurable improvements in training stability and model performance across diverse generative modeling and structured prediction tasks?
Key findings
- The DReG estimator is provably unbiased and significantly reduces gradient variance compared to standard estimators, especially as the number of samples increases.
- The DReG estimator outperforms the biased estimator from Roeder et al. (2017), which was previously thought to be unbiased but is shown to have non-negligible bias.
- On MNIST and Omniglot, the DReG estimator improves test log-likelihood bounds for all three objectives (IWAE, RWS, JVI), with consistent variance reduction.
- On the structured prediction task (predicting bottom half of MNIST digits), DReG-based training outperforms both biased and standard unbiased estimators, with RWS-DReG showing instability in later training stages.
- Convex combinations of IWAE-DReG and RWS-DReG yield improved performance on some tasks, though optimal weighting is task-dependent.
- The DReG estimator maintains the same computational cost as the original estimators, making it a practical, drop-in replacement for improved training efficiency and stability.
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.