Optimal Transport (OT) is a powerful mathematical framework for measuring the distance between two probability distributions by calculating the minimum cost required to transform one into the other. In machine learning, practitioners often compare a continuous distribution (like a generative model's output) to a discrete distribution (like empirical data samples). This specific setup is known as semi-discrete optimal transport (SDOT).
However, standard OT has a significant vulnerability: it is strictly mass-preserving. It forces all mass to be transported, meaning even a small number of extreme outliers can drastically skew the transport cost and degrade the metric. To address this, researchers utilize robust variants:
- $\alpha$-Optimal Partial Transport ($\alpha$-OPT): Transports only a specified fraction $\alpha \in [0,1]$ of the mass, discarding the remainder as noise.
- $\lambda$-Robust Optimal Transport ($\lambda$-ROT): Introduces a penalty parameter $\lambda$. The algorithm can either transport mass normally or choose to "burn" (discard) it for a fixed penalty of $\lambda$.
While algorithms for these robust variants exist for fully discrete settings, efficient algorithms for the semi-discrete setting have been lacking. This paper bridges that gap by introducing novel geometric characterizations and efficient algorithms that allow models to gracefully ignore outliers while maintaining high precision.
Geometric Characterization: Restricted Laguerre Diagrams
The authors tackle the problem through a blend of computational geometry and network flow techniques. Standard semi-discrete OT partitions the continuous space into a weighted Voronoi diagram (Laguerre cells), where each discrete point claims the continuous mass closest to it.
To handle robust OT, the authors prove that the optimal transport plan can be characterized by restricted Voronoi cells. In this framework, a point only claims mass within its cell up to a certain maximum radius. If a point's mass is fully transported, it hits a maximum weight cap, effectively ignoring distant outlier mass.
Algorithmic Innovations
The paper establishes a formal algorithmic link between $\alpha$-OPT and $\lambda$-ROT, proving they are deeply connected in the semi-discrete setting. An approximate solver for one can be transformed into an approximate solver for the other with nearly matching accuracy by running a binary search over the penalty parameter $\lambda$.
To achieve highly accurate solutions, the authors adapt the "cost-scaling" paradigm, traditionally used in network flow. Because partial transport leaves some mass behind, standard cost-scaling breaks down by creating "deficit regions" inside the Voronoi cells.
The authors invent a novel "consolidating path" technique to carefully route these deficits to the exterior of the restricted cells, maintaining the algorithm's invariants as the restricted boundaries expand and update.
For faster, slightly less precise results, they discretize the continuous space using a grid of hypercubes (via a well-separated pair decomposition) and reduce the problem to a discrete $\lambda$-capped OT problem. This is then solved using near-linear time minimum-cost flow techniques.
Key Results and Empirical Success
The proposed algorithms offer strong theoretical guarantees and practical performance:
- High-Precision Algorithm: The cost-scaling algorithm computes an exact solution up to $\log(1/\varepsilon)$ bits of precision in $n^{O(d)}\log(\Delta/\varepsilon)$ time (where $n$ is the number of discrete points, $d$ is the dimension, and $\Delta$ is the diameter of the distributions).
- Near-Linear Approximation: The fast approximation algorithm runs in $n^{1+o(1)}\varepsilon^{-O(d)}$ time, making it highly scalable for lower-precision needs.
- Empirical Robustness: Evaluated on synthetic 2D and 3D datasets (e.g., Gaussians contaminated with exponential noise), the algorithm successfully identified and ignored 10-15% injected noise, transporting almost exclusively inlier mass. The number of iterations required scaled linearly with $n$, well within theoretical bounds.
Limitations and Future Work
While a significant step forward, the approach has limitations. The runtime of both algorithms exhibits an exponential dependence on the dimension $d$, making the current approach computationally heavy for very high-dimensional data (the "curse of dimensionality"). Additionally, the exact algorithm assumes the existence of an integration "oracle" that can quickly compute the continuous mass inside a given polygon, which can be complex for arbitrary continuous densities.
Achieving polynomial dependence on the dimension $d$ and the error tolerance $1/\varepsilon$ remains an important open direction for future research.
Summary updated