Doubly Reparameterized Product-Form Bounds for High-Dimensional Importance Weighting

Multi-sample variational objectives train an approximate posterior by drawing $K$ guesses of the hidden variables and weighting each guess by how well it explains the data. At low dimension, more guesses help: the doubly reparameterized gradient (DReG), a way of computing the training gradient that removes a noisy score-function term, makes the gradient's signal-to-noise ratio grow with $K$. At high dimension this benefit disappears. The per-sample weights are products of many per-coordinate ratios, so their variance explodes exponentially with dimension and one sample takes all the weight. The $K$-sample method then behaves like a single-sample one. Learning with Importance Weighted Variational Inference proves this collapse for both the standard and the doubly reparameterized estimators whenever $\log K$ grows slower than dimension. Separately, On the difficulty of unbiased alpha divergence minimization shows that gradient signal-to-noise ratio decays exponentially in $d$ for mass-covering objectives.

We propose not to fight the weights globally. Instead, we change what is being weighted. Many real latent-variable models factor into a small set of global latents shared by everything and many local latents, one block per group or datapoint. For such models, Product-form estimators showed that recombining independently drawn local samples across blocks builds $K^n$ "virtual" joint samples at linear cost, and turns exponential error growth into linear growth. Our core claim is this: taking the log of a product-form estimator gives a valid variational lower bound, and applying double reparameterization to it gives an unbiased gradient. The dimension that controls weight collapse in this gradient is the size of the largest non-factorizing block, not the total latent dimension. If this holds, the $\mathcal{O}(\sqrt{K})$ signal-to-noise scaling of DReG survives in hierarchical models with thousands of latent dimensions, where it currently flatlines.

Core Claim

Consider a model with global latents $g$ and local latents $z_i$ for groups $i=1,\dots,n$, with joint density $p(g)\prod_i p(x_i,z_i\mid g)$. The proposal $q_\phi(g)\prod_i q_\phi(z_i\mid x_i)$ is chosen so that the local proposals do not depend on $g$. Draw $g_1,\dots,g_K$ and, independently, $z_{i1},\dots,z_{iK}$ for each group. The product-form estimate of the evidence is

$$\hat p(x) = \frac{1}{K}\sum_{k=1}^K \frac{p(g_k)}{q_\phi(g_k)}\prod_{i=1}^n \frac{1}{K}\sum_{l=1}^K \frac{p(x_i,z_{il}\mid g_k)}{q_\phi(z_{il}\mid x_i)}.$$

This estimate is unbiased for $p(x)$ by the argument of Kuntz et al.. Jensen's inequality then makes $\mathcal{L}_{PF}=\mathbb{E}[\log \hat p(x)]$ a lower bound on $\log p(x)$. For fixed $K$ this bound is at least as tight as the IWAE bound built from the same $K$ joint samples. It contains that bound's $K$ diagonal tuples inside a larger average.

The gradient of $\mathcal{L}_{PF}$ with respect to the local proposal parameters contains a score-function term for every local sample. That term's coefficient is $s_{il}=-\partial \log\hat p/\partial \log q_\phi(z_{il}\mid x_i)$, the total "responsibility" of sample $z_{il}$ across all $K$ global samples. Each local sample reaches the objective only through its own density ratios. The identity used by Doubly Reparameterized Gradient Estimators for Monte Carlo Objectives, which says $\mathbb{E}_q[h(z)\nabla_\phi\log q_\phi(z)]=\mathbb{E}[\nabla_z h(z)\,\partial z/\partial\phi]$ when $h$ is held fixed in $\phi$, therefore applies sample by sample. It gives

$$\nabla_\phi \mathcal{L}_{PF}=\mathbb{E}\Big[\sum_{i,l}\big(\nabla_{z}\log\hat p-\nabla_{z}s_{il}\big)\big|_{z=z_{il}}\frac{\partial z_{il}}{\partial\phi}\Big],$$

where densities are evaluated with $\phi$ held constant. This expression has no score-function term, can be computed with a single autodiff surrogate, and reduces to Tucker et al.'s $\tilde w^2$ weighting when $n=1$ and there is no global latent. The global parameters are handled the same way.

