Authors: Guillaume Staerman, Pavlo Mozharovskyi, Pierre Colombo, Stéphan Clémençon, Florence d'Alché-Buc
Introduction
Measuring the distance between probability distributions is a fundamental task in machine learning, essential for generative modeling, domain adaptation, and statistical inference. Traditional measures like $f$-divergences (e.g., KL divergence) often fail when distributions have non-overlapping supports. While Optimal Transport (OT) metrics like the Wasserstein distance address this, they are computationally intensive and highly sensitive to outliers.
This paper introduces a novel pseudo-metric, $DR_{p,\epsilon}$, based on the concept of data depth. Data depth provides a way to generalize univariate quantiles to multivariate spaces, allowing for a robust, "center-outward" ordering of data points.
The $DR_{p,\epsilon}$ Methodology
The proposed metric compares distributions by analyzing their "depth-trimmed regions"—nested sets that represent multivariate quantiles. The process involves three key steps:
- Defining Depth-Trimmed Regions: Using a depth function (such as Halfspace or Projection depth), every point is assigned a centrality score. The upper-level sets of these scores form nested regions.
- Computing Hausdorff Distances: For various probability mass levels $\beta$, the Hausdorff distance—the maximum distance from any point in one set to the nearest point in the other—is calculated between the corresponding regions of the two distributions.
- Averaging and Trimming: The final metric is an average of these distances. A trimming parameter $\epsilon$ is used to ignore the outermost tails, providing inherent robustness against outliers.
Computational Efficiency and Robustness
A significant advantage of $DR_{p,\epsilon}$ is its computational profile. By leveraging the convexity of depth regions and using support functions, the authors developed a Monte Carlo approximation that runs in linear time $O(n)$ relative to the number of samples. This makes it significantly faster than standard OT solvers for large datasets.
Furthermore, the "peeling" nature of the metric—where the distribution is analyzed layer by layer from the center outward—allows it to naturally ignore anomalies in the tails. This contrasts with the Wasserstein distance, which must account for every point, including extreme outliers.
Empirical Results
The authors evaluated $DR_{p,\epsilon}$ across several domains:
- Robustness to Contamination: In synthetic tests with Gaussian distributions contaminated by 20% outliers, the proposed metric maintained significantly lower relative error than Wasserstein or Sliced-Wasserstein distances.
- Natural Language Generation: On the WebNLG 2020 benchmark, $DR_{p,\epsilon}$ showed superior correlation with human judgments of "Correctness" (Pearson correlation of 89.4) compared to BERTScore (85.5) and MoverScore.
- Image Clustering: When applied to Fashion-MNIST images corrupted with noise, the metric outperformed Euclidean and MMD-based spectral clustering, demonstrating its utility in robust unsupervised learning.
Conclusion
The $DR_{p,\epsilon}$ pseudo-metric offers a compelling alternative to existing distribution distances by combining the robustness of multivariate quantiles with the computational efficiency of linear-time algorithms. Its success in both synthetic benchmarks and complex NLP tasks suggests broad applicability in modern machine learning workflows where data quality and scale are primary concerns.
Summary updated