Soft-IntroVAE: Analyzing and Improving the Introspective Variational Autoencoder

Tal Daniel, Aviv Tamar
12/24/2020
55 citations
cs.LGcs.AIcs.CV

Official code: taldatech/soft-intro-vae-pytorch (197 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2022-06-27).

Abstract

The recently introduced introspective variational autoencoder (IntroVAE) exhibits outstanding image generations, and allows for amortized inference using an image encoder. The main idea in IntroVAE is to train a VAE adversarially, using the VAE encoder to discriminate between generated and real data samples.

Show full abstract

However, the original IntroVAE loss function relied on a particular hinge-loss formulation that is very hard to stabilize in practice, and its theoretical convergence analysis ignored important terms in the loss. In this work, we take a step towards better understanding of the IntroVAE model, its practical implementation, and its applications. We propose the Soft-IntroVAE, a modified IntroVAE that replaces the hinge-loss terms with a smooth exponential loss on generated samples. This change significantly improves training stability, and also enables theoretical analysis of the complete algorithm. Interestingly, we show that the IntroVAE converges to a distribution that minimizes a sum of KL distance from the data distribution and an entropy term. We discuss the implications of this result, and demonstrate that it induces competitive image generation and reconstruction. Finally, we describe two applications of Soft-IntroVAE to unsupervised image translation and out-of-distribution detection, and demonstrate compelling results. Code and additional information is available on the project website -- https://taldatech.github.io/soft-intro-vae-web

View on arXivView PDF

Code Implementations(1)

PyTorchApache-2.0

[CVPR 2021 Oral] Official PyTorch implementation of Soft-IntroVAE from the paper "Soft-IntroVAE: Analyzing and Improving Introspective Variational Autoencoders"

19731Jupyter Notebook, PythonDec 15, 20204 years agoApache-2.0
cvpr2021density-estimationimage-generationpytorchsoft-intro-vae+4 more

Similar Papers

Cite this paper

@article{daniel2020softintrovae,
  title  = {Soft-IntroVAE: Analyzing and Improving the Introspective Variational Autoencoder},
  author = {Tal Daniel and Aviv Tamar},
  year   = {2020},
  eprint = {2012.13253},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.13253}
}

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/2012.13253.svg)](https://codeofpaper.com/paper/2012.13253)

Discussion