Fast Free Resolutions of Bifiltered Chain Complexes
Abstract
In a -critical bifiltration, every simplex enters along a staircase with at most steps. Examples with include degree-Rips bifiltrations and models of the multicover bifiltration. We consider the problem of converting a -critical bifiltration into a -critical (i.e. free) chain complex with equivalent homology. This is known as computing a free resolution of the underlying chain complex and is a first step toward post-processing such bifiltrations.
We present two algorithms. The first one computes free resolutions corresponding to path graphs and assembles them to a chain complex by computing additional maps. The simple combinatorial structure of path graphs leads to good performance in practice, as demonstrated by extensive experiments. However, its worst-case bound is quadratic in the input size because long paths might yield dense boundary matrices in the output. Our second algorithm replaces the simplex-wise path graphs with ones that maintain short paths which leads to almost linear runtime and output size.
We demonstrate that pre-computing a free resolution speeds up the task of computing a minimal presentation of the homology of a -critical bifiltration in a fixed dimension. Furthermore, our findings show that a chain complex that is minimal in terms of generators can be asymptotically larger than the non-minimal output complex of our second algorithm in terms of description size.
Keywords and phrases:
Topological Data Analysis, Multi-Parameter Persistence, Multi-Critical BifiltrationsFunding:
Tamal K. Dey: NSF grants DMS-2301360 and CCF-2437030.Copyright and License:
2012 ACM Subject Classification:
Mathematics of computing Algebraic topologyEditors:
Hee-Kap Ahn, Michael Hoffmann, and Amir NayyeriSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Motivation and problem statement.
Multi-parameter persistence is a branch of topological data analysis where a data set (e.g., a point cloud) is filtered with respect to two or more parameters and the topological evolution of the data when changing the parameters is analyzed. In this context, the first step of a computational pipeline for two parameters typically consists of the computation of a bifiltration of simplicial complexes, that is, a family of simplicial complexes indexed by that grows when increasing the parameters. We refer to the parameter set as the grades of the bifiltration. A bifiltration can be equivalently described by determining the support of each simplex, that is, the set of grades at which the simplex is part of the complex. A bifiltration is called free or -critical if the support of every simplex is a principal upset, that is, the upward closure of a single element in the parameter space. More generally, a bifiltration is -critical if the support of a simplex is the upward closure of at most elements; see Figure 1 for a visualization.
A bifiltration gives rise to a bifiltered chain complex
with the -simplices at a given grade forming the basis of the -chains at that grade. Free and -critical filtered chain complexes are defined analogously.
Bifiltered chain complexes arise naturally in various constructions for topological data analysis, and several constructions produce bifiltrations that are not free. The most prominent example is given by the degree-Rips bifiltration [19, 23, 24, 7]. Other examples are the approximate multi-cover bifiltration [1] and Delaunay core bifiltration [6]. On the other hand, free bifiltrations are most suitable for algorithmic and computational purposes. There are fast algorithms for minimizing a bifiltered chain complex without changing its homology [14, 15, 22] as well as for computing the homology of a chain complex in terms of a minimal presentation [20, 18, 15, 4], but both approaches require free chain complexes as input.
In homological algebra, a standard technique is to replace a general chain complex by a free one, connected to the original chain complex by a chain map that induces an isomorphism in homology (a quasi-isomorphism). The free chain complex together with the chain map is called a free resolution of the original complex. The problem studied in this paper is how to efficiently compute a free resolution of a non-free bifiltered chain complex.
At the homology level, one way to address the case of a non-free bifiltration was proposed by Chacholski, Scolamiero and Vaccarino [8]: given a segment of a chain complex, the authors describe an algorithm to compute a free chain complex such that and are isomorphic, that is, a free implicit representation. This algorithm suffices if one is interested in a presentation of for further processing. Methods to compute a projective implicit representation from families of simplicial complexes and general simplicial maps have been developed in [11, 12], where, as in our approach, graph theoretic methods are used to speed up computations.
There are good reasons to work on the level of entire chain complexes instead. First of all, there are potential computational advantages, especially if one is interested in multiple homology dimensions (see Section 6). Moreover, the chain complex structure can encode subtle information on the data that is lost at the homology level: for example, two chain complexes may have isomorphic homology in every dimension without being quasi-isomorphic.
Computing free resolutions of general chain complexes is a standard task in computational algebra, available in the computer algebra software Macaulay2 for a much wider range of chain complexes. In the context of applied topology, we are mostly interested in very large bifiltered chain complexes with millions of generators but a simple combinatorial structure (i.e., simplicial boundary maps). The goal of this paper is to develop specialized and highly optimized algorithms for this type of input data, which the general purpose algorithms implemented in existing computer algebra systems are not tailored for.
Contributions.
Our main contribution is to propose two algorithms to compute a free resolution of a bifiltered chain complex. Both algorithms rely on the same simple idea of expanding any -critical simplex in dimension into a sequence of free copies, with consecutive copies related by -dimensional elements at the join of their grades. In algebraic terms, this corresponds to a free resolution of the upset module associated to the simplex. In order to construct a valid total complex, the algorithms introduce further maps to establish the chain complex property while maintaining quasi-isomorphism to the original filtered complex. Finding these maps is computationally inexpensive and takes place at a purely combinatorial level.
The algorithms differ mainly in the choice of free resolution of the upset modules. In the first algorithm, the path algorithm, the free resolution corresponds to the chain complex of a filtered path graph (as a simple special case of a cellular resolution [5, 21]). We give an example of a family of simplicial bifiltrations so that the resulting free chain complex has a dense boundary matrix (for any choice of basis). This example shows tightness of the worst-case runtime , where is the number of input generators (description size).
The second algorithm, the log-path algorithm, extends the path algorithm by adding additional relations to the free resolution of a simplex, such that any pair of copies of a simplex is connected via a sequence of relations of logarithmic length. This ensures sparsity of the boundary matrices in the output chain complex, but also requires adding further higher relations (syzygies). Again, further maps are required to establish the chain complex property of the resulting total complex, allowing the algorithm to maintain sparsity and obtain a resolution with worst-case run time in .
Our findings lead to an interesting observation: as shown by our worst case example, a minimal resolution may require dense boundary matrices, while a non-minimal resolution may actually admit a sparse matrix representation, with asymptotically fewer non-zero entries ( instead of , where is the description size of the complex). This observation suggests that minimizing chain complexes does not necessarily speed-up subsequent algorithmic tasks, at least in certain worst-case examples.
We provide implementations of the path and log-path algorithms, in addition to the Chacholski–Scolamiero–Vaccarino algorithm for computing free implicit representations of homology. Systematic tests on various -critical bifiltrations show that the overhead of the log-path algorithm over the path algorithm does not exceed a factor of 3 in run time and a factor of 2 in the number of non-zero entries for our examples, while showing the expected improvement on the mentioned worst-case examples. Subsequently minimizing the free chain complex yields a further significant reduction of the size. Furthermore, we consider the task of computing minimal presentations of homology in all degrees, comparing the approach of first computing a “global” free resolution with the approach of computing free implicit representations. Our results show a clear computational advantage for the global approach. Remarkably, for some instances, computing all minimal presentations using a free resolution is faster than computing a single minimal presentation using the Chacholski–Scolamiero–Vaccarino algorithm.
2 Bifiltered chain complexes
Bifiltrations.
A simplicial bifiltration is an abstract simplicial complex together with a collection of subcomplexes such that whenever (which means that and ). As shown in Figure 1, each simplex enters along a staircase bounding the support of , denoted , which is an upset (an upward closed subset of . There is a unique minimal set of grades such that . If for each , then the bifiltration is -critical.
Bipersistence modules.
Simplicial bifiltrations give rise to bifiltered chain complexes. We first describe the elementary building blocks. Each -simplex has a support with minimal generating set , determining an upset module (which we also denote by for brevity) given by
as illustrated in Figure 2. This is a special case of a bipersistence module , which is a family of vector spaces over a field together with a family of homomorphisms . Although our results extend to arbitrary fields straightforwardly, we will stick to the case in order to simplify the exposition. A morphism of bipersistence modules is a natural transformation, that is, a family of linear maps that commute with the structure maps of and : for .
A direct sum of upset modules, each generated by a single grade, is called free. A basis of a free bipersistence module is a set of elements where each , such that every , for any grade , can be written in unique way as a linear combination of images of the basis elements under the structure maps (which are inclusions into the vector space ). Note that the grades appearing in this linear combination with a non-zero coefficient must be less or equal to . A morphism between free modules is then determined by the images of the basis elements for the domain, and can be encoded by a matrix .
Chain complexes.
The upset modules associated to the simplices assemble to
which is a bifiltered chain complex with and boundary maps inherited from the simplicial complex , satisfying . The notion of a -critical bifiltered chain complex is defined analogously to the setting of a simplicial bifiltration.
Even though a bifiltered chain complex has a simple combinatorial structure, a free chain complex (a chain complex with each free) is preferred in computational (and algebraic) settings. This motivates the goal of finding a free resolution, that is, a free chain complex together with a chain map that induces an isomorphism on homology for each . Such a chain map is called a quasi-isomorphism.
Data representation.
The list of all simplices of a bifiltration , each with a lexicographically ordered list of the minimal generating set of its support, and a list of its facets gives a full combinatorial description of and will serve as the input to our algorithms. This data representation generalizes to regular cell complexes, and in our case to bifiltered chain complexes where . For the simplicial case, the number of facets is constant for each simplex dimension, ensuring sparsity. Therefore the description size of the input is given, up to a constant factor, by the total number of generators in this list. Our output is a free resolution of our input chain complex , again represented in the same data format.
3 Free implicit representations of homology
FI-reps.
To compute the homology of a -critical chain complex in a chosen dimension , Chacholski, Scolamiero, and Vaccarino [8] provide a procedure to construct a free chain complex segment from the input segment
| (1) |
such that . The pair of graded matrices is called a free implicit representation (FI-rep) of [20], and it serves as input for the computation of minimal presentations of [20, 18].
The Chacholski–Scolamiero–Vaccarino algorithm.
We consider an input complex induced by a simplicial bifiltration . The first step is to extend each in , induced by an -simplex , to a free upset module . The resulting free module , whose basis we denote by , contains as a submodule, since the support of is contained in the support of . Thus, postcomposing with this submodule inclusion does not affect the kernel: we have .
As a second step, we cover each in , induced by an -simplex by a free bipersistence module. This means that we replace each upset module by the free module , connected to the upset module by a surjection since the support of equals the support of . We call the basis elements the generators of . The module arises from by covering by for each -simplex via a canonical surjection . Hence, precomposing with does not affect the image. The input (1) can now be replaced by (2) which has isomorphic homology.
| (2) |
As the third and final step it remains to replace . We first construct analogously to , by substituting each in by . Precomposing with the surjection yields a map , as depicted in (3). For with , the resulting map sends a generator in to in .
| (3) |
Replacing by makes it necessary to also replace the map by a map , representing on the generators and also making the diagram commute. This map sends each generator of an -simplex with to , where each is a generator of chosen such that its grade satisfies ; such a always exists because the faces of a simplex are present in the bifiltration whenever itself is present. The map thus makes the square in (3) commute and is therefore called a lift of . See Figure 3 for an illustration.
Note that the kernel of may not be isomorphic to the kernel of ; the surjection maps each generator of an -simplex in to the same potential cycle in , thus increasing the dimension of the kernel. This can be resolved by relating these generators appropriately. Assume that the generators of are ordered w.r.t. the first coordinate of their grades. To represent correctly, two consecutive generators and have to be identified at the join of their grades by a relation . With the free bipersistence module with basis , we can present by generators and relations via
| (4) |
where . Since is injective, is surjective, and , the sequence in (4) is a short exact sequence. This means that already determines a free resolution of , as defined in Section 2, where is considered as a chain complex concentrated in degree .
The free resolution in Diagram 4 has a simple combinatorial structure, given by a path graph with vertices corresponding to the generators and edges corresponding to the relations . Note that vertices and edges implicitly carry the grades of the generators and relations. The morphism is represented by the (graded) incidence matrix of the graph. We call this free resolution the path resolution of , see Figure 4. Note that a path resolution is a special case of a cellular resolution [5, 21].
4 Path algorithm
Description.
We now turn to the problem of finding a free resolution, that is, a chain complex of free modules that is quasi-isomorphic to the input , thus preserving homology in all dimensions. For this problem, extending the codomain of to a free module generated in degree , as done in the Chacholski–Scolamiero–Vaccarino algorithm, is not feasible anymore, since this changes . Instead, we now carry out the step of substituting by its free resolution in every dimension and replacing by the (zeroth) lifts , yielding maps as illustrated in (6).
| (6) |
However, the sequence of maps, arising from this construction, does not yield a chain complex. Given a relation in , we obtain
This term (also the term ) may not vanish, since the generators of may be sent to different generators of its boundary simplices by , i.e., . However, it vanishes modulo relations, in the sense that its representative vanishes in , see Lemma 1.
Lemma 1 (Path Lemma).
For any , in , there is a unique set of distinct relations in such that .
Proof.
This can be seen combinatorially. The free resolution of corresponds to the path graph , in the sense that the restriction of to a map corresponds to the boundary map of the path graph. The relations then define the unique path connecting the vertices and in .
The map sends the edge of to the vertices and which in turn are mapped to and on by . We can therefore modify the boundary map in (6) by additionally sending to the path guaranteed by Lemma 1, see Figure 5. This defines a correction term such that . The maps are called the first lifts of .
Even after adding the correction term to (6), the resulting maps may still fail to be boundary maps, since the composition need not vanish for each generator in , as seen in Figure 6. Again, is a sum consisting of pairs of possibly different generators of the same simplex , which can be connected by a path of relations as above. A second correction term is defined analogously to the lifts . By construction, satisfies , making the following diagram commute:
| (7) |
Adding and to the boundary maps in (6) yields the desired free resolution of . The next theorem, proved in A.1 of the full version [3], shows correctness of the path algorithm.
Theorem 2.
The chain complex on the right side of (7) is a free resolution of .
Path algorithm.
For the description of the algorithm and its asymptotic time complexity, we assume that the input is induced by a -critical bifiltration of a simplicial complex with fixed dimension , given as a list of simplices , each with its dimension, grades and boundary . The output is described by a list of generators and relations (each carrying a grade) as well as their images under the maps and (which together form the boundary maps of the free resolution). The output is initialized as an empty list.
-
1.
Compute the bases of and the matrices . For each -simplex and , add a generator to . For any two consecutive , add a relation with to . Moreover, define .
-
2.
Compute the matrices . For each generator in , find generators for such that and define .
-
3.
Compute and . For , perform a matrix multiplication . The resulting columns are indexed by the relations in and consist of one pair of generators for each facet of . Such a pair is connected by a path in , and we set ; see Figure 7. For , proceed analogously to multiply . The resulting columns are indexed by the generators in and consist of one pair of generators in for each codimension face of . Such a pair is connected by a path in , and we set .
Complexity.
The running time of the path algorithm is for a -critical bifiltration of description size ; see A.2. in the full version [3]. This runtime is worst-case optimal, since the description size of a computed free resolution can be in the worst-case. The reason is that the paths in the computation of and can be of size up to , and many simplices may require such long paths in the worst case. Figure 8 gives a construction for which the matrix is of size ; see Figure 15 in [3] for a similar construction for .
A free chain complex is minimal if there is no quasi-isomorphic free chain complex with a smaller number of generators. In general, free resolutions computed by the path algorithm are not minimal. However, a slight modification of the construction in Figure 8 yields the following result (see A.3. in the full version [3] for details).
Proposition 3.
There is a -critical simplicial bifiltration of description size for which the path algorithm computes a free resolution represented by matrices of description size . This free resolution is minimal, and no other choice of basis yields a smaller description size.
5 Log-path algorithm
Shortcuts.
In the preceding section, we leveraged the fact that the upset modules induced by simplices of a bifiltration admit path-shaped resolutions, allowing us to compute the correction terms and in a simple way. In the worst case, many generators and relations are mapped to long paths, making the matrices and dense ( size) and leading to a quadratic running time of for the path algorithm.
Such long paths can be avoided by introducing shortcuts in the path resolution (4), as illustrated in Figure 9. Recall that the grades generating are totally ordered (by their first coordinate). Now any two vertices and with are connected by an additional shortcut edge if there are numbers with and . Extending by this edge corresponds to adding a relation to , where and . In total, only many edges are added.
This construction ensures that any two vertices and with are connected by a monotone path of length logarithmic in . A shortest monotone path can be constructed in a greedy way. We start in and take the longest possible edge in each step that does not overshoot . We conclude the following extension of Lemma 1 (proved in [3, B.1]).
Lemma 4 (Log-path Lemma).
For any , in , there exist in with such that . Moreover, the elements can be computed in time.
Log-path resolutions.
Lemma 4 appears to resolve the size issue: the same algorithm as in the previous section can be used, except that in the construction of and use Lemma 4 instead of Lemma 1. Then, the number of nonzero boundary coefficients for every generator and relation has only size instead of , which would lead to an output boundary matrix with nonzero entries.
Now recall that a key reason for why the path construction in (7) yields a chain complex is the uniqueness of paths between vertices. This leads to the vanishing of the terms and when composing boundary maps in (7). However, after adding shortcut edges the paths between vertices are no longer unique. As illustrated in Figure 11, for a relation , the terms and , when restricted to a component, may correspond to different paths connecting the same endpoints and may therefore enclose a cycle.
Any such cycle constitutes an obstruction to the vanishing of . To eliminate these obstructions, we fill the cycles with faces, or, in algebraic terms, introduce syzygies, thus extending the modified relations to a free resolution, as depicted in Figure 10:
| (8) |
The syzygies for correspond to the triangles with vertex grades for any odd ; see Figure 9. The grade is given by the grade of the longest edge, that is, . The map is defined by sending to the sum of the three edges of the triangle. We call (8) the log-path resolution of , noting that it is a bifiltered two-dimensional simplicial chain complex . Its construction yields the following property:
Lemma 5.
Let be a cycle in . Then there exists a unique chain of elements in such that . Moreover, this chain can be computed in time.
To fill a cycle in , we decompose it into simple cycles and use the observation that a simple cycle is filled with the triangles corresponding to the non-extremal vertices of the cycle, see Figure 12. See B.2 of the full version [3] for details.
Log-path algorithm.
We now describe the algorithm, again assuming that the input is a -critical simplicial bifiltration of size and constant dimension with chain complex .
Step 1: Compute the log-path resolution of each module . This requires iterating through the generators of each input simplex and adding a total of relations and syzygies, which takes time in total.
Step 2: Compute in time as in Section 4.
Step 3: Compute the maps and as in the path algorithm, except that paths between coming from the same simplex are computed via Lemma 4. We can find every path in time and compute matrices and with at most entries per column in a total running time of for this step.
Step 4. All maps computed in the previous steps yield the following extension of (7).
| (9) |
A construction as in Section 4 leads to boundary morphisms whose composition is non-zero. Again, the boundary defect is repaired by introducing correction maps , , and :
| (10) |
Commutativity of Diagram (9) yields the following observation
Lemma 6.
The following morphisms map to the kernel of :
| (11) |
The log-path resolution of is the direct sum of the simplicial chain complexes , taken over each simplex in . The map is given by the -dimensional boundary map of this complex, and hence its kernel is the collection of cycles in the -skeletons of . More specifically, each triangle in is sent by to its boundary, a sum of three edges.
By Lemma 6, applying to this boundary yields another cycle in , which by construction of decomposes as for running over the facets of . For each such cycle , by Lemma 5 there is a unique chain in such that , as illustrated in Figure 13. The map is then defined via , with running over the facets of . Thus repairs the boundary defect as .
Similar arguments lead to correction terms , and satisfying
| (12) |
Their construction is analogous to the above, and we omit the details.
Note that in each of the three cases , , and , the construction involves matrix multiplication (evaluation of the left hand sides in (12)), but also cycle filling (invoking Lemma 5). The former is efficient, as paths of logarithmic length lead to sparse matrices and . More precisely, the column sparsity of and is , while in every column has exactly three non-zero entries. All sparse matrix products in Step can thus be computed in and the worst case column sparsity of the results is . The resulting matrices contain cycles of length , which can be filled by triangles in time. Overall, Step takes time.
We can now assemble the output chain complex as
| (13) |
Theorem 7.
The chain complex (13) is a free resolution of .
For a proof, see chapters B.3 and B.4 of the full version [3]. We summarize our observations on the running time in the following theorem.
Theorem 8.
A free resolution of the chain complex induced by a -critical bifiltration of description size can be computed in time and has size.
Applying this result to the modified wheel example ([3, A.3]) yields a non-minimal free resolution with smaller description size than any minimal one. Thus, perhaps surprisingly, minimal free resolutions are not asymptotically optimal in terms of description size.
6 Experimental evaluation
We implemented the path and log-path algorithm for computing a free resolution of a bifiltered chain complex in a C++ library called multi-critical 111Most recent version at https://bitbucket.org/mkerber/multi_critical/src/main/. The benchmark files are available upon request. The code expects a bifiltration given in scc2020 format [17], with the difference that for every simplex an arbitrarily long sequence of bigrades can be specified. The output is a chain complex in “proper” scc2020 format, representing a free filtered chain complex. Instead of outputting the result of our algorithms directly, the software can also post-process the filtered chain complex with the multi-chunk [16] library for minimizing the chain complex [14, 15].
All experiments were performed on a workstation with an Intel(R) Xeon(R) CPU E5-1650 v3 CPU (6 cores, 12 threads, 3.5GHz) and 64 GB RAM, running Ubuntu 16.04.5.
Test instances.
We ran our experiments on a total of 342 test instances from different sources. First, we generated degree-Rips bifiltrations for (noisy) point samples drawn from a torus embedded in , from the “swiss roll” embedded in , and from the -dimensional unit cube, using the python package tadasets. In all cases, we generated the complex up to -simplices.
Furthermore, we used a simple method for generating bifiltrations of a simplicial complex equipped with two non-negative real-valued functions and on its simplices, described in Figure 14. We employed this construction on meshes from the Aim@Shape repository222http://visionair.ge.imati.cnr.it/, using the squared mean curvature and the distance to the barycenter as the two functions. Furthermore, we bifiltered the Delaunay triangulations from the same point samples as above (torus, cube, swiss roll) using the minimum enclosing radius of a simplex and the average distance to the -nearest neighbors as filter functions. In all cases, we generated -critical instances with . We computed the filtration values with CGAL [10, 26, 13].
Finally, we generated wheel bifiltrations as in Figure 8 for different sample sizes.
Comparison of path and log-path algorithms.
Table 1 shows some of the results obtained from both algorithms on these datasets; the results for the other instances are similar.
In almost all cases, the log-path algorithm is slower than the path algorithm by a factor of up to 3 and produces an output complex of around twice the size. Also, it uses around twice as much memory (not shown in the table). Moreover, minimizing the chain complex (rightmost column of Table 1) further reduces the complex size significantly, generally at a small cost – sometimes it even saves time because the time used for minimization is less than the cost of producing the larger output file.
The only exception is the wheel bifiltration, where our experiments show the expected asymptotic worst-case behavior, with the log-path algorithm outperforming the path algorithm. In this case, minimizing the chain complex produced by the log-path algorithm will necessarily introduce a dense matrix and destroy the advantage of the log-path algorithm – for instance, its running time in the instance in the last row of Table 1 is 33 seconds, with 14.4 seconds for minimization itself and 18 seconds to write the 2.3 GB output file.
Computing minimal presentations.
For a multi-critical filtered chain complex, we investigate the task of computing minimal presentation matrices for homology. We provide two variants: In the first variant, we compute a free resolution of the input chain complex with the path algorithm (which is usually faster than the log-path algorithm, as seen in the previous experiment) and subsequently minimize using multi-chunk. We then compute minimal presentations for each homology degree separately using the mpfree library [18, 15].
The second variant operates by directly structuring the input complex into chain complex segments per degree. It then uses the Chacholski–Scolamiero–Vaccarino algorithm to compute a free implicit representation for each segment, before finally employing mpfree once more to generate a minimal presentation.
The results of this experiment are presented in Table 2. For the degree-Rips instances, the first variant provides a modest improvement over the second. The reason is that the vast majority of simplices are in the top dimension , so that computing the presentation for is the bottleneck in the computation. This step, however, does not differ significantly in both approaches: most of the time is spent to determine which -simplices are killing -cycles, by reducing the boundary matrix for - and -simplices.
For the bifunction instances, the speed-up of the first variant using free resolutions is much more pronounced. The reason is that these instances have a more balanced distribution of simplices over different dimensions: while for the second variant, the algorithm for still has to find the bounding -simplices for every , the multi-chunk algorithm makes use of the clearing optimization [9] and hence avoids the reduction of large parts of the boundary matrices. Remarkably, this technique is so effective that computing all minimal presentations via free resolutions is faster than computing a single minimal presentation via the approach using the Chacholski–Scolamiero-Vaccarino algorithm, even though restricting to a single dimension allows this approach to disregard all chains in dimensions other than , , or .
Comparison with Macaulay2.
While the Macaulay2 software includes a general freeResolution routine [25], it is unsuitable for our purposes. Its use requires converting our bigraded input into a graded chain complex over , a conversion that we found to be slow itself. More importantly, the core computation in Macaulay2 was orders of magnitude slower than our method, even on much smaller instances. We infer that the software was not designed for the large inputs typical of TDA. The conversion script is available on request.
7 Discussion
Our experimental evaluation suggests that the path algorithm often exhibits slightly better performance, which the log-path algorithm is more robust towards “bad” instances, with a relatively low overhead. Together, both variants contribute towards an efficient computational pipeline for multi-critical bifiltrations. Our results also complement recent development for computing degree-Rips bifiltrations more efficiently [2]. The finding that minimal chain complexes may necessitate a quadratic size in sparse matrix representations suggests that these representations may not be universally ideal for boundary matrices. Specifically, the matrix in Figure 8 admits a linear-size description, illustrating a gap in current approaches. It would be interesting to balance effective worst-case compression with efficient matrix processing, possibly by using an alternative data structure or by selective shortcutting.
Finally, our approach partially extends to simplicial complexes filtered with three parameters: a simplexwise minimal free resolution now has length , and suitable connecting maps compose into the same diagram as (10). Moreover, as described by Miller and Sturmfels [21], the simplexwise free resolution carries the structure of a planar graph, leading to a cubic-time algorithm. To break the cubic barrier, we will need to generalize the shortcut idea of Section 5 from paths to planar graphs, extending the free resolution of a simplex to length (and introducing even more maps). We leave the details to future work.
References
- [1] Ángel Javier Alonso. A Sparse Multicover Bifiltration of Linear Size. In Oswin Aichholzer and Haitao Wang, editors, 41st International Symposium on Computational Geometry (SoCG 2025), volume 332 of Leibniz International Proceedings in Informatics (LIPIcs), pages 6:1–6:18, Dagstuhl, Germany, 2025. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2025.6.
- [2] Ángel Javier Alonso and Michael Kerber. deg_rips. https://bitbucket.org/mkerber/deg_rips/src/main/, 2026. Accessed: 2026-03-24.
- [3] Ulrich Bauer, Tamal K. Dey, Michael Kerber, Florian Russold, and Matthias Söls. Fast free resolutions of bifiltered chain complexes, 2026. arXiv:2512.08652.
- [4] Ulrich Bauer, Fabian Lenzen, and Michael Lesnick. Efficient Two-Parameter Persistence Computation via Cohomology. In Erin W. Chambers and Joachim Gudmundsson, editors, 39th International Symposium on Computational Geometry (SoCG 2023), volume 258 of Leibniz International Proceedings in Informatics (LIPIcs), pages 15:1–15:17, Dagstuhl, Germany, 2023. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2023.15.
- [5] Dave Bayer and Bernd Sturmfels. Cellular resolutions of monomial modules. J. Reine Angew. Math., 502:123–140, 1998.
- [6] Nello Blaser, Morten Brun, Odin Hoff Gardaa, and Lars M. Salbu. Core bifiltration. Journal of Applied and Computational Topology, 9(30), 2025. doi:10.1007/s41468-025-00226-8.
- [7] Andrew J. Blumberg and Michael Lesnick. Stability of 2-parameter persistent homology. Found. Comput. Math., 24(2):385–427, 2024. doi:10.1007/S10208-022-09576-6.
- [8] Wojciech Chachólski, Martina Scolamiero, and Francesco Vaccarino. Combinatorial presentation of multidimensional persistent homology. Journal of Pure and Applied Algebra, 221(5):1055–1075, 2017. doi:10.1016/j.jpaa.2016.09.001.
- [9] Chao Chen and Michael Kerber. Persistent homology computation with a twist. In European Workshop on Computational Geometry (EuroCG), pages 197–200, 2011.
- [10] David Coeurjolly, Jaques-Olivier Lachaud, Konstantinos Katrioplas, Sébastien Loriot, Ivan Paden, Mael Rouxel-Labbé, Hossam Saeed, Jane Tournois, and Ilker O. Yaz. Polygon mesh processing. In CGAL User and Reference Manual. CGAL Editorial Board, 6.0.1 edition, 2024. URL: https://doc.cgal.org/6.0.1/Manual/packages.html#PkgPolygonMeshProcessing.
- [11] Tamal K. Dey and Florian Russold. Computing projective implicit representations from poset towers, 2025. doi:10.48550/arXiv.2505.08755.
- [12] Tamal K. Dey, Florian Russold, and Shreyas N. Samaga. Efficient Algorithms for Complexes of Persistence Modules with Applications. In Wolfgang Mulzer and Jeff M. Phillips, editors, 40th International Symposium on Computational Geometry (SoCG 2024), volume 293 of Leibniz International Proceedings in Informatics (LIPIcs), pages 51:1–51:18, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2024.51.
- [13] Kaspar Fischer, Bernd Gärtner, Thomas Herrmann, Michael Hoffmann, and Sven Schönherr. Bounding volumes. In CGAL User and Reference Manual. CGAL Editorial Board, 6.0.1 edition, 2024. URL: https://doc.cgal.org/6.0.1/Manual/packages.html#PkgBoundingVolumes.
- [14] Ulderico Fugacci and Michael Kerber. Chunk Reduction for Multi-Parameter Persistent Homology. In Gill Barequet and Yusu Wang, editors, 35th International Symposium on Computational Geometry (SoCG 2019), volume 129 of Leibniz International Proceedings in Informatics (LIPIcs), pages 37:1–37:14, Dagstuhl, Germany, 2019. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2019.37.
- [15] Ulderico Fugacci, Michael Kerber, and Alexander Rolle. Compression for 2-parameter persistent homology. Computational Geometry, 109:101940, 2023. doi:10.1016/j.comgeo.2022.101940.
- [16] Michael Kerber. multi-chunk. https://bitbucket.org/mkerber/multi_chunk/src/master/, 2021. Accessed: 2025-12-02.
- [17] Michael Kerber and Michael Lesnick. The scc2020 format. https://bitbucket.org/mkerber/chain_complex_format/src/master/, 2021. Accessed: 2025-12-02.
- [18] Michael Kerber and Alexander Rolle. Fast minimal presentations of bi-graded persistence modules. In 2021 Proceedings of the Symposium on Algorithm Engineering and Experiments (ALENEX), pages 207–220, 2021. Software available at https://bitbucket.org/mkerber/mpfree/src/master/. doi:10.1137/1.9781611976472.16.
- [19] Michael Lesnick and Matthew Wright. Interactive visualization of 2-d persistence modules, 2015. arXiv:1512.00180.
- [20] Michael Lesnick and Matthew Wright. Computing minimal presentations and bigraded betti numbers of 2-parameter persistent homology. SIAM Journal on Applied Algebra and Geometry, 6(2):267–298, 2022. doi:10.1137/20M1388425.
- [21] Ezra Miller and Bernd Sturmfels. Combinatorial Commutative Algebra. Graduate Texts in Mathematics, 227. Springer New York, New York, NY, 2005.
- [22] Dmitriy Morozov and Luis Scoccola. Computing Betti tables and minimal presentations of zero-dimensional persistent homology. In Oswin Aichholzer and Haitao Wang, editors, 41st International Symposium on Computational Geometry, SoCG 2025, Kanazawa, Japan, June 23-27, 2025, volume 332 of LIPIcs, pages 69:1–69:15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. doi:10.4230/LIPIcs.SOCG.2025.69.
- [23] Alexander Rolle. The Degree-Rips Complexes of an Annulus with Outliers. In Xavier Goaoc and Michael Kerber, editors, 38th International Symposium on Computational Geometry (SoCG 2022), volume 224 of Leibniz International Proceedings in Informatics (LIPIcs), pages 58:1–58:14, Dagstuhl, Germany, 2022. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2022.58.
- [24] Alexander Rolle and Luis Scoccola. Stable and consistent density-based clustering via multiparameter persistence. Journal of Machine Learning Research, 25(258):1–74, 2024.
- [25] Gregory G. Smith and Mike Stillman. Complexes: beta testing new version of chain complexes. Version 1.0. A Macaulay2 package available at https://github.com/Macaulay2/M2/tree/stable/M2/Macaulay2/packages. Accessed: 2025-12-02.
- [26] Hans Tangelder and Andreas Fabri. dD spatial searching. In CGAL User and Reference Manual. CGAL Editorial Board, 6.0.1 edition, 2024. URL: https://doc.cgal.org/6.0.1/Manual/packages.html#PkgSpatialSearchingD.
