Papers
Topics
Authors
Recent
Search
2000 character limit reached

Sliced Wasserstein Kernels

Updated 21 November 2025
  • Sliced Wasserstein Kernels are positive-definite kernels derived by averaging one-dimensional Wasserstein distances over projections, capturing the geometric structure of distributions.
  • They are constructed using a distance-substitution approach with Gaussian or Laplacian functions on Hilbertian metrics, ensuring both computational efficiency and universality.
  • Empirical results show these kernels excel in tasks like image histogram classification, graph learning, and audio captioning, offering improved accuracy and robustness.

The Sliced Wasserstein kernel is a family of positive-definite kernels constructed from the Sliced Wasserstein (SW) distance—a measure derived from optimal transport that computes the average one-dimensional Wasserstein distance between projections (“slices”) of high-dimensional probability measures. Sliced Wasserstein kernels inherit geometric sensitivity from the Wasserstein distance, computational efficiency via closed-form 1D transport, and universality on the space of probability distributions, enabling effective learning over distributional inputs in kernel-based machine learning frameworks.

1. Definition and Mathematical Foundations

Let μ,ν\mu,\nu be probability measures on a compact domain ΩRd\Omega\subset\mathbb{R}^d. For each direction θSd1\theta\in S^{d-1} (the unit sphere), define the push-forward projections μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu, where θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle. The one-dimensional pp-Wasserstein distance between μθ\mu_\theta and νθ\nu_\theta admits the explicit formula: Wp(μθ,νθ)=Fμθ[1]Fνθ[1]Lp([0,1])W_p(\mu_\theta,\nu_\theta) = \|F_{\mu_\theta}^{[-1]} - F_{\nu_\theta}^{[-1]}\|_{L^p([0,1])} where Fμ[1]F_\mu^{[-1]} is the generalized inverse CDF.

The Sliced Wasserstein distance of order ΩRd\Omega\subset\mathbb{R}^d0 is then

ΩRd\Omega\subset\mathbb{R}^d1

for the uniform measure ΩRd\Omega\subset\mathbb{R}^d2 on ΩRd\Omega\subset\mathbb{R}^d3.

For ΩRd\Omega\subset\mathbb{R}^d4, the feature map

ΩRd\Omega\subset\mathbb{R}^d5

exhibits the Hilbertian structure: ΩRd\Omega\subset\mathbb{R}^d6 Thus, ΩRd\Omega\subset\mathbb{R}^d7 is a genuine metric metrizing weak convergence on ΩRd\Omega\subset\mathbb{R}^d8 and allows for the construction of positive-definite (p.d.) kernels (Meunier et al., 2022, Kolouri et al., 2015).

2. Construction and Universality of Sliced Wasserstein Kernels

A distance-substitution kernel is constructed using a monotonically decreasing function ΩRd\Omega\subset\mathbb{R}^d9 (e.g., Gaussian/Laplacian RBF) and a Hilbertian distance θSd1\theta\in S^{d-1}0: θSd1\theta\in S^{d-1}1 For SW, this leads to the Gaussian and Laplacian-style kernels: θSd1\theta\in S^{d-1}2 Schoenberg’s theorem guarantees positive definiteness when θSd1\theta\in S^{d-1}3 is (conditionally) negative-definite. By the Hilbertian property of θSd1\theta\in S^{d-1}4, the resultant kernels are p.d.

When the underlying space θSd1\theta\in S^{d-1}5 is compact and θSd1\theta\in S^{d-1}6 metrizes the weak convergence, the corresponding Gaussian-type kernel is universal: its RKHS is dense in θSd1\theta\in S^{d-1}7, enabling universal consistency in regression and classification (Meunier et al., 2022).

3. Algorithmic Implementation and Computational Considerations

Approximating θSd1\theta\in S^{d-1}8 involves:

  • Sampling θSd1\theta\in S^{d-1}9 directions μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu0
  • Sampling μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu1 grid points μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu2

For a measure μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu3, the feature vector in μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu4 is: μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu5 Computing SW kernel matrix entries involves sorting projected samples (cost μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu6 per direction, for empirical measures with μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu7 points), feature evaluation (μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu8), and matrix evaluation (μθ=θμ\mu_\theta = \theta^*_{\sharp}\mu9 for θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle0 distributions).

Empirically, setting θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle1 yields robust estimates. The kernel bandwidth θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle2 is typically tuned via cross-validation (Meunier et al., 2022, Kolouri et al., 2015, Luong et al., 8 Feb 2025).

