Abstract 1 Introduction 2 Bifiltered chain complexes 3 Free implicit representations of homology 4 Path algorithm 5 Log-path algorithm 6 Experimental evaluation 7 Discussion References

Fast Free Resolutions of Bifiltered Chain Complexes

Ulrich Bauer ORCID Department of Mathematics and MDSI and MCML, Technical University of Munich, Germany    Tamal K. Dey ORCID Department of Computer Science, Purdue University, West Lafayette, IN, USA    Michael Kerber ORCID Institute of Geometry, Graz University of Technology, Austria    Florian Russold ORCID Institute of Geometry, Graz University of Technology, Austria    Matthias Söls ORCID Department of Mathematics, Technical University of Munich, Germany
Institute of Geometry, Graz University of Technology, Austria
Abstract

In a k-critical bifiltration, every simplex enters along a staircase with at most k steps. Examples with k>1 include degree-Rips bifiltrations and models of the multicover bifiltration. We consider the problem of converting a k-critical bifiltration into a 1-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 k-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 Bifiltrations
Funding:
Tamal K. Dey: NSF grants DMS-2301360 and CCF-2437030.
Michael Kerber: Austrian Science Fund (FWF) grant 10.55776/P33765.
Florian Russold: Austrian Science Fund (FWF) grants 10.55776/P33765 and 10.55776/W1230.
Matthias Söls: Austrian Science Fund (FWF) grants 10.55776/P33765 and 10.55776/W1230.
Copyright and License:
[Uncaptioned image] © Ulrich Bauer, Tamal K. Dey, Michael Kerber, Florian Russold, and Matthias Söls; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Mathematics of computing Algebraic topology
Related Version:
Full Version: https://arxiv.org/abs/2512.08652 [3]
Supplementary Material:
Software: https://doi.org/10.3217/y06aq-p6a53
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

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 2 that grows when increasing the parameters. We refer to the parameter set 2 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 1-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 k-critical if the support of a simplex is the upward closure of at most k elements; see Figure 1 for a visualization.

Figure 1: The bifiltration on the left is 1-critical while the bifiltration on the right is 3-critical. The support of every simplex is an upset, as visualized for two edges (red and blue, respectively).

A bifiltration gives rise to a bifiltered chain complex C

