Optimal Transport (OT) provides a robust mathematical framework for comparing probability distributions, but its standard formulation—the Wasserstein distance—suffers from severe computational bottlenecks, scaling at $O(n^3 \log n)$ with the number of samples. To mitigate this, the machine learning community frequently relies on the Sliced-Wasserstein (SW) distance. SW projects high-dimensional data onto 1D lines, reducing the complex transport problem to a simple sorting task with $O(n \log n)$ complexity.
However, standard SW is inherently designed for Euclidean (flat) spaces. In practice, many modern datasets naturally reside on a sphere. Examples include global geospatial data (weather patterns, earthquake coordinates) and the "hyperspherical embeddings" generated by deep learning models like CLIP or FaceNet. Treating spherical data as flat or relying on stereographic projections introduces significant geometric distortion.
To address this, researchers have introduced the Spherical Sliced-Wasserstein (SSW) distance, a novel discrepancy measure that respects spherical geometry while maintaining the computational efficiency of sliced-based distances.
Methodology: Slicing the Sphere
The core innovation of SSW lies in adapting the "slicing" mechanism to a spherical manifold. The authors propose a three-step approach:
- Projecting to Great Circles: Instead of projecting data onto straight lines, SSW projects points onto great circles—the spherical equivalent of straight lines (geodesics). Mathematically, this is achieved by intersecting the hypersphere with a 2D plane passing through the origin.
- Optimal Transport on the Circle ($S^1$): Once the data is projected onto a great circle, the problem reduces to 1D circular Optimal Transport. Unlike a standard real line, a circle has no natural starting or ending point. Computing the distance requires finding an optimal "cut" point to unroll the circle into a line. The authors provide efficient algorithms to locate this cut, including a closed-form solution for comparing a distribution against a uniform distribution (where the optimal cut is the antipodal point of the samples' circular mean).
- Spherical Radon Transform: The authors formalize this process by introducing a new spherical Radon transform, which mathematically links the high-dimensional spherical distribution to its 1D circular projections.
In practice, SSW is computed using a Monte-Carlo approach: random projectors are sampled from the Stiefel manifold (the space of orthonormal frames), points are projected and sorted, and the resulting 1D distances are averaged.
Key Results and Applications
The authors evaluated SSW across several domains, demonstrating its versatility and efficiency.
Computational Efficiency: SSW retains the highly desirable $O(L \cdot n \log n)$ complexity, where $L$ is the number of random projections. As shown below, SSW is significantly faster than standard Wasserstein or Sinkhorn distances for large batch sizes, scaling gracefully in both time and memory.
Density Estimation on Earth Data: When applied to real-world geospatial datasets—such as the coordinates of wildfires, floods, and earthquakes—SSW achieved lower negative log-likelihoods than Euclidean SW or stereographic projection methods. This confirms that SSW captures underlying spatial distributions on the globe more accurately without distortion artifacts.
Deep Learning and Generative Modeling: Because of its speed, SSW can be used directly as a loss function in neural networks.
- Auto-encoders: The authors trained Hyperspherical Sliced-Wasserstein Auto-encoders (SSWAE) on standard image datasets (MNIST, CIFAR10). The SSWAE produced competitive Fréchet Inception Distances (FID) and exhibited better class separation in the latent space compared to standard SWAE models using a spherical prior.
- Self-Supervised Learning (SSL): SSW was successfully deployed as a "uniformity loss" in SSL to prevent representation collapse (where all embeddings collapse to a single point). It achieved performance comparable to state-of-the-art contrastive methods while offering a more geometrically principled foundation.
Limitations and Future Directions
While highly effective in practice, the authors note that SSW is technically a pseudo-distance. The mathematical proof of its injectivity—specifically, whether $SSW(\mu, \nu) = 0$ strictly implies that the distributions $\mu$ and $\nu$ are identical—remains an open theoretical question. Additionally, the theoretical sample complexity of the circular Wasserstein distance used within SSW requires further derivation.
Looking forward, this work represents a crucial first step toward defining Sliced-Wasserstein discrepancies on general manifolds. The underlying logic of projecting onto geodesics could potentially be extended to other non-trivial geometries, such as hyperbolic spaces, which are increasingly popular for modeling hierarchical data.
Summary updated