Abstract 1 Introduction 2 Preliminaries 3 Induced matchings, adversarial robustness and homological cuts 4 Complexity of the minimum homological cut problem 5 Adversarial robustness for the Rips filtration References

Robustness of Persistent Topological Features and Minimum Homological Cuts

Pepijn Roos Hoefgeest KTH Royal Institute of Technology Stockholm, Sweden    Lucas Slot ORCID University of Amsterdam, The Netherlands
Abstract

Persistent homology is a popular method for computing topological features of (metric) data. Standard approaches based on the Čech or Rips filtration are stable under small perturbations of the data, but highly sensitive to outliers. This lack of robustness has been frequently addressed in the literature. In this paper, we take a novel perspective by asking the following question: When can we guarantee that an observed persistent feature (a bar) is inherent to the underlying data in the presence of a limited number of unknown, arbitrary outliers. We formalize this question by introducing the notion of adversarial robustness, and study the problem of deciding whether a given bar in the barcode of a filtered simplicial complex is adversarially robust. We show that this problem is essentially equivalent to a homological variant of the minimum cut problem in simplicial complexes, which we believe to be of independent interest. As our main technical contribution, we provide the first computational complexity results for this problem, consisting of an efficient algorithm in 0-dimensional homology, NP-hardness for the general problem, and an efficient algorithm for codimension-1 in n-dimensional complexes embedded in n. We also analyze its natural linear programming relaxation, whose dual defines a homological analog of the max-flow problem in graphs. We show that a max-flow/min-cut theorem does not hold in our setting, implying that the LP relaxation is not tight in general. Finally, in the special case of the Rips filtration, we provide a global heuristic based on the Hausdorff distance that guarantees adversarial robustness of sufficiently long bars. This connects adversarial robustness to standard stability theorems in persistent homology.

Keywords and phrases:
Topological Data Analysis, Persistent Homology, Min-cut Max-flow, Robustness, Vietoris-Rips Filtration
Funding:
Pepijn Roos Hoefgeest: This work was partially supported by the Wallenberg AI, Autonomous Systems and Software Program (WASP) funded by the Knut and Alice Wallenberg Foundation.
Lucas Slot: This work was completed while the author was at ETH Zurich, and supported by the Swiss National Science Foundation (SNSF), grant no. 10004947.
Copyright and License:
[Uncaptioned image] © Pepijn Roos Hoefgeest and Lucas Slot; 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/2602.23154 [28]
Editors:
Hee-Kap Ahn, Michael Hoffmann, and Amir Nayyeri

1 Introduction

Persistent homology is a central method in topological data analysis. It is used to extract topological features from (metric) data across a range of spatial scales. At a high level, it works as follows. First, we represent our data by a nested sequence of simplicial complexes, called a filtration. An important example is the (Vietoris-)Rips filtration, which arises from pairwise distances between points in a metric space. The evolution of the homology groups of the complexes in this filtration (i.e., its persistent homology) can be captured by a barcode, which consists of a (multi)set of intervals (or bars) whose endpoints represent the appearance (birth) and disappearance (death) of a homology class at a particular step in the filtration. Barcodes serve as a topological signature of the underlying data set. We refer to [19, 21, 26, 32] for surveys on persistent homology and its many applications.

Stability and robustness.

An important property of barcodes is their stability under small perturbations: For example, the Bottleneck distance between the barcodes of Rips filtrations may be bounded in terms of the (Gromov-)Hausdorff distance between their underlying metric spaces [16]. On the other hand, barcodes are (in)famously sensitive to outliers. Indeed, even a single outlier may cause arbitrarily large changes in the barcode, which makes persistent homology unreliable in the presence of noise. This issue has been frequently addressed in the literature; we highlight three approaches. First, one may consider alternative metric interpretations of the data which take density into account, and whose resulting barcodes are (hopefully) more robust. For instance, a filtration based on the distance-to-measure function [14] achieves stability with respect to the Wasserstein distance, which tolerates small amounts of outliers [8]. See [24, 27] for similar approaches using kernel functions. A downside is that these filtrations are difficult to interpret geometrically, often depend on some choice of secondary parameters, and are computationally expensive, making them less suited for topological inference than the Rips filtration. A second approach is to (cleverly) subsample the data to determine so-called landmarks, and then construct a filtration based on these landmarks. An example is the (lazy) witness filtration [29]. Empirically, it appears that the landmarks may be chosen in a way that reduces the sensitivity to outliers (in the original data); see [30]. However, this effect is hard to quantify theoretically. Third, one may consider filtrations indexed by multiple parameters, modeling for example both scale and density. The persistent homology of such bifiltrations can be provably robust to certain types of noise [4]. However, multiparameter persistence modules are significantly more difficult to represent than their one-parameter counterparts. In particular, they generally do not have a barcode, which is a serious theoretical and practical drawback; see [7].

A new notion of robustness.

In this paper, we take a different perspective. Rather than modify existing filtrations to increase their tolerance to noise, we ask the following question.

Question 1.

When can we guarantee that an observed persistent feature (a bar) arising from a filtration is inherent to the underlying data in the presence of (adversarial) noise?

To address this question, we introduce a new notion of outlier-robustness of persistent topological features (bars) arising from a filtration of a simplicial complex, which we call adversarial robustness. Before giving a formal definition, it is illustrative to first consider the Rips filtration on a (finite) set of metric data. Intuitively speaking, we say that a persistent feature of the Rips filtration is k-adversarially robust if it “continues to exist” after removing any k points from the data set. In this way, k-adversarial robustness certifies that a feature is inherent to an underlying data set even after adding (at most k) unknown, arbitrary outliers. Alternatively, the largest k for which a feature is k-adversarially robust can be thought of as a measure of robustness of that feature (possibly after dividing by the total number of data points). With respect to the earlier work outlined above, a key advantage of our approach is that we make no structural assumptions on the outliers.

