Back to paper library
Paper notesarXiv 2015ICLR 2016

IWAE

Go Easy on q

Original paper

Importance Weighted Autoencoders

Paper authors

Yuri Burda · Roger Grosse · Ruslan Salakhutdinov

Publication
ICLR 2016Conference
First submitted to arXiv
arXiv:1509.00519
Cite this paper · BibTeX

The citation identifies the linked source version. It cites the original paper and its authors.

@misc{imagegenerationiwae2015,
  title = {{Importance Weighted Autoencoders}},
  author = {Yuri Burda and Roger Grosse and Ruslan Salakhutdinov},
  year = {2015},
  eprint = {1509.00519},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1509.00519}
}
On this page

Suppose that for every image, the encoder draws five latent variables, and only one of them lands where the true posterior probability is high, while the other four are wrong guesses. Is this a good encoder or a bad one?

The VAE objective is harsh on this situation. Each of the five samples gets its own bound, the bounds are averaged, and the four wrong guesses drag the average way down, so both the inference network and the generative network get led around by those four samples. In Section 3 of their paper, Burda, Grosse, and Salakhutdinov of the University of Toronto write that a recognition network placing "only a small fraction (e.g. 20%) of its samples" in the region of high posterior probability "may still be sufficient for performing accurate inference."

They wanted to lower the standards a little and see whether the generative model would learn better as a result.

Defining the problem

The VAE bound makes the model play along

First, a recap of the VAE's evidence lower bound, Eq. (3) of the paper:

log⁡p(x)=log⁡Eq(h∣x)[p(x,h)q(h∣x)]≥Eq(h∣x)[log⁡p(x,h)q(h∣x)]=L(x)\begin{aligned} \log p(x) &= \log \mathbb E_{q(h|x)}\left[\frac{p(x,h)}{q(h|x)}\right] \\ &\ge \mathbb E_{q(h|x)}\left[\log\frac{p(x,h)}{q(h|x)}\right] = \mathcal L(x) \end{aligned}

Here the latent variable is written hh, as in the paper. The inequality in the middle comes from Jensen's inequality; log⁡\log is concave, so the log of an expectation is no less than the expectation of the log. The gap is exactly DKL(q(h∣x) ∥ p(h∣x))D_{\mathrm{KL}}\big(q(h|x)\,\|\,p(h|x)\big).

This gap feeds back into the generative model. The VAE's approximate posterior is usually a diagonal Gaussian, with parameters regressed from xx by a neural network. If the generative model's posterior doesn't look like a diagonal Gaussian, say it has two peaks or bends into an arc, the KL gap gets large and the bound is pulled down. Maximizing the bound therefore pushes the model toward representations in which "the posterior happens to be easy to approximate."

The paper concedes that this has a benefit, since inference becomes easy; the cost is that the generative model's expressive power is tied down by this assumption.

The paper's experiments also record another phenomenon. Given 50 latent dimensions, the VAE actually uses only about 20; in the other dimensions, the approximate posterior is almost identical to the prior and doesn't change with the input.

So the question this paper sets out to answer is whether we can keep the VAE's architecture but switch to a more lenient bound, so that the generative model no longer has to play along with the inference network's assumptions and can learn richer representations as a result.

Multilayer VAEs

The experiments use two layers of random variables, so the notation comes first. The generative model is a chain of top-down conditional distributions (Eq. 1):

p(x)=∑h1,…,hLp(hL) p(hL−1∣hL)⋯p(x∣h1)p(x) = \sum_{h_1,\dots,h_L} p(h_L)\,p(h_{L-1}|h_L)\cdots p(x|h_1)

The top-level prior p(hL)p(h_L) is a standard normal, and every other layer is a diagonal Gaussian whose mean and variance an MLP computes from the layer above; when the observations are binary images, p(x∣h1)p(x|h_1) is Bernoulli. The inference model goes the other way, inferring layer by layer from the bottom up (Eq. 2):

q(h∣x)=q(h1∣x) q(h2∣h1)⋯q(hL∣hL−1)q(h|x) = q(h_1|x)\,q(h_2|h_1)\cdots q(h_L|h_{L-1})

Every layer can be reparameterized, hℓ=Σ1/2εℓ+μh_\ell=\Sigma^{1/2}\varepsilon_\ell+\mu, so the whole chain of samples is a deterministic function of xx and ε=(ε1,…,εL)\varepsilon=(\varepsilon_1,\dots,\varepsilon_L). The single-layer case is the original VAE.