The quantitative hypothesis follows from how collapse arises. Log-weight variance grows linearly in the number of coordinates multiplied together (Brain et al.). Here the local weights involve only one block, and the global weight involves only $g$ plus per-group averages that are already smoothed by $K$ samples. We therefore expect the collapse condition of Daudel and Roueff to move from $\log K=o(d)$ to $\log K=o(d_{\text{block}})$, where $d_{\text{block}}$ is the larger of $\dim g$ and the largest local block.

There is a caveat, and we will measure it. The global weight still multiplies over $n$ groups. Its log-variance depends on how far $q_\phi(g)$ is from the global posterior, which concentrates as $n$ grows. A Gaussian $q(g)$ should track that posterior well, but this is exactly the point where the claim could fail.

Relation to Prior Work

Three papers motivate this proposal by documenting the wall.

  • Daudel and Roueff prove that doubly reparameterized VR-IWAE gradients flatline to single-sample signal-to-noise ratio in high $d$. They propose no remedy and test only synthetic Gaussians at $d\in\{10,100,500\}$. We keep their estimator family and change the bound.
  • Empirical Evaluation of Biased Methods for Alpha Divergence Minimization shows that biased multi-sample estimators, including a doubly reparameterized $\chi^2$ estimator, revert to exclusive-KL solutions above $d\approx100$. We test whether product-form weighting stops that reversion on structured targets.
  • Geffner and Domke's unbiased analysis constrains the design. Global unbiased schemes need about $4\times10^9$ samples per step at $d=128$, so any fix has to change which dimension appears in the exponent, not just reduce variance.

Several papers supply the method.

  • Tucker et al. provide the reparameterization identity.
  • Generalized Doubly Reparameterized Gradient Estimators extend it to hierarchical latents and learnable priors. We reuse its re-expression trick for the prior $p(g)$. Its analysis keeps global weights at fixed dimension, which is the part we replace.
  • Kuntz et al. supply the product-form estimator. They never differentiate it, never pair it with reparameterized proposals, and never train amortized inference with it.
  • Overdispersed Black-Box Variational Inference used local, coordinate-level weights to avoid collapse, but only with score-function gradients. Our estimator is pathwise and targets a proper bound.

Path-based methods are the main competing route. Monte Carlo Variational Auto-Encoders bridge proposal and target with Langevin steps, and Thermodynamic Variational Inference uses geometric paths with a doubly reparameterized gradient. Both pay repeated density and gradient evaluations per step. We pay nothing extra in decoder gradients, but we require conditional independence structure.

Research Program

The first component is analytical. We will derive the doubly reparameterized product-form gradient for the global and local parameters and verify its unbiasedness against exact gradients. We will then prove signal-to-noise asymptotics under the Gaussian random-field model of log-weights used by Daudel and Roueff. The target is a theorem stating that the $\mathcal{O}(\sqrt{K})$ rate holds whenever $\log K$ outgrows $d_{\text{block}}$, independent of $n$, together with an explicit term for global-weight degeneracy in terms of the Kullback–Leibler gap of $q(g)$.

The second component is computational. The naive cost is $K^2 n$ likelihood evaluations, because each local sample is scored under each global sample. We will implement it as a batched log-sum-exp. We will also test a subsampled variant that pairs each local sample with $M<K$ random globals and remains unbiased for $p(x)$.

The third component extends the approach to the VR-IWAE family of Daudel et al. by raising the product-form weights to the power $1-\alpha$. This tests whether mass-covering behavior survives in high dimension.

Baselines

The naive reference point is the single-sample evidence lower bound trained with the "sticking the landing" gradient. High-dimensional collapse theory says every global multi-sample method degenerates to this baseline, so a method that cannot beat it has achieved nothing.

