Compression for 2-parameter persistent homology

Ulderico Fugacci, Michael Kerber, Alexander Rolle · DOI

Abstract

This paper introduces two powerful compression algorithms, multi-chunk and mpfree, designed to mitigate the computational costs of 2-parameter persistent homology. By combining chain-complex level reduction with optimized minimal presentations, these methods enable the processing of topological datasets with millions of generators in seconds, achieving significant speedups over existing tools.

Introduction

Persistent homology has become a staple in topological data analysis (TDA) for summarizing how the "shape" of data—characterized by holes, loops, and voids—changes across a parameter, such as a distance threshold. However, many real-world datasets depend on multiple parameters simultaneously (e.g., density and distance). While 1-parameter persistence is computationally efficient, multi-parameter persistent homology (MPPH) presents a significant challenge. Standard constructions produce massive chain complexes that are often too large for downstream analysis or visualization.

An illustration of a 2-parameter filtration. The grid shows how a simplicial complex evolves as two parameters (axes 0, 1, 2) vary.

To address this, the authors propose a two-pronged approach to compression: reducing the size of these representations while perfectly preserving their topological properties.

Methodology

Multi-chunk Compression

The multi-chunk algorithm operates at the chain complex level. It extends the "chunk" algorithm used in 1-parameter persistence to the 2-parameter setting. By identifying pairs of generators that "cancel each other out" without contributing to the overall homology, it removes redundant elements. The result is the smallest possible chain complex that is homotopy equivalent to the input. This algorithm is highly parallelizable and serves as an efficient pre-processing step.

mpfree: Minimal Presentation

The mpfree algorithm works at the homology level to produce a minimal presentation—a compact matrix encoding generators and relations. It is an optimized version of the Lesnick-Wright (LW) algorithm, introducing several key improvements:

  • Predictive Computation: Using priority queues, mpfree predicts and jumps directly to necessary operations, avoiding the redundant linear scans that slowed previous implementations.
  • Synergy: mpfree utilizes multi-chunk as a final step to transform a "semi-minimal" presentation into a truly minimal one.

Experimental Results

The authors evaluated their software on a diverse range of 2-parameter filtrations, including Vietoris-Rips complexes, random Delaunay triangulations, and real-world triangular meshes from the AIM@SHAPE repository.

Performance and Scalability

In practical tests, mpfree consistently outperformed the RIVET library by orders of magnitude. For example, on a "Points on Sphere" dataset with 150,000 generators, RIVET required 381 seconds and 49.3 GB of RAM, while mpfree completed the task in 0.57 seconds using only 138 MB. The tools successfully handled complexes with up to 18.5 million generators in under a minute.

Despite the theoretical cubic worst-case complexity of these problems, the algorithms demonstrated linear scaling with respect to time and memory in practice. On certain datasets, such as Random Delaunay Triangulations, the output was reduced to just 1.1% of the original input size.

Discussion

A significant finding is that for multi-chunk, the algorithm is so efficient that the primary bottleneck is I/O—the time spent reading input from the disk. Furthermore, running multi-chunk as a pre-processor before mpfree is significantly faster than running mpfree alone, as it allows for "clearing" optimizations that are otherwise lost.

Limitations and Future Work

Currently, mpfree is specialized for 2-parameter modules. Extending these priority queue optimizations to three or more parameters remains a challenge. Additionally, the authors suggest that a "dual" approach using cohomology might yield further speedups, and combining these lossless methods with lossy approximation techniques could further reduce the footprint of extremely noisy data.

Summary updated

BibTeX
@inproceedings{fugacci2021compression,
  author = {Ulderico Fugacci and Michael Kerber and Alexander Rolle},
  title = {{Compression for 2-parameter persistent homology}},
  booktitle = {Comput. Geom},
  year = {2021},
  doi = {10.1016/j.comgeo.2022.101940},
}
Figure