Faster Algorithms for the Geometric Transportation Problem

Pankaj K. Agarwal, Kyle Fox, Debmalya Panigrahi, Kasturi R. Varadarajan, Allen Xiao

TL;DR

This paper introduces three new algorithms for the geometric transportation problem, a fundamental task in areas like computer vision and shape matching. They achieve significant speedups: a randomized algorithm runs in near-linear time with a logarithmic approximation factor, a deterministic algorithm provides a (1+ε)-approximation in sub-quadratic time, and an exact algorithm for 2D is nearly linear.

What Problem Does This Paper Address?

The geometric transportation problem, also known as the Earth Mover's Distance (EMD) or optimal transport problem, seeks to find the most efficient way to move "supply" from a set of source points (R) to a set of demand points (B) in a d-dimensional space, minimizing the total transportation cost. The cost is typically defined by a distance metric (like L_p distance) between source and destination points, multiplied by the amount of "stuff" moved. This problem has broad applications, from comparing images and shapes to fluid dynamics. While efficient algorithms exist for related problems like bipartite matching, finding fast algorithms for the general transportation problem, especially for computing the actual transportation map (not just its cost), has remained a challenge, particularly for arbitrary supply and demand distributions. This paper aims to bridge this gap by providing faster algorithms for this core problem.

Methods

The paper presents three main algorithmic contributions:

  1. Randomized Near-Linear Time Algorithm: This algorithm uses a recursive approach that partitions the problem into smaller subproblems. It employs a "randomly shifted grid" to divide the space and recursively solves subproblems within grid cells (internal subproblems) and a single problem for points that cannot be transported within cells (external subproblem). The key innovation lies in how it handles the recursive structure and the error introduced by this partitioning, leading to an expected runtime of $O(n^{1+\epsilon})$ and an expected cost approximation of $O(\log^2(1/\epsilon))$ times the optimal.
  2. (1 + ε)-Approximation Algorithm: This approach reduces the transportation problem to a min-cost flow problem on a specially constructed graph. The graph is built using a hierarchical clustering of points (specifically, a compressed quadtree and a well-separated pair decomposition). This structure allows for a compact representation of pairwise distances and enables the construction of a sparse graph. The min-cost flow is then solved efficiently using a known algorithm, and the flow is decomposed back into a transportation map. This method achieves a $(1+\epsilon)$-approximation in $O(n^{3/2}\epsilon^{-d} \text{polylog}(U) \text{polylog}(n))$ time.
  3. Exact Algorithm for d=2: For the specific case of 2-dimensional space, the authors develop an exact algorithm that runs in $O(n^2 \text{polylog } n)$ time. This algorithm is based on implementing Orlin's strongly polynomial min-cost flow algorithm by exploiting the geometric structure of the problem, achieving a significant improvement over general min-cost flow algorithms.

Datasets

Not discussed in the paper. The paper focuses on theoretical algorithm design and analysis for geometric point sets.

Key Insights and Ideas

  • Recursive Decomposition with Random Grids: The randomized algorithm's success hinges on a clever recursive decomposition strategy. By using randomly shifted grids, they ensure that points within a certain proximity are likely to fall into the same grid cell, allowing for efficient local transportation. The analysis carefully bounds the error introduced by this partitioning.
  • Graph Reduction via Hierarchical Clustering: The $(1+\epsilon)$-approximation algorithm demonstrates the power of reducing geometric problems to graph problems. By using quadtrees and well-separated pair decompositions, they construct a sparse graph that captures the essential geometric relationships, making the min-cost flow computation tractable.
  • Exploiting Geometry for Exact Solutions: The exact algorithm for $d=2$ highlights how specific geometric properties can be leveraged to improve upon general algorithmic frameworks. The planar structure allows for a more efficient implementation of min-cost flow algorithms.
  • Handling Arbitrary Demands/Supplies: A significant challenge in transportation problems is dealing with arbitrary supply and demand distributions. The paper's algorithms are designed to handle this complexity, which is crucial for many real-world applications.

Key Results

  • Randomized Algorithm: An $O(n^{1+\epsilon})$ expected time algorithm that produces a transportation map with expected cost $O(\log^2(1/\epsilon))\mu(\tau^*)$, where $\mu(\tau^*)$ is the optimal cost. This improves to $O(\log(1/\epsilon))\mu(\tau^*)$ if the point set has bounded spread.
  • (1 + ε)-Approximation Algorithm: A deterministic algorithm achieving a $(1+\epsilon)$-approximation in $O(n^{3/2}\epsilon^{-d} \text{polylog}(U) \text{polylog}(n))$ time.
  • Exact Algorithm (d=2): An exact strongly polynomial $O(n^2 \text{polylog } n)$ time algorithm for the 2D case.

Limitations and Future Work

  • Dimensionality Dependence: The $(1+\epsilon)$-approximation algorithm's runtime has a dependency on the dimension $d$ ($\epsilon^{-d}$ factor), which can be problematic for very high-dimensional spaces. The paper mentions extensions to spaces with bounded doubling dimension, which can mitigate this issue in certain scenarios.
  • Approximation Factors: While the algorithms offer significant improvements, the approximation factors (e.g., $O(\log^2(1/\epsilon))$ for the randomized algorithm) might still be a concern for applications requiring very high precision.
  • Practical Performance: The paper focuses on theoretical complexity. The practical performance of these algorithms, especially the randomized one with its recursive structure and the $(1+\epsilon)$-approximation with its graph construction, would be an interesting area for future research.
  • Extension to other Metrics: The paper primarily focuses on $L_p$ metrics. Exploring extensions to other distance metrics or more general cost functions could be a future direction.

Summary updated

BibTeX
@inproceedings{agarwal2017faster,
  author = {Pankaj K. Agarwal and Kyle Fox and Debmalya Panigrahi and Kasturi R. Varadarajan and Allen Xiao},
  title = {{Faster Algorithms for the Geometric Transportation Problem}},
  booktitle = {Symposium on Computational Geometry},
  year = {2017},
  url = {https://openreview.net/forum?id=DdG1fbFTurC},
}
Figure