Skip to main content
QUICK REVIEW

[Paper Review] A survey on Variational Autoencoders from a GreenAI perspective

Andrea Asperti, Daniele Evangelista|arXiv (Cornell University)|Mar 1, 2021
Generative Adversarial Networks and Image SynthesisComputer Science47 references5 citations
TL;DR

This paper presents a GreenAI-focused comparative analysis of recent Variational Autoencoder (VAE) variants, evaluating their generative performance and computational efficiency. It introduces mathematical formulations, model implementations in TensorFlow 2, and benchmarks energy efficiency via FLOPS and inference time, revealing that simpler architectures like L2-RAE offer better trade-offs than complex, regularization-heavy models despite similar FLOPS counts.

ABSTRACT

Variational AutoEncoders (VAEs) are powerful generative models that merge elements from statistics and information theory with the flexibility offered by deep neural networks to efficiently solve the generation problem for high dimensional data. The key insight of VAEs is to learn the latent distribution of data in such a way that new meaningful samples can be generated from it. This approach led to tremendous research and variations in the architectural design of VAEs, nourishing the recent field of research known as unsupervised representation learning. In this article, we provide a comparative evaluation of some of the most successful, recent variations of VAEs. We particularly focus the analysis on the energetic efficiency of the different models, in the spirit of the so called Green AI, aiming both to reduce the carbon footprint and the financial cost of generative techniques. For each architecture we provide its mathematical formulation, the ideas underlying its design, a detailed model description, a running implementation and quantitative results.

Motivation & Objective

  • To evaluate the energetic efficiency of recent VAE variants through a GreenAI lens, focusing on carbon and financial cost reduction.
  • To compare state-of-the-art VAE architectures—Two-Stage, Regularized Autoencoder, and Hierarchical VAEs—on both performance and computational cost.
  • To provide open-source implementations in TensorFlow 2 to support reproducibility and further research.
  • To challenge the assumption that FLOPS alone correlates with inference time, highlighting memory access and training complexity as key factors.
  • To advocate for better metrics than FLOPS to assess real-world energy efficiency in deep generative models.

Proposed method

  • Proposes a comparative evaluation of three VAE variants: Two-Stage VAE, Regularized Autoencoder (RAE), and Hierarchical VAEs (including HFVAE and a variant with Feature-wise Linear Modulation).
  • Provides mathematical formulations for each model, including the VAE objective with KL divergence, reparameterization trick, and reconstruction loss.
  • Employs FLOPS estimation and forward pass inference timing on a GPU workstation (GeForce GTX 1060) to measure computational cost.
  • Uses a standardized experimental setup on CIFAR-10 with batch sizes of 1, 10, and 100 to compare inference speed and energy consumption.
  • Introduces a custom library for FLOPS computation, validated through empirical measurements.
  • Analyzes training cost differences beyond FLOPS, such as gradient computation in GP-RAE, which increases training time despite identical FLOPS to L2-RAE.

Experimental results

Research questions

  • RQ1How do different VAE architectures compare in terms of FLOPS and actual inference time, and what explains discrepancies between them?
  • RQ2To what extent do regularization techniques like L2 and gradient penalty in RAEs affect training time and energy consumption, even when FLOPS remain similar?
  • RQ3Can simpler VAE architectures achieve comparable generative quality to more complex ones while significantly reducing computational cost?
  • RQ4Why does FLOPS fail as a reliable proxy for energy efficiency in real-world inference, and what other factors (e.g., memory access) dominate?
  • RQ5How do hierarchical VAEs like HFVAE scale in terms of parameters and FLOPS, and what is their practical feasibility under GreenAI constraints?

Key findings

  • L2-RAE and GP-RAE have identical FLOPS (2,395M) but differ significantly in training time—GP-RAE is nearly ten times slower due to gradient computation in the regularization term.
  • Inference times vary widely despite similar FLOPS: HFVAE-s4-z12-l64 (2,085M FLOPS) takes 325.2ms for a batch size of 1, while simpler models like ResNet-s4-b48-l128 (1,431M FLOPS) take only 49.5ms.
  • There is little correlation between FLOPS and actual execution time, as memory access patterns (e.g., in depthwise convolutions) significantly impact performance.
  • The HFVAE-s4-z12-l64 model, though more complex, shows a 2.2x increase in FLOPS and 6.6x increase in inference time compared to ResNet-s4-b48-l128, indicating high energy cost for marginal gains.
  • The authors conclude that FLOPS alone is insufficient for energy efficiency assessment and advocate for more realistic metrics that include training overhead and memory access.
  • Despite their theoretical appeal, models like NVAE are deemed impractically expensive for most researchers due to extreme computational demands, underscoring the need for efficient design in GreenAI.

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.