Distribution Regression with Sliced Wasserstein Kernels

Dimitri Meunier, Massimiliano Pontil, Carlo Ciliberto

Introduction

This paper introduces a novel approach to distribution regression—the task of learning functions where the input is a probability distribution rather than a standard feature vector. The authors propose using kernels based on the Sliced Wasserstein (SW) distance. They prove that these SW-based kernels are "universal" (capable of approximating any continuous function) and provide strong theoretical guarantees on their performance, demonstrating that they often outperform traditional methods relying on Maximum Mean Discrepancy (MMD).

The Challenge of Distribution Regression

In many real-world scenarios, predictive modeling requires mapping a collection of data points to a target value. For example, a medical model might predict a patient's overall health indicator based on a distribution of various blood test results over time.

This presents two primary challenges:

  1. Representation: How do we represent a distribution mathematically to capture its essential geometry?
  2. Two-Stage Sampling: We rarely observe the "true" underlying distribution; instead, we only have access to a finite set of empirical samples drawn from it.

Historically, researchers have relied on Kernel Mean Embeddings (KME), which map distributions into a high-dimensional space based on the Maximum Mean Discrepancy (MMD). While mathematically convenient, MMD often fails to capture the underlying "shape" or geometric relationships between distributions. Optimal Transport (OT) metrics, such as the Wasserstein distance, excel at capturing these geometric nuances but are computationally expensive and notoriously difficult to convert into the valid "positive definite" kernels required by standard machine learning algorithms.

Sliced Wasserstein Kernels

To bridge this gap, the authors propose using Sliced Wasserstein (SW) kernels. The SW distance works by projecting high-dimensional distributions onto numerous random one-dimensional lines. In 1D, the Wasserstein distance has a simple, computationally efficient closed-form solution (achieved simply by sorting the points). By averaging these 1D distances across many random directions, the method yields a fast approximation of the full Wasserstein distance.

Key technical contributions of this work include:

  • Hilbertian Proofs: The authors prove that the $SW_2$ distance and the square root of the $SW_1$ distance are "Hilbertian." This is a strict mathematical requirement for building valid Gaussian-like kernels: $K(P, Q) = \exp(-\gamma d_{SW}(P, Q)^p)$.
  • Universal Consistency: They prove these kernels are "universal," meaning a model utilizing them can theoretically learn any continuous function over the space of distributions.
  • Theoretical Bounds: The paper derives "excess risk bounds," providing a mathematical guarantee on how well the model will perform as the number of training distributions ($T$) and the number of samples per distribution ($n$) increase.

Experimental Setup & Datasets

The authors evaluated their approach across three main tasks:

  1. Synthetic Mode Classification: Predicting the number of components in a Gaussian Mixture Model (GMM) based on a set of sampled points.
Samples and level curves for Gaussian Mixture Models used in the synthetic experiments.
  1. MNIST Digit Classification: Treating images as 2D spatial distributions of pixel intensities.
  2. Fashion MNIST Classification: Similar to the MNIST setup, applied to clothing items.

For the image datasets, the authors specifically tested robustness by applying random rotations and translations to the images, creating a significantly harder task for traditional pixel-based models.

Key Results & Insights

The empirical results strongly favor the Sliced Wasserstein approach, highlighting the importance of geometric awareness in distribution regression.

  • Geometry Matters: MMD is essentially a "mean-based" comparison. Sliced Wasserstein, however, captures the "transport" cost—how much work it takes to morph one shape into another. This makes it far more robust to shifts and deformations in the data.
  • Robustness to Transformations: On the rotated MNIST dataset, the standard RBF kernel's accuracy (operating on flattened image vectors) plummeted from 90% to 47% under heavy rotation. In contrast, the $SW_2$ kernel maintained a robust 82% accuracy because it treats the image as a spatial distribution of "ink," which is naturally more invariant to movement.
  • Superior Mode Counting: In the synthetic GMM task, SW kernels consistently achieved lower Root Mean Square Error (RMSE) than MMD across various dimensions and sample sizes.
Test RMSE for the mode classification task across different configurations.

Ultimately, the paper bridges theory and practice by providing the first rigorous statistical analysis for distribution regression using a non-MMD distance substitution kernel.

Limitations and Future Work

While promising, the approach has a few limitations:

  • Approximation Error: The Sliced Wasserstein distance must be approximated via Monte-Carlo sampling (choosing random projection directions). The authors' current theoretical bounds do not explicitly account for the error introduced by this third stage of sampling.
  • Sample Complexity: Theoretically, the bounds for SW are slightly "looser" than MMD because the Wasserstein distance converges more slowly in high dimensions. However, the authors note that the "regularity" of the target function might be much better in the SW space, which explains why it performs better in practice despite the theoretical rate.

For future work, the authors suggest exploring Linear Optimal Transport (LOT) as another potential Hilbertian distance that could further improve performance or theoretical clarity.

Summary updated

BibTeX
@inproceedings{meunier2022distribution,
  author = {Dimitri Meunier and Massimiliano Pontil and Carlo Ciliberto},
  title = {{Distribution Regression with Sliced Wasserstein Kernels}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=dxPhSmDPMky},
}
Figure