Beta-VAE Reproducibility: Challenges and Extensions

Miroslav Fil, Munib Mesinovic, Matthew Morris, Jonas WildbergerarXiv 2021

Abstract

The $\beta$-VAE is a prominent framework for unsupervised disentangled representation learning. This paper presents a reproducibility study of the original $\beta$-VAE claims, investigating the robustness of its disentanglement metric and its performance across datasets of varying complexity. We find that the near-perfect disentanglement results reported in previous literature are difficult to replicate consistently and are highly sensitive to hyperparameter selection. Furthermore, our results indicate that the benefits of increasing the $\beta$ coefficient are not universal and diminish as data complexity grows.

Introduction

In unsupervised representation learning, the goal of "disentanglement" is to separate independent factors of variation in data without explicit labels. The original $\beta$-VAE paper proposed a simple modification to the Variational Autoencoder (VAE) loss—adding a $\beta$ coefficient to the Kullback–Leibler (KL) divergence term—to encourage this behavior. This study addresses whether these results are robust, how they scale to complex datasets, and whether quantitative metrics align with qualitative observations.

Methods

Our methodology involves a rigorous re-implementation of the $\beta$-VAE using both Multi-Layer Perceptron (MLP) and Convolutional architectures. Key evaluation components include:

  • Disentanglement Metric: We followed the original classifier-based approach to predict held-constant factors from latent representations.
  • Sensitivity Analysis: We examined how the choice of classifier and sample size affects the reported scores.
  • Reconstruction Quality: We introduced the Fréchet Inception Distance (FID) to quantitatively measure the trade-off between disentanglement and image fidelity.
  • Baselines: Performance was compared against classical methods such as PCA and ICA.

Datasets

The study utilizes a range of synthetic and real-world datasets to test the limits of the model:

  • 2Dshapes: The standard benchmark featuring position, scale, rotation, and shape.
  • 3Dshapes & MPI3DToy: More complex synthetic datasets incorporating RGB channels and intricate factors like camera angles and background colors.
  • CIFAR10 & CIFAR100: Real-world datasets used primarily to evaluate reconstruction quality and FID scores.
Samples from the 2Dshapes, 3Dshapes, and MPI3DToy datasets used for evaluation.

Key Results and Insights

Our investigation revealed several critical insights regarding the behavior of $\beta$-VAEs:

The Reproducibility Gap

On the 2Dshapes dataset, we were unable to reach the 99% accuracy reported in the original 2016 study. Instead, performance typically hovered between 80% and 90%. Our analysis suggests that the original high scores may have relied on cherry-picking the best-performing 50% of training runs, a practice that masks the model's inherent instability.

The Complexity Ceiling

The common intuition that $\beta > 1$ is always superior for disentanglement does not hold as data complexity increases. On the MPI3DToy dataset, a lower $\beta$ value (0.1) actually yielded the highest disentanglement scores. This suggests that $\beta$ must be carefully balanced against the reconstruction loss, which increases significantly with data complexity.

Disentanglement scores across datasets for varying beta values and baselines (PCA, ICA). Note the performance drop on MPI3DToy for higher beta.

Metric Sensitivity and Baselines

The disentanglement metric is highly sensitive to the sample size used for training the evaluation classifier. Increasing the sample size can artificially boost scores, making simple baselines like ICA appear nearly as effective as deep generative models. In fact, with proper fine-tuning, ICA performed surprisingly well on simpler datasets, occasionally outperforming specific VAE configurations in quantitative metrics.

Conclusion

This reproducibility study highlights the challenges of unsupervised disentanglement. The trade-off between reconstruction fidelity and disentanglement is a significant hurdle, particularly for complex, real-world data. Future work should focus on developing more robust metrics that capture human-interpretable disentanglement and exploring modern VAE variants that might mitigate the sensitivity issues identified here.

Summary updated

BibTeX
@misc{fil2021beta,
  author = {Miroslav Fil and Munib Mesinovic and Matthew Morris and Jonas Wildberger},
  title = {{Beta-VAE Reproducibility: Challenges and Extensions}},
  year = {2021},
  eprint = {2112.14278},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.14278},
}
Figure