Skip to main content
QUICK REVIEW

[Paper Review] SurVAE Flows: Surjections to Bridge the Gap between VAEs and Flows

Didrik Nielsen, Priyank Jaini|arXiv (Cornell University)|Jul 6, 2020
Generative Adversarial Networks and Image SynthesisComputer Science44 references26 citations
TL;DR

SurVAE Flows introduce a unified, modular framework that bridges variational autoencoders (VAEs) and normalizing flows using surjective transformations—deterministic forward maps with stochastic inverses—enabling exact likelihood computation while supporting dimensionality changes, discrete data, and complex structures. The method enables composable layers like max pooling, sorting, and stochastic permutations, achieving state-of-the-art results on image and point cloud generation with exact likelihoods.

ABSTRACT

Normalizing flows and variational autoencoders are powerful generative models that can represent complicated density functions. However, they both impose constraints on the models: Normalizing flows use bijective transformations to model densities whereas VAEs learn stochastic transformations that are non-invertible and thus typically do not provide tractable estimates of the marginal likelihood. In this paper, we introduce SurVAE Flows: A modular framework of composable transformations that encompasses VAEs and normalizing flows. SurVAE Flows bridge the gap between normalizing flows and VAEs with surjective transformations, wherein the transformations are deterministic in one direction -- thereby allowing exact likelihood computation, and stochastic in the reverse direction -- hence providing a lower bound on the corresponding likelihood. We show that several recently proposed methods, including dequantization and augmented normalizing flows, can be expressed as SurVAE Flows. Finally, we introduce common operations such as the max value, the absolute value, sorting and stochastic permutation as composable layers in SurVAE Flows.

Motivation & Objective

  • To unify the strengths of VAEs and normalizing flows by introducing a composable framework that supports exact likelihood estimation and flexible architecture design.
  • To address limitations in existing models, such as inability to handle discrete data, disconnected components, or dimensionality changes, while maintaining tractable likelihoods.
  • To provide a modular software framework where transformations are composable, with clear forward, inverse, and log-likelihood components.
  • To demonstrate that recent specialized models (e.g., dequantization, augmented flows) can be expressed as special cases of SurVAE Flows.
  • To introduce novel, composable layers such as max value, absolute value, sorting, and stochastic permutations for modeling symmetries and exchangeable data.

Proposed method

  • Introduce surjective transformations as a bridge between VAEs (stochastic, non-invertible) and normalizing flows (bijective, invertible), where the forward map is deterministic and the reverse map is stochastic.
  • Define a modular framework with three components: forward transformation, stochastic inverse, and log-likelihood computation via Jacobian determinant and conditional entropy.
  • Design composable layers including max pooling, absolute value, sorting, and stochastic permutations, each with explicit forward and stochastic reverse mappings.
  • Use invertible coupling layers and 1×1 convolutions as base building blocks, parameterized by deep networks (e.g., DenseNets, Transformers), for expressive flows.
  • Implement variational dequantization and squeezing layers to handle discrete image data and improve likelihood estimation.
  • Train models using maximum likelihood with stochastic gradient descent, leveraging the exact log-likelihood from the forward path and variational lower bound from the reverse path.

Experimental results

Research questions

  • RQ1Can a unified, composable framework be designed that combines the exact likelihoods of normalizing flows with the flexibility of VAEs in handling dimensionality changes and discrete data?
  • RQ2How can surjective transformations be used to define deterministic forward maps with stochastic inverses that still allow exact likelihood computation?
  • RQ3Can common operations like max pooling, sorting, and stochastic permutations be formalized as differentiable, composable layers within a probabilistic flow framework?
  • RQ4To what extent can existing specialized models (e.g., dequantization, augmented flows) be expressed as instances of this new SurVAE Flow framework?
  • RQ5How do SurVAE Flows perform in practice on complex data like images and point clouds, especially in terms of likelihood and sample quality?

Key findings

  • SurVAE Flows achieve state-of-the-art likelihoods on CIFAR-10, ImageNet 32×32, and ImageNet 64×64 datasets, with the MaxPoolFlow variant outperforming baseline flows on all benchmarks.
  • The MaxPoolFlow model, using a max pooling surjection, achieves competitive likelihoods while enabling dimensionality reduction with exact likelihood computation.
  • SurVAE Flows successfully model discrete and symmetrical data structures using layers like absolute value and sorting, which are not natively supported in standard normalizing flows.
  • The framework unifies diverse models: dequantization, augmented flows, and stochastic permutation layers are all expressible as SurVAE Flow components.
  • Experiments show that SurVAE Flows generate high-quality samples on synthetic, point cloud, and image data, with visual quality comparable to or better than baselines.
  • The open-source code enables reproducibility and modular extension, with pre-trained models and support for diverse architectures including Transformers and DenseNets.

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.