In what follows, we give a formal definition of adversarial robustness. The key ingredient is the induced matching between barcodes [2], which allows us to relate the persistent features of a filtered simplicial complex to those of its filtered subcomplexes. Then, we study the computational problem of deciding whether a given bar is adversarially robust. To this end, we first show that adversarial robustness of a bar can be determined by solving a homological variant of the minimum cut problem in a single (unfiltered) simplicial complex. Thus, it suffices to study the complexity of that problem, which we believe to be of independent interest. We give efficient algorithms for zero-dimensional homology and complexes embedded in n. On the other hand, we show that the general problem is NP-hard. We also analyze its natural linear programming relaxation, whose dual defines a homological analog of the max-flow problem in graphs. We conclude by giving an efficiently computable heuristic for adversarial robustness in Rips filtrations, which is connected to Hausdorff stability.

1.1 Adversarially robust persistent features

Let K be a (finite) simplicial complex, and let 𝒦=(Ki)0im be a filtration of K, i.e., a sequence of simplicial complexes =K0K1Km=K. Throughout, we assume that 𝒦 is a simplex-wise filtration, i.e., for any i<m, the complex Ki+1 is obtained by adding (at most) a single simplex to Ki. Any filtration can be made simplex-wise by breaking ties (arbitrarily, but so that face relations are preserved) whenever multiple simplices are added at once, which is also what is done in practice. For p0, we denote the p-dimensional persistent homology of 𝒦 by PHp(𝒦), and we write (PHp(𝒦)) for its barcode. For AK, we write KA for the largest subcomplex of K contained in KA. That is, KA is obtained from K by removing all simplices that have a face in A. Similarly, we write 𝒦A for the filtration of KA given by (KiA)0im. There is a natural way to relate the barcodes associated with 𝒦 and 𝒦A. Namely, the inclusion KAK induces a map PHp(𝒦A)PHp(𝒦). In turn, this map induces a (partial) matching between the respective barcodes, which we denote 𝒳𝒦A𝒦. This is a special case of the so-called induced matching, which plays a crucial role in a proof of the algebraic stability theorem [2]. Generally, the induced matching is not functorial, but in the context of simplex-wise filtrations it allows us to unambiguously relate bars in the barcodes of PHp(𝒦) and PHp(𝒦A); see Section 3 for more details. This allows us to give the central definition of this paper. For s, let K(s)K denote the set of s-simplices in K.

Definition 2 (Adversarial robustness).

Let 𝒦 be a simplex-wise filtration of a simplicial complex K. Let p0, and let sp. A bar B(PHp(𝒦)) is k-adversarially robust (in degree s) if, for each subset AK(s) of size at most k, we have BIm(𝒳𝒦A𝒦).

Definition 2 guarantees that a bar is “present” in any (filtered) subcomplex of K missing at most k s-simplices. If 𝒦 is a Rips filtration, the 0-simplices (vertices) of K correspond to metric data points. Thus, k-adversarial robustness (in degree 0) of a bar means that it is present in the Rips filtration of any subset of the original data obtained by removing at most k points, matching our earlier intuitive description.

1.2 (Minimum) homological cuts

Adversarial robustness of bars is closely related to a novel homological variant of the min-cut problem in simplicial complexes, which we introduce in this work. For CK(s), we write ιKCK:Hp(KC)Hp(K) for the map induced by the inclusion KCK.

Definition 3 (homological cuts).

Let K be a simplicial complex. Let p0, and sp. We say that CK(s) is a homological s-cut for γHp(K) if γIm(ιKCK). We refer to the special cases s=0,s=1 as homological vertex and edge cuts, respectively; see Figure 1.

Figure 1: A simplicial complex K with cycles cleft,crightC1(K;) drawn in blue single arrows and red double arrows, respectively (all coefficients equal to 1). The classes [cleft] and [cright] generate H1(K;)2. On the right: two subcomplexes obtained by removing subsets C1,C2K(1) (dashed) from K, respectively. Note that C1 is an edge cut for [cleft] and [cleft+cright], but not for [cright]. On the other hand, C2 is a 1-cut for both [cleft] and [cright], but not for [cleft+cright].

To connect homological cuts to adversarial robustness, we use the fact that, for a simplex-wise filtration 𝒦, each bar B(PHp(𝒦)) corresponds to a pair (σB,τB) of simplices, whose insertions at steps i=b and i=d, respectively, represent the birth and death of any cycle representing B. These are called persistence pairs. We call the complex KB:=Kd1 the predeath complex of B. Now, the following proposition shows that adversarial robustness of B is characterized by homological cuts of [τB] in KB. We give its proof in Section 3.2.

Proposition 4.

Let p0, and let B(PHp(𝒦)) be a bar in the barcode of a simplex-wise filtration 𝒦 of a simplicial complex K. Let KB, τB be its pre-death complex and death simplex. Then, B is k-adversarially robust (in degree s) if, and only if,

[τB]Im(ιKBAKB) for all AK(s) with |A|k.

Thus, B is k-adversarially robust iff all homological s-cuts of [τB] in KB have size at least k.

The above proposition motivates our study of the following problem.

Problem 5.

The minimum homological s-cut problem asks to compute

mhc(K,γ,s):=minCK(s){|C|:C is a homological s-cut for γ}. (MHC)

We call a set C attaining the minimum above a minimum homological s-cut for γ (in K).

Apart from its connection to adversarial robustness, we believe that the minimum homological cut problem is of intrinsic interest. It is related to, but distinct from, two types of well-studied problems in computational topology. On the one hand, there are problems related to finding a smallest (or otherwise “optimal”) representing cycle of a homology class in a simplicial complex [3, 5, 12]; this is often referred to as homology localization. By contrast, the problem we consider can be thought of as cohomology localization. The computational complexity of homology localization varies based on the choice of coefficient field, the dimension of the homology group, and additional assumptions on the underlying complex. For example, while the general problem is hard [15], a linear programming relaxation yields an efficient algorithm for finding minimum weight homologous cycles over integer coefficients for complexes whose boundary matrix is totally unimodular [17]. On the other hand, there are ordinary min-cut (and max-flow) problems in graphs with topological structure, e.g., graphs that can be embedded in a surface of low genus. There, (co)homological properties of cuts (or flows) can be used to achieve algorithmic speedups with respect to the general case [10, 11, 22].

