Overlooked Implications of the Reconstruction Loss for VAE Disentanglement

Nathan Michlo, Richard Klein, Steven James
2/27/2022
cs.LGcs.AIcs.CV

Official code: nmichlo/disent (136 stars, Python, MIT, PyTorch, last commit 2026-10-06).

Abstract

Learning disentangled representations with variational autoencoders (VAEs) is often attributed to the regularisation component of the loss. In this work, we highlight the interaction between data and the reconstruction term of the loss as the main contributor to disentanglement in VAEs.

Show full abstract

We show that standard benchmark datasets have unintended correlations between their subjective ground-truth factors and perceived axes in the data according to typical VAE reconstruction losses. Our work exploits this relationship to provide a theory for what constitutes an adversarial dataset under a given reconstruction loss. We verify this by constructing an example dataset that prevents disentanglement in state-of-the-art frameworks while maintaining human-intuitive ground-truth factors. Finally, we re-enable disentanglement by designing an example reconstruction loss that is once again able to perceive the ground-truth factors. Our findings demonstrate the subjective nature of disentanglement and the importance of considering the interaction between the ground-truth factors, data and notably, the reconstruction loss, which is under-recognised in the literature.

View on arXivView PDF

Code Implementations(1)

nmichlo/disentOfficial100%
PyTorchMIT

🧶 Modular VAE disentanglement framework for python built with PyTorch Lightning ▸ Including metrics and datasets ▸ With strongly supervised, weakly supervised and unsupervised methods ▸ Easily configured and run with Hydra config ▸ Inspired by disentanglement_lib

13619PythonApr 16, 20201 months agoMIT
autoencodersconfigurabledatasetsdisentangled-representationsdisentanglement+8 more

Similar Papers

Cite this paper

@article{michlo2022overlooked,
  title  = {Overlooked Implications of the Reconstruction Loss for VAE Disentanglement},
  author = {Nathan Michlo and Richard Klein and Steven James},
  year   = {2022},
  eprint = {2202.13341},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.13341}
}

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

Discussion