Solving the problem

A bound from kk samples

IWAE's architecture is exactly the same as the VAE's; only the training objective changes. Draw kk independent samples h1,…,hkh_1,\dots,h_k from the inference network, and compute an importance weight for each sample

wi=p(x,hi)q(hi∣x)w_i = \frac{p(x,h_i)}{q(h_i|x)}

then average the weights first and take the log afterward (Eq. 8):

Lk(x)=Eh1,…,hk∼q(h∣x)[log⁡1k∑i=1kwi]\mathcal L_k(x) = \mathbb E_{h_1,\dots,h_k\sim q(h|x)}\left[\log\frac1k\sum_{i=1}^{k}w_i\right]

Why is this a lower bound? The expectation of each wiw_i is exactly p(x)p(x):

Eq[w]=∫q(h∣x) p(x,h)q(h∣x) dh=∫p(x,h) dh=p(x)\begin{aligned} \mathbb E_{q}\big[w\big] &= \int q(h|x)\,\frac{p(x,h)}{q(h|x)}\,dh \\ &= \int p(x,h)\,dh = p(x) \end{aligned}

So 1k∑wi\frac1k\sum w_i is an unbiased estimate of p(x)p(x); this is importance sampling. Apply Jensen's inequality once more (Eq. 9):

Lk=E[log⁡1k∑i=1kwi]≤log⁡E[1k∑i=1kwi]=log⁡p(x)\begin{aligned} \mathcal L_k = \mathbb E\left[\log\frac1k\sum_{i=1}^{k}w_i\right] &\le \log\mathbb E\left[\frac1k\sum_{i=1}^{k}w_i\right] \\ &= \log p(x) \end{aligned}

At k=1k=1, L1=E[log⁡w]\mathcal L_1=\mathbb E[\log w], which is exactly the VAE bound.

Compared with a VAE using kk samples, the only difference is the order of averaging and taking the log. A VAE with kk samples uses 1k∑log⁡wi\frac1k\sum\log w_i, taking the log first and then averaging; IWAE uses log⁡1k∑wi\log\frac1k\sum w_i, averaging first and then taking the log.

Five samples, worked out

Back to the scenario from the beginning. Suppose the inference network draws five samples for some image, with log weights log⁡wi\log w_i of

(−90, −95, −100, −130, −130)(-90,\ -95,\ -100,\ -130,\ -130)

The first sample lands where the posterior probability is high, the second and third are passable, and the last two are complete misses.

  • The VAE estimate is the mean of the five log weights, −545/5=−109-545/5=-109.
  • The IWAE estimate is log⁡15∑elog⁡wi\log\frac15\sum e^{\log w_i}. Pulling out the largest, −90-90, gives −90+log⁡(1+e−5+e−10+2e−40)−log⁡5≈−90+0.007−1.609≈−91.60-90+\log\big(1+e^{-5}+e^{-10}+2e^{-40}\big)-\log 5\approx-90+0.007-1.609\approx-91.60.

In the VAE, the two wrong guesses each contribute −130/5=−26-130/5=-26; in IWAE, together they add only 2e−402e^{-40} to the sum inside the log, with almost no effect. The best sample determines most of the value, at a cost of at most log⁡k\log k, here log⁡5≈1.61\log 5\approx1.61 nats.

This is what "lowering the standards" means. As long as a few of the kk samples are good draws, IWAE's bound won't be too bad; the VAE demands that every sample be a good draw.

The larger kk, the tighter the bound

Theorem 1 of the paper says that for all kk,

log⁡p(x)≥Lk+1≥Lk\log p(x) \ge \mathcal L_{k+1} \ge \mathcal L_k

and that as long as p(x,h)/q(h∣x)p(x,h)/q(h|x) is bounded, Lk\mathcal L_k converges to log⁡p(x)\log p(x) as k→∞k\to\infty.

Compare k=2k=2 with k=1k=1 first, to see where the monotonicity comes from. Take the average of two weights, w1+w22\frac{w_1+w_2}{2}, and its log; since log⁡\log is concave,

log⁡w1+w22≥log⁡w1+log⁡w22\log\frac{w_1+w_2}{2} \ge \frac{\log w_1+\log w_2}{2}

Take the expectation of both sides under qq. The right side is the average of two copies of L1\mathcal L_1, which is just L1\mathcal L_1; the left side is L2\mathcal L_2. So L2≥L1\mathcal L_2\ge\mathcal L_1.

