Skip to main content
QUICK REVIEW

[Paper Review] Semi-Amortized Variational Autoencoders

Yoon Kim, Sam Wiseman|arXiv (Cornell University)|Feb 7, 2018
Generative Adversarial Networks and Image SynthesisComputer Science57 references33 citations
TL;DR

This paper proposes semi-amortized variational autoencoders (SA-VAE), which combine amortized inference with differentiable stochastic variational inference to refine variational parameters locally. By backpropagating through iterative optimization, the method enables end-to-end training that reduces the amortization gap and prevents posterior collapse, significantly improving performance on text and image generation tasks compared to standard VAEs and autoregressive baselines.

ABSTRACT

Amortized variational inference (AVI) replaces instance-specific local inference with a global inference network. While AVI has enabled efficient training of deep generative models such as variational autoencoders (VAE), recent empirical work suggests that inference networks can produce suboptimal variational parameters. We propose a hybrid approach, to use AVI to initialize the variational parameters and run stochastic variational inference (SVI) to refine them. Crucially, the local SVI procedure is itself differentiable, so the inference network and generative model can be trained end-to-end with gradient-based optimization. This semi-amortized approach enables the use of rich generative models without experiencing the posterior-collapse phenomenon common in training VAEs for problems like text generation. Experiments show this approach outperforms strong autoregressive and variational baselines on standard text and image datasets.

Motivation & Objective

  • To address the amortization gap in variational autoencoders, where fixed inference networks produce suboptimal variational parameters.
  • To overcome posterior collapse in VAEs—especially in text generation—where the model ignores the latent code.
  • To enable end-to-end training of deep generative models by differentiating through local variational inference.
  • To improve sample quality and log-likelihood on image and text datasets without relying on strong conditional independence assumptions.
  • To demonstrate that powerful autoregressive generative models can be effectively trained with meaningful latent representations using this hybrid approach.

Proposed method

  • Use an inference network to initialize variational parameters for each data point, as in amortized variational inference.
  • Apply differentiable stochastic variational inference (SVI) to refine these initial parameters via gradient-based optimization.
  • Backpropagate through the entire SVI process to jointly train the inference network and the generative model end-to-end.
  • Optimize the evidence lower bound (ELBO) using gradient updates that differentiate through the iterative refinement steps.
  • Leverage differentiable optimization techniques to make the local refinement process differentiable with respect to model parameters.
  • Train the model using a single objective: the final ELBO after refinement, ensuring consistency between training and test-time inference.

Experimental results

Research questions

  • RQ1Can differentiable local refinement of variational parameters improve the quality of latent representations in VAEs?
  • RQ2Does combining amortized initialization with iterative refinement reduce the amortization gap in VAEs without compromising training efficiency?
  • RQ3Can this approach prevent posterior collapse in VAEs trained on sequential data like text?
  • RQ4How does the performance of SA-VAE compare to strong autoregressive models and standard VAEs on image and text generation tasks?
  • RQ5Can powerful autoregressive generative models be effectively trained with meaningful latent codes using this method?

Key findings

  • The proposed semi-amortized VAE outperforms strong autoregressive and variational baselines on standard text and image datasets in terms of log-likelihood and sample quality.
  • The method successfully prevents posterior collapse in VAEs trained on text, allowing an LSTM-based generative model to maintain non-trivial latent representations.
  • End-to-end training via backpropagation through SVI leads to better generative models compared to methods that use separate training objectives for inference and generation.
  • The approach enables the use of rich, expressive generative models without the degradation in performance typically seen in standard VAEs.
  • Experiments show that SA-VAE achieves competitive or superior performance compared to direct baselines combining VAE and SVI, especially when end-to-end optimization is not applied.

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.