Linear programming relaxations.

As we explain in the full version of this paper [28], homological edge cuts of a class γH1(K;) are naturally related to (ordinary) cuts in graphs. Namely, we show that a minimum homological edge cut can be found by optimizing the number φ0 of non-zero coefficients of a vector φ (indexed by the edges of K) under a set of linear constraints involving the boundary matrix of K. The relaxation of this problem obtained by optimizing the 1-norm φ1 instead is a linear program. Its dual may be interpreted as a homological analog of the max-flow problem in graphs. Contrary to the graph setting, we show that there is no max-flow min-cut theorem in our case: homological max-flows are not necessarily integral, meaning the LP relaxation is not tight.

1.3 Main contributions

Complexity of the minimum homological cut problem.

We prove positive and negative results on the computational complexity of the minimum homological cut problem (MHC) introduced above, in terms of the number of simplices |K| in the complex K. By Proposition 4, these results have immediate implications on the complexity of determining adversarial robustness of bars. Our first contribution is an efficient algorithm for the case where γH0(K) is a 0-dimensional homology class, i.e., p=0.

Theorem 6.

Let K be a simplicial complex , and let γH0(K). We can compute a minimum homological vertex cut for γ in time O(|K(0)|+|K(1)|).

Theorem 6 follows from the fact that a minimum homological cut of a class in H0 is always equal to the vertex set of a connected component of K, as we show in Section 4.1.

Next, we show that finding a minimum homological cut is NP-hard, already when p=1.

Theorem 7.

For p=1 and s=1, the minimum homological s-cut problem is NP-hard. This is true in particular when homology is taken with coefficients in or /2.

We give the proof of Theorem 7 in Section 4.2. It relies on a reduction from Exact Cover by 3-Sets (X3C). In [23, pp. 246], X3C is used to show hardness of the problem of finding minimum weight solutions to linear equations. It was also used in [25] to show hardness of finding the sparsest approximate solution to a set of linear equations. As mentioned, we show in the full version of this paper [28] that (MHC) can be solved by finding the sparsest solution to a particular set of linear equations. In light of these observations, X3C is a natural candidate for showing hardness of (MHC). In our proof, we construct for any X3C-instance an equivalent instance of (MHC). Our construction relies on “gluing together” punctured discs, each representing a 3-set of the X3C-instance, to obtain a topological space which is then triangulated carefully to ensure minimum homological cuts correspond to exact covers. This approach resembles earlier work on NP-hardness in homology localization [1, 15, 20]. A distinction is that these mostly rely on reductions from SAT-problems; to the best of our knowledge, a reduction from X3C was not considered before in this context. We remark that our construction can be extended to cover the case s=0. Via Proposition 4, our result also implies that testing k-adversarial robustness of bars (in degree 0 and 1) is hard in general.

Finally, we give an efficient algorithm for the following special case, which covers, e.g., subcomplexes of the Delauney triangulation of a finite metric data set in n.

Theorem 8.

Suppose that K is an n-dimensional simplicial complex embedded in n, and let γHn1(K). We can compute a minimum homological (n1)-cut for γ in polynomial time in the number of simplices of K.

Our proof of Theorem 8 in Section 4.3 relies on Alexander duality, which can be used to construct the so-called extended dual graph of K. In [18], this graph was used to find optimal generators for certain homology classes: these correspond to minimum cuts in the graph. For us, the situation is precisely the opposite: as we will show, minimum homological cuts in K correspond to shortest paths in the extended dual graph (allowing for efficient computation). The use of the extended dual graph in homology localization dates back to [31]; see also [9].

The Rips filtration.

Complementing our hardness result, we give an efficiently computable heuristic based on the Hausdorff distance to test adversarial robustness of bars arising from the Rips filtration of a metric data set X. Namely, we show that any bar in the barcode of the Rips filtration of length at least

X,k:=maxAX,|A|kdH(XA,X)

is automatically k-adversarily robust (in degree 0)111The Rips filtration is not simplex-wise, therefore, as mentioned, we must break ties to obtain a simplex wise filtration to apply Definition 2. This result does not depend on the choice of tiebreaker.; see Section 5 for a precise statement. Moreover, we show that the parameter X,k can be computed in time O(|X|2log|X|). This result links adversarial robustness to classical stability results in persistent homology. It shows that our definition is at least as expressive as a naive definition based only on the length of bars and the Hausdorff stability of the Rips filtration. That is, sufficiently long bars are outlier-robust according to our definition (as one would expect). But importantly, our definition is also capable of recognizing relatively short bars as robust; see Figure 2.

Figure 2: Four data sets in 2, each of size 100, whose Rips filtrations each induce a 1-dimensional persistent feature. For X1 and X2, these features are not k-adversarially robust for k=10, evidenced by the subsets A1X1 and A2X2 marked in red. The points in A2 are quite dense, and so standard subsampling techniques will likely not remove them. On the other hand, the feature is 10-robust in X3, as its length exceeds X3,10, which equals dH(X3A3,X3) for the subset A3X3 marked in red (cf. Theorem 20). In X4, the feature induced by the densely sampled circle is 10-robust, even though its bar has length strictly less than X4,10 (evidenced by the set A4 marked in red).

2 Preliminaries

2.1 Simplicial complexes

An (abstract) simplicial complex (on a set Y) is a collection K of non-empty subsets σY, called simplices, such that if τK and στ, then σK. In that case, σ is called a face of τ, and τ is called a coface of σ. For AK, we denote by KA the largest subcomplex of K which does not contain any simplices in A (which is obtained by removing all simplices from K which have a face in A). For s, we write K(s) for the set of s-simplices of K, being the simplices σK with |σ|=s+1. We write V(K):=K(0) for the vertices of K, and E(K):=K(1) for its edges. If there is a p such that K(p) and K(q)= for all q>p, then we say that K is p-dimensional, and we call K a p-complex. If K is a p-complex and each simplex of K is contained in a p-simplex, then K is called a pure p-complex.

Embedded complexes.

