Sinkhorn AutoEncoders

Giorgio Patrini, Rianne van den Berg, Patrick Forré, Marcello Carioni, Samarth Bhargav, Max Welling, Tim Genewein, Frank Nielsen

Introduction

Generative models like Variational AutoEncoders (VAEs) typically rely on the Kullback-Leibler (KL) divergence to align the aggregated posterior of the latent space with a prior distribution. While effective, this approach often leads to blurry reconstructions and is constrained by the "stiffness" of the KL divergence, which ignores the underlying geometry of the data manifold. Sinkhorn AutoEncoders (SAE) address these limitations by leveraging Optimal Transport (OT) theory, specifically through a differentiable approximation of the $p$-Wasserstein distance.

The Sinkhorn AutoEncoder Framework

The core innovation of SAE is the replacement of standard statistical divergences with the Sinkhorn Divergence. By introducing an entropic regularization term to the classic Optimal Transport problem, the authors transform it into a fast, iterative fixed-point calculation that is fully differentiable.

Figure 1: Visualization of SAE learning manifolds. (a) 3D Swiss Roll data; (b-e) Latent space representations on various geometries including planes and spheres.

Key Methodological Advances

  1. Unbiased Sharp Sinkhorn Loss: To eliminate the "entropic bias" inherent in regularized OT, SAE employs an unbiased formulation that ensures the loss reaches zero when distributions perfectly match.
  2. Deterministic Encoders: Unlike VAEs, which require stochastic encoders and the reparameterization trick, SAEs utilize deterministic encoders. This simplifies training and allows the model to work seamlessly with complex latent geometries like hyperspheres or probability simplices.
  3. Theoretical Capacity: The authors establish a rigorous link between the latent penalty weight and the Lipschitz constant of the decoder, providing a theoretical justification for the model's architecture and capacity.

Experimental Results

The SAE framework was evaluated across several benchmarks, demonstrating superior flexibility and performance in non-Euclidean latent spaces.

Hyperspherical and Dirichlet Priors

On the MNIST dataset, SAE achieved a Fréchet Inception Distance (FID) of 12.5 when using a hyperspherical prior, significantly outperforming VAE (21.5) and SWAE (27.6). Furthermore, the model successfully utilized Dirichlet priors to cluster data onto the vertices of a probability simplex, a task that is traditionally difficult for VAEs.

Figure 4: Latent space clustering on spherical and complex manifolds for MNIST and other datasets.

High-Dimensional Image Generation

On the CelebA face dataset, SAE with a hyperspherical prior reached an FID of 56, surpassing WAE-MMD (59) and SWAE (80), proving its efficacy in high-dimensional generative tasks.

Discussion and Limitations

While SAE offers significant geometric advantages, it faces challenges in high dimensions. Specifically, the "annulus effect"—where Gaussian samples concentrate on a thin ring—can cause the Sinkhorn algorithm to underestimate variance. Additionally, the $O(M^2)$ computational complexity (where $M$ is the minibatch size) presents a higher overhead compared to simpler divergences like MMD or KL.

Despite these hurdles, Sinkhorn AutoEncoders represent a major step forward in creating generative models that are both theoretically grounded and geometrically aware.

Summary updated

BibTeX
@inproceedings{patrini2019sinkhorn,
  author = {Giorgio Patrini and Rianne van den Berg and Patrick Forré and Marcello Carioni and Samarth Bhargav and Max Welling and Tim Genewein and Frank Nielsen},
  title = {{Sinkhorn AutoEncoders}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2019},
}
Figure