with the k-simplices at a given grade forming the basis of the k-chains at that grade. Free and k-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 C:Cm+1CmCm1 of a chain complex, the authors describe an algorithm to compute a free chain complex F:Fm+1FmFm1 such that Hm(C) and Hm(F) are isomorphic, that is, a free implicit representation. This algorithm suffices if one is interested in a presentation of Hm(C) 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 k-critical simplex in dimension p into a sequence of k free copies, with consecutive copies related by (p+1)-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 O(n2), where n 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 O(nlog2n).

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 (O(nlog2n) instead of O(n2), where n 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 k-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 (𝒦s)s2 such that 𝒦s𝒦t whenever st (which means that s1t1 and s2t2). As shown in Figure 1, each simplex σ enters 𝒦 along a staircase bounding the support of σ, denoted supp(σ), which is an upset (an upward closed subset of 2). There is a unique minimal set of grades 𝒢(σ):={x1,,xm}2 such that supp(σ)={s2xis}. If mk for each σ𝒦, then the bifiltration is k-critical.

Bipersistence modules.

Simplicial bifiltrations give rise to bifiltered chain complexes. We first describe the elementary building blocks. Each p-simplex σ has a support supp(σ) with minimal generating set 𝒢(σ)={x1,,xm}, determining an upset module U{x1,,xm} (which we also denote by Uσ for brevity) given by

(Uσ)s :={𝕜,if xis,0otherwise and(Uσ)s,t ={id𝕜,if xis,0otherwise

as illustrated in Figure 2. This is a special case of a bipersistence module M, which is a family (Ms)s2 of vector spaces over a field 𝕜 together with a family of homomorphisms (Ms,t:MsMt)st2. Although our results extend to arbitrary fields straightforwardly, we will stick to the case 𝕜=2 in order to simplify the exposition. A morphism of bipersistence modules φ:MN is a natural transformation, that is, a family of linear maps (fs)s2 that commute with the structure maps of M and N: ftMs,t=Ns,tfs for st.

A direct sum of upset modules, each generated by a single grade, is called free. A basis of a free bipersistence module F is a set of elements {bx1,,bxn} where each bxiFxi, such that every vFy, for any grade y, 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 zFz). Note that the grades appearing in this linear combination with a non-zero coefficient must be less or equal to y. A morphism f between free modules is then determined by the images of the basis elements for the domain, and can be encoded by a matrix [f].

Figure 2: The upset module Uσ induced by the simplex σ.

Chain complexes.

The upset modules associated to the simplices assemble to

,

which is a bifiltered chain complex with Ci:=σ𝒦(i)Uσ and boundary maps i:CiCi1 inherited from the simplicial complex 𝒦, satisfying ii+1=0. The notion of a k-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 F with each Fi 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 FC that induces an isomorphism Hi(F)Hi(C) on homology for each i0. 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 𝕜=2. 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 F of our input chain complex C, again represented in the same data format.

3 Free implicit representations of homology

FI-reps.

To compute the homology Hm(C) of a k-critical chain complex in a chosen dimension m, Chacholski, Scolamiero, and Vaccarino [8] provide a procedure to construct a free chain complex segment X𝑓Y𝑔Z from the input segment

Cm1mCmm+1Cm+1. (1)

such that Hm(C)kerf/img. The pair of graded matrices ([f],[g]) is called a free implicit representation (FI-rep) of Hm(C) [20], and it serves as input for the computation of minimal presentations of Hm(C) [20, 18].

The Chacholski–Scolamiero–Vaccarino algorithm.

We consider an input complex C induced by a simplicial bifiltration 𝒦. The first step is to extend each Uσ in Cm1, induced by an (m1)-simplex σ, to a free upset module U{0}. The resulting free module Dm1σ𝒦(m1)U{0} , whose basis we denote by {bσ0}σ𝒦(m1), contains Cm1 as a submodule, since the support of Uσ is contained in the support of U{0}. Thus, postcomposing m with this submodule inclusion does not affect the kernel: we have kerm=kerιm.

As a second step, we cover each Uσ in Cm+1, induced by an (m+1)-simplex σ by a free bipersistence module. This means that we replace each upset module Uσ by the free module Gσxi𝒢(σ)U{xi}, connected to the upset module by a surjection GσUσ since the support of Gσ equals the support of Uσ. We call the basis elements gσxi the generators of Uσ. The module Gm+1 arises from Cm+1 by covering Uσ by Gσ for each (m+1)-simplex via a canonical surjection . Hence, precomposing m+1 with αm+1 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 Cm. We first construct Gm analogously to Gm+1, by substituting each Uσ in Cm by Gσ. Precomposing ιm with the surjection yields a map γιmαm:GmDm1, as depicted in (3). For σ𝒦(m) with σ=τ0++τm, the resulting map γ sends a generator gσx in Gm to bτ00++bτm0 in Dm1.

(3)

Replacing Cm by Gm makes it necessary to also replace the map m+1αm+1:Gm+1Cm by a map fm+10:Gm+1Gm, representing m+1 on the generators and also making the diagram commute. This map fm+10 sends each generator gσx of an (m+1)-simplex σ with σ=τ0++τm to fm+10(gσx)=gτ0y0++gτmym, where each gτiyi is a generator of τi chosen such that its grade satisfies yix; such a yi always exists because the faces τi of a simplex σ are present in the bifiltration whenever σ itself is present. The map fm+10 thus makes the square in (3) commute and is therefore called a lift of m+1. See Figure 3 for an illustration.

Figure 3: fm+10 sends each generator gσx to a generator gτy of the facet τ of σ whose grade y is in the downset of x (say, with the smallest first coordinate).

Note that the kernel of γ may not be isomorphic to the kernel of m; the surjection αm maps each generator gσx of an m-simplex in Gm to the same potential cycle in Cm, thus increasing the dimension of the kernel. This can be resolved by relating these generators appropriately. Assume that the generators gσx1,,gσxk of Uσ are ordered w.r.t. the first coordinate of their grades. To represent Uσ correctly, two consecutive generators gσxi and gσxi+1 have to be identified at the join yi=xixi+1 of their grades by a relation rσyi. With the free bipersistence module RσyiU{yi} with basis {rσyi}i, we can present Uσ by generators and relations via

(4)

where pσ1(rσyi)=gσxi+gσxi+1. Since pσ1 is injective, ασ is surjective, and kerασ=impσ1, the sequence in (4) is a short exact sequence. This means that (Gσpσ1Rσ,ασ) already determines a free resolution of Uσ, as defined in Section 2, where Uσ is considered as a chain complex concentrated in degree 0.

The free resolution in Diagram 4 has a simple combinatorial structure, given by a path graph 𝒫σ with k vertices corresponding to the generators gσxi and k1 edges {gσxi,gσxi+1} corresponding to the relations rσyi. Note that vertices and edges implicitly carry the grades of the generators and relations. The morphism pσ1 is represented by the (graded) incidence matrix of the graph. We call this free resolution the path resolution of Uσ, see Figure 4. Note that a path resolution is a special case of a cellular resolution [5, 21].

Figure 4: The top row illustrates the free resolution of Uσ as in Diagram 4 and the middle row shows its path resolution. We often visualize both at once as in the bottom row.

We now use the free resolution to replace the map m+1αm+1 in (2), assembling the following output complex from (3)

(5)

By construction, the homology of this complex segment in degree m is isomorphic to that of (2), and hence to that of the input complex.

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 C, thus preserving homology in all dimensions. For this problem, extending the codomain of i:CiCi1 to a free module generated in degree 0, as done in the Chacholski–Scolamiero–Vaccarino algorithm, is not feasible anymore, since this changes Hi1(C). Instead, we now carry out the step of substituting Ci by its free resolution Gipi1Ri0 in every dimension i and replacing i+1 by the (zeroth) lifts fi+10:Gi+1Gi, yielding maps (fi+10pi1) as illustrated in (6).

(6)

However, the sequence of maps, arising from this construction, does not yield a chain complex. Given a relation rσyj in Ri, we obtain

fi0pi1(rσyj)=fi0(gσxj)+fi0(gσxj+1)=gτ0z1++gτizi+gτ0z1++gτizi.

This term (also the term fi10fi0) may not vanish, since the generators of σ may be sent to different generators of its boundary simplices τj by fi0, i.e., gτjzjgτjzj. However, it vanishes modulo relations, in the sense that its representative vanishes in Gi1/impi11, see Lemma 1.

Lemma 1 (Path Lemma).

For any gτxj, gτx in Gi1, there is a unique set of distinct relations rτwj,,rτw1 in Ri1 such that pi11(rτwj++rτw1)=gτxj+gτx.

Proof.

This can be seen combinatorially. The free resolution of Uτ corresponds to the path graph 𝒫τ, in the sense that the restriction of pi11 to a map RτGτ corresponds to the boundary map of the path graph. The relations rτwj,,rτw1 then define the unique path connecting the vertices gτxj and gτx in 𝒫τ.

Figure 5: fi1 sends each edge rσy to the path connecting the images of its endpoints under fi0.

The map pi1 sends the edge rσyj of 𝒫σ to the vertices gσxj and gσxj+1 which in turn are mapped to gτjzj and gτjzj on 𝒫τj by fi0. We can therefore modify the boundary map in (6) by additionally sending rσyj to the path rτjw1++rτjw guaranteed by Lemma 1, see Figure 5. This defines a correction term fi1:RiRi1 such that pi11fi1=fi0pi1. The maps fi1 are called the first lifts of i.

Even after adding the correction term fi1 to (6), the resulting maps may still fail to be boundary maps, since the composition fi10fi0(gσx) need not vanish for each generator gσx in Gi, as seen in Figure 6. Again, fi10fi0(gσx) is a sum consisting of pairs gτy,gτy of possibly different generators of the same simplex τ, which can be connected by a path of relations as above. A second correction term hi0:GiRi2 is defined analogously to the lifts fi1. By construction, hi0 satisfies pi21hi0=fi10fi0, making the following diagram commute:

(7)

Adding hi0 and fi1 to the boundary maps in (6) yields the desired free resolution of C. 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 C.

Figure 6: Construction of Diagram 7 for the bifiltration on the bottom left. The boundary defect f01f110, can be repaired by adding the red correction morphism which corresponds to a change of the boundary of T1 in the bottom-middle cell complex. This yields the bottom-right output.

Path algorithm.

For the description of the algorithm and its asymptotic time complexity, we assume that the input C is induced by a k-critical bifiltration of a simplicial complex with fixed dimension d, 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 pi1,fi0,fi1 and hi0 (which together form the boundary maps of the free resolution). The output is initialized as an empty list.

  1. 1.

    Compute the bases of GiRi1 and the matrices [pi1]. For each i-simplex σ and xj𝒢(σ), add a generator gσxj to Gi. For any two consecutive xj,xj+1𝒢(σ), add a relation rσyj with yj=xjxj+1 to Ri. Moreover, define pi1(rσyj)gσxj+gσxj+1.

  2. 2.

    Compute the matrices [fi0]. For each generator gσx in Gi, find generators gτ0x0,,gτixi for τ0++τi=σ such that xjx and define fi0(gσx)gτ0x0++gτixi.

  3. 3.

    Compute [fi1] and [hi0]. For [fi1], perform a matrix multiplication [fi0][pi1]. The resulting columns are indexed by the relations rσy in Ri and consist of one pair of generators gτzj,gτz for each facet τ of σ. Such a pair is connected by a path cτ:=rτwj++rτw in 𝒫τ, and we set fi1(rσy):=τcτ; see Figure 7. For [hi0], proceed analogously to multiply [fi10][fi0]. The resulting columns are indexed by the generators gσx in Gi and consist of one pair of generators gτzj,gτz in Gi2 for each codimension 2 face τ of σ. Such a pair is connected by a path cτ:=rτwj++rτw in 𝒫τ, and we set hi0(gσx):=τcτ.

Figure 7: Construction of fi1. The relation res12 is mapped to the paths rwz23+rwz34 and rvy12++rvy56 in the path resolutions of w and v, highlighted in red.

Complexity.

The running time of the path algorithm is O(nk) for a k-critical bifiltration of description size n; 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 Ω(nk) in the worst-case. The reason is that the paths in the computation of fi1 and hi0 can be of size up to k, and many simplices may require such long paths in the worst case. Figure 8 gives a construction for which the matrix [h20] is of size Ω(nk); see Figure 15 in [3] for a similar construction for [f11].

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 k-critical simplicial bifiltration of description size n for which the path algorithm computes a free resolution represented by matrices of description size Ω(nk). This free resolution is minimal, and no other choice of basis yields a smaller description size.

Figure 8: The wheel bifiltration consists of +1 0-simplices, 1-simplices and 2-simplices, with =8 in this case. The only -critical 0-simplex is m entering the bifiltration along the blue staircase. This forces f10 to map all generators of the orange (resp. green) 1-simplices to a generator of m with orange (resp. green) grade. The composition f10f20 then maps each generator of a purple 2-cell to the sum of a generator of m with orange grade and one with a green grade. The orange and green generators of m are connected by 1 relations. This yields 1 non-zero entries in each of the columns of [hi0], making it dense.

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 fi1 and hi0 in a simple way. In the worst case, many generators and relations are mapped to long paths, making the matrices [fi1] and [hi0] dense (Ω(nk) size) and leading to a quadratic running time of Θ(nk) 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 𝒢(σ)={x1,,xnσ} generating supp(σ) are totally ordered (by their first coordinate). Now any two vertices gσxj and gσx with j< are connected by an additional shortcut edge if there are numbers s0,t>0 with j=s2t and =(s+1)2t. Extending 𝒫σ by this edge corresponds to adding a relation rσz to Rσ, where pσ(rσz)=gσxj+gσx and z=xjx. In total, only O(nσ) many edges are added.

This construction ensures that any two vertices gσxj and gσx with j< are connected by a monotone path of length logarithmic in nσ. A shortest monotone path can be constructed in a greedy way. We start in gσxj and take the longest possible edge in each step that does not overshoot gσx. We conclude the following extension of Lemma 1 (proved in [3, B.1]).

Figure 9: Log-path resolution labeled by the grades of its generators, relations and syzygies.
Figure 10: The new resolution of length 2 of an upset module Uσ.
Lemma 4 (Log-path Lemma).

For any gσxj, gσx in Gσ, there exist rσy1,,rσym in Rσ with m=O(lognσ) such that pσ1(rσy1++rσym)=gσxj+gσx. Moreover, the elements rσy1,,rσym can be computed in O(lognσ) 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 hi0 and fi1 use Lemma 4 instead of Lemma 1. Then, the number of nonzero boundary coefficients for every generator and relation has only size O(lognσ) instead of O(nσ), which would lead to an output boundary matrix with O(nlogk) 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 hi0fi+10+fi11hi+10 and hi0pi1+fi11fi1 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 rσy, the terms hi0pi1(rσy) and fi11fi1(rσy), when restricted to a component, may correspond to different paths connecting the same endpoints and may therefore enclose a cycle.

Figure 11: Cycle formed by paths h0p1(rσy) and f1f1(rσy) and its filling triangles h1(rσy).

Any such cycle constitutes an obstruction to the vanishing of hi0pi1+fi11fi1. 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 sσz for Sσ correspond to the triangles with vertex grades (x(s1)2t,xs2t,x(s+1)2t) for any odd s>0; see Figure 9. The grade z is given by the grade of the longest edge, that is, x(s1)2tx(s+1)2t. The map pσ2 is defined by sending sσz to the sum of the three edges of the triangle. We call (8) the log-path resolution of Uσ, noting that it is a bifiltered two-dimensional simplicial chain complex σ. Its construction yields the following property:

Lemma 5.

Let rσy1,,rσyl be a cycle in Rσ. Then there exists a unique chain sσz1++sσzq of ql2 elements in Sσ such that pσ2(sσz1++sσzq)=rσy1++rσyl. Moreover, this chain can be computed in O(l)=O(logk) 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 xs2t of the cycle, see Figure 12. See B.2 of the full version [3] for details.

Figure 12: A simple red cycle in for k=4, together with the filling triangles in blue corresponding to the non-extremal vertices (with respect to the total order). Here each triangle (x(s1)2t,xs2t,x(s+1)2t), with s>1 odd, corresponds bijectively to its middle vertex xs2t.

Log-path algorithm.

We now describe the algorithm, again assuming that the input is a k-critical simplicial bifiltration of size n and constant dimension d with chain complex C.

Step 1: Compute the log-path resolution i:Gipi1Ripi2Si of each module Ci. This requires iterating through the generators of each input simplex and adding a total of O(n) relations and syzygies, which takes O(n) time in total.

Step 2: Compute fi0:GiGi1 in O(nlogk) time as in Section 4.

Step 3: Compute the maps fi1:RiRi1 and hi0:GiRi2 as in the path algorithm, except that paths between gσxj,gσx coming from the same simplex σ are computed via Lemma 4. We can find every path in O(logk) time and compute matrices [fi1] and [hi0] with at most O(logk) entries per column in a total running time of O(nlogk) 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 fi2, hi1, and Hi0:

(10)

Commutativity of Diagram (9) yields the following observation

Lemma 6.

The following morphisms map to the kernel of pi1:

fi+11pi+12,fi+11fi+21+hi+20pi+21,andhi+20fi+30+fi+11hi+30. (11)

The log-path resolution i of Ci is the direct sum of the simplicial chain complexes σ, taken over each simplex σ in Ci. The map pi1 is given by the 1-dimensional boundary map of this complex, and hence its kernel is the collection of cycles in the 1-skeletons of σ. More specifically, each triangle sσz in Si+1 is sent by pi+12 to its boundary, a sum of three edges.

By Lemma 6, applying fi+11 to this boundary yields another cycle in Ri, which by construction of i decomposes as τcτ for τ running over the facets of σ. For each such cycle cτ, by Lemma 5 there is a unique chain bτ in Si such that pi2(bτ)=cτ, as illustrated in Figure 13. The map fi+12 is then defined via fi+12(sσz):=τbτ, with τ running over the facets of σ. Thus fi+12 repairs the boundary defect fi+11pi+12 as fi+11pi+12=pi2fi+12.

Figure 13: Cycle f1p2(sσx) and its filling triangles f2(sσx).

Similar arguments lead to correction terms hi1, and Hi0 satisfying

hi0pi1+fi11fi1=pi22hi1 and hi10fi0+fi21hi0=pi32Hi0. (12)

Their construction is analogous to the above, and we omit the details.

Note that in each of the three cases fi+12, hi1, and Hi0, 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 [hi0] and [fi1]. More precisely, the column sparsity of [fi1] and [hi0] is O(logk), while in [pi2] every column has exactly three non-zero entries. All sparse matrix products in Step 4 can thus be computed in O(nlog2k) and the worst case column sparsity of the results is O(log2k). The resulting matrices contain cycles of length O(log2k), which can be filled by triangles in O(log2k) time. Overall, Step 4 takes O(nlog2k) time.

We can now assemble the output chain complex as

(13)
Theorem 7.

The chain complex (13) is a free resolution of C.

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 C induced by a k-critical bifiltration of description size n can be computed in O(nlog2k) time and has O(nlog2k) 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 5, from the “swiss roll” embedded in 3, and from the 7-dimensional unit cube, using the python package tadasets. In all cases, we generated the complex up to 3-simplices.

Furthermore, we used a simple method for generating bifiltrations of a simplicial complex equipped with two non-negative real-valued functions f0 and f1 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 logn-nearest neighbors as filter functions. In all cases, we generated k-critical instances with k=2,4,8. We computed the filtration values with CGAL [10, 26, 13].

Figure 14: The figure shows the construction for two simplices σ and τ. The bigrades (0,f0(σ)) and (f1(σ),0) are connected by a line segment (dotted line), and the positive quadrant is equally dissected using (k2) lines through the origin (blue dashed lines, here k=4). The intersection of dotted and dashed lines yield (k2) further bigrades for σ. The staircase for σ is drawn in solid. The same construction is done for τ; note that if f0(σ)f0(τ) and f1(σ)f1(τ), the staircase for σ is below the staircase for τ. In particular, the construction bifilters a simplicial complex if the functions f0 and f1 respect its face relations.

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.

Table 1: Comparison of the path and the log-path algorithm. All times are in seconds. The “size” columns give the size of the input and output files. For deg-Rips and Delaunay, the numbers are averaged over 5 independently generated instances.

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 3, so that computing the presentation for H2 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 3-simplices are killing 2-cycles, by reducing the boundary matrix for 2- and 3-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 Hk still has to find the bounding (k+1)-simplices for every k, 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 k allows this approach to disregard all chains in dimensions other than k+1, k, or k1.

Table 2: Computing all minimal presentations with the path algorithm and with the Chacholski–Scolamiero–Vaccarino algorithm. All running times are in seconds.

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 2[x,y], 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 2, 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 3 (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.