A geometric p-simplex σ in n is the convex hull of p+1 affinely independent vectors v0,,vpn. The elements of V(σ):={v0,,vp} are called the vertices of σ. If τ is the convex hull of a subset of the vertices of σ, then τ is called a face of σ. A geometric simplicial complex K in n is a collection of geometric simplices in n with the properties that 1) the face of every simplex is in K; 2) for every pair of simplices σ,τK with non-empty intersection, στ is in K. We denote the geometric realization of K by K:=σKσn, i.e. the subset of n consisting of the union of simplices that make up K. If K is a geometric simplicial complex, then A(K):={V(σ)|σK} is an abstract simplicial complex. We say that an abstract simplicial complex L is embedded in n if LA(K) for some geometric simplicial complex K in n, and we define the geometric realization of the embedded simplicial complex L to be L:=K.

Simplicial homology.

For a field 𝔽, and p, we denote by Cp(K;𝔽) the simplicial p-chains on K. We write p:Cp(K;𝔽)Cp1(K;𝔽) for the boundary operator. We have subspaces of cycles Zp(K;𝔽)=Ker(p) and boundaries Bp(K;𝔽)=Im(p+1), and the simplicial homology of K is defined as Hp(K;𝔽)=Zp(K;𝔽)/Bp(K;𝔽). Throughout, if we omit 𝔽 from the notation, we mean homology over any field. For two complexes KK, we denote the inclusion KK by ιKK. Then, we write ιKK:Hp(K)Hp(K),[c][ιKK(c)] for the induced maps in homology (suppressing p in the notation).

2.2 Persistent homology

A persistence module is a functor M:(,)𝐯𝐞𝐜𝐭𝔽, where 𝐯𝐞𝐜𝐭𝔽 denotes the category of finitely generated vector spaces. A morphism between persistence modules M and N is a natural transformation of functors f:MN. There exists a multiset of intervals (M), called the barcode of M, that completely captures M up to isomorphism. We write 𝕀I for the interval module over I, i.e, the persistence module which is equal to 𝔽 on I, connected by identity morphisms, and 0 elsewhere. Then there is an isomorphism MI(M)𝕀I [6].

A filtration 𝒦=(Ki)0im of simplicial complexes naturally defines a persistence module PHp(𝒦), called the persistent homology of 𝒦, which is given at t by PHp(𝒦)t=Hp(Kt), and whose structure maps are maps induced by inclusions. If 𝒦 is a simplex-wise filtration, there is at most one birth or death of a bar at each step of the filtration. Hence, any bar B=[i,j)(PHp(𝒦)) then uniquely corresponds to a pair of simplices (σB,τB), inserted at steps i and j respectively. This is called a persistence pairing, and we sometimes refer to the bar as B=[σB,τB). We denote by KB:=Kd1=Kd{τB} the predeath complex of B. For a filtration 𝒦 and a non-decreasing function f:, we get a persistence module PHp(𝒦,f) given at time tR by Hp(Ksup{i:f(i)t}). We think of f as a reparametrization of the filtration. Note that if f is the identity, PHp(𝒦,f)=PHp(𝒦). For each bar B in the barcode of PHp(𝒦,f) there is a bar [i,j) in the barcode of PHp(𝒦) such that B=[f(i),f(j)).

3 Induced matchings, adversarial robustness and homological cuts

3.1 Induced matchings

While the barcode of a persistence module M is unique, the isomorphism MI(M)𝕀I is not. For a morphism f:MN, this makes it difficult to relate the barcodes (M) and (N) to one another in a way that reflects the algebraic structure of f. In [2], a procedure is described that associates a partial matching 𝒳f:(M)(N) with f, in a way that only depends on the barcodes of M, N, and Im(f), the image persistence module of f. Denote by ,dM(M) the bars in the barcode of the form [b,d) (for simplicity, we assume all intervals in the barcodes of M and N are half-open). If f is injective, it can be shown that |,dM||,dN|. Moreover, if we order the bars in both ,dM and ,dN by their length, there is an order preserving injection 𝒳fd:,dM,dN, with the property that if 𝒳fd([b,d))=[b,d), then bb. Note that if M and N come from simplex-wise filtrations, the sets ,dM and ,dN consist of at most one element. The induced matching 𝒳f is then defined as the union of the matchings 𝒳fd. If f is surjective, there is a similar way to match bars with the same birth in an order preserving way. For arbitrary f:MN, there is a factorization f:MIm(f)N of f into a composition of a surjective and an injective map. The induced matching 𝒳f is then defined as the composition of the induced matchings of MIm(f) and Im(f)N. The induced matching is not functorial in f.

A persistence module M is called ε-trivial if for each t, the internal morphism ϕtt+εM:MtMt+ε is the zero morphism. The following theorem is the main result of [2].

Theorem 9 (Induced matching theorem [2]).

Let f:MN be a morphism with ε-trivial kernel. Then each bar [b,d)(M) with db>ε is matched to a bar in (N) by 𝒳f. If coker(f) is ε-trivial, 𝒳f matches each bar [b,d)(N) with db>ε to a bar in (M).

We will need this result for our proof of Theorem 20 in Section 5.

3.2 Adversarial robustness and minimum homological cuts

In this section, we show that k-adversarial robustness of a bar can be determined by solving a minimum homological vertex cut problem. That is, we prove Proposition 4.

Proof of Proposition 4.

Let B=[b,d) be a bar in the barcode of PHp(𝒦), thus with birth simplex σB inserted at step b, and death simplex τB inserted at time d. Let KB=Kd1 be its predeath complex. Let AK(s), and write 𝒳𝒦A𝒦 for the matching induced by the inclusion 𝒦A𝒦. We show that BIm(𝒳𝒦A𝒦) if and only [τB]Im(ιKBAKB).

