Unscented Autoencoder

Faris Janjos, Lars Rosenbaum, Maxim Dolgov, J. Marius Zöllner · DOI

Introduction

Variational Autoencoders (VAEs) are a cornerstone of deep learning, yet they frequently struggle with "blurry" reconstructions and training instabilities. These limitations often stem from the stochastic nature of the reparameterization trick and the rigid Kullback-Leibler (KL) divergence penalty, which can force models into maintaining "fuzzy" latent spaces. The Unscented Autoencoder (UAE) addresses these issues by incorporating the Unscented Transform (UT)—a deterministic sampling technique from control theory—to achieve sharper, more stable generative modeling.

Methodology

The UAE bridges the gap between fully probabilistic models and deterministic ones like Regularized Autoencoders (RAEs). Its primary innovation lies in how it handles latent space sampling and regularization.

Deterministic Sigma Points

Instead of drawing random samples, the UAE selects a fixed set of "sigma points" that perfectly capture the mean and covariance of the latent Gaussian distribution. These points are propagated through the decoder, providing a lower-variance gradient signal that is easier for the optimizer to follow.

Conceptual comparison between standard VAE (top) and UAE (bottom). The UAE replaces random sampling with deterministic sigma points to produce sharper mappings.

Wasserstein Regularization

The UAE replaces the standard KL-divergence with a metric based on the Wasserstein distance (specifically the squared Frobenius norm mismatch). This removes the infinite penalty on low-variance posteriors, allowing the model to learn much sharper latent representations. The objective also includes a gradient penalty to ensure the decoder remains smooth around the latent means.

Key Results

The model was evaluated on Fashion-MNIST, CIFAR10, and CelebA benchmarks, primarily using the Fréchet Inception Distance (FID) to measure reconstruction quality.

  • Superior Image Quality: On the CelebA dataset, the UAE achieved an FID score of 38.48 for reconstruction, significantly outperforming the standard VAE's 65.86. Qualitative results show that the UAE produces crisp features nearly indistinguishable from ground truth, whereas VAEs often produce "ghostly" or blurry outputs.
  • Training Stability: Empirical analysis shows that the UAE maintains lower gradient variance throughout training compared to the standard reparameterization trick, leading to more consistent convergence.
  • Active Latent Dimensions: Visualizations indicate that while standard VAEs often suffer from "posterior collapse" (deactivating latent dimensions), the UAE keeps dimensions active with high precision (low variance).
Empirical analysis of the UAE: (a) Latent space distribution, (b) deterministic sigma points on the posterior ellipsoid, and (c) comparison of gradient variance and loss landscape stability.

Discussion and Future Work

The UAE positions itself as a powerful middle ground, maintaining the probabilistic interpretation of latent spaces while gaining the reconstruction quality of deterministic models. However, some challenges remain:

  • Computational Scaling: The Unscented Transform requires $2n+1$ points for a latent dimension $n$. For very high-dimensional spaces, this can become expensive, necessitating heuristic subsets of sigma points.
  • Ex-post Density Estimation: Because the UAE does not strictly force the aggregated posterior to be a simple Gaussian, generating new samples requires fitting a Gaussian Mixture Model (GMM) to the latent space after training.

Future work will explore more scalable sampling approaches and methods to integrate density estimation directly into the training loop.

Summary updated

BibTeX
@misc{janjos2023unscented,
  author = {Faris Janjos and Lars Rosenbaum and Maxim Dolgov and J. Marius Zöllner},
  title = {{Unscented Autoencoder}},
  year = {2023},
  eprint = {2306.05256},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05256},
}
Figure