NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Asymptotic Improvements on the Exact Matching Distance for 2-parameter Persistence

Håvard Bakke Bjerkevik, Michael KerberJ. Comput. Geom 2021 · DOI

Abstract

Computing the matching distance for 2-parameter persistence modules has historically been a significant computational bottleneck in Topological Data Analysis (TDA). This paper introduces an algorithmic breakthrough that reduces the state-of-the-art complexity from $O(n^{8+\omega})$ to an expected $O(n^5 \log^3 n)$ time, while simultaneously improving space requirements from $O(n^4)$ to $O(n^2)$.

Introduction

In Topological Data Analysis (TDA), persistent homology provides a robust framework for summarizing the shape of data across multiple scales. While 1-parameter persistence is well-understood and efficiently computable, many real-world applications necessitate the use of two or more parameters—such as distance and local density—to capture the full structure of the data.

A representation of a 2-parameter persistence module, showing generators and relations in a 2D parameter space.

Multi-parameter persistence modules are significantly more complex than their 1-parameter counterparts. The most natural distance metric, the interleaving distance, is NP-hard to approximate. Consequently, the matching distance ($d_M$) has emerged as a popular alternative due to its stability and polynomial-time computability. The matching distance is defined by taking 1-dimensional "slices" of the 2D parameter space and finding the maximum bottleneck distance among all possible slices. However, exact calculation of $d_M$ remained prohibitively slow for large datasets until now.

Methodology

The proposed algorithm achieves its speedup through a multi-stage approach combining computational geometry and dynamic graph matching.

1. The Decision Problem

The algorithm first addresses the decision problem: determining if $d_M \leq \lambda$ for a fixed $\lambda$. By representing every possible slice as a point in a dual plane, the authors construct a line arrangement with $O(n^2)$ lines.

2. Vineyards and Dynamic Updates

Rather than recomputing the bottleneck distance for every region in the arrangement, the algorithm traverses the arrangement. It employs the "vineyard algorithm" to update barcodes and a dynamic matching approach to update the bottleneck distance in linear time per step. This reduces the decision problem's complexity to $O(n^5 \log n)$.

3. Lifting to 3D and Randomized Construction

To find the exact value of $d_M$, the 2D arrangement is lifted into a 3D plane arrangement where vertices represent candidate values for the matching distance. To avoid checking all $O(n^6)$ potential candidate values (triple intersections of planes), a randomized incremental construction strategy is used. By processing planes in a random order and narrowing the search interval $(a, b]$, the expected number of expensive decision queries is reduced to a logarithmic factor.

Key Results

The primary contribution of this work is the significant improvement in asymptotic complexity for exact matching distance computation:

  • Time Complexity: Reduced from $O(n^{8+\omega})$ (where $\omega \approx 2.37$) to an expected $O(n^5 \log^3 n)$.
  • Space Complexity: Improved from $O(n^4)$ to $O(n^2)$.

For a module with $n=100$, these improvements represent a factor of approximately 1,000 in speed, a gap that widens as the number of generators $n$ increases.

Discussion and Future Work

While the theoretical improvements are substantial, the authors note that the algorithm's complexity may require significant "algorithm engineering" to be practical for standard TDA libraries like Hera or GUDHI. Future research directions include extending these techniques to higher-dimensional persistence (more than 2 parameters) and exploring the trade-offs between linear space and polynomial time.

Summary updated

BibTeX
@article{bjerkevik2021asymptotic,
  author = {Håvard Bakke Bjerkevik and Michael Kerber},
  title = {{Asymptotic Improvements on the Exact Matching Distance for 2-parameter Persistence}},
  journal = {J. Comput. Geom.},
  year = {2021},
  doi = {10.20382/jocg.v14i1a12},
}
Figure