Note that any representative cycle for B is homologous to a scalar multiple of τB in Cp(KB), as [τB] generates the kernel of Hp(KB)Hp(KB{τB}). If BIm(𝒳𝒦A𝒦), there is thus a bar B=[b,d) in the barcode of the image module Im(PHp(𝒦A)PHp(𝒦)). Then, any representative cycle ξCp(KbA)Cp(Kb) for [b,d), when considered as a homology class [ξ]Hp(KB) through the inclusions KbAKbKB, is in the kernel of Hp(KB)Hp(KB{τB}), and is hence homologous to a scalar multiple of [τB].

Conversely, suppose that [τB] is in the image of Hp(KBA)Hp(KB), and let ξCp(KBA) be a cycle such that [ξ]=[τB]Hp(KB). Let ξ1,,ξk denote representative cycles for summands of Im(PHp(𝒦A)PHp(𝒦)) so that the [ξi] are linearly independent in Hp(KB), and [ξ]=λ1[ξ1]++λk[ξk]. Since [ξ] is a non-zero element in the kernel of the map

Im(Hp(KBA)Hp(KB))Im(Hp((KB{τB})A)Hp(KB{τB})),

we see that one of the generators ξj must be in this kernel, and thus generate a summand isomorphic to 𝕀[b,d) for some bb<d. This shows that B is in the image of 𝒳𝒦A𝒦.

4 Complexity of the minimum homological cut problem

4.1 An efficient algorithm for zero-dimensional cuts

Let γH0(K). We show that minimum homological vertex cuts for γ have a very particular structure, allowing us to compute them efficiently. Let Γ1,,ΓqV(K) be the vertex sets of the connected components of K, and let c1V(Γ1),,cqV(Γq). Then, H0(K) is generated by the classes [c1],,[cq], meaning we can write γ=i=1qλi[ci], with λi𝔽.

Proposition 10.

Let γ=i=1qλi[ci]H0(K) as in the above. A subset CV(K) is a homological vertex cut for γ iff CV(Γ) for some 1q with λ0. In particular, a homological mincut for γ is of the form C=V(Γ), where =argmini{|V(Γi)|:λi0}.

Proof.

Write V=V(K). For any AV, and any vVA we have ιKAK([v])=[v]. Furthermore, for any v,wV, we have [v]=[w] (in H0(K)) if and only if v and w lie in the same connected component of K. Since the classes [v], vVA, generate H0(KA), we thus have γIm(ιKAK) if and only if VA contains a vertex in each connected component Γi of K with λi0. Thus, γIm(ιKAK) (i.e., A is a homological cut) iff A contains all the vertices of at least one connected component Γ of K with λ0.

Proof of Theorem 6.

To determine a minimum homological vertex cut of a 0-dimensional class in a simplicial complex K, it suffices by Proposition 10 to find its connected components. We can do so in time linear in |V(K)|+|E(K)| using a depth-first search.

4.2 NP-hardness of the general problem

In this section, we prove Theorem 7. That is, we show that the minimum homological cut problem is hard when p=s=1. Our arguments apply for homology taken over any field, and even over . We use a reduction from the following NP-hard problem.

Problem 11 (Exact cover by 3-sets (X3C)).

Given a set U, and a collection 𝒮𝒫(U) of subsets of U, each of size exactly 3, determine whether 𝒮 contains an exact cover of U, i.e., whether there is an 𝒮𝒮 so that each element of U occurs in exactly one element of 𝒮.

We proceed as follows: To a given instance (U,𝒮) of the X3C problem, we associate a topological space X=X(U,𝒮), together with a specific homology class γH1(X) (Construction 12). Then, we construct a triangulation K=K(U,𝒮) of this space, which satisfies useful technical properties (Lemma 13). Finally, we show that if there exists a minimum cut for γ in K of a particular size, there exists a solution to the X3C instance, and vice versa.

Construction 12.

Let (U,𝒮) be an instance of exact cover by 3-sets. For each uU, denote by 𝒮u={Su,1,Su,mu}𝒮 the elements of 𝒮 containing u. Let Fu denote the surface obtained from a 2-dimensional disk by removing |𝒮u| open disks from its interior. Label the outer boundary of Fu by u, and the interior boundary components by the respective elements of 𝒮 they correspond to. Choose an orientation for Fu, inducing an orientation on its boundary components. Choose generators for the homology groups of the boundary components such that [Fu]=[u]+[Su,1]++[Su,mu]; see Figure 3.

We obtain X=X(U,𝒮) from uUFu by gluing together the surfaces in the following way: We identify all outer boundary components with each other along orientation preserving homeomorphisms, so that [u]=[v] in H1(X) for each u,vU. We also identify all interior boundary components with each other that have the same label, again in an orientation preserving way. This means that if S={u,v,w}, then after gluing S=Su,iu=Sv,iv=Sw,iw, and [Su,iu]=[Sv,iv]=[Sw,iw] in H1(X). Finally, we set γ=[u]H1(X) for some uU.

Figure 3: Surfaces Fu1 and Fu2 involved in the construction of X(U,𝒮) for (U,𝒮)=({u1,u2,u3,u4},{S1,S2,S3}) with S1={u1,u2,u3},S2={u1,u2,u4},S3={u1,u3,u4}. The surfaces are glued along boundary components with the same label, in an orientation preserving way.
Lemma 13.

Let (U,𝒮) be an instance of X3C, and let k=maxuU|{S𝒮|uS}|. Set c=c(U,𝒮):=5log3(k)+3. There exists a triangulation K=K(U,𝒮) for the space X(U,𝒮) of Construction 12, obtained by constructing a triangulation Lu for each surface Fu and gluing them together, that has the following properties:

  1. 1.

    K is a pure 2-complex consisting of at most O(|U||S|) 2-simplices;

  2. 2.

    A minimum homology edge cut for [u]H1(Lu) consists of precisely c+2 edges;

  3. 3.

    A minimum homology edge cut for [u] contains precisely one edge from u, and precisely one edge from any of the interior boundary components Su,i. For any edge in u and any edge in any Su,i, there is a minimum cut for [u] containing both those edges.

Proof.

We give an explicit construction in the full version of this paper [28]. Using Lemma 13, we can sketch our reduction; a complete proof is given in the full version [28].

Proof sketch of Theorem 7.

