A deterministic near-linear time approximation scheme for geometric transportation

Emily B. Fox, Jiashuai Lu2023

TL;DR

This paper introduces the first deterministic algorithm that solves the geometric transportation problem (finding the cheapest way to move "earth" from supply points to demand points) in near-linear time, achieving a near-optimal cost. This is a significant improvement over previous algorithms, which were either randomized or much slower.

What Problem Does This Paper Address?

The geometric transportation problem, also known as the Earth Mover's Distance (EMD), is a fundamental problem in computational geometry and machine learning. It involves finding the minimum cost to transform one distribution of "mass" (represented by supply points with positive supply) into another (represented by demand points with negative supply), where the cost is proportional to the amount of mass moved and the Euclidean distance it travels. This problem has applications in areas like image matching, computer graphics, and shape analysis.

While randomized algorithms have achieved near-linear time complexity for this problem, deterministic algorithms have lagged significantly, often requiring super-quadratic time. The authors aim to bridge this gap by developing a deterministic algorithm that is both fast (near-linear time) and achieves a near-optimal cost. They also address the special case of geometric bipartite matching, where all supplies are either 1 or -1, and show improvements there as well.

Methods

The core of the paper's contribution lies in its deterministic approach to solving the geometric transportation problem. They build upon existing frameworks, particularly those that reduce the problem to finding a minimum cost flow in a sparse spanner graph.

Here's a breakdown of their key techniques:

  • Warped Quadtree Construction: Instead of standard quadtrees, they use a "warped" quadtree. This involves subtly shifting the axis-aligned hyperplanes that define the quadtree cells. This warping is crucial for avoiding "moats" around input points, which simplifies distance preservation and allows for better control over the structure.
  • Sparse Spanner Graph: They construct a sparse spanner graph over the input points and specially introduced "net points" (representing cell centers). This graph preserves distances between points approximately, allowing the problem to be reduced to a minimum cost flow problem on this sparser structure.
  • Deterministic Minimum Cost Flow Approximation: They adapt Sherman's generalized preconditioning framework for minimum cost flow. This involves:
  • Preconditioner Construction: Designing a preconditioner matrix that helps to efficiently solve the minimum cost flow problem. This is done by simulating random shifts of the quadtree in a deterministic manner, using concepts like "blobs" and "legal shifts" to manage probabilities and flow routing.
  • Greedy Algorithm: Employing a deterministic greedy algorithm to find an approximate minimum cost flow. This algorithm routes flow based on hierarchical structures (blobs) and aims to cancel out divergences efficiently.
  • Recovering Transportation Map: After computing an approximate minimum cost flow on the spanner, they develop a novel method to transform this flow into an actual transportation map without increasing the cost. This involves processing vertices in topological order and using prefix split trees to efficiently "shortcut" flow.
  • Handling Unbounded Spread: A significant challenge is dealing with point sets where the spread (ratio of largest to smallest inter-point distance) is unbounded. They devise techniques to handle this by carefully managing probabilities and using data structures that account for potential issues arising from large spreads.

Datasets

Not discussed in the paper.

Key Insights and Ideas

  • Deterministic Near-Linear Time is Achievable: The most significant insight is that a deterministic near-linear time algorithm for geometric transportation is possible, overcoming the reliance on randomization that characterized previous fast algorithms.
  • Warping Quadtrees for Control: The idea of "warping" quadtree cells by subtly shifting hyperplanes is a clever way to gain deterministic control over distance preservation and avoid issues with point distributions near cell boundaries.
  • Simulating Randomness Deterministically: The paper demonstrates how to deterministically simulate the effects of random shifts, which are often used in randomized algorithms for geometric problems. This is achieved through careful analysis of probabilities and the use of data structures like "blobs" and "legal shifts."
  • Unified Approach for Matching and Transportation: The authors highlight that their algorithm for general geometric transportation also provides a deterministic solution for geometric bipartite matching, unifying these related problems.
  • Dimension Independence in Polylogs: A key achievement is removing the dependence on the dimension 'd' from the polylogarithmic factors in the running time, which is a significant theoretical improvement.

Key Results

  • Deterministic (1+ε)-Approximation Algorithm: The paper presents the first deterministic algorithm for geometric transportation that computes a transportation map with a cost within a $(1+\varepsilon)$ factor of optimal.
  • Near-Linear Running Time: The algorithm runs in $O\left(n \varepsilon^{-(d+2)} \log ^{5} n \log \log n\right)$ time, which is near-linear in the number of points $n$.
  • Improved Geometric Bipartite Matching: They provide the first $(1+\varepsilon)$-approximate deterministic algorithm for geometric bipartite matching.
  • Dimension-Independent Polylogarithmic Factors: The algorithm achieves polylogarithmic factors in the running time that are independent of the dimension $d$, a significant theoretical advancement.
  • Application to Minimum Cost Flow: The techniques are extended to provide the first randomized near-linear time $(1+\varepsilon)$-approximation algorithm for the uncapacitated minimum cost flow problem in general undirected graphs with arbitrary real edge costs.

Limitations and Future Work

  • Dependence on ε: The running time still has a polynomial dependence on $1/\varepsilon$, which is typical for approximation algorithms.
  • Complexity for High Dimensions: While the polylogarithmic factors are dimension-independent, the $\varepsilon^{-(d+2)}$ term still shows a dependence on dimension $d$. Further work could explore ways to mitigate this.
  • Randomized for Min-Cost Flow: While the geometric transportation part is deterministic, the application to general minimum cost flow is randomized. Derandomizing this aspect could be a future direction.
  • Simplifications for Low Spread: The paper discusses simplifications for cases with small spread (SP(P)), suggesting that further optimizations might be possible by exploiting such properties.

Summary updated

BibTeX
@misc{fox2023deterministic,
  author = {Emily B. Fox and Jiashuai Lu},
  title = {{A deterministic near-linear time approximation scheme for geometric transportation}},
  year = {2023},
  doi = {10.1109/focs57990.2023.00078},
}
Figure