Certified Interleaving Distances on Real Two-Parameter Data

Topological data analysis summarizes the shape of data (clusters, loops, voids) as it changes along a scale parameter. With two parameters, for example distance scale and local density, the summaries become far more informative but lose their simple barcode form. The natural way to compare two such summaries, the interleaving distance, is NP-hard to compute and NP-hard even to approximate within any factor below 3. As a result, nobody knows the true interleaving distance between two-parameter summaries of any real dataset. Practitioners rely on cheap lower bounds and vectorized heuristics, and nobody can say how far these are from the truth.

We propose to build the first complete solver for the two-parameter interleaving distance. We borrow the engineering that made neural network verification practical despite its own NP-hardness: cheap necessary-condition presolves, pruning of variables whose value is forced, and branch-and-bound guided by downstream propagation. We then use the solver as a measuring instrument. On standard graph, time-series and point-cloud benchmarks, we will answer the empirical question that the hardness theory leaves open. Are real two-parameter modules "stable" in the way trained ReLU networks turned out to be, so that the worst-case hardness gadgets almost never occur? And when they are, how often do the cheap lower bounds already match the exact distance?

Core Claim

The hardness proof of Computing the Interleaving Distance is NP-Hard works by reducing 3SAT to Constrained Invertibility. That problem asks whether there is an invertible matrix whose entries obey a prescribed zero pattern, and it is then encoded into staircase modules. Read in reverse, this says something useful. Deciding whether two finitely presented modules are $\varepsilon$-interleaved is a finite search over matrix entries with forced zeros plus a quadratic composition constraint. Over the two-element field, the coefficient field used in standard persistence software, this is a Boolean satisfiability problem with parity constraints.

Evaluating Robustness of Neural Networks with Mixed Integer Programming showed that ReLU verification, also NP-hard, became tractable on real networks for one reason: most ReLUs are provably stably on or off, and cheap bound propagation finds them before any branching. Our claim has two parts. First, the analogous phenomenon exists for real bifiltrations. Grading constraints and rank-invariant presolves will fix the vast majority of morphism entries, and the remaining search is small. Second, a solver built around this phenomenon will return certified exact distances on benchmark-scale modules where a naive encoding times out.

The secondary, purely empirical claim is the main scientific payoff. It is a measured distribution of the gap between the exact interleaving distance and the cheap lower bounds practitioners actually use, on real data.

How the Solver Works

Fix two modules $M, N$ given by minimal presentations, meaning generators and relations with grades in $\mathbb{R}^2$. Fix a candidate $\varepsilon$. An $\varepsilon$-interleaving consists of two module maps, $f: M \to N(\varepsilon)$ and $g: N \to M(\varepsilon)$, where $N(\varepsilon)$ is $N$ shifted by $\varepsilon$ in both coordinates. Each map is represented by a matrix from the generators of one module to the generators of the shifted other module. These maps must satisfy

$$ g(\varepsilon)\circ f = \sigma^{M}_{2\varepsilon}, \qquad f(\varepsilon)\circ g = \sigma^{N}_{2\varepsilon}, $$

where $\sigma_{2\varepsilon}$ is the internal structure map shifting a module by $2\varepsilon$, and equality is taken modulo the relations.

An entry of $f$ can be nonzero only if the target generator's shifted grade lies below the source grade. Compatibility with relations is linear over the two-element field. The composition constraints are quadratic. The interleaving distance is the smallest $\varepsilon$ at which this system is satisfiable, and feasibility is monotone in $\varepsilon$. Only finitely many critical values matter: the pairwise grade differences. So the distance is found by a search over a sorted finite list.

Three ingredients transfer from verification.

The first is progressive presolve, the analogue of the interval-arithmetic-then-LP escalation of Tjeng et al. Before any search, we apply necessary conditions in increasing order of cost. The first is the fibered-barcode lower bound. The second is the rank-invariant condition: if $M$ and $N$ are $\varepsilon$-interleaved, then $\mathrm{rank}_M(a,b) \le \mathrm{rank}_N(a+\varepsilon, b-\varepsilon)$ whenever $b - a \ge 2\varepsilon$ coordinatewise. This holds because the map from $M_a$ to $M_b$ then factors through $N$. The third is linear-algebra propagation that fixes entries forced to zero by grading and relations. This is our analogue of "stable neurons."

The second ingredient is propagation-guided branching. We adapt the indirect-effect scoring of DEEPSPLIT, which scores a split by how much it tightens everything downstream rather than only locally. Here, we branch on the generator block whose assignment fixes the most entries through the composition constraints.

The third ingredient is certificates in both directions. A satisfying assignment is an explicit interleaving, which gives an upper bound checkable by matrix multiplication. An unsatisfiability proof from the solver, or a violated rank inequality, certifies a lower bound. Because VNN-COMP has shown how often complex verifiers produce unsound answers (VNN-COMP 2024), every returned distance is independently rechecked.

Research Program

The work has three stages.

The first stage is the encoding and solver: presentation input, the presolve hierarchy, and back-ends for a parity-aware satisfiability solver and a mixed-integer encoding with integer parity variables.

The second stage is a benchmark harness for multi-parameter persistence. It answers the empirical-validation gap that the research file documents for this field, where landmark results such as the $2\times 2$ local test of Botnan, Lebovici and Oudot and the hardness reduction itself report no computational numbers. The harness fixes instance construction, hardware and time limits, in the spirit of VNN-COMP's cost-parity rules.