We show that there exists a solution to the X3C-instance (U,𝒮) if and only if there exists a cut for γH1(K(U,𝒮)) consisting of at most c|U|+|U|3+1 edges. If 𝒮𝒮 is a solution to (U,𝒮), for each uU, we pick a cut Cu for [u]H1(Lu) with the property that it contains one edge in the boundary labelled by u, and one in the boundary labeled by the set SuS for which uSu. If we consistently choose the same edges in the intersections between surfaces, we can verify that C=uUCu is a cut for γ consisting of precisely c|U|+|U|3+1 edges. Conversely, suppose C is any cut for γ. Then it can be shown that for each uU, CLu is a cut for [u]H1(Lu). By point 3 of Lemma 13, we then obtain a cover 𝒞C for U. It can be checked that |C|c|U|+|𝒞C|+1. It follows that if |C|c|U|+|U|3+1, then |𝒞C|=|U|3, and so 𝒞C is an exact cover.

4.3 An efficient algorithm for embedded complexes

In this section, we prove Theorem 8. To construct an efficient algorithm, we rely on Alexander duality. Recall that, for an embedded complex Kn, Alexander duality gives an isomorphism Hn1(K)H~0(nK) between (n1)-dimensional homology and 0-dimensional (reduced) singular cohomology. For a subcomplex LK, a class γHn1(K) lies in the image of Hn1(L)Hn1(K) if and only if its Alexander dual lies in the image of the corresponding map H~0(nL)H~0(nK). The latter map can be understood via an extension of the dual graph of K.

Definition 14 (Dual graph).

Let K be a simplicial complex. We denote by 𝒢K the dual graph of K, which has a vertex for each n-simplex of K, and which has an edge between each pair of vertices whose corresponding simplices share an (n1)-dimensional face.

Definition 15 (Extended dual graph).

For an embedded simplicial complex K, the extended dual graph 𝒢K of K has one vertex for each n-simplex of K and one vertex for each component of nK. For each vertex v, we denote by Rvn the interior of either the simplex or the connected component of nK to which v corresponds. For each (n1)-simplex τ of K, 𝒢K has an edge (v,w) between the vertices for which τRv¯Rw¯ (possibly allowing loops and multi edges). We denote the set of vertices corresponding to connected components of nK by VnK, and the vertex corresponding to the unbounded component by v.

Figure 4: Left: The embedded simplicial complex K of Figure 1 with a class γH1(K) (blue, single arrows). Center: The (extended) dual graph of K. The vertices VnK={v1,v2,v} and edges added to obtain 𝒢K from 𝒢K are in red. Only some of the edges incident to v are drawn. Right: A shortest path v1v (green, single arrows) and a shortest path v1v2 (purple, double arrows) in 𝒢K. These correspond to the (minimum) 1-cuts for γ depicted in Figure 1, see Proposition 18. The paths are directed for visual clarity only.

The outline for the rest of this section is as follows. First, we show that one can associate a subgraph 𝒢C of 𝒢K to any CK(n1) so that Hn1(KC)H~0(𝒢C) (and this association is functorial). In case C=, 𝒢C=𝒢K and this comes down to Alexander duality, and we see that any γHn1(K) can be written as a sum of homology classes corresponding to vertices in VnK. We then show that whether C is a homology cut for γ depends on the existence of paths in 𝒢C between specific vertices in VnK. This allows us to reduce (MHC) to a (number of) shortest path problems in 𝒢K. See Figure 4 for an illustration.

Lemma 16.

Let Kn be an embedded simplicial complex, and let CK(n1). Denote by 𝒢C𝒢K the smallest subgraph of 𝒢K containing both VnK and the dual edges corresponding to the simplices in C. Then there is an isomorphism Hn1(KC)H~0(𝒢C). Moreover, if CC, then the following diagram commutes:

Proof.

See the full version of this paper [28]. Recall that H0(nK) consists of functions f:nK that are constant on each connected component of nK. We represent H~0(nK) by locally constant functions that are 0 on the unbounded connected component. Similarly, we think of H~0(𝒢C) as functions that are constant on the components of 𝒢C, and 0 on the component containing v. Moreover, if CC, the map H~0(𝒢C)H~0(𝒢C) is given by a restriction of functions. The following proposition allows us to relate cuts for specific elements of Hn1(K) to paths in the extended dual graph 𝒢K of K.

Proposition 17.

Let vVnK{v}. Consider the map 𝟏vH~0(𝒢)H~0(nK). A set CK(n1) is a homological cut for the Alexander dual AD(𝟏v)Hn1(K) iff the set of edges in 𝒢K dual to the simplices of C contains a path from v to another vertex in VnK. (Here, AD(𝟏v) is meant to denote the Alexander dual of 𝟏RvH~0(nK).)

Proof.

By Lemma 16, AD(𝟏v) is in the image of Hn1(KC)Hn1(K) if and only if 𝟏v is in the image of H~0(𝒢C)H~0(𝒢). This is the case if and only if the function 𝟏v extends to a function φH~0(𝒢C), which is possible if and only if v is in a different component from any other vertex of VnK inside 𝒢C. That means that C is a homology cut for AD(𝟏v) if and only if there is a path in 𝒢C from v to some other vertex of VnK, proving our claim.

We need the following generalization of the above proposition, that allows us to relate cuts for arbitrary elements of H1(K) to paths in 𝒢K; see Figure 4 for an example.

Proposition 18.

Let γ=vVnKAD(αv𝟏v) with αv=0 be any element of Hn1(K). Then C is a homology cut for γ if and only if the set of edges dual to the simplices of C contains a path between a pair of vertices v,wVnK for which αvαw.

Proof.

The proof is similar to that of Proposition 17, with the following adjustment: The function ψ=vVnKαv𝟏vH~0(𝒢) extends to a function φH~0(𝒢C) iff no pair of vertices v,wVnK for which ψ(v)=αvαw=ψ(w) is in the same component of 𝒢C.

Proof of Theorem 8.

