Training β-VAE by Aggregating a Learned Gaussian Posterior with a Decoupled Decoder

Jianning Li, Jana Fragemann, Seyed-Ahmad Ahmadi, Jens Kleesiek, Jan Egger
9/29/2022
cs.CV

Official code: Jianningli/skullVAE (5 stars, Python, last commit 2026-10-02).

Abstract

The reconstruction loss and the Kullback-Leibler divergence (KLD) loss in a variational autoencoder (VAE) often play antagonistic roles, and tuning the weight of the KLD loss in $β$-VAE to achieve a balance between the two losses is a tricky and dataset-specific task. As a result, current practices in VAE training often result in a trade-off between the reconstruction fidelity and the continuity$/$disentanglement of the latent space, if the weight $β$ is not carefully tuned.

Show full abstract

In this paper, we present intuitions and a careful analysis of the antagonistic mechanism of the two losses, and propose, based on the insights, a simple yet effective two-stage method for training a VAE. Specifically, the method aggregates a learned Gaussian posterior $z \sim q_θ (z|x)$ with a decoder decoupled from the KLD loss, which is trained to learn a new conditional distribution $p_φ (x|z)$ of the input data $x$. Experimentally, we show that the aggregated VAE maximally satisfies the Gaussian assumption about the latent space, while still achieves a reconstruction error comparable to when the latent space is only loosely regularized by $\mathcal{N}(\mathbf{0},I)$. The proposed approach does not require hyperparameter (i.e., the KLD weight $β$) tuning given a specific dataset as required in common VAE training practices. We evaluate the method using a medical dataset intended for 3D skull reconstruction and shape completion, and the results indicate promising generative capabilities of the VAE trained using the proposed method. Besides, through guided manipulation of the latent variables, we establish a connection between existing autoencoder (AE)-based approaches and generative approaches, such as VAE, for the shape completion problem. Codes and pre-trained weights are available at https://github.com/Jianningli/skullVAE

View on arXivView PDF

Code Implementations(1)

training β-VAE by Aggregating a Learned Gaussian Posterior with a Decoupled Decoder

51PythonJun 13, 20222 months ago
disentangled-representationsdisentanglementmonaishape-completionskull-reconstruction+4 more

Similar Papers

Cite this paper

@article{li2022training,
  title  = {Training β-VAE by Aggregating a Learned Gaussian Posterior with a Decoupled Decoder},
  author = {Jianning Li and Jana Fragemann and Seyed-Ahmad Ahmadi and Jens Kleesiek and Jan Egger},
  year   = {2022},
  eprint = {2209.14783},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.14783}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.14783.svg)](https://codeofpaper.com/paper/2209.14783)

Discussion