FONDUE: an algorithm to find the optimal dimensionality of the latent representations of variational autoencoders

Lisa Bonheme, Marek Grzes
9/26/2022
cs.LG

Official code: bonheml/VAE_learning_dynamics (7 stars, Python, Apache-2.0, last commit 2023-09-04).

Abstract

When training a variational autoencoder (VAE) on a given dataset, determining the optimal number of latent variables is mostly done by grid search: a costly process in terms of computational time and carbon footprint. In this paper, we explore the intrinsic dimension estimation (IDE) of the data and latent representations learned by VAEs.

Show full abstract

We show that the discrepancies between the IDE of the mean and sampled representations of a VAE after only a few steps of training reveal the presence of passive variables in the latent space, which, in well-behaved VAEs, indicates a superfluous number of dimensions. Using this property, we propose FONDUE: an algorithm which quickly finds the number of latent dimensions after which the mean and sampled representations start to diverge (i.e., when passive variables are introduced), providing a principled method for selecting the number of latent dimensions for VAEs and autoencoders.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
72Python, CJul 14, 20203 years agoApache-2.0

Similar Papers

Cite this paper

@article{bonheme2022fondue,
  title  = {FONDUE: an algorithm to find the optimal dimensionality of the latent representations of variational autoencoders},
  author = {Lisa Bonheme and Marek Grzes},
  year   = {2022},
  eprint = {2209.12806},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.12806}
}

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

Discussion