General kk and m<km<k use the same trick (Appendix A). The average of kk weights equals "pick mm of the kk at random and average those mm," averaged over all possible picks; since the log is concave, moving log⁡\log inside this average can only make the value smaller or leave it unchanged, and the expectation after moving it inside is exactly Lm\mathcal L_m.

As for the limit, when p(x,h)/q(h∣x)p(x,h)/q(h|x) is bounded, 1k∑wi\frac1k\sum w_i converges almost surely to p(x)p(x) by the strong law of large numbers, and after taking the log, Lk\mathcal L_k converges to log⁡p(x)\log p(x).

A well-known weakness of importance sampling is that when the proposal distribution differs too much from the target, the variance of the weights can be infinite. Appendix B shows that things are much better after taking the log. The probability that log⁡Z^\log\hat Z overestimates log⁡Z\log Z by more than bb nats is at most e−be^{-b} (by Markov's inequality), from which it follows that the mean absolute deviation of log⁡Z^\log\hat Z is at most 2+2δ2+2\delta, where δ\delta is the gap between Lk\mathcal L_k and log⁡p(x)\log p(x).

The gradient is a weighted VAE gradient

Training again uses the reparameterization, with each sample hi=h(x,εi,θ)h_i=h(x,\varepsilon_i,\theta), so the gradient can move inside the expectation (Eqs. 11 and 12). What remains is differentiating log⁡1k∑jwj\log\frac1k\sum_j w_j:

∇θlog⁡1k∑j=1kwj=∑j∇θwj∑jwj=∑j=1kwj∑lwl ∇θlog⁡wj\begin{aligned} \nabla_\theta\log\frac1k\sum_{j=1}^{k}w_j &= \frac{\sum_j\nabla_\theta w_j}{\sum_j w_j} \\ &= \sum_{j=1}^{k}\frac{w_j}{\sum_{l}w_l}\,\nabla_\theta\log w_j \end{aligned}

The second equality uses ∇wj=wj ∇log⁡wj\nabla w_j=w_j\,\nabla\log w_j. Let w~j=wj/∑lwl\tilde w_j=w_j/\sum_l w_l be the normalized importance weights; the gradient is then (Eqs. 13 and 14, where wiw_i is the weight computed from hi=h(x,εi,θ)h_i=h(x,\varepsilon_i,\theta)):

∇θLk(x)=Eε1,…,εk[∑i=1kw~i ∇θlog⁡wi]\nabla_\theta\mathcal L_k(x) = \mathbb E_{\varepsilon_1,\dots,\varepsilon_k}\left[\sum_{i=1}^{k}\tilde w_i\,\nabla_\theta\log w_i\right]

Here θ\theta includes the parameters of both the generative network and the inference network. Each sample computes its own VAE-style gradient ∇log⁡wi\nabla\log w_i, which is then weighted by w~i\tilde w_i. A VAE with kk samples gives every sample a weight of 1/k1/k; IWAE lets the samples that explain the data well speak louder. At k=1k=1, w~1=1\tilde w_1=1, and we are back to the VAE update.

For the five samples above, the normalized weights are roughly (0.9933, 0.0067, 0.00005, 0, 0)(0.9933,\ 0.0067,\ 0.00005,\ 0,\ 0), so the gradient comes almost entirely from the first sample.

∇log⁡w\nabla\log w itself splits into two terms (Eq. 15):

∇θlog⁡w=∇θlog⁡p(x,h)−∇θlog⁡q(h∣x)\nabla_\theta\log w = \nabla_\theta\log p(x,h) - \nabla_\theta\log q(h|x)

The first term asks the generative network to give this hh a high probability, while also having the inference network move hh to where the generative network predicts better; the second term encourages the inference network's distribution to spread out a little.

There is one thing IWAE can't do. The VAE can compute the KL term in closed form and sample only the reconstruction term, which gives lower variance; for k>1k>1, the KL is wrapped inside the sum within the log and can't be separated out, so the whole thing has to be sampled. A footnote in the paper says that "in principle, the IWAE updates may be higher variance for this reason," but at k=1k=1 they "observed that the performance of the two update rules was indistinguishable."

In code

In implementation, Lk\mathcal L_k is just a logsumexp over log⁡wi\log w_i:

python
import math
import torch

def iwae_bound(log_w):
    # log_w: shape [batch, k], log p(x, h_i) − log q(h_i | x) for each sample
    k = log_w.shape[1]
    # log (1/k) Σ_i w_i; logsumexp subtracts the max internally so exp doesn't underflow
    return torch.logsumexp(log_w, dim=1) - math.log(k)

loss = -iwae_bound(log_w).mean()

The partial derivative of logsumexp with respect to its ii-th input is a softmax, that is, w~i\tilde w_i, so automatic differentiation produces Eq. (14) directly, and there is no need to compute the weights by hand. log⁡w\log w easily reaches −90-90 or −130-130. Take exp of these directly in float32, and −90-90 leaves only a tiny value with very poor precision (about 8×10−408\times10^{-40}), while −130-130 becomes exactly 0, so the maximum must be subtracted first; the official Theano code subtracts each row's maximum, normalizes to get w~\tilde w, and multiplies ∇log⁡wi\nabla\log w_i by it as a constant, to the same effect.

The cost is proportional to kk. Each sample needs its own forward and backward pass, and the official implementation copies each training example kk times within the minibatch to compute them in parallel. The paper also mentions a way to save computation. The weights need only a forward pass, so you can first draw a single sample according to w~i\tilde w_i and backpropagate through it alone; when kk is large, this cuts the multiply-adds to about a third, at the price of higher gradient variance.

Relation to reweighted wake-sleep

Reweighted wake-sleep (RWS), proposed a little earlier by Bornschein and Bengio, also uses importance weights. Its generative network update is exactly gradient ascent on Lk\mathcal L_k; but RWS interprets this as a biased estimate of ∇log⁡p(x)\nabla\log p(x), its two update steps for the inference network have nothing to do with Lk\mathcal L_k, and it doesn't use the reparameterization. IWAE has both networks maximize the same Lk\mathcal L_k.

Discussion

Experimental setup

The data are MNIST (60,000 training and 10,000 test images) and Omniglot (handwritten characters from many writing systems around the world, 24,345 training and 8,070 test images), all reduced to 28×2828\times28 binary images. Binarization treats the grayscale values as probabilities and samples a fresh image each time; a footnote in the paper points out that "the generative modeling literature is inconsistent about the method of binarization," and that "different choices can lead to considerably different log-likelihood values."

Two architectures:

  1. One stochastic layer: h1h_1 has 50 dimensions, with two deterministic layers of 200 units between xx and h1h_1.
  2. Two stochastic layers: h1h_1 has 100 dimensions and h2h_2 has 50; there are two layers of 200 units between xx and h1h_1, and two layers of 100 units between h1h_1 and h2h_2.

All deterministic layers use tanh, and the variances pass through exp to stay positive. Optimization uses Adam (β1=0.9\beta_1=0.9, β2=0.999\beta_2=0.999, ϵ=10−4\epsilon=10^{-4}) with minibatches of 20; the learning rate follows eight stages, with stage ii running 3i3^i epochs at a learning rate of 0.001⋅10−i/70.001\cdot10^{-i/7}, for 3,280 epochs in total.

kk takes the values 1, 5, and 50, and for each kk both a VAE (averaging the log weights over kk samples) and an IWAE are trained, with roughly the same training time.

For evaluation, each test image uses L5000\mathcal L_{5000}, the IWAE bound with 5,000 samples, as its log-likelihood estimate. It is still a lower bound, but much tighter than the ones used in training. The later Ladder VAE and VampPrior both estimate test log-likelihood with 5,000 importance samples, and both take their Omniglot data straight from the IWAE repository.

Log-likelihood

Two line charts, with the number of samples k in training (1, 5, 50) on the horizontal axis. The top chart is MNIST test negative log-likelihood: the 1-layer VAE goes from 86.76 down to 86.35 and the 2-layer VAE from 85.33 down to 84.78; the 1-layer IWAE goes from 86.76 down to 84.78 and the 2-layer IWAE from 85.33 down to 82.90. The bottom chart is the active units in models with one stochastic layer (of 50): the VAE stays at 19 to 20 on MNIST and at 28 on Omniglot; the IWAE rises from 19 to 25 on MNIST and from 28 to 41 on Omniglot. Blue lines are VAE, and orange lines are IWAE.
Drawn for this note from Table 1 of the paper.

The full numbers are in the two tables below. NLL is the negative log-likelihood (nats, lower is better), and Active is the number of active units; for two-layer models it is written "first layer + second layer."

LayerskkVAE NLLActiveIWAE NLLActive
1186.761986.7619
1586.472085.5422
15086.352084.7825
2185.3316+585.3316+5
2585.0117+583.8921+5
25084.7817+582.9026+7

Compiled from Table 1 of the paper; MNIST.

LayerskkVAE NLLActiveIWAE NLLActive
11108.1128108.1128
15107.6228106.1234
150107.8028104.6741
21107.5828+4107.5630+5
25106.3130+5104.7938+6
250106.3030+5103.3844+7

Compiled from Table 1 of the paper; Omniglot.

At k=1k=1 the two algorithms are identical, so their numbers should differ only by random variation; the 107.58 versus 107.56 in Omniglot's two-layer row is exactly that kind of difference.

  1. More samples help the VAE only a little. On MNIST with one layer, it goes from 86.76 to 86.35, an improvement of 0.41 nats; on Omniglot with two layers it improves by 1.28 nats, and with one layer, k=50k=50 is actually worse than k=5k=5.
  2. IWAE improves steadily with kk. On MNIST, one layer goes from 86.76 to 84.78 and two layers from 85.33 to 82.90; on Omniglot, one layer goes from 108.11 to 104.67. The one-layer IWAE (k=50k=50) catches up with the two-layer VAE, both at 84.78.
  3. Two layers beat one. This holds for both methods.

Compared with other models, the two-layer IWAE's −82.90 on MNIST beats the deep belief network's roughly −84.55 and DARN's −84.13; DRAW, which exploits the spatial structure of images, reaches −80.97 under different conditions. On Omniglot, the best result, −103.38, falls slightly short of an RBM with 500 hidden units trained with persistent contrastive divergence (−100.46).

Overfitting is mild. On MNIST, training and test log-likelihoods differ by only 0.62 to 0.79 nats, and on Omniglot by 2.39 to 2.65 nats. Appendix D redoes the experiments on the fixed binarization of MNIST common in the literature (50,000 training images); overfitting increases noticeably, the numbers are generally two or three nats worse, the two-layer IWAE (k=50k=50) gets 85.32 and the two-layer VAE 87.86, and the relative conclusions hold. The README of the official code adds that the VAE models whose log-likelihoods were reported in the literature "used the fixed binarization dataset augmented by samples with added flip-bit or drop-out noise." Before comparing MNIST log-likelihoods across papers, check how the data were binarized.

Unused dimensions

How does the paper decide whether a dimension is in use? If a dimension really records information about the data, its approximate posterior should change with the input. So for each dimension uu, the authors first compute each image's posterior mean in that dimension, Eq(u∣x)[u]\mathbb E_{q(u|x)}[u], and then look at the variance of this mean across the whole dataset:

Au=Covx(Eu∼q(u∣x)[u])A_u = \mathrm{Cov}_x\Big(\mathbb E_{u\sim q(u|x)}[u]\Big)

Au>10−2A_u>10^{-2} counts as active. If the encoder outputs the same mean no matter what the input is, that dimension has recorded nothing.

A histogram with log variance of μ on the horizontal axis (from −8 to 1) and the number of units on the vertical axis. On the left, a cluster of about 31 units sits between −8 and −6.7; on the right, a cluster of about 19 units sits between −1 and 0, with nothing at all in between.
Original Appendix C histogram, Burda et al., from PDF page 12, arXiv license, scholarly quotation.

This is the distribution of log⁡Au\log A_u over the 50 dimensions of a one-layer VAE. The two clusters are far apart with nothing in between, so where the threshold goes hardly matters; the right cluster has about 19, matching the number of active units for the one-layer VAE (k=1k=1) in Table 1. The authors also removed all the inactive dimensions and re-evaluated, and the test log-likelihood changed by less than 0.06 nats every time; these dimensions really do nothing.

Now look at the "Active" columns of the two tables above.

  • In every setting, the active units are far fewer than the total. The one-layer VAE on MNIST uses only 19 to 20 of its 50 dimensions.
  • The second layer of the two-layer models is barely used; its active count never exceeds 10.
  • For k>1k>1, IWAE uses more dimensions than the VAE every single time. On Omniglot with one layer, the VAE stays at 28 dimensions, while IWAE uses 41 at k=50k=50.

In the caption of its MNIST lower-bound experiment, the VAE paper wrote that "more latent variables does not result in more overfitting," attributing this to "the regularizing effect of the lower bound." This paper gives a more direct answer, which is that the extra dimensions are never used at all.

Objective or optimization?

Units "dying" is common in neural networks and is often blamed on optimization. Once a unit goes inactive, it may sit in a region where the gradient is flat and never receive a meaningful gradient again; a different initialization might fix it.

The authors use a swap experiment to tell the two explanations apart. They take the one-layer VAE with k=1k=1 and the one-layer IWAE with k=50k=50 from Table 1, swap their objectives, and train each for another 37 epochs at a learning rate of 10−410^{-4}:

Exp.Stage 1NLLActiveStage 2NLLActive
1VAE86.7619IWAE84.8822
2IWAE84.7825VAE86.0223

Compiled from Table 2 of the paper; MNIST. The stage-2 IWAE uses k=50k=50.

When the VAE continues training with the IWAE objective, its active units go from 19 up to 22 and its NLL drops from 86.76 to 84.88; when the IWAE switches to the VAE objective, its active units fall from 25 to 23 and its NLL rises to 86.02. The VAE objective actively switches dimensions off and pulls the log-likelihood down, so inactivity is mainly caused by the objective. Still, neither experiment gets all the way to the other's numbers in Table 1, so optimization plays a part too.

The shape of the posterior

Heat maps in three columns and five rows. Each row is the true posterior density of one training example in a 2D latent space, and the three columns, from left to right, are the VAE, IWAE with k = 5, and IWAE with k = 50. The posteriors in the VAE column are mostly single elliptical blobs; the two IWAE columns show two peaks (second row, middle), an arc (fourth row, right), and elongated shapes.
Original Appendix C posterior visualization (first five rows), Burda et al., from PDF page 12, arXiv license, scholarly quotation.

Finally, a set of models whose latent space has only 2 dimensions. Each row is the true posterior of one training example; the left column is the VAE, the middle is IWAE with k=5k=5, and the right is IWAE with k=50k=50.

The posteriors the VAE learns are mostly single, clean ellipses, exactly the shape a diagonal Gaussian approximates easily. IWAE's posteriors don't follow the rules so well; in the second row, the middle one has two peaks, and in the fourth row, the right one bends into an arc. In the paper's words, "The IWAE prefers less regular posteriors and more spread out posterior predictions." This is exactly what the beginning of this note described; the VAE's bound forces the generative model to play along with the inference network, and IWAE relaxes that demand.

What came later

After IWAE, several papers looked at this bound from other angles.

In 2017, Cremer, Morris, and Duvenaud proposed another interpretation. IWAE amounts to optimizing an ordinary ELBO, except that its approximate posterior is replaced by a more complex implicit distribution, obtained by resampling the kk samples according to their weights.

In 2018, Rainforth et al.'s "Tighter Variational Bounds are Not Necessarily Better" analyzed the signal-to-noise ratio of the gradients. For the generative network, the gradient's signal-to-noise ratio grows as O(k)O(\sqrt k) as kk increases; for the inference network, it falls as O(1/k)O(1/\sqrt k). As the bound tightens, the generative network learns better, while the signal reaching the inference network gets weaker and weaker. They therefore proposed several compromises, such as giving the two networks different objectives. Later the same year, Tucker et al. rewrote the inference network's gradient with a second reparameterization (DReG), so that it no longer degrades as kk grows.

Conclusion

IWAE doesn't change a single layer of the VAE; it only swaps "take the log, then average" for "average, then take the log." At k=1k=1 the two are the same; as kk grows, the bound tightens monotonically, the generative model no longer has to play along with a diagonal-Gaussian inference network, more latent dimensions get used, and the negative log-likelihood of the two-layer MNIST model drops from 85.33 to 82.90. The objective-swap experiment also shows that the main cause of the VAE's idle dimensions is the objective itself.

The most common use of this paper is evaluation. When reporting the log-likelihood of a VAE-type model, estimate it with Lk\mathcal L_k using a few thousand samples, and state kk and how the data were binarized. Raising kk during training makes the computation grow linearly and weakens the inference network's gradient; if the quality of the inference network matters too, you can give the two networks different objectives as Rainforth et al. do, or switch to DReG gradients.

The last paragraph of Section 4 adds that only after the paper was published did the authors learn that Laurent Dinh and Vincent Dumoulin had independently tried training VAEs with an importance-weighted bound, with preliminary results presented at a summer school in 2014.