[Paper Review] Probabilistic Autoencoder
The Probabilistic Autoencoder (PAE) introduces a two-stage generative model that first trains a standard autoencoder for low reconstruction error, then applies a normalizing flow to the learned latent space to model its probability distribution. It achieves faster training, lower reconstruction error, and competitive sample quality compared to VAEs—without requiring variational inference or hyperparameter tuning—while also enabling effective outlier detection via latent space density estimation.
Principal Component Analysis (PCA) minimizes the reconstruction error given a class of linear models of fixed component dimensionality. Probabilistic PCA adds a probabilistic structure by learning the probability distribution of the PCA latent space weights, thus creating a generative model. Autoencoders (AE) minimize the reconstruction error in a class of nonlinear models of fixed latent space dimensionality and outperform PCA at fixed dimensionality. Here, we introduce the Probabilistic Autoencoder (PAE) that learns the probability distribution of the AE latent space weights using a normalizing flow (NF). The PAE is fast and easy to train and achieves small reconstruction errors, high sample quality, and good performance in downstream tasks. We compare the PAE to Variational AE (VAE), showing that the PAE trains faster, reaches a lower reconstruction error, and produces good sample quality without requiring special tuning parameters or training procedures. We further demonstrate that the PAE is a powerful model for performing the downstream tasks of probabilistic image reconstruction in the context of Bayesian inference of inverse problems for inpainting and denoising applications. Finally, we identify latent space density from NF as a promising outlier detection metric.
Motivation & Objective
- To develop a simple, stable, and easy-to-train generative model that avoids the complex hyperparameter tuning and training instability of VAEs.
- To improve reconstruction quality and sample generation by learning the true probability distribution of the autoencoder's latent space using normalizing flows.
- To enable robust downstream applications such as probabilistic image denoising, inpainting, and anomaly detection without relying on variational inference.
- To introduce a new outlier detection metric based on normalizing flow density estimation in the latent space, which outperforms traditional VAE ELBO-based methods.
Proposed method
- Train a standard autoencoder to minimize reconstruction error, optimizing for low-dimensional latent representations.
- Apply a normalizing flow to the trained encoder's latent space to learn the full probability distribution of the latent variables.
- Use the normalizing flow to generate samples by transforming a simple base distribution through invertible, differentiable transformations.
- Leverage the normalizing flow's log-likelihood for probabilistic inference, including reconstruction uncertainty and density estimation.
- Decompose the ELBO into distortion, rate, entropy, and cross-entropy terms to analyze and compare outlier detection performance.
- Use the latent space density from the normalizing flow as a novel, effective metric for out-of-distribution detection.
Experimental results
Research questions
- RQ1Can a two-stage approach—first training an autoencoder for reconstruction, then learning its latent distribution with a normalizing flow—achieve better performance than end-to-end VAEs?
- RQ2Does the PAE achieve lower reconstruction error and faster training than VAEs without requiring ELBO hyperparameter tuning?
- RQ3Can normalizing flow density in the latent space serve as a superior outlier detection metric compared to the ELBO in VAEs?
- RQ4How does the PAE perform in downstream tasks such as probabilistic image denoising and inpainting compared to VAEs?
- RQ5Is the proposed PAE framework robust to overfitting and memorization, especially when using expressive normalizing flows?
Key findings
- The PAE trains significantly faster than VAEs and achieves a lower reconstruction error across all evaluated datasets.
- The PAE produces high-quality samples comparable to those of VAEs, without requiring special training procedures or hyperparameter annealing.
- The latent space density estimated via normalizing flow outperforms the ELBO in outlier detection, achieving AUROC scores of 0.9970 on MNIST and 0.9736 on Omniglot.
- The cross-entropy term of the ELBO, which correlates with latent density, is a reliable OoD metric, with AUROC values up to 0.9963 for flow-VAE on MNIST.
- The PAE framework enables effective Bayesian inference for inverse problems, demonstrating strong performance in probabilistic image denoising and inpainting.
- The normalizing flow-based density estimation in the latent space is a robust and generalizable outlier detection metric that can be applied to VAEs with NF priors.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.