[Paper Review] Optimal transport maps for distribution preserving operations on latent spaces of Generative Models
This paper proposes optimal transport maps to correct distribution mismatch in latent space operations of generative models like VAEs and GANs. By minimally modifying standard operations (e.g., interpolation, vicinity sampling) to preserve the prior distribution, the method produces significantly higher-quality samples, with Inception scores matching the original model and outperforming standard linear interpolation by up to 29%.
Generative models such as Variational Auto Encoders (VAEs) and Generative Adversarial Networks (GANs) are typically trained for a fixed prior distribution in the latent space, such as uniform or Gaussian. After a trained model is obtained, one can sample the Generator in various forms for exploration and understanding, such as interpolating between two samples, sampling in the vicinity of a sample or exploring differences between a pair of samples applied to a third sample. In this paper, we show that the latent space operations used in the literature so far induce a distribution mismatch between the resulting outputs and the prior distribution the model was trained on. To address this, we propose to use distribution matching transport maps to ensure that such latent space operations preserve the prior distribution, while minimally modifying the original operation. Our experimental results validate that the proposed operations give higher quality samples compared to the original operations.
Motivation & Objective
- To identify and address the distribution mismatch introduced by standard latent space operations in trained generative models.
- To demonstrate that common operations like linear interpolation and vector arithmetic distort the prior distribution, even for uniform priors.
- To develop a principled method that preserves the prior distribution while minimally altering the original operation's trajectory.
- To validate that distribution-preserving operations yield higher-quality samples compared to standard approaches.
- To provide analytical solutions for matched operations (e.g., interpolation, vicinity sampling) using optimal transport theory.
Proposed method
- Use optimal transport to compute a transport map that minimally distorts the original operation (in $L_1$ distance) while ensuring the output distribution matches the prior.
- Formulate the matched interpolation as a solution to a convex optimization problem that enforces distributional equivalence to the prior.
- Apply the transport map to transform standard operations—such as linear interpolation, spherical interpolation (SLERP), and vicinity sampling—into distribution-preserving variants.
- Derive analytical expressions for matched interpolation and vicinity sampling under Gaussian and uniform priors.
- Implement the method using numerical optimization to compute transport maps for arbitrary prior distributions.
- Integrate the matched operations into existing generative models (e.g., DCGAN, iWGAN) without retraining.
Experimental results
Research questions
- RQ1Do standard latent space operations like linear interpolation induce a distribution mismatch with respect to the prior distribution used during training?
- RQ2Can optimal transport be used to correct this distribution mismatch while preserving the semantic intent of the original operation?
- RQ3How does the quality of generated samples compare between standard operations and the proposed distribution-preserving alternatives?
- RQ4To what extent do the distribution-preserving operations improve quantitative metrics like the Inception score?
- RQ5Can the proposed method be generalized to various operations (interpolation, vicinity sampling, random walks) and prior distributions?
Key findings
- Standard linear interpolation induces a significant distribution mismatch, even for uniform priors, leading to lower-quality samples.
- The proposed matched interpolation preserves the prior distribution exactly, with Inception scores statistically indistinguishable from the original model (e.g., 7.89 ± 0.08 on CIFAR-10 vs. 7.90 ± 0.11 for the prior).
- Linear interpolation reduces Inception scores by up to 29% on CelebA (1.46 ± 0.01 vs. 2.05 ± 0.04), demonstrating a substantial quality drop.
- Spherical interpolation (SLERP) performs comparably to the proposed matched method in terms of Inception score, but the matched method provides a principled, distribution-preserving solution.
- Repeated application of unmatched vicinity sampling leads to rapid degradation in sample quality, with unrecognizable outputs after a few steps—highlighting the cumulative effect of distribution mismatch.
- The matched vicinity sampling enables stable random walks in the latent space, maintaining sample quality over multiple steps, unlike the non-matched version.
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.