Augmented Sliced Wasserstein Distances

Xiongjie Chen, Yongxin Yang, Yunpeng Li

TL;DR

Augmented Sliced Wasserstein Distances (ASWDs) improve upon standard sliced Wasserstein metrics by using injective neural networks to map data onto higher-dimensional hypersurfaces. This approach enables flexible, nonlinear "slices" that are far more efficient at capturing complex data structures, significantly boosting accuracy in high-dimensional tasks like generative modeling.

What Problem Does This Paper Address?

The Wasserstein distance (or Earth Mover's Distance) is a powerful tool for comparing probability distributions, but it is computationally expensive ($O(N^3)$), making it difficult to use in large-scale deep learning. The Sliced Wasserstein Distance (SWD) offers a faster alternative ($O(N \log N)$) by projecting high-dimensional distributions onto random 1D lines, where the distance has a simple closed-form solution.

However, SWD has a major weakness: in high-dimensional spaces, most random linear projections are "blind" to the differences between distributions. They often result in trivially small values, meaning you need a massive number of projections to get an accurate estimate. This "low projection efficiency" limits the performance of SWD in complex tasks like training GANs.

Methods

The authors introduce Augmented Sliced Wasserstein Distances (ASWDs). Instead of projecting the raw data linearly, they first map the samples into an "augmented" higher-dimensional space using an injective mapping $g_\omega(x)$.

Key technical components include:

  • Injective Neural Networks: To ensure ASWD remains a valid mathematical metric, the mapping must be injective (one-to-one). The authors use a clever, simple trick: they concatenate the original input $x$ with the output of a standard neural network $\phi_\omega(x)$, i.e., $g_\omega(x) = [x, \phi_\omega(x)]$.
  • Spatial Radon Transform: By performing linear projections in this augmented space, the model effectively performs complex nonlinear projections in the original sample space.
  • Data-Adaptive Optimization: Unlike previous methods that used fixed nonlinear functions, ASWD optimizes the mapping $g_\omega$ via gradient ascent to find the most "discriminating" hypersurfaces for the specific distributions being compared.
Figure 1: (a) and (b) are visualizations of projections for the ASWD and the SWD between two 2-dimensional Gaussians. (c) and (d) are distance histograms for the ASWD and the SWD between two 100-dimensional Gaussians. Figure 1(a) shows that the injective neural network embedded in the ASWD learns data patterns (in the X-Y plane) and produces well-separate projected values (Z-axis) between distributions in a random projection direction. The high projection efficiency of the ASWD is evident in Figure 1(c), as almost all random projection directions in a 100-dimensional space lead to significant distances between 1-dimensional projections. In contrast, random linear mappings in the SWD often produce closer 1-d projections (Z-axis) (Figure 1(b)); as a result, a large percentage of random projection directions in the 100-d space result in trivially small distances (Figure 1(d)), leading to a low projection efficiency in high-dimensional spaces.

Datasets

The researchers evaluated ASWD across a variety of benchmarks:

  • Synthetic 2D Distributions: 8-Gaussian, Knot, Moon, Swiss Roll, Heart, Circle, etc., used for "Wasserstein Flow" experiments.
  • Image Datasets: MNIST, CIFAR-10, and CelebA (at $64 \times 64$ resolution) for generative modeling (GANs and VAEs).
  • Downstream Tasks: Image color transferring and Sliced Wasserstein Barycenters.

Key Insights and Ideas

  • Nonlinear Slicing is Key: Linear projections are too rigid. By moving to an augmented space, the "slices" can effectively "wrap around" the geometry of the data, making them much more informative.
  • Projection Efficiency: As shown in the histograms of Figure 1, random linear projections (SWD) mostly yield distances near zero. In contrast, ASWD projections consistently yield significant distances, meaning fewer projections are needed to capture the distribution's structure.
  • Simplicity of Injectivity: You don't need complex invertible architectures (like Normalizing Flows) to maintain metric properties. The "concatenation trick" is sufficient and computationally cheap.
  • Data-Adaptivity: Because the hypersurfaces are learned, the metric automatically adjusts to the complexity of the data, removing the need for manual feature engineering.

Key Results

ASWD consistently outperformed standard SWD and other state-of-the-art variants (like GSWD and DSWD):

  • Wasserstein Flow: ASWD converged faster and reached lower final 2-Wasserstein distances across almost all synthetic targets.
  • Generative Modeling (FID Scores): On CIFAR-10 with 1000 projections, ASWD achieved an FID of 59.3, significantly better than standard SWD (102.3) and the previous best variant, DSWD (62.3). Similar gains were seen on CelebA.
  • Convergence Speed: GANs trained with ASWD reached high-quality results in fewer epochs compared to other sliced metrics.
Figure 2: The first and third columns are target distributions. The second and fourth columns are log 2-Wasserstein distances between the target distribution and the source distribution. The horizontal axis show the number of training iterations. Solid lines and shaded areas represent the average values and 95% confidence intervals of log 2-Wasserstein distances over 50 runs. A more extensive set of experimental results can be found in Appendix G.1.

Limitations and Future Work

  • Optimization Overhead: While ASWD is much faster than full Optimal Transport, it does require an inner optimization loop to update the neural network mapping $g_\omega$ at each step, which adds some computational cost compared to basic SWD.
  • Hyperparameter Sensitivity: The regularization coefficient $\lambda$ (used to keep the augmented values from exploding) needs to be chosen carefully, though the authors found performance relatively stable across a range of values.
  • Theoretical Frontiers: The authors note that the topological properties of ASWD—such as whether it metrizes the same topology as the standard Wasserstein distance—remain an interesting open question for future research.

Summary updated

BibTeX
@inproceedings{chen2021augmented,
  author = {Xiongjie Chen and Yongxin Yang and Yunpeng Li},
  title = {{Augmented Sliced Wasserstein Distances}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=bm1_qlhRegf},
}
Figure