# Optimizing Computational-Statistical Runtime for Wasserstein Distance Estimation

DevFeed: [Optimizing Computational-Statistical Runtime for Wasserstein Distance Estimation](<https://devfeed.tech/articles/optimizing-computational-statistical-runtime-for-wasserstein-distance-estimation-123159.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2605.20122>)

Author: Peter Matthew Jacobs, Jeff M. Phillips

Published: 2026-11-09T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Machine Learning](<https://devfeed.tech/sources/arxiv-machine-learning.md>)

Topics: [computational complexity](<https://devfeed.tech/topics/computational-complexity.md>), [Algorithms](<https://devfeed.tech/topics/algorithms.md>), [Operations research and optimization](<https://devfeed.tech/topics/operations-research-and-optimization.md>)

Tags: [2](<https://devfeed.tech/tags/2.md>), [3](<https://devfeed.tech/tags/3.md>), [abstract](<https://devfeed.tech/tags/abstract.md>), [algorithms](<https://devfeed.tech/tags/algorithms.md>), [alpha](<https://devfeed.tech/tags/alpha.md>), [also](<https://devfeed.tech/tags/also.md>), [arxiv](<https://devfeed.tech/tags/arxiv.md>), [can](<https://devfeed.tech/tags/can.md>), [collecting](<https://devfeed.tech/tags/collecting.md>), [compress](<https://devfeed.tech/tags/compress.md>), [consider](<https://devfeed.tech/tags/consider.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-cc](<https://devfeed.tech/tags/cs-cc.md>), [cs-lg](<https://devfeed.tech/tags/cs-lg.md>), [d](<https://devfeed.tech/tags/d.md>), [data](<https://devfeed.tech/tags/data.md>), [develop](<https://devfeed.tech/tags/develop.md>), [distributions](<https://devfeed.tech/tags/distributions.md>), [error](<https://devfeed.tech/tags/error.md>), [expectation](<https://devfeed.tech/tags/expectation.md>), [optimizing](<https://devfeed.tech/tags/optimizing.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [stat-ml](<https://devfeed.tech/tags/stat-ml.md>)

## AI overview

The paper proposes a Sample-Sketch-Solve method for estimating squared Wasserstein distance from samples with additive error ε in expectation. It sketches samples on a regular Cartesian grid, which the authors say can compress data without increasing asymptotic error, especially for α-Hölder smooth distributions, while regularizing the problem for faster exact algorithms. For distributions on (0,1)^d with 0 < α < 1, the stated runtime is ε^−max(2,(d+1+o(1))/(1+α)). The authors report optimal Θ(ε^−2) runtime when d=2 and α>1/2, and nearly optimal runtime as α approaches 1 when d=3. The analysis treats sample collection as having O(1) computational cost.

## Source excerpt

arXiv:2605.20122v2 Announce Type: replace-cross Abstract: Squared Wasserstein distance is a frequently used tool to measure discrepancy between probability distributions. This distance is typically computed between empirical measures of size $n$ from two underlying random samples. Unfortunately, even in lower dimensional Euclidean space problems $\left( d \in \{2,3\} \right)$, algorithms for Wasserstein distance computation with approximate or exact precision guarantees scale poorly in the runtime as a function of $n$ and the desired precision. In response, we consider the computational-statistical runtime, where the goal is to estimate from samples the Wasserstein distance between potentially smooth measures up to $\epsilon$-additive error in expectation with respect to the sampling; we allow $O(1)$ computational cost for collecting a sample. Towards this, we develop a Sample-Sketch-Solve paradigm where we introduce a regular cartesian grid sketch of the samples. We show that (especially under $\alpha$-H\"older smooth distributions) this can compress the data without increasing asymptotic error, and also regularizes the structure which enables faster exact algorithms. Ultimately, we approximate $W_2^2(P,Q)$ within $\epsilon$ error in $\epsilon^{-\max(2,\frac{d+1+o(1)}{1+\alpha})}$ time for $0 < \alpha < 1$ H\"older smooth distributions $P,Q$ on $(0,1)^{d}$; an optimal $\Theta(\epsilon^{-2})$ for $\alpha > 1/2$ when $d=2$ and nearly optimal as $\alpha \to 1$ when $d = 3$.