To compute a minimum homological cut for a class γHn1(K) of an n-complex K embedded in n, we proceed in three steps:

  1. 1.

    Constructing the extended dual graph. First, we construct 𝒢K. For this we use the Void Boundary Reconstruction algorithm [18, Section 4], which outputs sets of oriented simplices (ξ1,,ξk) that constitute the boundaries of the components of nK (cf. Figure 4) in time bounded by O(|K|2). We assume wlog that ξk constitutes the boundary of the unbounded component of nK. The sum of oriented simplices in any of the ξi with i<k bounding a component RinK, which we denote by [ξi], represents the Alexander dual to the function fiH~0(nK) that is constant 1 on Ri, and 0 everywhere else. From the (ξ1,,ξk) we can construct 𝒢K in time linear in k+|K|. Each ξi corresponds to a vertex vi=vRiVnKV(𝒢K).

  2. 2.

    Expressing γ in an appropriate basis. We write γ as γ=i=1kαi[ξi] with αi𝔽, αk=0. This comes down to a change of basis, which can be done in matrix-multiplication time. The representation of γ is precisely the representation as assumed in Proposition 18, as [ξi] is the Alexander dual of 𝟏vi.

  3. 3.

    Determining shortest paths. Using breadth-first search, we can find the minimum distance between any two vertices vi,vjVnK inside 𝒢K for which αiαj in time bounded by O(k|𝒢K|). Let P denote a path in 𝒢K achieving this minimum. The set of (n1)-simplices CP dual to the edges constituting P form a cut for γ by Proposition 18. Since the edges dual to any cut C for γ must contain a path between vertices of VnK with differing coefficients, the cut CP is a minimum cut by minimality of P.

5 Adversarial robustness for the Rips filtration

Let X=(X,d) be a (finite) metric space. For a subset σX, write 𝐫(σ) for its diameter, i.e., the largest pairwise distance between points in σ. The Rips filtration of X is typically defined as the -indexed family of simplicial complexes (X):=({σX:𝐫(σ)r})r. If we choose a total order on the points in X, we can transform (X) into a discrete, simplex-wise filtration. Namely, we insert simplices one-by-one according to their diameter, breaking ties first by simplex dimension, and then by the lexicographic order on subsets of X induced by . We denote the resulting simplex-wise Rips filtration by (X). The length of a bar B=[σB,τB) in the barcode of PHp((X)) is (B):=𝐫(τB)𝐫(σB).

We consider the following heuristic to determine adversarial robustness of bars in the barcode of PHp((X)) based on their length. We denote the Hausdorff distance between A,BX by dH(A,B):=max{supaAd(a,B),supbBd(b,A)}.

Definition 19 (Hausdorff heuristic).

Let X be a finite metric space. For k, we define

X,k:=maxAX,|A|kdH(XA,X). (1)

The Hausdorff heuristic has the following two key properties.

Theorem 20.

Let p0, and let B be a bar in the barcode of PHp((X)). If B has length (B)X,k, then B is k-adversarially robust in degree 0.

Proposition 21.

The parameter X,k can be computed in time O(|X|2log|X|).

Proof sketch of Theorem 20..

Consider the -indexed Rips filtration (X). Let AX, and set δ=dH(XA,X). For any r, there is a map Hp(r(X))Hp(r+δ(XA)) making the following diagram commute:

This can be shown similarly to how stability of Rips persistence is proved, e.g., as in [13]. It follows that the cokernel of Hp((XA))Hp((X)) is δ-trivial, which would allow us to apply the induced matching theorem (Theorem 9).

To transport this idea to the simplex-wise Rips filtration (X), we make use of an “ε-smoothening”. That is, an -indexed simplex-wise filtration ε(X), which inserts simplices in the same order as (X), and which is ε-interleaved with (X), i.e.,

rε(X)r(X)r+εε(X)r.

Such a filtration exists for any ε>0 small enough. Importantly, the persistence pairings and induced matchings of (X) and ε(X) agree. By the previous, the cokernel of Hp(ε(XA))Hp(ε(X)) is δ+2ε-trivial. By Theorem 9, every bar of length greater than δ+2ε in the barcode of ε(X) is in the image of the matching induced by ε(XA)ε(X). Making ε arbitrarily small, the theorem follows. For details, see the full version [28].

Proof of Proposition 21.

To compute X,k efficiently, we use the following structural lemma on the sets A that attain the maximum in (1); for its proof, see the full version [28].

Lemma 22.

For i and xX, let νi(x) denote the ith nearest neighbor of x. The set AX attaining the maximum in (1) is of the form {x}{νi(x):i=1,,k}, with xX. In particular, we have X,k=maxxXd(x,νk(x)).

For each xX, we can compute νk(x) by sorting the points in X by their distance to x, which can be done in O(|X|log|X|). This immediately proves Proposition 21.

