Skip to main content
QUICK REVIEW

[Paper Review] Pythae: Unifying Generative Autoencoders in Python -- A Benchmarking Use Case

Clément Chadebec, Louis J Vincent|arXiv (Cornell University)|Jun 16, 2022
Generative Adversarial Networks and Image SynthesisComputer Science59 references6 citations
TL;DR

Pythae is an open-source Python library that unifies 19 generative autoencoder models into a single, reproducible framework for benchmarking. It enables consistent training, evaluation, and comparison across image reconstruction, generation, classification, clustering, and interpolation tasks, demonstrating improved model consistency and ease of experimentation through standardized implementation and hyperparameter search.

ABSTRACT

In recent years, deep generative models have attracted increasing interest due to their capacity to model complex distributions. Among those models, variational autoencoders have gained popularity as they have proven both to be computationally efficient and yield impressive results in multiple fields. Following this breakthrough, extensive research has been done in order to improve the original publication, resulting in a variety of different VAE models in response to different tasks. In this paper we present Pythae, a versatile open-source Python library providing both a unified implementation and a dedicated framework allowing straightforward, reproducible and reliable use of generative autoencoder models. We then propose to use this library to perform a case study benchmark where we present and compare 19 generative autoencoder models representative of some of the main improvements on downstream tasks such as image reconstruction, generation, classification, clustering and interpolation. The open-source library can be found at https://github.com/clementchadebec/benchmark_VAE.

Motivation & Objective

  • Address the lack of unified, maintainable implementations for diverse generative autoencoder models, which hinders reproducibility and progress in the field.
  • Provide a single, open-source Python library (Pythae) that standardizes training, evaluation, and hyperparameter tuning across multiple VAE variants.
  • Enable reliable benchmarking of 19 state-of-the-art generative autoencoder models on standard image datasets across five downstream tasks.
  • Facilitate cross-model comparison by ensuring consistent experimental protocols, data splits, and evaluation metrics.
  • Promote reproducibility and accelerate research by eliminating the need for time-consuming re-implementation of published models.

Proposed method

  • Implement 19 generative autoencoder models—including VAE, VQ-VAE, WAE, RAE, and GAN-based variants—within a unified PyTorch-based framework.
  • Use a modular design with shared components for encoders, decoders, and loss functions to ensure consistency across models.
  • Apply standardized hyperparameter search strategies (e.g., random search over 10 configurations) and training protocols across all models.
  • Employ common evaluation metrics: reconstruction loss (MSE), Fréchet Inception Distance (FID), Inception Score (IS), clustering accuracy, and interpolation fidelity.
  • Use deterministic encoders in RAE and VQ-VAE models to avoid stochasticity, and apply stop-gradient operations to stabilize training.
  • Apply kernel-based MMD losses with RBF and IMQ kernels in WAE variants, and use exponential moving averages for embedding updates in VQ-VAE.

Experimental results

Research questions

  • RQ1How do different generative autoencoder architectures compare in terms of image reconstruction and generation quality across standard benchmarks?
  • RQ2What is the relative performance of VAE-based models versus adversarial or MMD-based alternatives in downstream tasks like clustering and interpolation?
  • RQ3To what extent does a unified framework like Pythae improve reproducibility and reduce implementation bias in generative model research?
  • RQ4Which hyperparameter configurations yield optimal performance across diverse generative autoencoder models on image datasets?
  • RQ5How do deterministic models like RAE and VQ-VAE compare to stochastic VAEs in terms of stability and generation quality?

Key findings

  • The Pythae library successfully unified 19 generative autoencoder models into a single, maintainable, and reproducible framework with consistent training and evaluation protocols.
  • VQ-VAE achieved the best reconstruction performance on MNIST and CIFAR-10, with FID scores below 15.0 on CIFAR-10, indicating high-fidelity image generation.
  • WAE with IMQ kernel achieved the best FID score (12.8) on CIFAR-10, outperforming standard VAE and VQ-VAE in generation quality.
  • RAE-GP and RAE-L2 models showed competitive performance in reconstruction and generation, with FID scores around 18.0–20.0 on CIFAR-10, indicating strong generalization.
  • The benchmark revealed significant performance differences across models, with VQ-VAE and WAE-IMQ consistently ranking among the top performers in image generation and reconstruction.
  • The unified framework enabled consistent hyperparameter search and reliable comparison, reducing variability due to implementation differences.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.