Spherical Sliced-Wasserstein

Clément Bonet, Paul Berg, Nicolas Courty, François Septier, Lucas Drumetz, Minh-Tan Pham · DOI

Abstract

This paper introduces Spherical Sliced-Wasserstein (SSW), a computationally efficient discrepancy measure for probability distributions residing on hyperspheres. By projecting data onto "great circles" and leveraging closed-form solutions for circular optimal transport, SSW provides a fast, geometry-aware alternative to standard Wasserstein distances for geospatial data and high-dimensional machine learning embeddings. Experimental results demonstrate that SSW scales quasi-linearly with sample size and outperforms Euclidean alternatives in density estimation and generative modeling on spherical manifolds.

Introduction

Optimal Transport (OT) provides a robust framework for comparing probability distributions, but its high computational cost—typically scaling cubically with the number of samples—limits its use in large-scale machine learning. The Sliced-Wasserstein (SW) distance addresses this by projecting high-dimensional data onto one-dimensional lines, where the transport problem has a simple, sorted closed-form solution.

However, standard SW is designed for Euclidean spaces. Much real-world data, such as geospatial coordinates (wildfires, earthquakes) or normalized latent spaces in Variational Autoencoders (VAEs), lives on spherical manifolds. Applying Euclidean SW to such data ignores the underlying curvature, leading to distorted distance metrics. This work bridges the gap by developing a "sliced" version of Wasserstein specifically tailored for the hypersphere.

Methodology

The core innovation of SSW is the shift from projecting data onto lines to projecting onto great circles, which are the geodesics of a sphere.

Visualization of the Spherical Sliced-Wasserstein projection onto a great circle.
  1. Geodesic Projection: Instead of a random direction vector, the method samples a random 2D plane passing through the origin. The spherical data is projected onto the intersection of this plane and the sphere—a great circle ($S^1$).
  2. Circular Optimal Transport: Unlike a line, a circle has no natural start or end. Solving OT on $S^1$ requires finding an optimal "cut" point to "unroll" the circle. The authors utilize efficient algorithms like binary search to find this cut.
  3. Closed-Form for Uniformity: For the specific case of the 2-Wasserstein distance between a discrete distribution and a uniform distribution on the circle, the authors derived a closed-form solution. They found that the optimal cut is the point antipodal to the circular mean of the samples, significantly speeding up generative modeling tasks.
  4. Spherical Radon Transform: This process is formalized via a new "Spherical Radon Transform," proving that integrating these circular distances provides a valid pseudo-distance on the sphere.

Key Results and Discussion

The authors evaluated SSW across geospatial datasets (wildfires, floods, and earthquakes) and image latent space benchmarks (MNIST, CIFAR10).

Computational Efficiency

SSW scales quasi-linearly ($O(L \cdot n \log n)$), making it significantly faster than Sinkhorn or exact Wasserstein methods for large batches. As shown in the performance benchmarks, SSW maintains low computational overhead even as the number of samples increases into the hundreds of thousands.

Computational efficiency of SSW variants compared to standard Wasserstein and Sinkhorn distances.

Density Estimation and Generative Modeling

On Earth-based geospatial data, SSW achieved lower negative log-likelihoods than Euclidean SW, proving that respecting the sphere's curvature leads to a better model fit. In the realm of deep learning, the SSWAE (Spherical Sliced-Wasserstein Autoencoder) produced superior FID scores on image datasets compared to standard SWAE. Furthermore, in self-supervised learning, SSW proved effective as a "uniformity loss," preventing representation collapse and helping models learn more discriminative features.

Conclusion

Spherical Sliced-Wasserstein offers a powerful, geometry-aware tool for researchers working with spherical data. By combining the efficiency of slicing with the intrinsic geometry of the hypersphere, it enables scalable optimal transport in domains where Euclidean methods fall short. Future work may extend this logic to other non-Euclidean spaces, such as hyperbolic manifolds used for hierarchical data.

Summary updated

BibTeX
@inproceedings{bonet2023spherical,
  author = {Clément Bonet and Paul Berg and Nicolas Courty and François Septier and Lucas Drumetz and Minh-Tan Pham},
  title = {{Spherical Sliced-Wasserstein}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=jXQ0ipgMdU},
}
Figure