Wasserstein Auto-Encoders: Training Challenges and What the Results Mean in 2026

The Wasserstein auto-encoder (WAE) paper from Max Planck Institute and Google Brain researchers, presented at ICLR 2018, attacked a long-standing split in generative modeling: VAEs train stably but produce blurry samples, while GANs generate sharp images but train unpredictably. WAEs use optimal transport theory to get most of the sharpness with most of the stability.
The headline numbers held up. On CelebA, WAE-GAN reached FID 42 against VAE's 63, a 33% improvement, and both WAE variants doubled measured sharpness. The training difficulties held up too: quadratic MMD cost, hyperparameters that jump 10-100x between datasets, and a kernel choice that decides whether training works at all.
This article breaks down the paper's MNIST and CelebA experiments, the four training challenges they exposed, and how the WAE story reads now that diffusion models dominate general-purpose generation and FID itself has come under sustained criticism.
TLDR:
WAEs match the aggregated posterior to the prior rather than every per-sample posterior, which is why reconstructions come out sharper than a VAE's and why deterministic encoders become possible.
On CelebA, WAE-GAN hit FID 42 versus VAE's 63, but wider hyperparameter sweeps shrank its lead over the adversary-free WAE-MMD from 24% to about 6%.
Four training constraints still bind: O(m²) MMD cost, hyperparameters that do not transfer across datasets, RBF kernel failure, and a sample-quality-versus-stability tradeoff.
The RBF kernel fails outright because its quick tail decay provides no gradient for outlier latent codes; inverse multiquadratics fix it through heavier polynomial tails.FID, the paper's primary metric, has since been shown to contradict human raters, and CMMD and FD-DINOv2 have replaced it in current practice.
How a Wasserstein auto-encoder differs from a VAE
Both architectures pair an encoder with a decoder and regularize the latent space toward a prior P_Z. The difference is what gets matched to that prior. A VAE forces every per-sample posterior Q(Z|X=x) toward P_Z. A WAE matches the aggregated posterior Q_Z, the average of encoded distributions across the whole dataset, to P_Z, and minimizes a penalized form of the Wasserstein distance between the data distribution and the model distribution.
That single change has two practical consequences. First, individual samples can occupy distinct regions of latent space instead of all overlapping at the prior's center, which is one reason WAE reconstructions come out sharper. Second, WAEs support deterministic encoders, which VAEs cannot use.
The follow-up paper on WAE latent spaces adds a caveat: deterministic encoders create "holes" in latent space when the latent dimension exceeds the data's intrinsic dimensionality, and random encoders can suffer variance collapse, gradually reverting to deterministic behavior unless log-variances are regularized.
The framework ships in two variants that differ only in how they penalize the mismatch between Q_Z and P_Z. WAE-GAN trains a discriminator in latent space. WAE-MMD replaces the adversary with Maximum Mean Discrepancy, a kernel-based distance that needs no discriminator.
How well either penalty shapes the latent geometry matters for any downstream use of the embeddings, a concern that carries over to modern systems where semantic similarity metrics depend on embedding structure and where poorly structured latent spaces create security risks.
What the CelebA experiments showed
The paper tested both variants against a VAE baseline on MNIST (70,000 images) and CelebA (203,000 images) using DCGAN-style architectures. The CelebA results in Table 1:
Algorithm | FID (lower is better) | Sharpness (higher is better) |
VAE | 63 | 3×10⁻³ |
WAE-MMD | 55 | 6×10⁻³ |
WAE-GAN | 42 | 6×10⁻³ |
bigWAE-MMD | 37 | — |
bigWAE-GAN | 35 | — |
Three findings stand out. WAE-GAN's FID 42 is a 33% improvement over VAE; WAE-MMD's 55 is a 12.7% improvement. Both variants doubled sharpness relative to VAE. And stability split cleanly by variant: the paper reports WAE-MMD has stable training much like VAE, with no discriminator to balance and no mode collapse to watch for, while WAE-GAN "is less stable than WAE-MMD" because of its adversarial component.
The bigWAE rows come from Supplementary D, where the authors trained over 3,000 WAE-GAN, WAE-MMD, and VAE models on 8 Google Cloud TPU-v2 accelerators for 100,000 mini-batch steps each. Wider hyperparameter sweeps shrank WAE-GAN's advantage over WAE-MMD from 24% to about 6% (FID 35 versus 37).
If you can afford extensive tuning, the stable adversary-free variant nearly catches the adversarial one. This pattern, where compute-heavy sweeps change which method looks best, is a recurring problem in evaluating generative and multimodal systems more broadly.
Four challenges of training Wasserstein auto-encoders
Each of these constraints came out of the paper's own experiments, and each still shapes how practitioners use OT-based autoencoders today.
1. O(m²) MMD complexity caps batch sizes
WAE-MMD estimates MMD with a U-statistic over kernel matrices, which requires evaluating the kernel for every pair of samples in a minibatch: m² operations for m samples. A VAE's element-wise KL term scales linearly. MMD GAN work at NeurIPS 2017 made the same point explicit, noting the "quadratic complexity O(B²)" of computing the kernel matrix "is sometimes criticized for being inapplicable with large batch size in practice."
The arithmetic is unforgiving. At batch size 100, the kernel computation covers 10,000 pairwise evaluations; doubling the batch to 200 quadruples that to 40,000. The paper used batch size 100 for every model on both datasets, and defended minibatch estimation on the grounds that "typically Z has no more than 100 dimensions and P_Z is Gaussian, which allows us to use regular mini-batch sizes to accurately estimate MMD."
Later work built practical workarounds rather than a subquadratic general estimator. Sliced-Wasserstein Auto-Encoders replace the MMD penalty with the sliced-Wasserstein distance, computable in O(M log M) by projecting distributions to one dimension and sorting. On the theory side, 2024 analysis showed WAE error rates scale with the intrinsic dimension of the data rather than the full feature dimension, which partly explains why modest latent sizes work.
2. Hyperparameters don't transfer between datasets
The regularization coefficient λ moved by orders of magnitude across the paper's own experiments: λ=10 for WAE-MMD on MNIST, λ=100 on CelebA, and λ=1 for WAE-GAN on the same CelebA data, a 100x spread between variants on identical images.
Latent geometry changed too. MNIST used prior variance σ²_z=1 with an 8-dimensional latent space; CelebA needed σ²_z=2 with 64 dimensions. The paper explains the constraint: choosing d_z larger than the dataset's intrinsic dimensionality forces the encoded distribution onto a manifold in Z, which makes matching Q_Z to a Gaussian prior impossible and can produce numerical instabilities.
Learning rates followed no consistent pattern either. MNIST used α=10⁻³ for the encoder-decoder and α=5×10⁻⁴ for the adversary. CelebA WAE-GAN inverted the relationship, with α=3×10⁻⁴ for the encoder-decoder and α=10⁻³ for the adversary, plus staged decreases during training. Anyone porting a WAE configuration to a new dataset should budget for a full re-tune rather than a transfer.
3. RBF kernels fail; inverse multiquadratics work
The paper's most operationally important finding is a complete kernel failure. The authors report: "We tried WAE-MMD with the RBF kernel but observed that it fails to penalize the outliers of Q_Z because of the quick tail decay."
For the RBF kernel k(z, z̃) = exp(−‖z̃−z‖²/σ²_k), when encoded codes land far from the prior's support during early training, "the corresponding terms in the U-statistic will quickly approach zero and provide no gradient for those outliers." Early training is exactly when encoded samples scatter widely, so the penalty vanishes at the moment it is needed most.
The fix was the inverse multiquadratics kernel, k(x,y) = C/(C + ‖x − y‖²₂) with C = 2d_z σ²_z, the expected squared distance between two Gaussian vectors drawn from P_Z. The paper notes this kernel "is also characteristic and has much heavier tails" than RBF; its polynomial decay keeps gradient signal alive for distant latent codes, and switching to it produced "significantly improved performance compared to the RBF kernel," even against RBF with matched bandwidth.
Kernel design for MMD remains an open research thread. Later MMD GAN work recommended heavier-tailed kernels for the same tail-behavior reason, and newer automatic kernel-selection methods learn characteristic kernels rather than hand-picking them. The MMD GAN authors stated plainly that tuning kernel bandwidth optimally "still remains an open problem."
4. Sample quality trades against training stability
WAE-GAN's FID 42 beats WAE-MMD's 55 in the standard experiments, but the adversarial variant demands the discriminator balancing and staged learning-rate schedules described above, while WAE-MMD trains as predictably as a VAE. The bigWAE sweeps showed the gap narrows to roughly 6% under heavy tuning, so the practical decision is whether extra tuning budget is worth WAE-GAN's edge, or whether WAE-MMD's stability wins for your setting.
The trade-off is sharpened by a sensitivity the paper flags directly: "the quality of samples strongly depends on how accurately Q_Z matches P_Z," and "even slight differences between Q_Z and P_Z may affect the quality of samples." The mechanism is a train-test distribution mismatch. During training the decoder only ever sees samples from Q_Z, the encoded training data. At generation time you sample z from P_Z, so any gap between the two distributions feeds the decoder inputs it never learned to handle.
Where Wasserstein auto-encoders stand in 2026
WAEs are no longer a headline generative architecture. A May 2026 preprint describes the field as dominated by diffusion methods, while adding that alternative approaches, including Wasserstein gradient flows, "remain highly competitive when well designed, while allowing for faster sampling."
The WAE's optimal-transport ideas, meanwhile, still appear in specialized settings where controlled latent geometry matters more than photorealism:
Physics anomaly detection. The CMS collaboration at the CERN LHC published a Wasserstein Normalized Autoencoder for identifying semivisible jets.
The honest framing for 2026 is that WAE stopped competing with GANs and VAEs on image benchmarks and became infrastructure: an OT objective that shows up wherever practitioners need a principled latent prior with convergence behavior they can reason about.
FID's limits and how generative evaluation moved on
The paper's primary metric has aged worse than its architecture. CVPR 2024 work from Google Research documented that FID "contradicts human raters," incorrectly models Inception embeddings as multivariate normal, and suffers poor sample efficiency because it estimates a 2048×2048 covariance matrix with 4 million entries. NeurIPS 2023 work found diffusion models are "unfairly punished by the Inception network" and that "no existing metric strongly correlates with human evaluations."
Two replacements now anchor current practice: CMMD (CVPR 2024), which uses CLIP embeddings with an unbiased MMD estimator and no Gaussian assumption, and FD-DINOv2 (NeurIPS 2023), which swaps Inception-V3 for DINOv2 features and, per its authors, resolves the discrepancy with human evaluators. There is a neat symmetry here: MMD, the same kernel machinery WAE-MMD used as a training penalty in 2018, is now the recommended evaluation distance. The lesson generalizes beyond images.
A single scalar metric rarely captures what you care about, which is why modern LLM benchmarking spans seven distinct categories and why multimodal evaluation layers grounding and dependence checks on top of aggregate scores. Even automated judges need calibration against human judgment, a discipline covered in Galileo's LLM-as-a-judge best practices.
Why Evaluation Engineering Outlasts Any Single Benchmark
The WAE experiments are a compact case study in why benchmark numbers alone mislead. A 24% quality gap between variants shrank to 6% under wider tuning. A kernel that looked reasonable on paper failed completely in training. The metric everything was scored on was later shown to disagree with human raters.
The Stanford HAI AI Index 2026 generalizes the pattern: evaluations "intended to be challenging for years are saturated in months," invalid question rates reach 42% on GSM8K, and "strong benchmark performance does not always translate to real world utility."
The teams that close that gap treat evaluation as engineering rather than a scoreboard. Galileo's State of AI Evaluation Engineering Report, a survey of 500+ enterprise practitioners, found that teams with 90-100% eval coverage achieve 70.3% excellent production reliability versus 32.4% for teams below 50% coverage, and that skipping evals for "low-risk" behaviors leads to 2.3x more production incidents.
Getting there means systematic LLM evaluation across automated metrics, judges, and task-specific checks and, for agentic systems, a framework of metrics, rubrics, and benchmarks rather than a single score.
Galileo delivers the agent observability and evaluation infrastructure built for that discipline:
Metrics Engine: 20+ out-of-the-box evaluations spanning agentic, safety, quality, and readability categories, plus unlimited custom metrics for domain-specific needs.
Luna-2 evaluation models: Purpose-built small language models running evaluations at 98% lower cost than LLM judges with sub-200ms latency.
Signals: Automatic failure pattern detection that surfaces unknown unknowns across production traces without manual search.
CLHF: Customize and improve evaluation metrics with as few as 1-2 feedback examples, increasing accuracy by 20-30%.
Agent observability: Trace multi-step workflows through Graph, Trace, and Message views purpose-built for autonomous agents.
Book a demo to evaluate your AI systems with layered metrics instead of scattered benchmarks and manual validation.
Frequently Asked Questions
What Is a Wasserstein Auto-Encoder?
A Wasserstein auto-encoder is a generative model that minimizes a penalized form of the Wasserstein distance between the data distribution and the model distribution. Unlike a VAE, which pushes every per-sample posterior toward the prior, a WAE matches only the aggregated posterior, the average of encoded distributions across the dataset. That relaxation lets individual samples occupy distinct regions of latent space instead of collapsing toward the prior's center, which produces sharper reconstructions and makes deterministic encoders viable.
Why Do WAE-MMD Models Fail With RBF Kernels?
Because the RBF kernel's exponential tail decays too quickly to penalize outliers. When encoded codes land far from the prior's support, which is exactly what happens early in training, the corresponding terms in the MMD U-statistic approach zero and supply no gradient for those outliers. The penalty effectively switches off at the moment it is most needed. The inverse multiquadratics kernel fixes this because its polynomial decay keeps gradient signal alive for distant latent codes while remaining characteristic.
Should You Use WAE-GAN or WAE-MMD?
It comes down to tuning budget. In the paper's standard configuration WAE-GAN reached FID 42 against WAE-MMD's 55, a 24% gap, but it requires discriminator balancing and staged learning-rate schedules. Under the bigWAE sweeps of over 3,000 models, that gap collapsed to roughly 6% (FID 35 versus 37). If you can afford extensive hyperparameter search, WAE-MMD gets you nearly the same quality with VAE-like training stability and no adversary to babysit.
Is FID Still a Reliable Metric for Generative Models?
Not on its own. CVPR 2024 work from Google Research showed FID contradicts human raters, incorrectly assumes Inception embeddings are multivariate normal, and has poor sample efficiency because it estimates a 2048×2048 covariance matrix. NeurIPS 2023 work separately found diffusion models are unfairly penalized by the Inception network. CMMD, which uses CLIP embeddings with an unbiased MMD estimator, and FD-DINOv2, which swaps in DINOv2 features, have both been proposed as replacements that track human judgment more closely.
How Does Galileo Help Evaluate Generative AI Systems?
Galileo replaces single-score benchmarking with layered evaluation across the development lifecycle: 20+ out-of-the-box evaluations spanning RAG, agents, safety, and security, plus LLM-as-a-judge metrics calibrated against human annotation. Luna-2 small language models run those evaluations at 98% lower cost than frontier LLM judges with sub-200ms latency, which is what makes evaluating 100% of production traffic feasible rather than sampling a slice and extrapolating.

Pratik Bhavsar