The third stage is the measurement study. For every module in the harness, we record four things. The first is whether it is rectangle-decomposable, using the $2\times 2$ weak-exactness test, with decompositions cross-checked by the generalized persistence algorithm. The second is the fraction of morphism entries fixed by presolve. The third is the size of the residual search. The fourth is the gap between each lower bound and the exact distance.

The study is designed to settle Gap 4 of the file. Bauer et al. show that indecomposability is generic in the space of modules. Generic in that space need not mean typical for modules arising from data. We will measure which one holds on real data.

Data and Instances

Instances are bifiltrations, meaning nested sequences of complexes indexed by two parameters, built in the ways prior empirical work used them. For graphs, we use function filtrations combined with a density-like second parameter on the TUDataset collections ENZYMES, MUTAG and IMDB-B (TUDataset). These are the graphs on which Scoccola et al. showed multi-parameter topology helps: 39.0% versus 28.8% accuracy on ENZYMES.

For time series, we use scale-by-density bifiltrations of Takens-embedded UCR series, including DistalPhalanxTW, following the Multiparameter Persistence Image paper. For point clouds, we use the synthetic interlaced-circles-in-noise setting.

To probe the hard tail, we also generate staircase modules from random 3SAT instances near the satisfiability threshold, via the Bjerkevik–Botnan–Kerber reduction. On these, our solver should struggle, and we will report that it does. Point-cloud instances will be subsampled at increasing sizes so that we report a scaling curve rather than a single success story.

Baselines

The naive reference point is the fibered-barcode lower bound alone: the supremum over slicing lines of the one-dimensional bottleneck distance. Practitioners already use it implicitly whenever they compare sliced summaries. It costs only polynomial time per line. We compute it on the same instances with a dense, fixed line sampling budget. The solver "beats" it on an instance only if it certifies a strictly larger exact value. The fraction of such instances is itself the headline result, not a nuisance.

The strongest existing exact-method competitor is a direct, unstructured encoding of the same interleaving system handed to the same satisfiability and mixed-integer back-ends. It gets no grading-based zero fixing, no rank presolve and no guided branching. This mirrors how Reluplex-era verification compared to the MILP-with-presolve approach. Tjeng et al. report a 200x to 3,000x speedup over Reluplex, and that is the scale of improvement we hope to see here. No reported result found on Lacuna for any exact interleaving-distance computation on data, so this baseline must be run by us. Both arms get identical hardware, identical per-instance time limits and identical back-end settings. We count success as solving at least an order of magnitude more instances within the limit on the real-data suites.

For practical relevance, the reference is the Multiparameter Persistence Image. It is not an interleaving distance, but it is what practitioners use to compare modules. Its reported cost on DistalPhalanxTW is about 138 seconds, against about 9,396 seconds for the multiparameter persistence kernel. Solver wall-clock on that dataset will be reported against these numbers, measured on our hardware.

Two ablations isolate the key ingredient. The first removes the rank-invariant presolve while keeping entry fixing. The second replaces propagation-guided branching with a fixed variable order. This parallels DEEPSPLIT's ablation, in which removing indirect-effect scoring raised branch counts on an MNIST 256x2 network from 8,643 to 174,040.

Why not just…?

Why not just use the fibered-barcode lower bound and stop? If it equals the exact distance on nearly all real instances, it is good enough, and our solver would serve only as the tool that proves this. That is a genuine threat to the solver's practical value, though not to the study. The measurement experiment settles it directly by reporting the gap distribution per dataset. If the gap is essentially zero outside the 3SAT gadgets, we will say so and recommend the cheap bound with the solver as an auditor. The file contains a reason to expect a nonzero gap at least sometimes: the MPI paper notes that distinct modules can share all independent slices.

Why not just hand a generic encoding to an off-the-shelf solver? That is exactly the unstructured baseline above. The verification literature is the evidence that structure-aware presolve rather than raw solver power is what scales. The ablations will show whether the same holds here.

Why not just restrict to rectangle-decomposable modules, where the distance is easier? If real modules are overwhelmingly rectangle-decomposable, this would be the simpler route, and our measurements would recommend it. But Botnan, Lebovici and Oudot prove that rectangles are the maximal class with a $2\times 2$ local test, so anything beyond them needs global search. The prevalence measurement determines how often that restriction actually applies.

Why not just compare vectorizations such as MPI or landscapes? For classification accuracy they may well suffice, and we do not claim the exact distance improves classifiers. They do not, however, bound the interleaving distance, which is the quantity in which stability theorems are stated. An exact solver is the only way to check whether a heuristic distance tracks it.

Decisive Checks

The project succeeds if, on the TUDataset and UCR suites, the structured solver certifies exact distances for most module pairs at subsampled sizes where the unstructured encoding times out. It should do this while the presolve fixes the large majority of entries before branching.

The project fails informatively in either of two ways. In one, real-data instances are as hard as the 3SAT staircases, which would mean the worst-case theory describes practice. In the other, the fibered lower bound already matches the exact distance almost everywhere, which would make the cheap bound sufficient.

Either outcome yields the first published numbers on where the hardness of multi-parameter interleaving actually shows up in data. A secondary check correlates the exact distance with nearest-neighbor classification on ENZYMES, against MPI distances. It is reported only as context, not as the claim.