Skip to main content
QUICK REVIEW

[Paper Review] Computing Kantorovich-Wasserstein Distances on $d$-dimensional histograms using $(d+1)$-partite graphs

Gennaro Auricchio, Federico Bassetti|arXiv (Cornell University)|May 18, 2018
Point processes and geometric inequalitiesMathematics29 references5 citations
TL;DR

This paper proposes a novel method to compute exact Kantorovich-Wasserstein distances of order 2 between d-dimensional histograms by formulating the problem as an uncapacitated minimum cost flow on a (d+1)-partite graph, reducing computational complexity and memory usage. The approach exploits separable cost structures along principal axes, achieving significant speedups and scalability over standard linear programming and Sinkhorn-based methods on image and biomedical data.

ABSTRACT

This paper presents a novel method to compute the exact Kantorovich-Wasserstein distance between a pair of $d$-dimensional histograms having $n$ bins each. We prove that this problem is equivalent to an uncapacitated minimum cost flow problem on a $(d+1)$-partite graph with $(d+1)n$ nodes and $dn^{\frac{d+1}{d}}$ arcs, whenever the cost is separable along the principal $d$-dimensional directions. We show numerically the benefits of our approach by computing the Kantorovich-Wasserstein distance of order 2 among two sets of instances: gray scale images and $d$-dimensional biomedical histograms. On these types of instances, our approach is competitive with state-of-the-art optimal transport algorithms.

Motivation & Objective

  • To address the high computational cost of computing exact Kantorovich-Wasserstein distances of order 2 between d-dimensional histograms.
  • To reduce memory and runtime overhead by exploiting the separable structure of the ground cost function along principal d-dimensional directions.
  • To develop a scalable and efficient network flow formulation that outperforms standard linear programming and Sinkhorn-based approaches on large-scale histogram instances.
  • To demonstrate the method's effectiveness on real-world datasets, including grayscale images and high-dimensional biomedical flow cytometry data.

Proposed method

  • The problem is reformulated as an uncapacitated minimum cost flow problem on a (d+1)-partite graph with (d+1)n nodes and dn^{(d+1)/d} arcs, leveraging the separable structure of the squared ℓ2 norm cost function.
  • The method constructs a flow network where nodes represent histogram bins across d+1 layers, and arcs encode transport costs between bins in adjacent layers, with costs derived from the ℓ2 ground distance.
  • The network is solved using the Network Simplex algorithm, a state-of-the-art method for minimum cost flow problems, ensuring exact solutions.
  • The formulation is valid under the assumption that the cost function is separable along the d principal directions, which holds for the squared ℓ2 norm used in W2 distances.
  • The approach generalizes prior work on ℓ1 and ℓ∞ norms by extending the structured flow network idea to ℓ2-based optimal transport.
  • The method is compared against standard bipartite graph formulations and the Sinkhorn algorithm using both synthetic and real-world datasets.

Experimental results

Research questions

  • RQ1Can a structured (d+1)-partite graph formulation reduce the size and complexity of the optimal transport problem for d-dimensional histograms with separable cost functions?
  • RQ2How does the proposed method compare in runtime and memory usage to standard linear programming and Sinkhorn-based approaches on image and biomedical histogram data?
  • RQ3To what extent does the (d+1)-partite formulation scale with increasing histogram dimension d and bin count n?
  • RQ4Can the method handle large-scale biomedical data, such as 3D and 4D flow cytometry histograms, where standard methods fail due to memory limits?

Key findings

  • For 64×64 grayscale images, the (d+1)-partite approach reduced runtime from 16.3 seconds (bipartite) to 2.2 seconds, with a 50x reduction in arc count.
  • On 128×128 images, the (d+1)-partite method achieved a 36.2-second runtime compared to 1,368 seconds with the bipartite formulation, while reducing arc count from ~268 million to ~4.2 million.
  • For 3D flow cytometry data with N=32 and d=3, the bipartite formulation ran out of memory, while the 4-partite formulation computed the distance in 5.23 seconds.
  • On 2D flow cytometry data with N=16 and d=2, the (d+1)-partite method was 8x faster (0.003s vs 0.024s) and used 12x fewer arcs.
  • The method achieved significant memory savings by reducing the number of arcs from n² to dn^{(d+1)/d}, enabling computation on larger histograms.
  • The approach outperformed the Sinkhorn algorithm in both speed and exactness, particularly on high-dimensional biomedical data where memory constraints limit other methods.

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.