Embrace the Gap: VAEs Perform Independent Mechanism Analysis

Patrik Reizinger, Luigi Gresele, Jack Brady, Julius von Kügelgen, Dominik Zietlow +4 more
6/6/2022
stat.MLcs.AIcs.LG

Official code: rpatrik96/ima-vae (22 stars, Jupyter Notebook, Apache-2.0, PyTorch, last commit 2024-04-22).

Abstract

Variational autoencoders (VAEs) are a popular framework for modeling complex data distributions; they can be efficiently trained via variational inference by maximizing the evidence lower bound (ELBO), at the expense of a gap to the exact (log-)marginal likelihood. While VAEs are commonly used for representation learning, it is unclear why ELBO maximization would yield useful representations, since unregularized maximum likelihood estimation cannot invert the data-generating process.

Show full abstract

Yet, VAEs often succeed at this task. We seek to elucidate this apparent paradox by studying nonlinear VAEs in the limit of near-deterministic decoders. We first prove that, in this regime, the optimal encoder approximately inverts the decoder -- a commonly used but unproven conjecture -- which we refer to as {\em self-consistency}. Leveraging self-consistency, we show that the ELBO converges to a regularized log-likelihood. This allows VAEs to perform what has recently been termed independent mechanism analysis (IMA): it adds an inductive bias towards decoders with column-orthogonal Jacobians, which helps recovering the true latent factors. The gap between ELBO and log-likelihood is therefore welcome, since it bears unanticipated benefits for nonlinear representation learning. In experiments on synthetic and image data, we show that VAEs uncover the true latent factors when the data generating process satisfies the IMA assumption.

View on arXivView PDF

Code Implementations(1)

rpatrik96/ima-vaeOfficial100%
PyTorchApache-2.0

This is the code for the paper Embrace the Gap: VAEs perform Independent Mechanism Analysis, showing that optimizing the ELBO is equivalent to optimizing the IMA-regularized log-likelihood under certain assumptions (e.g., small decoder variance).

220Jupyter Notebook, PythonNov 25, 20212 years agoApache-2.0
disentanglementdspritesicaindependent-component-analysispytorch+5 more

Similar Papers

Cite this paper

@article{reizinger2022embrace,
  title  = {Embrace the Gap: VAEs Perform Independent Mechanism Analysis},
  author = {Patrik Reizinger and Luigi Gresele and Jack Brady and Julius von Kügelgen and Dominik Zietlow and Bernhard Schölkopf and Georg Martius and Wieland Brendel and Michel Besserve},
  year   = {2022},
  eprint = {2206.02416},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2206.02416}
}

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

Discussion