Residual Interleaving Distance
- Residual interleaving distance is a metric for merge trees that integrates global alignment with mandatory local constraints to identify fine-grained structural similarities.
- It interpolates between unconstrained bottleneck matching and fully-specified correspondences, offering a rigorous framework for stratified, locally optimal matchings.
- Dynamic programming techniques, enhanced from standard methods, efficiently compute this metric, making it valuable for applications like terrain evolution and hierarchical data analysis.
The residual interleaving distance is a generalization of the classical interleaving distance for merge trees, designed to capture not only global similarity but also the local fit between substructures. This metric quantifies the “slack” in an isomorphism between merge trees that respects both global alignment and imposed local constraints. By interpolating between unconstrained bottleneck matching and fully specified correspondences, the residual interleaving distance enables the detection of local similarities that the standard interleaving distance may obscure. Its formulation provides a rigorous foundation for stratified, locally optimal matchings critical for the comparative analysis of hierarchical structures in topological data analysis (Beurskens et al., 18 Dec 2025).
1. Merge Trees and Classical Interleaving Distance
A merge tree is a pair , where is a finite rooted tree with unit-length edges, and is a continuous height function, strictly increasing from leaves toward the root, which is mapped to infinity. The shortest-path metric induces a natural notion of distance on , and the ancestor relation designates that is a descendant of along an -monotone path.
The interleaving distance measures similarity between two merge trees by the minimal vertical shift for which there exist two continuous, ancestry-preserving maps , such that:
- for all ,
- for ,
- ,
- ,
where denotes the ancestor of at height .
is realized as the smallest possible for which such maps exist, and always lies in a finite set of critical values derived from the node heights of the input trees (Beurskens et al., 18 Dec 2025).
2. Motivation and Definition of Residual Interleaving Distance
While the classical interleaving distance minimizes the largest required shift between matched points—yielding a global bottleneck measure—it can exaggerate the required deformation away from locally similar substructures. To enable finer-grained analysis, additional constraints specifying mandatory matches between certain nodes are imposed.
Given such a set of constraints, formalized as a finite partial interleaving (where , for , ), the residual interleaving distance is the infimum of the maximal shift needed by any complete interleaving that extends . This construction interpolates between the unconstrained case () and fully specified matchings (Beurskens et al., 18 Dec 2025).
For a complete interleaving that extends , the -residual shift for an arrow is:
- if is within the fan of (i.e., matches forced by ancestry),
- otherwise.
The residual shift of is then .
The residual interleaving distance is formally defined as:
3. Critical Values and Existence of Optimal Extensions
Just as in the classical case, always attains its value at a critical point derived from the node-set and constraints of the partial interleaving. The set of -critical points includes all vertices of and involved in , together with marked heights derived from candidate matches.
A finite set , with and the -critical node sets, together with the original and from the unconstrained measure, ensures . An optimal complete interleaving that realizes this infimum always exists (Beurskens et al., 18 Dec 2025).
4. Locally Correct Interleavings
A complete interleaving is locally correct if for every restriction , the residual shift coincides with the residual interleaving distance . This condition guarantees that any partial matching imposed by cannot be improved without altering the rest of the correspondence, thus yielding a stratified, locally optimal match at every substructure.
A central existence theorem establishes that every pair of finite merge trees admits at least one locally correct interleaving. The constructive proof iteratively augments the set of forced matchings, always realizing residual distances at critical shifts, terminating with a complete interleaving that is locally optimal everywhere (Beurskens et al., 18 Dec 2025).
5. Properties and Theoretical Implications
Key properties of the residual interleaving distance include:
- If is the empty set, recovers the classical interleaving distance.
- For , monotonicity holds.
- The residual interleaving distance is always realized at a finite critical value and by some extension achieving that value.
- Local optimality is precisely captured by the requirement that any restriction of a locally correct interleaving is itself optimally residual given its forced matching.
A plausible implication is that the residual interleaving distance enables not only summary metrics but also a stratified “shift profile” of matchings across the tree, reflecting intrinsic local correspondence patterns.
6. Algorithmic Computation of the Residual Interleaving Distance
To compute , standard dynamic programming techniques, such as those of Touli–Wang, can be extended. The state space is augmented to track matched points under , transitions are constrained to be consistent with the fans and a target threshold , and binary search is performed over the discrete set of critical values computed above. Once an optimal extension is found, one can iterate the process—extracting bottleneck arrows, augmenting , and repeating—to construct a locally correct interleaving (Beurskens et al., 18 Dec 2025).
7. Illustrative Example and Applications
An illustrative example involves two merge trees, each with three leaves at heights $0, 1, 2$ merging to a common root at . The classical interleaving distance might align disparate leaves globally with a shift of $2$, neglecting tighter local correspondences. By incrementally fixing correspondences as constraints in and recomputing , the shifts required for subtrees can be locally minimized, obtaining a matching where shifts are used as needed, rather than a uniform bottleneck value. Such a matching accurately captures local similarity structure and constitutes a locally correct interleaving.
Residual interleaving distance thus enables deeper comparative analysis of hierarchical and topological structures, with particular relevance for studying temporal sequences of terrains and other evolving topological data (Beurskens et al., 18 Dec 2025).