Skip to main content
QUICK REVIEW

[Paper Review] Tighter Variational Bounds are Not Necessarily Better

Tom Rainforth, Adam R. Kosiorek|arXiv (Cornell University)|Feb 13, 2018
Generative Adversarial Networks and Image SynthesisComputer Science28 references31 citations
TL;DR

This paper challenges the assumption that tighter variational bounds always improve learning in variational autoencoders, showing that increasing the number of importance samples (K) in the importance-weighted autoencoder (IWAE) can degrade the signal-to-noise ratio (SNR) of gradients for the inference network, harming its training. To address this, the authors propose three new algorithms—PIWAE, MIWAE, and CIWAE—that use weighted importance sampling in novel ways to improve inference network learning while maintaining or improving generative model performance.

ABSTRACT

We provide theoretical and empirical evidence that using tighter evidence lower bounds (ELBOs) can be detrimental to the process of learning an inference network by reducing the signal-to-noise ratio of the gradient estimator. Our results call into question common implicit assumptions that tighter ELBOs are better variational objectives for simultaneous model learning and inference amortization schemes. Based on our insights, we introduce three new algorithms: the partially importance weighted auto-encoder (PIWAE), the multiply importance weighted auto-encoder (MIWAE), and the combination importance weighted auto-encoder (CIWAE), each of which includes the standard importance weighted auto-encoder (IWAE) as a special case. We show that each can deliver improvements over IWAE, even when performance is measured by the IWAE target itself. Furthermore, our results suggest that PIWAE may be able to deliver simultaneous improvements in the training of both the inference and generative networks.

Motivation & Objective

  • To investigate whether tighter evidence lower bounds (ELBOs) universally improve training in amortized variational inference.
  • To identify the mechanism by which increasing the number of importance samples (K) in IWAE degrades the signal-to-noise ratio (SNR) of gradients for the inference network.
  • To develop new variational inference algorithms that improve the training of the inference network without sacrificing generative model performance.
  • To demonstrate that improved inference network learning leads to better posterior approximation, even when measured by the standard IWAE objective.

Proposed method

  • Propose the partially importance-weighted autoencoder (PIWAE), which uses a subset of importance weights to improve the SNR of gradients for the inference network.
  • Introduce the multiply importance-weighted autoencoder (MIWAE), which applies multiple independent importance sampling runs with shared weights to enhance gradient quality.
  • Develop the combination importance-weighted autoencoder (CIWAE), which combines multiple importance sampling strategies to balance generative and inference network training.
  • Use the same set of importance weights across all methods but apply them with different weighting schemes to control gradient variance and signal strength.
  • Design the algorithms to include IWAE as a special case, ensuring backward compatibility and direct comparison.
  • Evaluate the methods using both synthetic Gaussian models and real-world datasets, measuring performance via IWAE objective, KL divergence, and log-likelihood.

Experimental results

Research questions

  • RQ1Does increasing the number of importance samples (K) in IWAE always improve the training of the inference network?
  • RQ2Why does increasing K in IWAE degrade the signal-to-noise ratio (SNR) of gradient estimates for the inference network despite reducing variance?
  • RQ3Can we design alternative variational objectives that improve the SNR of inference network gradients while maintaining tight bounds on the log-likelihood?
  • RQ4Do the proposed algorithms PIWAE, MIWAE, and CIWAE achieve better posterior approximation than IWAE, even when measured by the IWAE objective?
  • RQ5Is there a trade-off between tightness of the ELBO and the quality of the inference network, and if so, can it be optimized?

Key findings

  • Increasing K in IWAE reduces the SNR of gradient estimates for the inference network, even though it reduces variance, because the true gradient magnitude decreases faster.
  • The signal-to-noise ratio (SNR) of inference network gradients deteriorates with increasing K, leading to worse optimization performance despite tighter bounds.
  • PIWAE achieves better posterior approximation than IWAE, as measured by lower KL divergence, while matching or improving the IWAE objective.
  • MIWAE and CIWAE improve the KL divergence metric compared to IWAE while matching its performance on the IWAE objective, indicating better inference network learning.
  • In a toy Gaussian problem, setting K=1 and M=1000 yielded the best convergence for both inference and generative network parameters, contradicting the assumption that higher K is always better.
  • All proposed algorithms—PIWAE, MIWAE, and CIWAE—outperform IWAE on the IWAE objective itself, demonstrating that tighter bounds are not necessary for better performance.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.