Skip to main content
QUICK REVIEW

[Paper Review] Improved Approximation Algorithms for Earth-Mover Distance in Data Streams

Arman Yousefi, Rafail Ostrovsky|arXiv (Cornell University)|Apr 24, 2014
Data Management and AlgorithmsComputer Science18 references4 citations
TL;DR

This paper presents two streaming algorithms for approximating Earth-Mover Distance (EMD) between two multisets of points in a 2D discrete grid $[\Delta]^2$, where one set has only $k = \log^{O(1)}(\Delta n)$ distinct points. The first algorithm achieves a $(1+\epsilon)$-approximation in the insertion-only model using $O(k\epsilon^{-2}\log^4 n)$ space, while the second provides an $O(\min(k^3, \log\Delta))$-approximation in the turnstile model with $O(\log^3\Delta \cdot \log\log\Delta \cdot \log n)$ space, leveraging hierarchical grid decomposition and $\ell_1$ sketching.

ABSTRACT

For two multisets $S$ and $T$ of points in $[Δ]^2$, such that $|S| = |T|= n$, the earth-mover distance (EMD) between $S$ and $T$ is the minimum cost of a perfect bipartite matching with edges between points in $S$ and $T$, i.e., $EMD(S,T) = \min_{π:S ightarrow T}\sum_{a\in S}||a-π(a)||_1$, where $π$ ranges over all one-to-one mappings. The sketching complexity of approximating earth-mover distance in the two-dimensional grid is mentioned as one of the open problems in the literature. We give two algorithms for computing EMD between two multi-sets when the number of distinct points in one set is a small value $k=\log^{O(1)}(Δn)$. Our first algorithm gives a $(1+ε)$-approximation using $O(kε^{-2}\log^{4}n)$ space and works only in the insertion-only model. The second algorithm gives a $O(\min(k^3,\logΔ))$-approximation using $O(\log^{3}Δ\cdot\log\logΔ\cdot\log n)$-space in the turnstile model.

Motivation & Objective

  • To address the open problem of EMD sketching complexity in 2D grids under data stream constraints.
  • To design efficient streaming algorithms that approximate EMD with sublinear space when one input set has few distinct points.
  • To achieve better approximation ratios than prior work in both insertion-only and turnstile data stream models.
  • To provide theoretical guarantees on approximation quality using hierarchical grid decomposition and $\ell_1$ embedding techniques.

Proposed method

  • The algorithm uses a hierarchical decomposition of the $[\Delta]^2$ grid into levels of increasing cell size, where each level captures matching costs at different scales.
  • At each level $i$, the algorithm computes $C_i = \min_j \|V_{G^j_i}(S) - V_{G^j_i}(T)\|_1$, representing the $\ell_1$ difference of point counts in grid cells.
  • A lower bound is established by charging optimal matching edges to levels where the cell size is at most the edge’s $\ell_1$ norm, using a path decomposition argument to relate $C_i$ to edge counts.
  • The final estimate is derived as $Y = \frac{1}{2}\sum_i 2^i \cdot C_i$, which is shown to be within $O(k^2)$ of the true EMD.
  • For the turnstile model, the algorithm combines the hierarchical estimate with an $O(\log\Delta)$-approximation from Indyk (2007), returning the minimum of the two estimates.
  • The sketch maintains only $O(\log^3\Delta \cdot \log\log\Delta \cdot \log n)$ space by using randomized sampling and $\ell_1$ sketching for $\ell_1$ difference estimation.

Experimental results

Research questions

  • RQ1Can a $(1+\epsilon)$-approximation for EMD in 2D grids be achieved in the insertion-only model with polylogarithmic space when one set has few distinct points?
  • RQ2What is the best approximation ratio achievable for EMD in the turnstile model with polylogarithmic space, given bounded distinct point counts?
  • RQ3Can hierarchical grid decomposition and $\ell_1$ sketching be combined to yield strong approximation guarantees in streaming settings?
  • RQ4Is there a way to combine multiple approximation strategies to achieve a better overall approximation ratio?

Key findings

  • The first algorithm achieves a $(1+\epsilon)$-approximation for EMD in the insertion-only model using $O(k\epsilon^{-2}\log^4 n)$ space, where $k$ is the number of distinct points in one set.
  • The second algorithm provides an $O(\min(k^3, \log\Delta))$-approximation in the turnstile model with $O(\log^3\Delta \cdot \log\log\Delta \cdot \log n)$ space.
  • The analysis proves that the hierarchical estimate $Y = \frac{1}{2}\sum_i 2^i C_i$ is within $O(k^2)$ of the true EMD, leading to an $O(k^3)$-approximation when combined with the sketching method.
  • The algorithm combines the hierarchical $Y$ estimate with an $O(\log\Delta)$-approximation from prior work, ensuring the final estimate is within $O(\min(k^3, \log\Delta))$ of the true EMD.
  • The method establishes a lower bound showing that $Y$ is at least $\Omega(1/k^2)$ times the true EMD, which is critical for the approximation guarantee.
  • The results demonstrate that polylogarithmic space is sufficient for non-trivial EMD approximation when one input has few distinct points, advancing the state of the art in streaming EMD computation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.