Towards an Optimal Bound for the Interleaving Distance on Mapper Graphs

Erin Wolf Chambers, Ishika Ghosh, Elizabeth Munch, Sarah Percival, Bei Wang · OpenReview

TL;DR

This paper introduces the first framework for computing an optimal bound for the interleaving distance between mapper graphs, a crucial metric for comparing topological summaries of data. By formulating the problem as an integer linear program (ILP), they can efficiently find assignments that minimize this bound, leading to more accurate comparisons and enabling practical applications like image classification.

What Problem Does This Paper Address?

Topological Data Analysis (TDA) uses tools like mapper graphs to understand the shape and connectivity of complex datasets. Comparing two such graphs is essential for tasks like classification or tracking changes over time. The interleaving distance is a theoretically sound way to measure the similarity between these graphs, but it's computationally expensive (NP-hard). Previous work offered a way to compute an upper bound on this distance using a "loss function," but the quality of this bound depended heavily on the chosen "assignment" (a set of maps between the graphs). This paper tackles the challenge of finding the best possible upper bound by optimizing this assignment, making the interleaving distance more practical for real-world use.

Methods

The core of this work lies in a sophisticated mathematical framework. They represent mapper graphs as "cosheaves" and define the interleaving distance and loss function within this categorical setting. The key innovation is formulating the problem of finding the optimal assignment (that minimizes the loss function) as an Integer Linear Program (ILP). This allows them to leverage powerful existing ILP solvers to efficiently find the best possible assignment. They also develop a constrained binary search algorithm that uses this ILP solver to find the interleaving distance itself, rather than just a bound.

Datasets

The authors validate their approach on:

  • Synthetic datasets: Line and torus mapper graphs with known interleaving distances, used to verify the accuracy of their bound.
  • MPEG-7 dataset: A benchmark dataset of binary images (apples, cups, forks, etc.) used for classification experiments.
  • Synthetically generated alphabet letters: Point clouds of letters (A, B, D, I, M, R) with varying noise and density, also used for classification.

Key Insights and Ideas

  • Optimizing the Bound is Key: The quality of the interleaving distance bound is directly tied to the quality of the "assignment" used. By optimizing this assignment via ILP, they can achieve tighter, more meaningful bounds.
  • ILP as a Powerful Tool: Framing the problem as an ILP unlocks the power of existing, highly optimized solvers, making the computation of optimal bounds feasible.
  • Theoretical Equivalence, Practical Differences: While the problem of checking for an n-interleaving (P2) and computing the loss (P3) are theoretically equivalent, P2 is found to be faster in practice due to differences in how solvers handle feasibility vs. optimization problems.
  • Mapper Graphs Capture Topology: The classification experiments demonstrate that the computed interleaving distance effectively captures meaningful topological differences in data, leading to accurate clustering and classification.

Key Results

  • They developed the first framework for computing an optimal bound on the interleaving distance for mapper graphs.
  • Their ILP formulation successfully recovers the exact interleaving distance in several small, known cases.
  • The method was applied to the MPEG-7 dataset, showing that the computed distances effectively cluster similar image shapes and achieve 91.67% accuracy in a classification task.
  • Classification of alphabet letters achieved 98.15% accuracy using their approach.
  • They provide an open-source Python package, ceREEBerus, for computing these bounds.

Limitations and Future Work

  • NP-Hardness: Solving ILPs is NP-hard, meaning computation time can grow significantly with the size of the input graphs. While their approach is efficient for many practical cases, it may not scale to extremely large datasets without further optimization.
  • Computational Overhead: The pre-computation of distance matrices for the loss function (P3) adds significant overhead compared to the binary decision problem (P2).
  • Future Work: The authors suggest several avenues for improvement, including optimizing the computation of distance matrices, exploring alternative ILP formulations, and applying their framework to other topological descriptors like merge trees and multiparameter persistence modules. They also envision using the interleaving distance to assess parameter quality in mapper graph construction.

Summary updated

Abstract

Mapper graphs are a widely used tool in topological data analysis and visualization. They can be viewed as discrete approximations of Reeb graphs, offering insight into the shape and connectivity of complex data. Given a high-dimensional point cloud $\mathbb{X}$ equipped with a function $f: \mathbb{X} \to \mathbb{R}$, a mapper graph provides a summary of the topological structure of $\mathbb{X}$ induced by $f$, where each node represents a local neighborhood, and edges connect nodes whose corresponding neighborhoods overlap. Our focus is the interleaving distance for mapper graphs, arising from a discretization of the version for Reeb graphs, which is NP-hard to compute. This distance quantifies the similarity between two mapper graphs by measuring the extent to which they must be ``stretched" to become comparable. Recent work introduced a loss function that provides an upper bound on the interleaving distance for mapper graphs, which evaluates how far a given assignment is from being a true interleaving. Finding the loss is computationally tractable, offering a practical way to estimate the distance. In this paper, we employ a categorical formulation of mapper graphs and develop the first framework for computing the associated loss function. Since the quality of the bound depends on the chosen assignment, we optimize this loss function by formulating the problem of finding the best assignment as an integer linear programming problem. To evaluate the effectiveness of our optimization, we apply it to small mapper graphs where the interleaving distance is known, demonstrating that the optimized upper bound successfully matches the interleaving distance in these cases. Additionally, we conduct an experiment on the MPEG-7 dataset, computing the pairwise optimal loss on a collection of mapper graphs derived from images and leveraging the distance bound for image classification.
BibTeX
@misc{chambers2025towards,
  author = {Erin Wolf Chambers and Ishika Ghosh and Elizabeth Munch and Sarah Percival and Bei Wang},
  title = {{Towards an Optimal Bound for the Interleaving Distance on Mapper Graphs}},
  year = {2025},
  eprint = {2504.03865},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.03865},
}
Figure