Energy-Based Sliced Wasserstein (EBSW)
- Energy-Based Sliced Wasserstein (EBSW) is a robust metric that leverages an energy function to adaptively weight projection directions for comparing probability measures.
- It employs Monte Carlo methods like importance sampling, SIR, and MCMC to focus on the most discriminative slices while maintaining computational efficiency.
- Empirical evaluations demonstrate that EBSW improves convergence, reconstruction quality, and sample efficiency in applications such as gradient flows and deep point-cloud reconstruction.
The Energy-Based Sliced Wasserstein (EBSW) distance is a statistically robust and computationally efficient metric for comparing probability measures, extending the classical Sliced Wasserstein (SW) approach by leveraging an adaptive, parameter-free slicing distribution based on an energy function of the projected Wasserstein distance. By up-weighting projection directions that are most discriminative between measures, EBSW emphasizes informative slices and mitigates the limitations of both uniform and parametric slicing distributions. This formulation preserves the computational advantages of SW while improving statistical signal and sample efficiency across a variety of tasks (Nguyen et al., 2023).
1. Definition and Motivation
Given probability measures , the classical -th Sliced Wasserstein distance is:
where denotes the push-forward of by the linear projection , and is the 1D Wasserstein distance.
EBSW generalizes this framework by replacing the uniform distribution over projection directions with an energy-based density
with typically monotonic (e.g., 0 for increasing 1 or 2).
The EBSW metric is then defined as
3
This reweighting causes sampling to concentrate on projections where the differences between 4 and 5 are most pronounced, thus accentuating statistically informative dimensions and providing higher signal-to-noise ratios for tasks such as gradient flow or generative modeling.
2. Theoretical Properties
EBSW retains the core mathematical properties expected of a metric-like divergence for probability measures:
- Semi-metricity: For every 6 and any strictly positive energy 7, EBSW satisfies:
- Non-negativity: 8,
- Symmetry: 9,
- Identity of indiscernibles: 0 if and only if 1.
- Relations to SW, Max-SW, and 2: If 3 is non-decreasing, 4, with equality for constant 5. For any 6, 7.
- Topology: The topology induced by 8 is equivalent to weak convergence plus convergence of 9-th moments, matching the topology induced by the Wasserstein metric.
- Sample Complexity: For empirical measures 0 with 1 i.i.d. in a compact set, there exists 2 such that
3
This mirrors the 4 sample complexity of SW, avoiding the curse of dimensionality (up to logarithmic factors).
3. Monte Carlo Algorithms for EBSW Computation
For discrete measures supported on at most 5 atoms, the computation of 1D Wasserstein distances costs 6. EBSW admits several efficient Monte Carlo estimators:
- Importance Sampling (IS): Draw 7 i.i.d. 8 (e.g., uniform on 9). Compute weights 0, where 1. Normalize and form the 2 estimator:
3
where 4.
- Sampling-Importance-Resampling (SIR): After IS on 5 projections, resample 6 according to the normalized weights and output the average of the corresponding 7 values.
- Markov Chain Monte Carlo (MCMC):
- Independent MH uses a uniform proposal over 8.
- Random-Walk MH employs a von Mises–Fisher proposal 9 with specified concentration. Both achieve 0 per step.
These approaches offer asymptotically unbiased estimators for 1 as 2. Overall complexity is 3 for 4 projections.
4. Comparative Analysis of Slicing Strategies
Distinct approaches for selecting the slicing distribution yield different computational–statistical tradeoffs:
| Approach | Slicing Distribution | Informative Directions | Computational Cost |
|---|---|---|---|
| Classical SW | Uniform on 5 | No | 6 |
| Parametric optimizer | Optimized parametric family | Yes, but limited by parametric family | Often expensive, unstable |
| Energy-based (EBSW) | 7 | Yes (data-driven, nonparametric) | 8 |
EBSW uniquely provides a parameter-free, nonparametric adaptation in slicing, focusing computation on directions with the largest observed projected divergences. This yields robustness to misspecification that can hinder parametric approaches and maintains efficiency comparable to classical SW.
5. Empirical Evaluation
All reported experiments use 9.
- Point-Cloud Gradient Flows: For driving 0 to a fixed 1 using the Euler discretization of gradient flow, IS-EBSW2 with 3 achieves the fastest convergence in 4, outperforming SW5, Max-SW6, and v-DSW7 within comparable runtime constraints.
- Color Transfer: Modeling images as empirical RGB distributions, IS-EBSW8 generates transfers that most closely approximate target colors in 9 while incurring computational cost nearly equal to SW0.
- Deep Point-Cloud Reconstruction: Training a point-cloud autoencoder with IS-EBSW1 as the reconstruction loss yields lower slice-2 and true 3 errors compared to SW4, Max-SW5, and v-DSW6 across epochs on held-out ModelNet40. Resulting reconstructions possess increased sharpness and fidelity.
| Method | Epoch 20 (SW7, 8 ×100) | Epoch 100 (SW9, 0 ×100) | Epoch 200 (SW1, 2 ×100) | |-------------|-------------------------------|-------------------------------|-------------------------------| | SW3 | 2.97, 12.67 | 2.29, 10.63 | 2.15, 9.97 | | Max-SW4 | 2.91, 12.33 | 2.24, 10.40 | 2.14, 9.84 | | v-DSW5 | 2.84, 12.64 | 2.21, 10.52 | 2.07, 9.81 | | IS-EBSW6 | 2.68, 11.90 | 2.18, 10.27 | 2.04, 9.69 |
Qualitative assessment indicates EBSW consistently produces smoother trajectories and reconstructions relative to comparator methods.
6. Practical Implications and Availability
EBSW generalizes SW by replacing uniform slicing with an energy-based density proportional to a strictly positive function of 1D Wasserstein projections. This maintains 7 per slice computational complexity and introduces greater adaptability by focusing on the most discriminative projections.
Monte Carlo estimators—via importance sampling, SIR, or MCMC—are readily implementable. IS-EBSW8 empirically achieves lower reconstruction and transport errors compared with baseline SW variants, at only a minor increase in computational overhead. All supporting code and data are available at https://github.com/khainb/EBSW (Nguyen et al., 2023).