[Paper Review] Cramer-Wold AutoEncoder
This paper introduces the Cramer-Wold AutoEncoder (CWAE), a generative model that leverages a novel closed-form Cramer-Wold kernel to compute the distance between the posterior and prior distributions without sampling. By enabling analytic computation of the divergence, CWAE achieves faster training and improved performance over WAE-MMD and SWAE on standard benchmarks, particularly due to its efficient optimization via radial Gaussian kernel products.
We propose a new generative model, Cramer-Wold Autoencoder (CWAE). Following WAE, we directly encourage normality of the latent space. Our paper uses also the recent idea from Sliced WAE (SWAE) model, which uses one-dimensional projections as a method of verifying closeness of two distributions. The crucial new ingredient is the introduction of a new (Cramer-Wold) metric in the space of densities, which replaces the Wasserstein metric used in SWAE. We show that the Cramer-Wold metric between Gaussian mixtures is given by a simple analytic formula, which results in the removal of sampling necessary to estimate the cost function in WAE and SWAE models. As a consequence, while drastically simplifying the optimization procedure, CWAE produces samples of a matching perceptual quality to other SOTA models.
Motivation & Objective
- To develop a more efficient generative autoencoder by eliminating sampling in the loss computation.
- To simplify optimization of latent space regularization by deriving a closed-form distance metric between distributions.
- To combine the strengths of SWAE (projection-based distance) and WAE-MMD (characteristic kernel-based divergence) in a single model.
- To improve training speed and performance on standard benchmarks like MNIST, CIFAR-10, and CelebA.
- To provide a reliable, analytic measure of divergence from normality for Gaussian mixtures.
Proposed method
- Proposes the Cramer-Wold kernel, a characteristic kernel with a closed-form expression for the product of radial Gaussians.
- Uses the Cramer-Wold distance, defined as the mean squared L2-distance of smoothed projections onto all one-dimensional lines.
- Constructs the CWAE model by embedding the Cramer-Wold kernel into the WAE framework to compute the prior-posterior divergence analytically.
- Employs a characteristic kernel that ensures injectivity and avoids exponential decay issues common in other kernels.
- Adopts a log-transformed version of the loss function to improve training stability, unlike WAE-MMD which uses a U-statistic.
- Applies the model to image generation tasks using feed-forward and convolutional-deconvolutional architectures with Adam optimization.
Experimental results
Research questions
- RQ1Can a closed-form distance metric between distributions be derived for normal priors in autoencoders to eliminate sampling in loss computation?
- RQ2Does combining one-dimensional projections (as in SWAE) with characteristic kernel methods (as in WAE-MMD) yield a more efficient and effective generative model?
- RQ3Can the Cramer-Wold kernel provide a stable, analytic alternative to sample-based MMD estimators in WAE frameworks?
- RQ4How does the training speed and generation quality of CWAE compare to WAE-MMD and SWAE across standard benchmarks?
- RQ5Does the use of a log-transformed loss in CWAE improve training stability compared to WAE-MMD?
Key findings
- CWAE achieves a 2× speedup in training time per batch for batch-sizes up to 256, outperforming WAE-MMD and SWAE in optimization efficiency.
- The model maintains or improves generation quality on MNIST, CIFAR-10, and CelebA compared to WAE-MMD and SWAE, as measured by FID and IS scores.
- The Cramer-Wold kernel enables exact analytic computation of the divergence between posterior and prior, removing the need for Monte Carlo sampling in the loss function.
- For batch-sizes larger than 1024, CWAE becomes slower due to its quadratic complexity, but such batch-sizes are rarely used in practice.
- The log-transformed loss in CWAE improves training stability, unlike WAE-MMD, which uses a sample-based U-statistic that can yield negative values.
- The architecture used in experiments matches those of prior works (e.g., Tolstikhin et al., 2017), enabling direct comparison and validation of performance gains.
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.