Generalized Sliced Wasserstein Distance
- Generalized Sliced Wasserstein (GSW) is a metric that extends classical SW by employing nonlinear slicing functions to capture complex data structures.
- It leverages a generalized Radon transform to project high-dimensional measures into tractable one-dimensional optimal transport problems with efficient algorithms.
- GSW is applied in generative modeling, set representation, and manifold-valued data analysis, offering improved convergence and enhanced embedding quality.
The Generalized Sliced Wasserstein (GSW) distance is a metric on probability measures that extends the classical Sliced Wasserstein (SW) by leveraging nonlinear "slicing" functions, substantially enhancing representational power and computational flexibility while retaining efficient reduction to one-dimensional optimal transport problems. GSW employs a generalized Radon transform to project measures into one-dimensional spaces via a user-chosen family of functions (such as polynomials, nonlinear neural networks, or geometric transforms), capturing complex data structures omitted by linear projections. It is widely used in generative modeling, manifold-supported learning, and representation pooling for set-structured data.
1. Mathematical Definition and Generalization
Let be two measures on . Classical SW computes the -Wasserstein distance between their one-dimensional projections, averaged over random directions on the sphere: GSW extends this by replacing the inner product with a general defining function ; the projection is now for parameter (e.g., a sphere of polynomial coefficients, neural net weights, or geometric descriptors). The GSW distance is
where is a probability measure on 0. Key choices for 1 include homogeneous polynomials---2 with 3 odd---and circular slices---4 for some 5.
The max-GSW variant selects the single slice 6 giving maximal separation: 7 GSW recovers classical SW for 8 and 9.
2. Metric Properties, Topology, and Embedding
If the family 0 is injective in the sense of the generalized Radon transform, GSW satisfies non-negativity, symmetry, triangle inequality, and identity-of-indiscernibles, thus constituting a metric on the space of measures with finite 1-th moments (Kolouri et al., 2019). In the absence of injectivity, it is only a pseudo-metric.
Key theoretical properties:
- Topology: GSW preserves the weak topology and 2-th moment convergence of 3, provided 4 is "rich", i.e., sufficiently measure-separating.
- Isometric Embedding: Given a reference measure 5, the cumulative distribution transform (CDT):
6
is an isometric embedding of 7 into 8 (NaderiAlizadeh et al., 2021). Pairwise 9 distances between these embedding vectors match true GSW.
3. Computational Algorithms and Fast Approximations
The fundamental advantage of GSW is computational: each projection yields a one-dimensional OT problem, solvable in 0 by sorting (for 1 samples).
Standard algorithms proceed via Monte Carlo over 2: 3 [max-GSW] inner loop uses gradient ascent over 3.
Deterministic Approximations. When 4 is polynomial or neural-network-based, Le et al. (Le et al., 2022) exploit high-dimensional concentration of measure to replace random projections with closed-form moment computations. The conditional CLT for Gaussian projections bounds the error:
- Polynomial case: error 5 for 6-th degree
- Neural case: error 7 for 8 layers The computation reduces to empirical mean and variance of lifted random variables (9 for polynomials), yielding deterministic GSW estimates as 0 increases.
4. Bilevel Optimization and Stein Smoothing
Recent advances embed GSW within bilevel optimization frameworks, particularly min-GSW and min-SWGG. The inner problem minimizes the 1D transport cost over couplings 2, while the outer seeks the optimal projection 3 minimizing the (full) Wasserstein cost in the original space (Chapel et al., 28 May 2025): 4 Nonlinear projections 5 MLP or polynomial increase expressivity, offering tighter couplings in high dimension or manifold-structured data.
Stein Smoothing. Since the outer objective is non-smooth, Stein's lemma yields unbiased gradient estimators for use in first-order optimization. Perturbing 6 with Gaussian noise and averaging provides smooth surrogates 7 for robust optimization. For manifold-parameterized slices (e.g., spheres), the perturbation distribution adapts (von Mises–Fisher).
5. Extensions to Manifold-Valued Data
GSW naturally accommodates data supported on Riemannian manifolds by redefining slices as intrinsic one-dimensional submanifolds (e.g., geodesics, horospheres). In the Poincaré ball model for hyperbolic geometry, horospherical slices are indexed by 8: 9 with the pushforward giving a one-dimensional measure. The optimization framework remains intact, with gradient flows and Stein smoothing adapted to the manifold setting.
6. Applications in Generative Modeling and Set Representation
GSW has found empirical success in a range of applications:
- Generative Modeling: Used for gradient flows matching synthetic mixtures and image datasets, GSW with higher-degree polynomials or learned neural slices improves mode matching and accelerates convergence relative to SW (Kolouri et al., 2019, Chapel et al., 28 May 2025).
- Auto-Encoding: GSWAE and max-GSWAE incorporate GSW regularization to align encoded latent distributions with priors, outperforming SWAE and matching adversarial approaches (WAE-GAN) in latent/decoded Wasserstein distances.
- Conditional Flow Matching: DGSWP-based CFM achieves lower FID (≈ 3.56) than standard OT-CFM (≈ 4.82), with fewer function evaluations on CIFAR-10 (Chapel et al., 28 May 2025).
- Set Representation Learning: GSWE layers use the empirical embedding to pool set-structured data, yielding competitive or superior classification and retrieval benchmarks relative to transformer pooling modules (NaderiAlizadeh et al., 2021).
Empirical convergence rates and embedding stability have been characterized, with GSW showing improved qualitative transport plans and more geometrically faithful representations.
7. Limitations, Tradeoffs, and Future Directions
While GSW broadens applicability and computational tractability:
- If the GRT is not injective, GSW is only a pseudo-metric and may conflate distinct measures.
- The Monte Carlo approximation incurs variance scaling 0 with 1 slices, with tradeoffs in slice richness vs. computational cost.
- max-GSW optimization is non-convex and sensitive to initialization.
- Fast deterministic approximations do not extend to all slice families (e.g., circular functions remain open (Le et al., 2022)).
- Gradient flows with linear or algebraic slices can stall in high-dimensional settings; nonlinear projections ameliorate these issues.
Promising directions include learning parametrized slice families via neural networks, extending manifold embedding techniques, and further theoretical work on sample complexity and convergence rates as 2. The utility of GSW in few-step generative modeling and fast mini-batch OT continues to motivate research in scalable OT-based learning pipelines.