The strongest existing method is global IWAE and VR-IWAE trained with DReG/DREP (Tucker et al., Daudel and Roueff), with GDREG (Bauer and Mnih) handling the learnable prior. It is the only estimator with proven $\mathcal{O}(\sqrt{K})$ signal-to-noise scaling, and its failure mode is exactly what we target. The reported figure is that DREP improves signal-to-noise over plain reparameterization by a factor of $4\alpha^{-1}$ in the linear Gaussian model at fixed $d$, with empirical flatlining at $d=100$ and $d=500$ (Daudel and Roueff). No reported test log-likelihood for hierarchical Bayesian models was found on Lacuna for this baseline.

The path-based competitor is the Langevin MCVAE (Thin et al.). No numeric result for it was found on Lacuna.

Two ablations isolate the key ingredients. The first uses the product-form bound with standard reparameterized gradients, which isolates the contribution of double reparameterization. The second is a "diagonal-only" local IWAE that uses one global sample and per-group averages, which isolates the contribution of cross-pairing global and local samples.

All methods get the same models, data, proposal families, and optimizer. Compute is matched in wall-clock time and in likelihood evaluations, not in $K$, since product-form spends $K^2n$ evaluations. Each method gets the same learning-rate sweep. Our method counts as beating the baselines if, at matched compute, it gives higher held-out log-likelihood with non-overlapping seed intervals and a signal-to-noise ratio that keeps rising with $K$ where global DReG has flattened.

Why not just…?

Why not just use the single-sample ELBO, since multi-sample methods collapse to it anyway? Because product-form bounds are provably tighter at fixed $K$ and should stay strictly tighter in high $d$ when collapse is avoided. The comparison is direct: if the product-form bound's gap over the ELBO shrinks to zero as $n$ grows, the claim is wrong.

Why not just do per-group IWAE conditioned on one global sample? This is a real threat when the posterior over $g$ is sharp, because cross-pairing then adds little. We include it as the diagonal-only ablation. We expect it to lose when the global posterior is broad relative to $q(g)$, as with few groups or a weakly identified hyperprior, and to tie otherwise. We will report where the crossover occurs rather than claim uniform gains.

Why not just use Langevin or thermodynamic paths? They avoid single-step collapse without requiring factorization, and they are the only option for coupled decoders. That is why we do not claim generic image VAEs. But they multiply decoder gradient calls per step, and the evidence file reports no high-$d$ doubly reparameterized analysis for them. At matched likelihood evaluations on structured models, we expect product-form to win. Where structure is absent, such as Bayesian logistic regression on sonar ($d=61$) or a1a ($d=120$), we expect path methods to win, and we will say so.

Why not just temper the weights with $\alpha$? Daudel and Roueff show that VR-IWAE collapses for every $\alpha\in[0,1)$ when $\log K=o(d)$, so tempering by itself does not change the exponent. We still sweep $\alpha$ for every method.

Proposed Experiments

The first check uses the linear Gaussian benchmark of Daudel and Roueff: 1024 points drawn from $\mathcal{N}(0,2I_d)$ at $d\in\{10,100,500\}$, with exact gradients. There the model factorizes by coordinate, so product-form DReG should recover the $d=10$ signal-to-noise curve at $d=500$. This is a sanity check rather than evidence, because separable models are easy.

The first real test is Geffner and Domke's synthetic Gaussian with linearly growing variance at $d=1000$, where baselines recover exclusive-KL variances even at $K=1000$. We ask whether the product-form $\chi^2$ and VR variants move the recovered variance toward the mass-covering solution as $K$ grows.

The decisive test is the 100-dimensional Bayesian hierarchical model of Kuntz et al., where standard importance sampling let one sample dominate. We scale it to $n$ from 10 to 1000 groups and measure four things: gradient signal-to-noise for local and global parameters against $K$ and $n$, effective sample size of global and local weights, the bound gap relative to long-run MCMC, and posterior variance recovery.

Finally, we test on latent-variable deep Gaussian processes on the UCI forest, solar, and power datasets. Rudner et al. report DREG gains there, significant on forest with a p-value of 0.1%. Treating inducing outputs as global latents and per-point latents as local, we report test log-likelihood at matched compute.

The idea fails if global-weight effective sample size decays toward one as $n$ grows despite a well-fit $q(g)$, or if the diagonal-only ablation matches the full method everywhere.