NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Quasi-Monte Carlo for 3D Sliced Wasserstein

Khai Nguyen, Nicola Bariletto, Nhat Ho

Introduction

The Wasserstein distance is a powerful mathematical tool for comparing probability distributions, but its computational complexity ($O(n^3 \log n)$) often limits its practical application. The Sliced Wasserstein (SW) distance offers a popular, faster alternative ($O(n \log n)$). It works by projecting high-dimensional data onto 1D lines, computing the distance in that 1D space, and averaging the results over all possible directions on a unit hypersphere.

In practice, this average is an intractable integral. Researchers typically rely on Monte Carlo (MC) integration, picking random directions and averaging them. However, random sampling is inherently "clumpy"—it often leaves large gaps or creates clusters of directions, leading to high approximation errors. This paper addresses the sub-optimality of random sampling by applying Quasi-Monte Carlo (QMC) techniques tailored specifically for the 3D unit sphere, introducing Quasi-Sliced Wasserstein (QSW) and its randomized counterpart, RQSW.

Methods: Quasi-Monte Carlo on the 3D Sphere

The authors propose two main frameworks to replace standard Monte Carlo sampling with structured, low-discrepancy sequences.

1. Quasi-Sliced Wasserstein (QSW)

QSW is a deterministic approach where projecting directions are chosen from "low-discrepancy sequences" designed to cover the sphere as uniformly as possible. The authors explore several construction methods for these points:

  • Gaussian-based mapping: Transforming a standard QMC sequence (like a Sobol sequence) through an inverse Gaussian cumulative distribution function.
  • Equal area mapping: Using the Lambert cylindrical projection to map a highly uniform 2D grid onto the surface of the sphere.
  • Generalized Spiral points: Explicitly placing points in a deterministic spiral pattern around the sphere.
  • Energy Optimization: Placing points by maximizing the distance between them or minimizing "Coulomb energy" (treating the points like electrons that naturally repel each other to achieve equilibrium).

2. Randomized Quasi-Sliced Wasserstein (RQSW)

While deterministic QMC is excellent for minimizing approximation error, it introduces bias, making it problematic for training neural networks. To resolve this, the authors introduce "randomized" QMC (e.g., via random rotations of the entire structured point set). This preserves the uniform coverage of the sphere while making the estimator unbiased, allowing it to be used safely and effectively with Stochastic Gradient Descent (SGD).

Results and Insights

The authors evaluate their methods on several 3D-centric benchmarks, including ShapeNet Core-55 (for point-cloud comparison and deep autoencoders), ModelNet40, and Image Style Transfer (using 3D color palettes in RGB space).

Comparison of absolute approximation errors between standard SW and QSW variants across different 3D shape pairs.

The "Low-Dimension" Advantage

QMC is known to outperform standard MC significantly in lower dimensions. Because many geometric tasks (like point clouds and color matching) are inherently 3D, the sphere of projection directions is only a 2D surface. This creates a "sweet spot" where QMC provides a massive performance boost over random sampling.

Uniformity and Lower Error

The authors use "spherical cap discrepancy" to measure how well directions cover the sphere. They found that Generalized Spiral and Coulomb Energy points provide the most uniform coverage. Consequently, QSW variants consistently achieved lower absolute approximation errors compared to standard MC across different numbers of projections ($L$).

Stability and Faster Convergence

In optimization tasks like point-cloud interpolation (morphing one shape into another), standard MC often produces "jittery" or incomplete results because the random directions change erratically every step. RQSW provides a much smoother gradient, leading to cleaner transitions. Furthermore, in style transfer, RQSW reached lower Wasserstein-2 distances in fewer iterations. For instance, RQSW variants achieved $W_2$ distances around 1.27, while standard SW remained significantly higher at 458.29 for the same number of projections.

Finally, training a Point-Net autoencoder with RQSW led to lower reconstruction losses on ModelNet40 compared to the standard SW baseline, demonstrating that better distance approximations directly translate to better learned representations.

Limitations and Future Work

  • Dimensionality: This work focuses heavily on the 3D setting ($d=3$). While some methods (like Gaussian mapping) scale to higher dimensions, the highly efficient "Equal Area" and "Spiral" methods are specific to the 2-sphere. Extending these constructions to higher-dimensional hyperspheres remains an open challenge.
  • Computational Overhead: The additional cost of generating QMC points is negligible in 3D. However, for very high-dimensional data, the benefits of QMC might diminish unless the number of projections $L$ is exceptionally large.
  • Future Directions: The authors suggest extending these QMC techniques to other variants of the metric, such as Max-Sliced or Distributional Sliced Wasserstein distances.

Summary updated

BibTeX
@inproceedings{nguyen2024quasi,
  author = {Khai Nguyen and Nicola Bariletto and Nhat Ho},
  title = {{Quasi-Monte Carlo for 3D Sliced Wasserstein}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Wd47f7HEXg},
}
Figure