Skip to main content
QUICK REVIEW

[Paper Review] Approximation algorithms for 1-Wasserstein distance between persistence diagrams

Samantha Chen, Yusu Wang|arXiv (Cornell University)|Apr 15, 2021
Topological and Geometric Data AnalysisComputer Science25 references6 citations
TL;DR

This paper presents two near-linear time approximation algorithms for computing the 1-Wasserstein distance between persistence diagrams using $L_1$ embedding and flowtree-based random shifting, achieving orders-of-magnitude speedups over exact methods like the Hungarian algorithm while maintaining low average relative error (e.g., 0.28–0.31 for flowtree on real datasets), making them practical for large-scale topological data analysis.

ABSTRACT

Recent years have witnessed a tremendous growth using topological summaries, especially the persistence diagrams (encoding the so-called persistent homology) for analyzing complex shapes. Intuitively, persistent homology maps a potentially complex input object (be it a graph, an image, or a point set and so on) to a unified type of feature summary, called the persistence diagrams. One can then carry out downstream data analysis tasks using such persistence diagram representations. A key problem is to compute the distance between two persistence diagrams efficiently. In particular, a persistence diagram is essentially a multiset of points in the plane, and one popular distance is the so-called 1-Wasserstein distance between persistence diagrams. In this paper, we present two algorithms to approximate the 1-Wasserstein distance for persistence diagrams in near-linear time. These algorithms primarily follow the same ideas as two existing algorithms to approximate optimal transport between two finite point-sets in Euclidean spaces via randomly shifted quadtrees. We show how these algorithms can be effectively adapted for the case of persistence diagrams. Our algorithms are much more efficient than previous exact and approximate algorithms, both in theory and in practice, and we demonstrate its efficiency via extensive experiments. They are conceptually simple and easy to implement, and the code is publicly available in github.

Motivation & Objective

  • To address the computational bottleneck of exact 1-Wasserstein distance computation between persistence diagrams, which scales as $O(n^3)$ using the Hungarian algorithm.
  • To develop efficient, practical, and lightweight approximation algorithms that significantly outperform existing exact and approximate methods in runtime.
  • To adapt randomized quadtree-based optimal transport approximation techniques—originally for Euclidean point sets—to the specialized structure of persistence diagrams, including diagonal matching for noise.
  • To evaluate the trade-off between approximation accuracy and computational efficiency on diverse real and synthetic datasets.

Proposed method

  • Adapt the $L_1$ embedding approach from optimal transport to persistence diagrams by mapping points to a lower-dimensional space while preserving distance structure.
  • Use a randomly shifted flowtree (quadtree) data structure to recursively partition the plane and approximate optimal matchings between points in the diagrams.
  • Allow matching of points to the diagonal $y=x$ to model noise, consistent with standard 1-Wasserstein distance for persistence diagrams.
  • Apply a modified auction algorithm with geometric acceleration via flowtree to compute approximate matchings efficiently.
  • Use random shifts of the quadtree grid to reduce worst-case approximation error and improve stability.
  • Implement both algorithms with open-source code available on GitHub for reproducibility and practical use.

Experimental results

Research questions

  • RQ1Can randomized quadtree-based approximation methods from optimal transport be effectively adapted to compute 1-Wasserstein distances between persistence diagrams?
  • RQ2How do the approximation errors of the $L_1$ embedding and flowtree methods compare to exact methods and existing approximations like Hera?
  • RQ3What is the trade-off between runtime efficiency and approximation accuracy across diverse datasets with varying point distributions?
  • RQ4How does the presence of points near the diagonal affect the performance and error of the approximation algorithms?

Key findings

  • The flowtree-based algorithm achieves a median average relative error of 0.2854 on the reddit-binary dataset with $L_2$ ground metric, significantly lower than the $L_1$ embedding method.
  • The flowtree method reduces the average relative error to 0.2664 for $L_2$ ground metric on synthetic-uniform data, demonstrating strong accuracy across data types.
  • Both algorithms achieve speedups of multiple orders of magnitude over the exact Hungarian algorithm and the Hera approximation, with the flowtree method being consistently faster than $L_1$ embedding.
  • The approximation error remains relatively stable across datasets, with the highest average error observed on ModelNet10 (0.7331 for flowtree), but still within acceptable bounds for practical use.
  • The algorithms show lower accuracy on diagrams with a higher proportion of points near the diagonal, likely due to increased noise matching errors.
  • Recall@5 accuracy for the flowtree method exceeds 0.9 on all datasets tested, indicating strong performance in nearest neighbor search applications.

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.