Monte-Carlo integration is necessary; the kernel approximation error decreases as θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle3. Unbiased variants further reduce estimation bias by averaging exponentials, enabling direct unbiased stochastic optimization (Luong et al., 8 Feb 2025).

4. Theoretical Guarantees: Consistency and Excess Risk

For kernel ridge regression (KRR) with SW kernels on empirical measures θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle4 and associated responses θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle5: θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle6 the estimator interpolates via the Gram matrix θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle7 with entries θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle8.

Under the assumption that θ(x)=θ,x\theta^*(x) = \langle\theta, x\rangle9 is universal and Hölder-continuous with respect to pp0, the excess risk admits a bound that separates

  • Stage-1 sampling complexity (pp1 bags)
  • Stage-2 sampling complexity (pp2 samples/bag)
  • The effective kernel dimension, and
  • The regularization parameter pp3

Concretely, if pp4 and the kernel/Lipschitz constants are suitably chosen,

pp5

Universal consistency follows as pp6 (Meunier et al., 2022).

5. Empirical Performance and Use Cases

SW kernels outperform MMD-based and standard RBF kernels in synthetic and real-world tasks where geometric structure is salient:

  • Mode-counting (synthetic Gaussians): SW kernels yield 20–30% lower RMSE than MMD on predicting cluster count from samples.
  • Image histogram classification: On MNIST and Fashion-MNIST (raw and perturbed), pp7 achieves pp8 accuracy vs. pp9 (MMD) and μθ\mu_\theta0 (RBF); under transformations, SW kernels maintain higher accuracy and robustness (Meunier et al., 2022).
  • Graph learning: Sliced Wasserstein Weisfeiler-Lehman (SWWL) graph kernels allow for positive definite, scalable, and accurate graph similarity measures, handling datasets with μθ\mu_\theta1–μθ\mu_\theta2 nodes efficiently (Perez et al., 2024).
  • Audio captioning: Unbiased SW-RBF kernels with temporal augmentations improve alignment and generation fidelity under stochastic sampling (Luong et al., 8 Feb 2025).

SW kernels are especially effective when mass-transport geometry correlates with the learning target, e.g., mode structure, geometric invariance, and robustness to perturbations.

6. Variants and Extensions

Max-Sliced and Tree-Sliced Wasserstein Kernels

  • Max-sliced Wasserstein replaces the averaging over directions by maximization—optimizing a (potentially nonlinear) projection to maximize 1D Wasserstein between projected measures. While achieving sharper discrimination and dimension-free statistical rates, the projection optimization is NP-hard for μθ\mu_\theta3 but admits tight semidefinite relaxations (Wang et al., 2024).
  • Tree-sliced Wasserstein kernels generalize the slice to arbitrary random tree metrics rather than lines (chains), averaging per-tree closed-form transports. This allows for flexible embedding of geometric structure and scalable, positive-definite kernels (Le et al., 2019).

Unbiased and Monte-Carlo Approximations

  • The construction of unbiased estimators for the kernel value via Monte Carlo is crucial for stochastic gradient optimization and reducing estimator variance, with convergence rates μθ\mu_\theta4 with μθ\mu_\theta5 samples (Luong et al., 8 Feb 2025).

7. Practical Guidelines and Limitations

When to use SW kernels:

  • For regression or classification where output depends on underlying geometry of distributions or empirical measures.
  • For problems requiring robustness to support mismatch or geometric transformations (e.g., histogram classification, graph regression, multi-modality).
  • When computational efficiency is critical: 1D transport is closed-form and scalable.

Limitations:

  • MC estimation introduces additional stochastic error (i.e., three-stage sampling in distribution regression: bag, within-bag, and MC).
  • Convergence rates for distribution regression under SW are slower in worst-case theory (μθ\mu_\theta6) compared to MMD (μθ\mu_\theta7), but empirical geometry often compensates.
  • Exact SW kernel evaluation is infeasible in very high-dimensional settings unless μθ\mu_\theta8, μθ\mu_\theta9 are chosen adaptively.

Parameter tuning:

  • Choose νθ\nu_\theta0 (projections/quantiles) to balance accuracy and efficiency.
  • Kernel bandwidths (e.g., νθ\nu_\theta1) via cross-validation or median heuristics.

Sliced Wasserstein kernels fundamentally bridge geometric optimal transport and positive-definite kernel-based learning, providing a computationally tractable class of universal kernels well-suited for distributional data (Meunier et al., 2022, Kolouri et al., 2015, Perez et al., 2024, Luong et al., 8 Feb 2025, Le et al., 2019).

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 Sliced Wasserstein Kernels.