---
title: "Importance Weighted Autoencoders — paper by Burda et al. (2015)"
description: "How importance weighted autoencoders tighten variational training, improve density estimation, and reveal why latent dimensions go unused."
canonical: "https://research.elamur.ai/free/en/papers/burda-2015-importance-weighted-autoencoders/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/burda-2015-importance-weighted-autoencoders/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / Importance Weighted Autoencoders

# Importance Weighted Autoencoders

Paper · 2015 · Yuri Burda, Roger Grosse and Ruslan Salakhutdinov

**Authors:** [Yuri Burda](https://md.research.elamur.ai/free/en/authors/yuri-burda/), [Roger Grosse](https://md.research.elamur.ai/free/en/authors/roger-grosse/) and [Ruslan Salakhutdinov](https://md.research.elamur.ai/free/en/authors/ruslan-salakhutdinov/) · **Year:** 2015 · **Venue:** arXiv (Cornell University) · **Licence:** [arXiv — non-exclusive license to distribute](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

[**230** citations OpenAlex, 2026-10-14](https://openalex.org/works?filter=cites:W1779483307) · [arXiv (Cornell University)](https://openalex.org/S4306400194) · [licence](http://arxiv.org/licenses/nonexclusive-distrib/1.0/)

- [PDF](https://arxiv.org/pdf/1509.00519)
- [arXiv 1509.00519](https://arxiv.org/abs/1509.00519)
- [OpenAlex](https://openalex.org/W1779483307)

Citations: OpenAlex, 2026-10-14.

## Deep dive: Importance Weighted Autoencoders

How importance weighted autoencoders tighten variational training, improve density estimation, and reveal why latent dimensions go unused. · about 35 minutes to read

**In this deep dive**

1. [Summary](#dd-summary)
2. [Ideas worth borrowing](#dd-ideas-worth-borrowing)
3. [How Mova uses it](#dd-how-mova-uses-it)
4. [The problem and its context](#dd-the-problem-and-its-context)
5. [The method, step by step](#dd-the-method-step-by-step)
6. [Experiments and results](#dd-experiments-and-results)
7. [What the ablations show](#dd-what-the-ablations-show)
8. [Limitations](#dd-limitations)
9. [What came after](#dd-what-came-after)

### Summary

A system that learns to generate observations also needs a way to infer what might have produced them. For an image of a handwritten character, that means connecting the visible pixels to unobserved variables from which the image could have been generated. The difficulty is that a useful generative process can have a complicated posterior: the distribution of possible hidden explanations after the observation is known. Importance Weighted Autoencoders investigates whether a convenient training objective encourages a generative network to simplify those explanations too aggressively.

The starting point is the variational autoencoder, or VAE. It pairs a generative network, which maps hidden variables towards observations, with a recognition network, which works in the opposite direction. The recognition network supplies an approximate posterior because exact inference is generally difficult. Both networks learn by maximizing a lower bound on the probability of the training data. That bound rewards good explanations of the observations, but it also favors a posterior that the recognition network can approximate easily. The paper argues that this second pressure can restrict what the generative network learns. In the experiments, many available latent dimensions carry almost no observation-dependent information.

The importance weighted autoencoder, or IWAE, retains the same architecture and changes the objective. For each observation, the recognition network proposes several hidden explanations. Each receives an importance weight that compares its probability under the joint generative distribution with its probability under the recognition distribution. Training uses the logarithm of their average weight. This lets strong explanations contribute more than weak ones, rather than requiring every proposed explanation to be useful to the same degree. The authors prove that increasing the sample count cannot loosen the expected lower bound. Under a boundedness assumption on the importance weights, the bound converges to the actual log-likelihood as the sample count grows.

On binarized MNIST and Omniglot, increasing the number of samples substantially improves IWAE results, whereas using additional samples to estimate the ordinary VAE gradient helps only slightly. The strongest MNIST result reported in the main discussion is a test log-likelihood estimate of -82.90 nats, obtained with two stochastic layers and a training sample count of 50. The best Omniglot estimate is -103.38 nats. These are stochastic lower-bound estimates rather than exact likelihoods. IWAE training also activates more latent dimensions. Particularly revealing experiments exchange the objectives after training: switching a VAE to the IWAE objective increases both latent activity and held-out likelihood, while switching in the other direction reduces them. The evidence points to the objective itself as a cause of unused capacity, while leaving a role for optimization and stopping short of proving that every additional active dimension represents a useful human-interpretable factor.

### Ideas worth borrowing

Change the objective before enlarging the network. The central experiment holds the architecture fixed while replacing the criterion used to train it. That isolates a question that is easy to overlook: whether limited performance comes from insufficient capacity or from incentives that discourage using existing capacity. IWAE shows that a network can learn a richer representation without receiving additional latent units or deterministic layers. The reusable lesson is to examine what a surrogate objective makes convenient, especially when it includes an approximation requirement alongside the task of interest.

Let several proposals support an inference decision. A recognition network need not produce a uniformly excellent approximation for every individual sample to be useful. If it can generate some plausible explanations, importance weighting can give those explanations greater influence. This idea applies wherever a system generates candidate hidden states that can be scored under both a proposal distribution and a target distribution. Its value comes from separating the ability to propose useful candidates from the stronger requirement that every proposal already behave like an accurate posterior sample.

Distinguish a better objective from a better gradient estimate. Drawing additional samples can serve different purposes. For a VAE, averaging more sample gradients estimates the same training objective more accurately. For IWAE, placing the sample average inside the logarithm changes the objective itself. The experiments compare these uses directly. This distinction is useful in stochastic learning more broadly: additional computation may reduce noise around an unchanged target, or it may alter the target. Those possibilities require different explanations and different controls.

Measure used capacity through behavior. Counting latent units describes what an architecture permits, not what training makes informative. The authors instead examine how each unit’s posterior mean varies across observations, then check whether removing apparently inactive units changes predictions. This connects an internal statistic to an observable consequence. The same pattern can guide [interpretability](https://md.research.elamur.ai/free/en/topics/interpretability/) studies elsewhere: define a measurable property, identify the components it classifies, and intervene on those components before treating the property as meaningful.

Exchange objectives to investigate causation. Starting with separately trained systems can leave an ambiguity between objective effects and training history. The continuation experiments address that ambiguity by changing the objective after a representation already exists. The direction of change follows the new objective: IWAE training expands activity, and VAE training contracts it. This is a reusable experimental design whenever a researcher wants to know whether an observed behavior is maintained by the current criterion or merely inherited from initialization and earlier optimization.

Spend evaluation effort separately from training effort. The authors train with several sample counts but evaluate every condition using a much larger importance-weighted estimate. That reduces the risk of confusing an improvement in the reported bound with an improvement in the learned distribution. The general idea is to use a common, stronger measurement procedure when comparing systems trained under different approximations. It does not make the measurement exact, but it makes the comparison more informative than reporting each system through its own training criterion.

### How Mova uses it

For Mova, the small transparent language system written in Rust, the most immediate relevance is an experimental principle: inspect whether a training criterion allows the system to use the structure it already has. The paper does not establish anything about Mova’s implementation, and there is no basis for claiming that Mova already contains an IWAE component. A concrete use would therefore begin as a separate investigation, with explicit comparisons and inspectable intermediate quantities.

An importance-weighted component would make sense only if Mova had a probabilistic generative process with hidden variables, a recognition procedure that could sample candidate hidden states, and tractable probability calculations for both. The hidden states might be candidate analyses associated with an observation. The paper does not specify a linguistic representation for them, so choosing such a representation would be new design work. The transferable mechanism is the scoring relationship: compare each candidate’s joint generative probability with the probability assigned by the procedure that proposed it.

Transparency would favor recording the ingredients of that comparison. An experimental implementation could expose the proposed hidden states, their joint probabilities, their proposal probabilities, and the resulting normalized importance weights. This would allow an engineer to inspect whether learning depends on many plausible candidates or largely on a narrow subset. Such inspection would not prove that the candidates correspond to sound linguistic explanations, but it would make the operation of the probabilistic component visible.

The distinction between continuous and discrete hidden variables matters. The experiments in this paper use Gaussian hidden layers and differentiate through reparameterized samples. A language system built around discrete symbolic alternatives could not simply copy those updates unchanged. The importance-weighted objective and the gradient estimator are separate parts of the method. Before adopting the complete training procedure, Mova would need a justified way to differentiate through its particular representation or another estimator appropriate to it.

The representation analysis offers a useful direction even without an IWAE implementation. If Mova learned continuous latent features, it could examine whether their posterior means actually change across observations and whether removing inactive features affects held-out performance. If its internal structures were different, the paper would motivate an analogous behavioral test rather than automatic reuse of the same statistic or threshold. The useful question is whether an apparently available component changes predictions in practice.

Finally, this is evidence about density estimation on handwritten images, not evidence of better linguistic understanding. An application to a [language model](https://md.research.elamur.ai/free/en/concepts/language-model/) would need its own observations, likelihood definition, inference procedure, and evaluation. The paper gives Mova a precise hypothesis to investigate: a restrictive inference objective may suppress useful hidden structure, and importance-weighted training may relax that pressure. It does not supply a demonstrated language-system result.

### The problem and its context

#### Learning requires hidden explanations

The paper addresses a recurring difficulty in deep generative learning. A generative network describes how hidden variables can produce observations, but training typically begins with observations alone. To improve the network, a learning procedure needs information about the hidden states that could explain those observations. The relevant distribution is the posterior: the probability of a hidden state after conditioning on the observed data.

Generating a sample can be straightforward even when finding that posterior is difficult. A network may start from a simple distribution, sample hidden variables, and transform them towards the visible output. Once a particular output is observed, however, the possible hidden causes can become coupled. The paper discusses this through the explaining-away effect in belief networks. Hidden causes that were simple to generate need not remain independent when the observation is fixed.

The authors contrast this difficulty with the obstacles faced by Boltzmann-based approaches. Those approaches can have useful conditional distributions, but sampling and computing the partition function create substantial problems. Belief-network approaches permit direct generation more readily, yet posterior inference becomes tangled. Different constructions therefore move the computational difficulty to different parts of learning instead of removing it.

A recognition network is one response. It takes an observation and predicts a distribution over hidden variables. Instead of running a generic inference algorithm from scratch for every case, the system learns a reusable mapping from visible evidence to approximate hidden explanations. According to the paper, this can deliver a rough posterior approximation much faster than methods such as MCMC.

#### Why the VAE approximation affects the generator

The VAE combines a recognition network with a generative network and trains them through a shared variational criterion. The paper builds on [Auto-Encoding Variational Bayes](https://md.research.elamur.ai/free/en/papers/kingma-2013-auto-encoding-variational-bayes/) and [Stochastic Backpropagation and Approximate Inference](https://md.research.elamur.ai/free/en/papers/rezende-2014-stochastic-backpropagation-approximate-inference-deep/). Their reparameterization approach makes it possible to use derivatives through sampled continuous hidden states, reducing the noise associated with a more direct REINFORCE-style update.

The attraction of the recognition network is also a constraint. In the setup studied here, each conditional recognition distribution is Gaussian with diagonal covariance. Its mean and variance come from a deterministic network. This is computationally convenient: sampling and probability evaluation remain tractable. But convenience does not establish that the resulting family can closely match every posterior that a useful generative network might create.

The ordinary variational bound contains both pressures. It increases when the generative distribution assigns greater probability to the data, but it decreases when the approximate posterior differs from the true posterior. Joint training can respond by improving the recognition network. It can also respond by changing the generative network so that its posterior becomes easier to approximate.

That second response is central to the paper. A generative system can make inference easy by learning a simpler hidden representation. In the authors’ experiments, the representation frequently uses far fewer latent dimensions than the architecture provides. The claim is not that easy inference is undesirable. It is that the ordinary objective may demand too much agreement with a restricted approximation and thereby sacrifice useful expressive capacity.

#### Why several samples might help

An individual sample can be a poor explanation even when the recognition distribution is useful as a proposal mechanism. The authors give an illustrative case in which 20% of recognition samples reach a region with high posterior probability. That percentage is a motivation, not a measured benchmark result. Their point is that such a proposal might still support useful inference if the learning rule can recognize and emphasize its good samples.

The ordinary VAE objective evaluates the logarithm of each sampled importance weight before averaging. A sample that explains the observation badly can therefore contribute a severe penalty. IWAE instead averages the weights and then applies the logarithm. A strong explanation can contribute to the shared estimate even when other proposals are weak.

This change preserves a likelihood-based interpretation. The objective remains a lower bound on the observation’s log-likelihood, and it becomes tighter in expectation as additional samples are used. The method therefore relaxes the practical demands placed on the recognition approximation while retaining a single criterion for both networks.

#### How the paper positions the contribution

The authors place IWAE alongside earlier recognition-network methods. Wake-sleep trained a generative network and an inference network through different objectives. Deep autoregressive networks and neural variational inference and learning used a common variational bound, with different approaches to stochastic gradient estimation. The VAE contributed a reparameterized route to lower-variance updates for suitable hidden distributions.

Reweighted wake-sleep is especially close. The paper identifies its generative update with ascent on the importance-weighted bound used by IWAE. The interpretation differs: reweighted wake-sleep treats that update as a biased approximation to a log-likelihood gradient, whereas IWAE treats it as an unbiased estimate of the gradient of a particular lower bound. IWAE also applies a shared objective to the recognition network and uses reparameterization.

Other approaches seek a more expressive inference family directly. The paper names [Variational Inference with Normalizing Flows](https://md.research.elamur.ai/free/en/papers/rezende-2015-variational-inference-normalizing-flows/) and a Hamiltonian variational approximation as examples. IWAE’s main change is elsewhere: it combines multiple proposals from the existing recognition architecture. These are different ways to address the same mismatch between a tractable inference procedure and a complicated posterior.

The paper also distinguishes its likelihood-based criterion from [Generative Adversarial Nets](https://md.research.elamur.ai/free/en/papers/goodfellow-2014-generative-adversarial-nets/) and maximum mean discrepancy approaches. Those methods train through discrimination or selected statistics rather than the data log-likelihood. This distinction matters because IWAE’s theoretical contribution concerns a specific relationship between a training bound and marginal likelihood.

### The method, step by step

#### Begin with the generative direction

The generative process starts at a stochastic hidden layer and moves toward the observation. With several stochastic layers, each layer supplies the distribution for the layer below it. Deterministic neural-network layers calculate the parameters of those distributions. The word “stochastic” therefore refers to where random variables are sampled, not to every layer used in the computation.

A compact expression for the marginal distribution is:

```
p(x | θ) = ∑ₕ p(hᴸ | θ) p(hᴸ⁻¹ | hᴸ, θ) ⋯ p(x | h¹, θ)
```

Here, x is an observation, θ contains the trainable parameters, and h collects the hidden variables. The superscript on h identifies a stochastic layer, with L denoting the uppermost one. The summation represents marginalization over hidden configurations; for continuous hidden variables, the corresponding operation is integration. Each factor p specifies a generative distribution, and the final factor connects the lowest hidden layer to the observation.

The deterministic networks may implement complicated relationships between layers. The requirement is local tractability: given a parent layer, the system must be able to sample the next layer and evaluate its conditional probability. The full posterior can remain difficult even when every generative factor is manageable.

The uppermost prior in the experiments is Gaussian, with zero mean and unit variance. Hidden-layer conditionals are also Gaussian, using diagonal covariance matrices. Their means and variances are predicted by feed-forward networks. For binary observations, the visible distribution is Bernoulli, with its mean parameters predicted from the lowest hidden layer.

This distinction between the distribution family and its predicted parameters is important. A diagonal Gaussian conditional can still change nonlinearly with its input. Nevertheless, at a fixed input it retains the restrictions of that family. IWAE does not replace these distributions with a more elaborate family in the main comparison.

#### Add the recognition direction

The recognition network runs upward from the observation, sampling a hidden state at each stochastic layer. Its factorization is:

```
q(h | x, θ) = q(h¹ | x, θ) q(h² | h¹, θ) ⋯ q(hᴸ | hᴸ⁻¹, θ)
```

The symbol q denotes the recognition distribution. As before, x is observed data, h is the collection of hidden states, θ represents parameters, and the superscripts identify layers. The product expresses the recognition procedure’s sequence: infer the lowest hidden layer from x, then infer the next layer from the preceding sampled state.

A recognition sample is therefore a complete proposed explanation across the hidden layers. The proposal is not assumed to be an exact posterior draw. Its role is to supply hidden states that can be evaluated under both the generative and recognition distributions.

That tractable evaluation is what makes importance weighting available. A hidden state proposed frequently by q receives a different correction from an equally good generative explanation that q rarely proposes. The learning procedure takes account of both how well a state explains the observation and how it was obtained.

Training an importance weighted autoencoder The steps in order.

#### Understand the ordinary variational bound

Before changing the objective, the authors express the VAE criterion through a ratio of probabilities:

```
ℒ₁(x) = Eₕ∼q(h|x) [log(p(x,h) / q(h|x))]
```

The symbol ℒ₁ denotes the ordinary variational lower bound for observation x. The expectation E averages over hidden states h sampled from q. The numerator p(x,h) is the joint probability of the observation and its hidden explanation. The denominator q(h|x) is the probability density with which the recognition network proposes that explanation. The logarithm is taken before averaging.

The connection to the true log-likelihood is:

```
ℒ₁(x) = log p(x) − KL(q(h|x) ∥ p(h|x))
```

Here, p(x) is the marginal probability of x, p(h|x) is the exact posterior, and KL denotes Kullback–Leibler divergence. The divergence measures the discrepancy between the recognition distribution and the posterior in the direction shown. Because this quantity is non-negative, ℒ₁ cannot exceed log p(x).

This identity explains why the recognition approximation affects the generative result. Improving the bound can involve raising data likelihood, shrinking the posterior mismatch, or both. If the recognition family cannot express the posterior well, the generative network may learn a distribution whose posterior is easier for that family.

It also explains what a lower bound does not tell us. A poor value can reflect poor generative fit, poor approximate inference, or a combination. IWAE aims to reduce the restriction imposed by the latter component without requiring a different generative architecture.

#### Move randomness into fixed auxiliary variables

The training procedure needs gradients through recognition samples. Directly differentiating an expectation whose sampling distribution depends on the parameters leads to the REINFORCE-like estimator discussed by the authors. They instead retain the VAE reparameterization approach.

For a Gaussian recognition layer, sampling can be written as:

```
hˡ = μˡ(hˡ⁻¹, θ) + Σˡ(hˡ⁻¹, θ)^(1/2) εˡ
```

The superscript l identifies the layer. Its preceding state is hˡ⁻¹, with the observation serving as the input at the bottom. The functions μˡ and Σˡ give the predicted mean and covariance. The auxiliary variable εˡ follows a fixed standard Gaussian distribution. The covariance square root scales that noise, and the mean shifts it to the desired location.

The useful separation is between parameter-independent randomness and a parameter-dependent deterministic transformation. Once εˡ is sampled, the resulting hidden state is differentiable with respect to the network parameters. Applying this construction through the recognition layers gives a deterministic mapping from the observation and auxiliary noise to a complete hidden sample.

The ordinary VAE gradient can then be estimated by averaging sample gradients:

```
ĝ_VAE = (1/k) ∑ᵢ₌₁ᵏ ∇θ log w(x, h(εᵢ,x,θ), θ)
```

Here, ĝ_VAE is the Monte Carlo gradient estimate, k is the sample count, and i indexes independent auxiliary samples εᵢ. The mapping h produces a hidden state from the noise, observation, and parameters. The symbol ∇θ means differentiation with respect to θ. The function w is the importance weight, defined next.

Adding samples to this expression changes the precision of the estimate of the VAE gradient. It does not change the bound being optimized. That is why the paper trains multi-sample VAE conditions as controls instead of treating any use of several samples as IWAE.

#### Form importance weights

For a complete hidden proposal, the weight is:

```
wᵢ = p(x,hᵢ) / q(hᵢ|x)
```

The index i identifies a sampled hidden explanation hᵢ. The numerator measures its joint compatibility with x under the generative process. The denominator measures its density under the recognition proposal. The weight corrects for the fact that the hidden state came from q rather than directly from the posterior.

These weights are unnormalized. They do not initially add to a fixed total. Their average has the important property used by the method: its expectation is the marginal probability p(x). That property is the foundation for the lower-bound argument.

The ratio also clarifies why importance weighting does not eliminate the need for a useful recognition network. The candidate hidden states must still come from somewhere. If the proposal rarely reaches useful regions, learning and estimation can remain difficult. The method changes how candidates contribute; it does not make their quality irrelevant.

#### Put the average inside the logarithm

The IWAE objective is:

```
ℒₖ(x) = Eₕ₁,…,ₕₖ∼q(h|x) [log((1/k) ∑ᵢ₌₁ᵏ wᵢ)]
```

The symbol ℒₖ denotes the bound using k independent recognition samples. The hidden states h₁ through hₖ are drawn separately from q for the same observation x. Their weights wᵢ are averaged, then the logarithm is applied, and finally the expectation averages over possible sample collections.

The order of operations is the essential change. The VAE averages log weights. IWAE takes the log of an average weight. As a consequence, a collection containing useful explanations can receive a favorable score even when some individual proposals are poor.

The authors justify the lower bound using Jensen’s inequality:

```
E[log((1/k) ∑ᵢ₌₁ᵏ wᵢ)] ≤ log E[(1/k) ∑ᵢ₌₁ᵏ wᵢ] = log p(x)
```

The expectation E is over the recognition samples, and the other symbols retain their meanings. The average weight is unbiased for p(x), but applying the logarithm introduces a downward bias. The expected log estimate therefore remains below the true marginal log-likelihood.

This is an expectation statement. A particular random estimate is not guaranteed to lie below the exact log-likelihood. The reported metric averages stochastic quantities whose expectation has the lower-bound property. Keeping that distinction clear prevents “lower bound” from being mistaken for a deterministic guarantee about every sampled evaluation.

#### Why additional samples tighten the bound

The main theorem orders the objectives:

```
log p(x) ≥ ℒₖ₊₁(x) ≥ ℒₖ(x)
```

Here, ℒₖ₊₁ uses an additional recognition sample compared with ℒₖ, while p and q remain fixed. The theorem says that the expected bound cannot become worse when its sample count increases. It does not say that every independently sampled numerical estimate improves.

The proof compares a full collection of importance weights with a randomly selected smaller subset. Averaged over subsets, the smaller subset’s mean equals the full collection’s mean. Jensen’s inequality then establishes the ordering after applying the logarithm and taking expectations.

The convergence statement adds a condition:

```
limₖ→∞ ℒₖ(x) = log p(x)
```

The symbol lim expresses the limit as the sample count k grows without bound. The authors state this result under the assumption that the ratio p(x,h)/q(h|x), which defines an importance weight, is bounded. Their argument uses convergence of the average weight toward its expectation.

This theorem concerns the objective for fixed distributions. Training introduces another problem: whether stochastic optimization reaches good parameters for that objective. The experimental results address that question in the tested settings. They should not be read as a consequence that follows automatically from the inequality.

#### Differentiate the shared objective

The normalized weight for a sample is:

```
w̃ᵢ = wᵢ / ∑ⱼ₌₁ᵏ wⱼ
```

The tilde distinguishes normalized weights w̃ᵢ from raw weights wᵢ. The index j runs across the same collection of k samples. Each normalized weight expresses that proposal’s relative contribution to the average underlying the log estimate.

After reparameterization, the gradient takes the form:

```
∇θ ℒₖ(x) = Eε₁,…,εₖ [∑ᵢ₌₁ᵏ w̃ᵢ ∇θ log w(x,h(εᵢ,x,θ),θ)]
```

The expectation now averages over parameter-independent auxiliary noise ε₁ through εₖ. The mapping h converts each auxiliary draw into a recognition sample. Each log-weight gradient is multiplied by its normalized importance weight. The parameters θ include those being learned in the generative and recognition networks.

For a training update, the system samples a collection of auxiliary variables and computes the weighted sum inside that expectation. This gives an unbiased estimator of the gradient of ℒₖ. It is the gradient of the importance-weighted bound, rather than an unbiased estimate of the exact marginal log-likelihood gradient.

At a sample count of 1, the normalized weight is 1. The objective and update reduce to the VAE case. This provides both a mathematical connection and an experimental check: the methods should agree at that setting apart from random variation.

The log-weight gradient itself separates into generative and recognition terms:

```
∇θ log w(x,h(ε,x,θ),θ) = ∇θ log p(x,h(ε,x,θ)|θ) − ∇θ log q(h(ε,x,θ)|x,θ)
```

The functions p and q are evaluated at the same reparameterized hidden state. The derivatives include the dependence of that state on θ. The first term improves the joint generative explanation and can adjust the recognition network toward hidden states that the generator predicts better. The second term contributes pressure towards a less concentrated recognition distribution.

Because the normalized weights differ across proposals, these effects are concentrated on explanations with higher relative importance. The networks still share a criterion. There is no separate wake objective for one network and sleep objective for the other.

#### Account for computation and stochasticity

The straightforward implementation performs a forward and backward computation for every recognition sample. Its operation count grows linearly with k. The authors process samples together by replicating observations within a mini-batch, using [GPU and parallel computing](https://md.research.elamur.ai/free/en/topics/gpu-parallel-computing/) to handle the expanded collection.

The paper also describes a cheaper stochastic gradient estimator. All k candidates receive forward passes so that their weights can be calculated. A candidate is then selected with probability equal to its normalized weight, and only that candidate receives a backward pass.

Conditioned on the proposals, the expected selected gradient equals their normalized weighted sum. The procedure therefore adds sampling noise while reducing backward computation. The authors state that a backward pass uses roughly twice the add-multiply work of a forward pass. For large k, their proposed shortcut reduces that work by approximately a factor of 3.

This computational observation is useful but limited. It describes arithmetic work, and the authors report a favorable empirical tradeoff. It is not a universal wall-clock guarantee across implementations, nor does it show that the additional gradient noise is harmless in every setting.

#### Keep the estimator analysis separate

The appendix examines the logarithm of a positive unbiased estimator:

```
δ = log Z − E[log Ẑ]
```

Here, Z is a positive target quantity, Ẑ is its strictly positive unbiased estimate, and δ is the downward bias after taking the logarithm. In the IWAE application, the target is an observation’s marginal probability and the bias corresponds to the gap between the expected importance-weighted bound and log-likelihood.

A tail inequality limits large upward errors:

```
Pr(log Ẑ > log Z + b) ≤ e^(−b)
```

The symbol Pr denotes probability, b is an upward deviation amount, and e is the exponential function’s base. The inequality follows from the unbiasedness and positivity assumptions through Markov’s inequality.

The resulting mean absolute deviation bound is:

```
E[|log Ẑ − E[log Ẑ]|] ≤ 2 + 2δ
```

The expression inside the expectation measures distance from the log estimator’s own mean. The right-hand side depends on the bias δ. This is a bound on mean absolute deviation, not a proof of a variance bound. That distinction matters because the main discussion is more reassuring about variance than the appendix’s formal result alone establishes.

### Experiments and results

#### Data and observation probabilities

The experiments assess density estimation: how much probability the learned generative distribution assigns to unseen observations. This is a direct fit to the paper’s objective, which aims to improve a likelihood lower bound. It does not evaluate recognition accuracy against labeled hidden causes, downstream classification, or the semantic quality of individual latent dimensions.

MNIST supplies handwritten digit images. The main experiments use 60,000 training examples and 10,000 test examples. Omniglot supplies handwritten characters drawn from several writing systems, with 24,345 examples for training and 8,070 for testing. In both cases, the observations are binary images with dimensions 28 × 28.

Binarization is consequential because it changes the observations whose probability is measured. In the main setup, binary pixel values are sampled with expectations matching the real-valued image intensities. The authors explicitly warn that the generative-learning literature uses inconsistent binarization procedures and that likelihood results can change substantially with that choice.

A separate appendix repeats the MNIST comparison using a fixed binarization. That experiment uses 50,000 training examples and 10,000 test examples. It preserves the main training procedure and hyper-parameters. The authors report the same qualitative ordering between the VAE and IWAE approaches, alongside more pronounced overfitting.

#### Architectures and training controls

The architecture with a single stochastic layer has 50 latent units. Between the observation and that stochastic layer sit two deterministic layers, each containing 200 units. The architecture with two stochastic layers has 100 units in the layer nearer the observation and 50 in the upper layer. Its observation-side deterministic layers contain 200 units each, while the deterministic layers between stochastic layers contain 100 units each.

The deterministic hidden layers use tanh nonlinearities. Gaussian stochastic layers use diagonal covariance, with an exponential transformation producing predicted variances. The observation distribution is Bernoulli, matching the binary data. These distributional choices are shared across the VAE and IWAE comparisons.

Optimization uses [Adam](https://md.research.elamur.ai/free/en/papers/kingma-2014-adam-method-stochastic-optimization/) with β₁ set to 0.9, β₂ set to 0.999, and ε set to 10^-4. Mini-batches contain 20 observations. Initialization follows the heuristic identified by the authors.

The schedule is defined as:

```
passes at stage i = 3^i; learning rate at stage i = 0.001 · 10^(−i/7), for i = 0,…,7
```

The index i identifies the schedule stage. The first expression specifies how many passes over the data occur at that stage, and the second specifies its learning rate. The paper gives the total as 3280 data passes. This schedule came from preliminary MNIST work with a VAE containing a single stochastic layer.

Training sample counts are 1, 5, and 50. At every count, the VAE averages sample gradients for the ordinary variational bound, while IWAE uses its importance-weighted gradient. The corresponding VAE and IWAE conditions receive roughly equal training time. This control helps separate the new objective from the simple benefit of doing more stochastic computation.

#### A common held-out metric

All main test likelihood estimates use ℒ₅₀₀₀, averaged across the test observations. The evaluation sample count is therefore 5000, regardless of the smaller count used in training. The authors expect this to provide a tighter measurement than the training bounds, while still describing it as a stochastic lower-bound estimate.

The reported values are log-likelihoods in nats. Higher values are better, including when every value is negative. A value nearer zero indicates that the tested observations receive greater probability under the evaluated distribution.

The shared evaluation procedure is crucial. If IWAE were assessed using its own larger-sample training bound while the VAE were assessed using a smaller bound, a numerical improvement could arise simply from measurement tightness. Evaluating both through the same larger-sample estimator reduces that ambiguity.

The paper’s main results table is discussed in the text through qualitative comparisons and selected numerical outcomes. The available reported claims support a clear direction: additional samples yield substantial gains for IWAE, only modest gains for the VAE, and better generative performance for the deeper stochastic architecture. They do not support inventing exact entries for every architecture and sample count.

#### MNIST likelihood

For MNIST, the highlighted IWAE result uses two stochastic layers and 50 training samples. Its test log-likelihood estimate is -82.90 nats. The authors place this beside earlier reported results from deep belief and deep autoregressive approaches.

MNIST reported held-out log-likelihood IWAE exceeds the listed belief-network and autoregressive results, while DRAW reports a stronger result using spatial structure.

**The numbers**

| System or setting | log-likelihood in nats |
| --- | --- |
| Deep belief network, approximate | -84.55 |
| Deep autoregressive network | -84.13 |
| IWAE, two stochastic layers, k=50 (this paper) | -82.90 |
| DRAW, using spatial structure | -80.97 |

The chart requires an architectural qualification. The paper describes its MNIST result as permutation-invariant, while [DRAW](https://md.research.elamur.ai/free/en/papers/gregor-2015-draw-recurrent-neural-network-image/) exploits spatial structure. The comparison therefore places IWAE among the cited density-estimation results without showing that it surpasses every image-generation approach or every use of the image layout.

The authors also report that training likelihood exceeds test likelihood by 0.62 to 0.79 nats across the MNIST conditions. They do not regard overfitting as a major difficulty in this main setup. That statement concerns the observed generalization gap under this binarization and training procedure, not an absence of overfitting risk in general.

#### Omniglot likelihood

The best Omniglot IWAE estimate is -103.38 nats. The paper compares it with a restricted Boltzmann machine using 500 hidden units and persistent contrastive divergence, which achieves -100.46 nats.

Omniglot reported held-out log-likelihood The best reported IWAE remains behind the cited restricted Boltzmann machine.

**The numbers**

| System or setting | log-likelihood in nats |
| --- | --- |
| Best IWAE setting (this paper) | -103.38 |
| Restricted Boltzmann machine, persistent contrastive divergence | -100.46 |

The authors additionally describe restricted Boltzmann machines trained with centering or FANG as reaching around -100 nats. These comparisons qualify the contribution: IWAE improves on the matched VAE approach, but the best IWAE outcome is not the strongest Omniglot result cited in the paper.

On Omniglot, training likelihood is 2.39 to 2.65 nats higher than test likelihood for the authors’ systems. The reported gap is larger than the corresponding MNIST gap. The paper does not turn that observation into a general theory of dataset difficulty; it records the behavior under its experimental conditions.

#### What the main comparison establishes

The strongest evidence concerns the controlled VAE–IWAE comparison. Both use the same kinds of networks, the same data, and approximately matched training time at each sample count. Increasing the count means something different for their objectives, and the performance trends differ accordingly.

This result supports the claim that the multi-sample objective matters beyond more accurate averaging of the ordinary VAE gradient. It also supports using available latent capacity more effectively as a plausible explanation, because the likelihood gains coincide with more active dimensions. The representation experiments investigate that connection more directly.

Random samples are included in an appendix. They are displayed through the means of Bernoulli observation distributions rather than as a separate quantitative image-quality measure. The principal numerical evidence remains held-out likelihood and the analysis of latent activity.

### What the ablations show

#### Additional samples do more than reduce gradient noise

The sample-count comparison is the most direct control on the proposed mechanism. A VAE trained with additional samples still optimizes the ordinary variational objective. Its estimator averages more gradients, which can reduce sampling noise. IWAE instead changes the bound by combining weights before taking the logarithm.

The authors report only slight benefits from additional VAE samples, but clear improvements from additional IWAE samples on both datasets. The comparison therefore argues against explaining the whole gain as a generic advantage of averaging more stochastic computations. It supports the importance of the changed objective.

At a training count of 1, the objectives coincide. The authors explicitly expect matching results up to randomness. This setting checks that the comparison is anchored in the same procedure before the multi-sample construction becomes relevant.

The theorem and experiment address different aspects of that construction. The theorem establishes tighter expected bounds for fixed distributions. The experiment shows that optimizing those bounds can produce better learned distributions in the tested architectures. Neither result substitutes for the other.

#### Latent activity measures observation dependence

To measure whether a hidden dimension responds to data, the authors examine variation in its posterior mean:

```
Aᵤ = Covₓ(Eᵤ∼q(u|x)[u])
```

The symbol u identifies a latent coordinate. The inner expectation is that coordinate’s mean under the recognition distribution for observation x. Covₓ measures how this mean varies over observations. For an individual coordinate, the relevant quantity is its variance across the data.

A dimension is classified as active when its statistic exceeds 10^-2. The intuition is straightforward: if changing the observation barely changes the coordinate’s inferred mean, that coordinate is unlikely to carry much observation-specific information through this channel.

This statistic is narrower than a complete information measure. It focuses on posterior means rather than every possible change in a distribution. The paper treats it as an operational diagnostic and provides supporting checks, instead of deriving it as a universal definition of useful latent information.

#### Removing inactive dimensions checks the diagnosis

The activity values form clearly separated groups in the cases the authors inspect. A histogram for a trained VAE illustrates this separation. That makes the threshold less arbitrary in practice than it would be if activity were distributed smoothly around the cutoff.

The more consequential check removes dimensions classified as inactive. Across the evaluated conditions, this changes test log-likelihood by less than 0.06 nats. The result links the statistic to predictive behavior: the units it labels inactive can be removed with very little effect on the measured task.

This intervention does not prove that every active coordinate is indispensable. It tests the other side of the classification, showing that the inactive group contributes little to the likelihood estimate. The distinction matters when interpreting the total active count as representation quality.

#### Capacity and activity remain different

Both training methods leave many latent dimensions inactive. Giving the network more dimensions does not, in these experiments, produce a corresponding increase in the number used. The second stochastic layer is particularly underused: its active count is always below 10.

For all comparisons with a sample count above 1, IWAE learns more active dimensions than the VAE. These conditions also have better likelihood estimates. The authors interpret the association as evidence for a richer representation, while presenting that interpretation as a plausible explanation instead of a complete account of the representation’s content.

There is no contradiction between a better objective and continuing underuse. IWAE relaxes a pressure associated with the ordinary bound; it does not force every coordinate to become useful. Some unused capacity remains under the improved criterion.

#### Exchanging objectives tests the source of inactivity

The continuation experiments ask whether unused dimensions are simply trapped by optimization history. An inactive unit might receive weak gradients and remain inactive even if activating it would improve the objective. If that were the main explanation, initialization or optimization could be more important than the criterion itself.

The authors take their best VAE and IWAE systems and continue training each under the other objective. Continuation lasts 3^7 additional data passes, using a learning rate of 10^-4. The VAE-to-IWAE direction increases active dimensionality and held-out likelihood. The IWAE-to-VAE direction decreases both.

The reverse direction is especially informative. The VAE objective does not merely fail to recover units that were previously unused; it suppresses activity in a representation that had already been learned under IWAE. That behavior supports an explanation based on what the objective favors.

The authors still retain an optimization qualification. The continuation outcomes do not exactly reproduce the results obtained by training under the corresponding objective from the beginning. Training history therefore matters too. The evidence argues for an objective-driven effect without reducing the whole phenomenon to a single cause.

#### Other checks support a narrower conclusion

The fixed-binarization experiment preserves the qualitative advantage of importance-weighted training, while revealing greater overfitting. That gives some robustness to the main comparison across observation preprocessing, but it does not establish insensitivity to all data choices.

The appendix also visualizes true and approximate posteriors for systems restricted to two latent dimensions. Its examples compare VAE training with IWAE sample counts of 5 and 50. The authors describe IWAE posteriors as less regular and recognition predictions as more spread out. These illustrations fit the mechanism proposed in the paper: the tighter bound permits posterior shapes that the ordinary criterion discourages.

Such pictures are explanatory examples, not a quantitative survey of every learned posterior. Taken with the controlled comparisons, they support the proposed interpretation while leaving open which features of posterior complexity matter most for the likelihood gains.

### Limitations

#### Limits the authors explicitly identify

Binarization complicates comparison with earlier results. The authors warn that different procedures can produce substantially different likelihood values. Their main setup samples binary observations from image intensities, while the appendix examines a fixed alternative. Any comparison across papers must account for which observations were actually evaluated.

The reported likelihoods remain estimates. Evaluation uses a much larger sample count than training, but ℒ₅₀₀₀ is still a stochastic lower-bound procedure. The authors regard it as likely to be more accurate than the training bounds, not as exact marginalization over hidden states.

The tighter objective does not eliminate unused capacity. Both VAE and IWAE representations occupy fewer active dimensions than their architectures allow, and the upper stochastic layer remains especially sparse in activity. The empirical contribution is an improvement in utilization, not a general solution that makes all latent units informative.

Optimization also remains relevant. Objective swapping changes behavior in the expected direction, but continuation does not exactly reproduce training from scratch. The authors therefore do not claim that initialization and the optimization path are irrelevant.

The stochastic update has its own variance qualification. Earlier VAE work can separate an analytic KL term to simplify the estimator and reduce variance. The authors state that an analogous simplification is unavailable for the multi-sample IWAE case. Their comparison at a sample count of 1 finds indistinguishable performance for the update forms they consider, but that observation does not establish identical variance behavior in every setting.

Finally, the cheaper backward-pass method introduces extra stochasticity. The authors find the tradeoff favorable in their experience, while explicitly recognizing that reduced arithmetic comes with noisier updates. The saving is a computational option rather than a free improvement.

#### Limits visible in the experimental setup

The experiments involve handwritten-image density estimation. They do not demonstrate improved text generation, speech processing, semantic analysis, or performance on other kinds of observations. The proposed applicability to other generative systems is a research direction grounded in the objective, not an experimentally established transfer result.

The recognition and hidden generative conditionals belong to specific Gaussian families, and the tested networks have the stated feed-forward structures. The results show that changing the objective helps within those conditions. They do not establish how the benefit compares with every alternative inference family or how it scales across arbitrary architectures.

The learning-rate schedule was selected through preliminary work on a VAE with a single stochastic layer on MNIST. That is a clear account of how the schedule was chosen, but it is not a separate optimization study for every condition. Approximate time matching makes the VAE–IWAE comparison useful without proving that either method reached its best possible result.

The paper does not demonstrate that the additional active dimensions correspond to independent semantic factors. Activity measures variation in a coordinate’s posterior mean. A dimension can vary with observations without having a clean human description, and a larger active count does not on its own establish disentanglement or interpretability.

Likewise, the association between activity and likelihood is not a complete causal decomposition. Objective swapping changes both, which strengthens the argument that the criterion matters. It does not isolate the contribution of each newly active dimension to the final likelihood improvement.

#### Limits of the mathematical guarantees

The monotonicity theorem concerns expected bounds at fixed parameter values. It does not guarantee that increasing k during training produces a better result under a finite computational budget. A tighter criterion can still be harder to optimize, and stochastic estimates can vary. The experiments supply favorable evidence for the tested sample counts instead of a universal optimization theorem.

The convergence claim is stated with a bounded importance-ratio assumption. That condition belongs to the result. It should not disappear when the claim is summarized as approaching the true log-likelihood.

Importance weighting also retains a dependence on proposal quality. The paper motivates using proposals that are imperfect but still useful. It does not show that arbitrarily poor recognition distributions become adequate merely by adopting the multi-sample objective. The denominator corrects proposal bias in the weighting calculation; it does not ensure that a finite collection contains informative hidden states.

The estimator appendix warrants especially careful reading. It bounds mean absolute deviation for the log of a positive unbiased estimator. It explicitly does not derive a variance bound. The formal result therefore supports a more limited statement than a blanket guarantee that the estimator cannot have high variance.

Nor does that appendix directly bound the variance of every training gradient. Objective estimates and gradient estimates are different random quantities. A useful argument about one should not silently become a guarantee about the other.

#### What the paper does not claim

IWAE is not presented as a new generative architecture. The principal controlled comparison depends on the architecture being unchanged. Its contribution is a training objective and associated estimator that permit more flexible use of the existing recognition–generation pair.

It is also not a claim to dominate all cited density-estimation approaches. DRAW has a stronger reported MNIST likelihood while exploiting spatial structure, and the cited restricted Boltzmann machine has a stronger Omniglot result. The evidence supports improvement over matched VAE training and a competitive position among the stated comparisons.

The paper does not provide a comprehensive theory of why every latent dimension becomes inactive. Its experiments make a strong case that the objective contributes to the phenomenon, and they leave optimization as part of the explanation. They do not establish that a single diagnostic accounts for every form of representation underuse.

These boundaries preserve the main result. A relatively small change to the mathematical criterion produces better held-out likelihood and a different pattern of latent utilization under controlled conditions. That is a substantial finding without requiring broader claims about semantic understanding, universal inference, or guaranteed optimization.

### What came after

The later papers listed as citing IWAE place it in several research settings: variational autoencoding, discrete random variables, latent representations for language, sequence generation, and preference optimization. Their entries establish a citation relationship and identify their subjects through their titles. They do not specify which IWAE equations, estimators, or experimental conclusions each paper adopts. A precise account must therefore separate that documented relationship from mechanisms that cannot be established.

[An Introduction to Variational Autoencoders](https://md.research.elamur.ai/free/en/papers/kingma-2019-introduction-variational-autoencoders/), from 2019, situates the connection in the broader subject to which IWAE directly contributes. IWAE belongs in that discussion because it keeps the variational autoencoder architecture while altering its bound. The supported connection is the relationship between ordinary variational training and a tighter importance-weighted alternative. The title and citation alone do not establish how extensively the introduction develops that relationship.

[The Concrete Distribution](https://md.research.elamur.ai/free/en/papers/maddison-2016-concrete-distribution-continuous-relaxation-discrete/), from 2016, concerns a continuous relaxation of discrete random variables. This identifies a neighboring inference problem that matters when considering the reach of IWAE’s training procedure. The IWAE experiments use continuous Gaussian hidden variables and reparameterized gradients; discrete choices require their own treatment. The citation connects the works, but the available entry does not show that the Concrete paper uses the IWAE objective or demonstrate a particular combination of their methods.

[A Latent Variable Recurrent Neural Network](https://md.research.elamur.ai/free/en/papers/ji-2016-latent-variable-recurrent-neural-network/), also from 2016, addresses discourse-driven language modeling through a recurrent system with latent variables. That subject extends attention from hidden explanations of images to hidden structure associated with language and discourse. IWAE supplies a relevant question for such research: how does an approximate-inference objective shape the representation that a generator learns? The later entry does not establish whether the recurrent system trains with importance weighting, so that implementation claim would go beyond the evidence.

[FlowSeq](https://md.research.elamur.ai/free/en/papers/ma-2019-flowseq-non-autoregressive-conditional-sequence/), from 2019, is identified as non-autoregressive conditional sequence generation using generative flow. Its citation places IWAE in a sequence-generation context. The conceptual connection concerns generating observations through structured probability distributions and handling hidden-variable learning. The entry does not say which importance-weighted bound, if any, FlowSeq uses. It therefore supports a connection in research scope without supporting a detailed algorithmic genealogy.

[Optimus](https://md.research.elamur.ai/free/en/papers/li-2020-optimus-organizing-sentences-pre-trained/), from 2020, concerns organizing sentences through a latent space and pretrained modeling. Its stated subject makes the representation question especially relevant. IWAE shows that the number of available latent coordinates can differ sharply from the number that responds to observations. That finding offers a useful lens for evaluating any sentence-level latent space, but the citation information does not show whether Optimus uses the activity statistic, objective-swapping experiment, or importance-weighted training.

[LLaDA 1.5](https://md.research.elamur.ai/free/en/papers/zhu-2026-llada-1-5-variance-reduced/), from 2026, addresses variance-reduced preference optimization for large language diffusion systems. The connection documented here is again a citation, instead of an identified reuse of the IWAE estimator. Its title makes stochastic optimization and variance part of the later research setting. IWAE’s own distinction between an objective, an unbiased gradient estimator for that objective, and a separate analysis of estimator dispersion remains relevant to interpreting such claims. The title alone does not establish that the same weighting construction is used.

Across these later citations, the durable issue is the relationship between inference, optimization, and learned representation. IWAE makes that relationship unusually concrete: it defines a family of bounds, proves how they are ordered, and tests how replacing the objective changes both likelihood and latent activity. The later-work entries show that the paper is cited across several related areas. Establishing what each later work specifically borrowed would require evidence beyond their titles and citation relationship.

## Cite

Cite as Yuri Burda, Roger Grosse and Ruslan Salakhutdinov. 2015. Importance Weighted Autoencoders. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.48550/arxiv.1509.00519](https://doi.org/10.48550/arxiv.1509.00519) · [arXiv 1509.00519](https://arxiv.org/abs/1509.00519)

```bibtex
@misc{burda2015importance,
  title = {{Importance Weighted Autoencoders}},
  author = {Yuri Burda, Roger Grosse and Ruslan Salakhutdinov},
  year = {2015},
  doi = {10.48550/arxiv.1509.00519},
  eprint = {1509.00519},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1509.00519}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