References

  • [1] Ian Agol, Joel Hass, and William Thurston. The computational complexity of knot genus and spanning area. Transactions of the American Mathematical Society, 358(9):3821–3850, 2006. doi:10.1090/s0002-9947-05-03919-x.
  • [2] Ulrich Bauer and Michael Lesnick. Induced matchings and the algebraic stability of persistence barcodes. J. Comput. Geom., 6:162–191, 2013.
  • [3] Nello Blaser, Morten Brun, Lars M. Salbu, and Erlend Raa Vågset. The parameterized complexity of finding minimum bounded chains. Computational Geometry, 122:102102, 2024. doi:10.1016/j.comgeo.2024.102102.
  • [4] Andrew J. Blumberg and Michael Lesnick. Stability of 2-parameter persistent homology. Foundations of Computational Mathematics, 24(2):385–427, 2022. doi:10.1007/s10208-022-09576-6.
  • [5] Glencora Borradaile, William Maxwell, and Amir Nayyeri. Minimum Bounded Chains and Minimum Homologous Chains in Embedded Simplicial Complexes. In Sergio Cabello and Danny Z. Chen, editors, 36th International Symposium on Computational Geometry (SoCG 2020), volume 164 of Leibniz International Proceedings in Informatics (LIPIcs), pages 21:1–21:15, Dagstuhl, Germany, 2020. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.SoCG.2020.21.
  • [6] Magnus Bakke Botnan and William Crawley-Boevey. Decomposition of persistence modules. Proc. Am. Math. Soc., 148(11):4581–4596, 2020.
  • [7] Magnus Bakke Botnan and Michael Lesnick. An introduction to multiparameter persistence. Preprint, arXiv:2203.14289, 2023. doi:10.48550/arXiv.2203.14289.
  • [8] Mickaël Buchet, Frédéric Chazal, Steve Y. Oudot, and Donald R. Sheehy. Efficient and robust persistent homology for measures. Comput. Geom., 58:70–96, 2016. doi:10.1016/J.COMGEO.2016.07.001.
  • [9] Chris Buehler, Steven J. Gortler, Michael F. Cohen, and Leonard McMillan. Minimal Surfaces for Stereo, pages 885–899. Springer Berlin Heidelberg, 2002. doi:10.1007/3-540-47977-5_58.
  • [10] Erin W. Chambers, Jeff Erickson, Kyle Fox, and Amir Nayyeri. Minimum cuts in surface graphs. SIAM Journal on Computing, 52(1):156–195, 2023. doi:10.1137/19M1291820.
  • [11] Erin W. Chambers, Jeff Erickson, and Amir Nayyeri. Homology flows, cohomology cuts. SIAM Journal on Computing, 41(6):1605–1634, 2012. doi:10.1137/090766863.
  • [12] Erin W. Chambers and Mikael Vejdemo-Johansson. Computing minimum area homologies. Computer Graphics Forum, 34(6):13–21, 2015. doi:10.1111/cgf.12514.
  • [13] Frédéric Chazal, David Cohen-Steiner, Leonidas J. Guibas, Facundo Memoli, and Steve Y. Oudot. Gromov-Hausdorff Stable Signatures for Shapes using Persistence. Computer Graphics Forum, 2009.
  • [14] Frédéric Chazal, David Cohen-Steiner, and Quentin Mérigot. Geometric inference for probability measures. Found. Comput. Math., 11:733–751, 2011. doi:10.1007/S10208-011-9098-0.
  • [15] Chao Chen and Daniel Freedman. Hardness results for homology localization. Discrete Comput. Geom., 45(3):425–448, 2011. doi:10.1007/S00454-010-9322-8.
  • [16] David Cohen-Steiner, Herbert Edelsbrunner, and John Harer. Stability of persistence diagrams. Discrete Comput. Geom., 37:103–120, 2007. doi:10.1007/S00454-006-1276-5.
  • [17] Tamal K. Dey, Anil N. Hirani, and Bala Krishnamoorthy. Optimal homologous cycles, total unimodularity, and linear programming. SIAM J. Comput., 40(4):1026–1044, 2011. doi:10.1137/100800245.
  • [18] Tamal K. Dey, Tao Hou, and Sayan Mandal. Computing minimal persistent cycles: polynomial and hard cases. In Proceedings of the Thirty-First Annual ACM-SIAM Symposium on Discrete Algorithms, SODA ’20, pages 2587–2606, USA, 2020. Society for Industrial and Applied Mathematics. doi:10.1137/1.9781611975994.158.
  • [19] Tamal K. Dey and Yusu Wang. Computational Topology for Data Analysis. Cambridge University Press, 2022.
  • [20] Nathan M. Dunfield and Anil N. Hirani. The least spanning area of a knot and the optimal bounding chain problem. In Proceedings of the Twenty-Seventh Annual Symposium on Computational Geometry, SoCG ’11, pages 135–144, New York, NY, USA, 2011. Association for Computing Machinery. doi:10.1145/1998196.1998218.
  • [21] Herbert Edelsbrunner and John Harer. Persistent homology—a survey. Discrete Comput. Geom., 453, 2008.
  • [22] Jeff Erickson and Amir Nayyeri. Minimum cuts and shortest non-separating cycles via homology covers. In Proceedings of the 2011 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 1166–1176, 2011. doi:10.1137/1.9781611973082.88.
  • [23] Michael R. Garey and David S. Johnson. Computers and Intractability; A Guide to the Theory of NP-Completeness. W. H. Freeman & Co., USA, 1990.
  • [24] Pepijn Roos Hoefgeest and Lucas Slot. The Christoffel-Darboux kernel for topological data analysis. In 39th International Symposium on Computational Geometry, volume 258 of LIPIcs. Leibniz Int. Proc. Inform., pages Art. No. 38, 20. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023. doi:10.4230/lipics.socg.2023.38.
  • [25] B. K. Natarajan. Sparse approximate solutions to linear systems. SIAM J. Comput., 24(2):227–234, 1995. doi:10.1137/S0097539792240406.
  • [26] Steve Y. Oudot. Persistence Theory - From Quiver Representations to Data Analysis, volume 209 of Mathematical surveys and monographs. American Mathematical Society, 2015. URL: http://bookstore.ams.org/surv-209/.
  • [27] Jeff M. Phillips, Bei Wang, and Yan Zheng. Geometric inference on kernel density estimates. In 31st International Symposium on Computational Geometry, volume 34 of LIPIcs. Leibniz Int. Proc. Inform., pages 857–871. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2015. doi:10.4230/LIPIcs.SOCG.2015.857.
  • [28] Pepijn Roos Hoefgeest and Lucas Slot. Robustness of persistent topological features and minimum homological cuts (full version), 2026. URL: https://arxiv.org/abs/2602.23154.
  • [29] Vin Silva and Gunnar Carlsson. Topological estimation using witness complexes. Proc. Sympos. Point-Based Graphics, 2004.
  • [30] Bernadette J. Stolz. Outlier-robust subsampling techniques for persistent homology. J. Mach. Learn. Res., 24:Paper No. [90], 35, 2023.
  • [31] J. Sullivan. A Crystalline Approximation Theorem for Hypersurfaces. PhD thesis, Princeton University, 1990.
  • [32] Afra Zomorodian and Gunnar Carlsson. Computing persistent homology. Discrete Comput. Geom., 33:249–274, 2005. doi:10.1007/S00454-004-1146-Y.