TL;DR
Optimal Transport (OT) is a go-to tool for comparing probability distributions in machine learning, but estimating it from finite data samples introduces significant errors governed by the data's hidden "intrinsic dimension." This paper discovers a neat mathematical shortcut to measure both this sampling error and the data's intrinsic dimension almost instantaneously—without running an OT solver at all. Armed with this geometric awareness, the authors build a calibrated estimator that slashes Wasserstein distance estimation errors by up to an order of magnitude.
What Problem Does This Paper Address?
Imagine trying to figure out the cheapest way to move a pile of dirt to fill a hole. That’s Optimal Transport (OT), and its total cost gives us the Wasserstein distance—a foundational metric in generative modeling and domain adaptation. Because real-world distributions are often continuous or massive, we approximate them using finite samples of size $n$.
Here’s the catch: replacing a true distribution with $n$ samples introduces statistical discretization error. Worse, the number of samples needed grows exponentially with dimension (the curse of dimensionality). Fortunately, real-world data like images rarely fill their ambient pixel space; they live on lower-dimensional manifolds with a much smaller intrinsic dimension ($d_{\text{int}}$).
While fast algorithms like Sinkhorn divergences use entropic regularization (controlled by a blur parameter $\varepsilon$) to compute OT quickly, tuning $\varepsilon$ optimally requires knowing $d_{\text{int}}$. Because $d_{\text{int}}$ is usually unknown, practitioners either guess $\varepsilon$ heuristically or crank numerical solvers to excessive precision—wasting compute while ignoring the massive sampling error hiding underneath.
Methods
The authors build a three-part, geometry-aware pipeline:
- Solver-Free Discretization Error Estimator: Normally, measuring how far an $n$-point sample is from the true distribution requires an expensive semi-discrete OT solver. Instead of assigning uniform weights ($1/n$) to each sample point, the authors assign optimal weights based on Voronoi cells (the fraction of true probability mass closest to each point). Under this setup, the complex semi-dual OT optimization collapses: the optimal dual potential is simply the zero vector! Estimating the OT sampling error reduces to finding nearest-neighbor distances via fast, GPU-friendly Monte Carlo integration.
- Fast Intrinsic Dimension Estimator: Because sampling error decays at a rate governed by $d_{\text{int}}$ (roughly $n^{-1/d_{\text{int}}}$), the authors evaluate their fast error estimator at two sample sizes ($n$ and $\eta n$). Taking the ratio of the logs reveals $d_{\text{int}}$ in $\mathcal{O}(nN)$ linear time, bypassing the $\mathcal{O}(n^3)$ or $\mathcal{O}(n^2/\varepsilon)$ bottlenecks of previous OT-based dimension estimators.
- Bagged Diagonal Richardson Extrapolation: Standard Sinkhorn divergences suffer from two biases: entropic bias (from $\varepsilon$) and statistical bias (from finite $n$). Previous methods extrapolated only over $\varepsilon$. Using their estimated $\widehat{d}^*$, the authors link $\varepsilon$ directly to $n$ ($\varepsilon_n \propto n^{-1/(\widehat{d}^*+4)}$) to balance both biases, then extrapolate across sample sizes $n$ and $2n$ simultaneously to cancel out both first-order bias terms. Because subtracting noisy estimates inflates variance, they average the smaller-$n$ term over $K$ random subsamples ("bagging").
Datasets
- Synthetic Data (in $\mathbb{R}^{20}$): Mixtures of 2D and 10D uniform hypercubes, mixtures of rank-2 and rank-10 Gaussians, and pure rank-10 Gaussians (all engineered to have an effective $d_{\text{int}} = 10$).
- Image Manifolds: MNIST, FashionMNIST, and CIFAR10. Because exact ground-truth Wasserstein distances between empirical datasets aren't known, the authors construct a clever benchmark: they push the real image datasets forward through the gradient of an Input Convex Neural Network (ICNN). By Brenier's theorem, this gradient is guaranteed to be the exact optimal transport map, yielding exact ground-truth $W_2^2$ distances via Monte Carlo.
Key Insights and Ideas
- Zero is the magic potential: By letting sample points take on their natural Voronoi-cell probability weights rather than forcing uniform $1/n$ weights, the dual OT optimization vanishes completely. You can measure OT discretization quality just by looking at nearest neighbors.
- Geometry is multi-scale: Real data doesn't always have one fixed integer dimension. A mixture of 80% 2D data and 20% 10D data acts like a 2D problem at coarse accuracy, but reveals its 10D nature when you demand fine precision. While classical geometric dimension estimators get fooled by the dominant 2D component, OT-based estimators naturally capture the true transport difficulty across scales.
- Debiasing $\varepsilon$ alone isn't enough: In high dimensions, finite-sample statistical bias completely swamps entropic regularization bias. Coupling $\varepsilon$ to $n$ via the intrinsic dimension lets Richardson extrapolation kill two birds with one stone.
Key Results
- Speed & Robustness in Dimension Estimation: On tricky multi-scale mixtures, classical estimators (
MLE,TwoNN,CorrInt,lPCA) fail, underestimating the dimension below 4 instead of 10. Both discrete OT and the authors' semi-discrete method accurately recover $d_{\text{int}} \approx 10$, but the authors' solver-free approach runs in 0.01 seconds on GPU versus 10.50 seconds for discrete OT—roughly a 1,000x speedup.
- Dramatic Wasserstein Error Reduction: On CIFAR10 ($\widehat{d}^* \approx 24$), standard Sinkhorn gives a $W_2^2$ estimation error of
1.210, and standard $\varepsilon$-Richardson barely budges it (1.007). The proposed Diagonal Richardson estimator slashes the error by over an order of magnitude to0.089. Even on a strict compute budget (quarter sample size, taking0.89svs Sinkhorn's0.94s), it achieves an error of0.201. Similar large gains hold on MNIST (0.788$\rightarrow$0.219) and FashionMNIST (0.852$\rightarrow$0.259).
Limitations and Future Work
- Low-dimension blind spot: The theoretical guarantees for the intrinsic dimension estimator only hold for $d_{\text{int}} > 2$ (below 2, OT convergence rates become parametric and independent of dimension).
- Theoretical gaps in statistical bias: Canceling the statistical bias relies on an asymptotic expansion assumption whose tightness remains an open theoretical question in statistical OT. Similarly, variance bounds for bagging assume fixed $\varepsilon$ rather than vanishing $\varepsilon \to 0$.
- Future directions: Extending geometry-aware debiasing from scalar transport distances to Kantorovich potentials and transport maps/gradients—which could directly stabilize generative model training.
Summary updated