Skip to main content
QUICK REVIEW

[Paper Review] Balancing Reconstruction Quality and Regularisation in ELBO for VAEs

Shu‐Yu Lin, Stephen Roberts|arXiv (Cornell University)|Sep 9, 2019
Advancements in Photolithography TechniquesEngineering29 references9 citations
TL;DR

This paper proposes learning the noise variance in the VAE likelihood as a mechanism to automatically balance reconstruction quality and prior regularization in the ELBO objective. By conditioning the variance on input data and optimizing it jointly, the method improves sample quality, enables uncertainty estimation, and reduces reliance on heuristic hyperparameter tuning.

ABSTRACT

A trade-off exists between reconstruction quality and the prior regularisation in the Evidence Lower Bound (ELBO) loss that Variational Autoencoder (VAE) models use for learning. There are few satisfactory approaches to deal with a balance between the prior and reconstruction objective, with most methods dealing with this problem through heuristics. In this paper, we show that the noise variance (often set as a fixed value) in the Gaussian likelihood p(x|z) for real-valued data can naturally act to provide such a balance. By learning this noise variance so as to maximise the ELBO loss, we automatically obtain an optimal trade-off between the reconstruction error and the prior constraint on the posteriors. This variance can be interpreted intuitively as the necessary noise level for the current model to be the best explanation of the observed dataset. Further, by allowing the variance inference to be more flexible it can conveniently be used as an uncertainty estimator for reconstructed or generated samples. We demonstrate that optimising the noise variance is a crucial component of VAE learning, and showcase the performance on MNIST, Fashion MNIST and CelebA datasets. We find our approach can significantly improve the quality of generated samples whilst maintaining a smooth latent-space manifold to represent the data. The method also offers an indication of uncertainty in the final generative model.

Motivation & Objective

  • Address the long-standing challenge of balancing reconstruction loss and prior regularization in VAEs, which often relies on arbitrary hyperparameter choices.
  • Improve sample quality and latent space smoothness by dynamically adjusting the trade-off between reconstruction fidelity and prior constraints.
  • Develop a principled, data-dependent method to set the noise variance in the likelihood, avoiding fixed or heuristic values.
  • Enable uncertainty estimation for generated and reconstructed samples by learning a flexible, input-conditioned variance parameter.
  • Propose using the approximate aggregate posterior instead of the prior for sampling to mitigate distributional misalignment and improve generation quality.

Proposed method

  • Parameterize the likelihood $ p({\mathbf{x}}|{\mathbf{z}}) $ as a Gaussian with a variance $ \sigma^2 $ that is learned jointly with the VAE parameters.
  • Condition the variance $ \sigma^2 $ on the input data via a neural network, allowing it to vary across data points and dimensions.
  • Optimize $ \sigma^2 $ by maximizing the ELBO objective, which naturally balances reconstruction and regularization.
  • Approximate the aggregate posterior $ q_{\phi}({\mathbf{z}}) $ using a Gaussian mixture model to better capture the true posterior structure.
  • Use the learned $ \sigma^2 $ as an uncertainty estimator: higher values indicate regions of higher reconstruction or generation uncertainty.
  • Generate samples from the approximate aggregate posterior rather than the prior to reduce distributional misalignment and improve realism.

Experimental results

Research questions

  • RQ1Can learning the noise variance in the VAE likelihood automatically balance reconstruction and regularization without heuristic hyperparameter tuning?
  • RQ2How does input-conditioned, flexible variance estimation affect sample quality and uncertainty quantification in VAEs?
  • RQ3What is the impact of sampling from the aggregate posterior instead of the prior on generation quality?
  • RQ4To what extent does the learned variance serve as a reliable uncertainty estimator for reconstruction and generation?
  • RQ5How does the number of components in the Gaussian mixture model affect the approximation of the aggregate posterior and downstream performance?

Key findings

  • Optimizing the noise variance $ \sigma^2 $ significantly improves test log-likelihood on MNIST and Fashion MNIST, especially when $ \sigma^2 $ is conditioned on input and varies across data dimensions.
  • The FID score for CelebA generation improves when sampling from the approximate aggregate posterior instead of the prior, with FID dropping from 80.1 to 79.9 in ablation studies.
  • The method achieves a 7.5% improvement in FID on CelebA when using a flexible, input-conditioned $ \sigma^2 $ compared to a fixed scalar variance.
  • Uncertainty estimation via learned $ \sigma^2 $ effectively highlights regions of high reconstruction error, such as the top stroke of handwritten '0's or variable facial features.
  • The number of Gaussian mixture components in the aggregate posterior approximation has diminishing returns beyond 500 components, with no significant FID improvement beyond 2000 components.
  • The proposed method reduces the gap between the aggregate posterior and the prior, leading to more realistic and diverse samples without compromising latent space smoothness.

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.