Papers
Topics
Authors
Recent
Search
2000 character limit reached

Generalized Sliced Wasserstein Distance

Updated 11 November 2025
  • 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 μ,ν\mu,\nu be two measures on Rd\mathbb R^d. Classical SW computes the pp-Wasserstein distance between their one-dimensional projections, averaged over random directions θ\theta on the sphere: SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p} GSW extends this by replacing the inner product with a general defining function g:Rd×Ω→Rg : \mathbb R^d \times \Omega \to \mathbb R; the projection is now x↦g(x,θ)x \mapsto g(x, \theta) for parameter θ∈Ω\theta \in \Omega (e.g., a sphere of polynomial coefficients, neural net weights, or geometric descriptors). The GSW distance is

GSWp,H(μ,ν)=(∫ΩWpp(g(⋅,θ)#μ,g(⋅,θ)#ν)dπ(θ))1/p\mathrm{GSW}_{p, \mathcal H}(\mu,\nu) = \left( \int_\Omega W_p^p(g(\cdot,\theta)_\# \mu, g(\cdot,\theta)_\# \nu) d\pi(\theta) \right)^{1/p}

where π\pi is a probability measure on Rd\mathbb R^d0. Key choices for Rd\mathbb R^d1 include homogeneous polynomials---Rd\mathbb R^d2 with Rd\mathbb R^d3 odd---and circular slices---Rd\mathbb R^d4 for some Rd\mathbb R^d5.

The max-GSW variant selects the single slice Rd\mathbb R^d6 giving maximal separation: Rd\mathbb R^d7 GSW recovers classical SW for Rd\mathbb R^d8 and Rd\mathbb R^d9.

2. Metric Properties, Topology, and Embedding

If the family pp0 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 pp1-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 pp2-th moment convergence of pp3, provided pp4 is "rich", i.e., sufficiently measure-separating.
  • Isometric Embedding: Given a reference measure pp5, the cumulative distribution transform (CDT):

pp6

is an isometric embedding of pp7 into pp8 (NaderiAlizadeh et al., 2021). Pairwise pp9 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 θ\theta0 by sorting (for θ\theta1 samples).

Standard algorithms proceed via Monte Carlo over θ\theta2: g:Rd×Ω→Rg : \mathbb R^d \times \Omega \to \mathbb R3 [max-GSW] inner loop uses gradient ascent over θ\theta3.

Deterministic Approximations. When θ\theta4 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 θ\theta5 for θ\theta6-th degree
  • Neural case: error θ\theta7 for θ\theta8 layers The computation reduces to empirical mean and variance of lifted random variables (θ\theta9 for polynomials), yielding deterministic GSW estimates as SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}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 SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}1D transport cost over couplings SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}2, while the outer seeks the optimal projection SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}3 minimizing the (full) Wasserstein cost in the original space (Chapel et al., 28 May 2025): SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}4 Nonlinear projections SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}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 SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}6 with Gaussian noise and averaging provides smooth surrogates SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}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 SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}8: SWp(μ,ν)=(∫Sd−1Wpp(⟨⋅,θ⟩#μ,⟨⋅,θ⟩#ν)dθ)1/p\mathrm{SW}_p(\mu, \nu) = \left( \int_{S^{d-1}} W_p^p(\langle \cdot, \theta \rangle_\# \mu, \langle \cdot, \theta \rangle_\# \nu) d\theta \right)^{1/p}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 g:Rd×Ω→Rg : \mathbb R^d \times \Omega \to \mathbb R0 with g:Rd×Ω→Rg : \mathbb R^d \times \Omega \to \mathbb R1 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 g:Rd×Ω→Rg : \mathbb R^d \times \Omega \to \mathbb R2. The utility of GSW in few-step generative modeling and fast mini-batch OT continues to motivate research in scalable OT-based learning pipelines.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Generalized Sliced Wasserstein (GSW).