                  TopInG: Topologically Interpretable Graph Learning via
                             Persistent Rationale Filtration


                              Cheng Xin * 1 Fan Xu * 2 Xin Ding 2 Jie Gao 1 Jiaxin Ding 2


                         Abstract                                    1. Introduction
                                                                     Graph Neural Networks (GNNs) have emerged as a pow-
                                                                     erful tool for learning graph-structured data in various sci-
      Graph Neural Networks (GNNs) have shown re-                    entific domains (including chemistry, biology, physics, and
      markable success across various scientific fields,             materials science), achieving remarkable success in ap-
      yet their adoption in critical decision-making is              plications of predicting molecular properties (Kamberaj,
      often hindered by a lack of interpretability. Re-              2022; Chen et al., 2023), modeling protein-protein interac-
      cently, intrinsically interpretable GNNs have been             tions (Görmez et al., 2021; Ravichandran et al., 2024; Li
      studied to provide insights into model predictions             et al., 2023), analyzing phase transitions (Qu et al., 2022),
      by identifying rationale substructures in graphs.              characterizing material characteristics (Hu & Latypov, 2024;
      However, existing methods face challenges when                 Sheriff et al., 2024; Gurniak et al., 2024; Xiao et al., 2024),
      the underlying rationale subgraphs are complex                 etc. As GNNs are increasingly applied to critical scientific
      and varied. In this work, we propose T OP I N G:               and decision-making tasks, there is a growing need for inter-
      Topologically Interpretable Graph Learning, a                  pretability and explainability in these models (Zhang et al.,
      novel topological framework that leverages per-                2024a). Scientists and practitioners often ask for not only
      sistent homology to identify persistent rationale              accurate predictions, but also insights into why and how
      subgraphs. T OP I N G employs a rationale filtra-              these predictions are made. This is particularly crucial in
      tion learning approach to model an autoregressive              scientific applications where understanding the underlying
      generation process of rationale subgraphs, and                 mechanisms and causal relationships is as important as the
      introduces a self-adjusted topological constraint,             predictions themselves.
      termed topological discrepancy, to enforce a per-
      sistent topological distinction between rationale              A recent trend in GNN research focuses on enhancing inter-
      subgraphs and irrelevant counterparts. We pro-                 pretability by developing methods that identify and visual-
      vide theoretical guarantees that our loss function             ize the nodes, edges, subgraphs, or features most influential
      is uniquely optimized by the ground truth un-                  or causal for a given prediction. Existing approaches on
      der specific conditions. Extensive experiments                 GNN interpretation can be broadly categorized into two
      demonstrate T OP I N G’s effectiveness in tackling             classes (Zhang et al., 2024a): post-hoc explainer meth-
      key challenges, such as handling variform ratio-               ods (Ying et al., 2019; Luo et al., 2020; Schlichtkrull et al.,
      nale subgraphs, balancing predictive performance               2021; Wu et al., 2023; Bui et al., 2024) and intrinsically
      with interpretability, and mitigating spurious cor-            interpretable models (Wu et al., 2022; Miao et al., 2022;
      relations. Results show that our approach im-                  Chen et al., 2024). Post-hoc explainer methods analyze a
      proves upon state-of-the-art methods on both pre-              pre-trained GNN model to generate intuitive explanations.
      dictive accuracy and interpretation quality.                   These methods enjoy flexibility and can be integrated into
                                                                     different kinds of models. But they might provide explana-
                                                                     tions that are suboptimal or inconsistent with the model’s
                                                                     actual decision-making processes (Miao et al., 2022). On
  *
   Equal contribution 1 Department of Computer Science, Rut-         the other hand, intrinsically interpretable models incorpo-
gers University, Piscataway, NJ, USA 2 School of Computer Sci-       rate interpretability directly into the model architecture and
ence, Shanghai Jiao Tong University, Shanghai, China. Corre-         training process. A basic intrinsically interpretable GNN
spondence to: Cheng Xin <cx122@rutgers.edu>, Jiaxin Ding             model is built upon the graph attention (Veličković et al.,
<jiaxingding@sjtu.edu.cn>.
                                                                     2018) mechanism. But a naı̈ve application of attention
Proceedings of the 42 nd International Conference on Machine         weights does not give a reliable interpretation for real graph
Learning, Vancouver, Canada. PMLR 267, 2025. Copyright 2025          data (Ying et al., 2019; Yu et al., 2021), as attention weights
by the author(s).

                                                                 1
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

may not always correlate with actual feature importance.             2021; 2022; Zhao et al., 2020; Immonen et al., 2023; Ye
Moreover, the trade-off of interpretability and predictive           et al., 2023; Swenson et al., 2020). Persistent homology
performance (Du et al., 2019) may not be acceptable in real-         studies the dynamics of topological invariants over vari-
world applications. To address these challenges, Miao et al.         ous scales through filtrations, allowing us to capture all the
(2022) proposed a stochastic attention mechanism (GSAT)              changes and persistence of topological features in the data.
to use the graph information bottleneck (Wu et al., 2020;
                                                                     Based on this foundation, we introduce a new perspective on
Tishby et al., 1999) as the target function, employ attention
                                                                     the rationale subgraph identification problem. We model the
weights to control the information bottleneck, and sample
                                                                     graph attention mechanism as an underlying graph genera-
rationale subgraphs using Gumbel-softmax reparameteriza-
                                                                     tion process, which ideally constructs the rationale subgraph
tion. Similarly, Chen et al. (2024) approached interpretation
                                                                     first, followed by the addition of auxiliary structures. We
by searching for rationale subgraphs within the framework
                                                                     use persistent homology tools to capture and track the repre-
of subgraph multilinear extension (SubMT) and proposing
                                                                     sentations and life cycles of topological features during the
a graph multilinear net (GMT) for better SubMT approxi-
                                                                     generating process. To effectively distinguish the rationale
mation. Wu et al. (2022) proposed Discovering Invariant
                                                                     subgraph from the complement subgraph, we optimize the
Rationales (DIR), applying interventions on training distri-
                                                                     parameterized generation procedure to enhance the stability
butions to obtain invariant causal rationales while filtering
                                                                     of the rationale subgraph. Specifically, our goal is to amplify
out spurious correlations.
                                                                     the topological differences between the rationale subgraph
Despite these advancements, existing intrinsic methods of-           and the complement subgraph, creating a persistent gap in
ten assume either explicitly or implicitly that the subgraph         their topological features throughout the generation process.
rationales are nearly invariant across different instances           To achieve this goal, we propose a novel self-adjusting topo-
within the same category of graphs, even a strong one-to-            logical constraint, topological discrepancy, which measures
one correspondence between subgraph rationales and pre-              the statistical difference between two graphs with respect to
dictions. However, this is overly restrictive and unrealistic        their topological structures. Topological discrepancy serves
in many real-world scenarios, where the graph dataset and            as a metric to quantify how well the rationale subgraph is
the downstream tasks exhibit variform subgraph rationales,           preserved and distinguished from the complement subgraph
which can vary significantly in form, size, and topology,            during the filtration process. We also provide a tractable
even among graphs of the same category. For example, in              approximation of topological discrepancy and provide theo-
molecular biology, molecules with the same bioactivity can           retical guarantees that our models are able to achieve ground
have different functional groups responsible for that activ-         truth as the unique optimal solution under our loss function.
ity (Patani & LaVoie, 1996; Brown, 2012). An aromatic ring,
                                                                     Our main contributions can be summarized as follows:
a sulfonamide group, or a heterocyclic compound can each
be the key substructure leading to the same pharmacological             • We introduce T OP I N G, a novel intrinsically inter-
effect in different molecules. In social networks, the struc-             pretable GNN framework that incorporates topological
tural reasons for a user to be influential vary significantly.            data analysis to identify stable rational subgraphs via
An influential user might have high degree, high between-                 persistent rationale filtration learning. We propose a
ness centrality, or serving as crucial bridge nodes connecting            new loss function, topological discrepancy, to mea-
different communities. Our observations, supported by ex-                 sure the statistical difference between two graphs with
periments on a synthetic dataset (see Figure 3 for the results            respect to their topological structures.
and Appendix E for the dataset construction), show that ex-
isting intrinsically interpretable models struggle with such            • We provide a tractable approximation of our topolog-
variability. Models obtained under these assumptions may                  ical discrepancy and provide theoretical guarantees
fail to accurately capture the true causal mechanisms under-              that our models are able to achieve ground truth as
lying the predictions, resulting in unreliable interpretations            the unique optimal solution under our loss function.
and suboptimal generalization performance.                                This establishes a solid theoretical foundation for the
                                                                          effectiveness of our approach.
To address the above challenges, we propose Topologically
Interpretable Graph Learning (T OP I N G), a novel topologi-            • We empirically demonstrate that T OP I N G improves
cal approach to intrinsically interpretable GNNs that lever-              existing methods in both prediction and interpretation
ages techniques from topological data analysis to identify                tasks on multiple benchmark datasets. Additionally,
stable and persistent rationale subgraphs, effectively han-               we created a synthetic dataset with variform rationale
dling the variability in subgraph structures. Our method is               subgraphs to specifically target challenges faced by
inspired by the concept of persistent homology, originating               previous methods. Our results show that T OP I N G ef-
from algebraic topology and recently applied to data analy-               fectively handles such variability, confirming its ability
sis and machine learning (Wong & Vong, 2021; Yan et al.,                  to address this critical challenge.

                                                                 2
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration




Figure 1. An overview of T OP I N G. A GNN parameterized by fϕ is used to learn a filtration, from which we sample the subgraphs GX
and Gϵ . These subgraphs yield topological features through their respective filtrations F. Meanwhile, the combined subgraph GX ⊔ Gϵ is
processed by the same GNN (sharing parameters with fϕ ) to produce a graph feature. Finally, the topological features T (which capture
global structural information) are combined with the graph feature to form the final graph representation for classification tasks.


The concept of rationalization has also been extensively                sume each graph G is composed of two edge disjoint sub-
studied in Natural Language Processing (NLP), where                     graphs G = GX ⊔ Gϵ with vertex correspondence for some
researchers identify text spans as rationales for predic-               GX ∈ GX and Gϵ ∈ Gϵ . GX and Gϵ are two families of
tions (Yao et al., 2023; 2024; Gurrapu et al., 2023; Liu et al.,        graphs. GX is usually a small finite set. Given a graph G,
2023; 2024; 2025). However, unlike NLP domains where ra-                GX ⊆ G is the rationale subgraph that determines the label
tionales are typically contiguous text spans, graph domains             yG , for some unknown oracle h∗ : G → [0, 1]. Gϵ is the
face the challenge with variform rationale subgraphs that               noisy or less relevant part of the graph. Both GX and Gϵ
vary significantly in size, form, and topology.                         are unknown, and they have to be learned from the data.
                                                                        The goal is to predict the label ŷG for each graph G and
2. Preliminaries                                                        simultaneously identify its rationale subgraphs GX .

2.1. Graph Neural Networks (GNNs)                                       2.3. Topological Data Analysis
Graph neural networks are a class of neural networks de-                Topological Data Analysis (TDA) has emerged as a power-
signed to operate on graph-structured data. A typical                   ful analytical framework across diverse domains, including
message-passing GNN layer updates node representations                  machine learning, artificial intelligence, and computational
by aggregating information from neighboring nodes:                      neuroscience. Within graph representation learning specif-
         hv(l+1) = ϕ(h(l)      (l)
                      v , AGG(hu : u ∈ N (v)))                (1)       ically, TDA has demonstrated significant capacity to en-
                                                                        hance GNNs through the systematic incorporation of topo-
         (l)
where hv is the message representation of node v at layer               logical features (Hofer et al., 2017; 2019; 2020; Dehmamy
l, N (v) is the neighborhood of v, AGG is a permutation                 et al., 2019; Carrière et al., 2020; Horn et al., 2022; Zhao
invariant aggregation function, e.g.: sum, mean, max, and ϕ             et al., 2020; Carrière & Blumberg, 2020; Zhang et al., 2022;
is a non-linear activation function. Some commonly used                 2024b; Yan et al., 2022; Xin et al., 2023; Mukherjee et al.,
GNN architectures include Graph Convolutional Networks                  2024). A particularly effective methodological tool in this
(GCN) (Kipf & Welling, 2017), Graph Isomorphism Net-                    context is persistent homology, which provides a rigorous
works (GIN) (Xu et al., 2019), Graph Attention Networks                 mathematical framework for analyzing the evolution of
(GAT) (Veličković et al., 2018).                                      topological features—such as connected components and
                                                                        cycles—throughout a graph’s construction process. This
2.2. Intrinsically Interpretable Graph Learning                         approach enables the quantitative analysis of structural pat-
                                                                        terns by examining their emergence and persistence across
Intrinsically interpretable graph learning aims to build a
                                                                        a parameterized filtration of the graph, effectively capturing
model simultaneously targeting both prediction and inter-
                                                                        multi-scale topological information that can be integrated
pretability during the training procedure. Formally, given
                                                                        into a learning framework. We give a brief introduction to
a collection of labeled graphs (G, Y ) = {(G, yG )}, as-

                                                                    3
                       TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

                 f(e)>0.999        f(e)>0.995        f(e)>0.990        f(e)>0.975            f(e)>0.974   f(e)>0.323           f(e)>0.226        f(e)>=0




                              +0                +4                +8                    +8                  +0                   +5          + all the rest
        𝑯𝟏 + 0
           1.0                                                                                                                                                 0.0
                 𝐺𝑋      0.974                         Persistent Homology Gap > 0.65                                  0.323                𝐺𝜀
                                                          ~ Topological Discrepancy                                               0.226                    ~ 0.0

                           0.974


                      0.975



                   0.990




Figure 2. The top row is a learned graph filtration on an example graph through our method. Red and yellow points correspond to ground
truth rationale subgraph G∗X and noisy subgraph G∗ϵ respectively. Each snapshot is a subgraph of G on edges with filtration values greater
than a decreasing threshold value indicated on top of each snapshot. Below each subgraph, the number in small box is the size of cycle
basis for the current subgraph, which equals to the dimension of the cycle space, also known as the 1st betti number. The bottom part
shows the 1st persistent homology. Each horizontal bar corresponds to a topological feature (basic cycle).

the basic concepts of topological data analysis (TDA) and                                zero vector in H1 (G) is the empty cycle. This vector space
persistent homology. For a more detailed introduction, we                                is also called the cycle space and its basis is known as cycle
refer readers to (Edelsbrunner & Harer, 2010; Dey & Wang,                                basis, which is well studied in graph theory (Horton, 1987;
2022).                                                                                   Kavitha et al., 2009; Jungnickel, 2007). For example, for a
                                                                                         graph G = (V, E = ∅) with no edges, the 0-th homology
Graph Filtration: For an edge-weighted graph G =
                                                                                         H0 (G) = {0, 1}|V | is a |V |-dimensional vector space with
(V, E, f : E → R), we can create a sequence of nested
                                                                                         basis being the set of all isolated vertices, while H1 (G) = 0
subgraphs called a graph filtration. For example, assume
                                                                                         is trivial since there are no cycles.
the edge weight f is normalized, f (E) ⊆ [0, 1], and repre-
sents some “importance scores” of edges. We construct a                                  Persistent Homology: Starting from a graph filtration F(G)
graph filtration F(G) := {G≤t | t ∈ 1 − f (E)} where G≤t                                 given by the reversed order of edge weights:
is the subgraph on edges e with 1 − f (e) ≤ t. Essentially,
such graph filtration shows how the graph grows as edges                                     F(G) : ∅ ⊆ · · · ⊆ G≤t1 ⊆ G≤t2 ⊆ G≤t3 ⊆ · · · ⊆ G,
are included in the decreasing order of importance scores.
                                                                                         if we apply the p-homology functor Hp to the graph fil-
On a graph filtration, one can track all the connected compo-                            tration, each subgraph G≤t is mapped to a p-th homology
nents and cycles appearing and disappearing (merged with                                 vector space Hp (G≤t ). Each inclusion G≤t ⊆ G≤t′ natu-
others) during the process. If we encode the lifecycle (birth,                           rally induces a linear map Hp (G≤t ) → Hp (G≤t′ ). In this
death) of each component or cycle as an interval on the real                             way, we get a chain of homology vector spaces Hp (F(G))
line, it turns out that there is an essentially unique way to                            connected by linear maps:
represent such information as a multi-set of intervals which
is topologically stable and equivalent to a well-studied alge-                               0 → · · · → Hp (G≤t1 ) → Hp (G≤t2 ) → · · · → Hp (G).
braic structure studied in topological data analysis, known
as persistent homology. To understand this formally, we                                  Such structure Hp (F(G)) is called the p-th persistent ho-
first introduce homology vector spaces and then build up to                              mology of the graph filtration F(G). In this work, we only
persistent homology.                                                                     focus on persistent homologies with p = 0, 1, which respec-
                                                                                         tively correspond to the lifecycles of connected components
Homology Space: For a given graph G, we consider homol-
                                                                                         and cycle bases of the graph filtration. This algebraic struc-
ogy vector spaces over the finite field F2 = {0, 1} (homol-
                                                                                         ture is in fact a graded module over the polynomial ring
ogy spaces in brief). The 0-th homology H0 (G) is defined
                                                                                         F2 [t] (Zomorodian & Carlsson, 2004). By the structure the-
as the vector space with basis corresponding to all connected
                                                                                         orem of finitely generated modules over a principal ideal
components of G. The 1-st homology H1 (G) is the vector
                                                                                         domain, Hp (F(G)) can be uniquely decomposed into a di-
space defined on the set of all cycles in G, with addition
                                                                                         rect sum of cyclic modules. Each indecomposable cyclic
operation defined as the symmetric difference of cycles. The
                                                                                         module is determined by a pair of numbers (t1 , t2 ), which

                                                                                    4
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

essentially corresponds to the lifecycle of one persistent             To address this, we propose to learn a rationale filtration,
topological feature. The multiset of all such pairs is called          which represents the importance ordering of edges in a
the persistence diagram of the graph filtration, or equiva-            process that simulates an autoregressive generation. By
lently, it can be viewed as a multiset of intervals, which             learning to prioritize the edges of the rationale, this approach
is known as the persistent barcode of the graph filtration.            enables us to identify stable and persistent substructures that
The persistent barcode (also equivalently the persistence              are most relevant for predictions. We target a generating
diagram) is a complete discrete invariant of the persistent            process for G = (V, E) that ideally generates the critical
homology, which means it fully encodes all topological fea-            rationale subgraph G∗X first, followed by a less relevant
tures represented by the persistent homology (Zomorodian               counterpart G∗ϵ , as the complement.
& Carlsson, 2004). We refer readers to (Edelsbrunner &
                                                                       More precisely, we utilize a backbone GNN as a learn-
Harer, 2010; Zomorodian & Carlsson, 2004; Ghrist, 2008)
                                                                       able filtration functional fϕ : G → [0, 1]|E| that, for each
for further details about persistent homology.
                                                                       graph, produces a filtration function fϕG : E → [0, 1] map-
Remark 2.1. In this work, one can treat the persistent homol-          ping edges to their importance score. These scores induce
ogy as a topologically stable representation on a sequential           an importance ordering on the edges, and consequently, a
input. The representation is differentiable and encodes the            graph filtration F(G) = {G0 , G1 , . . . , G|E| }, which is an
evolutions of topological features. See Figure 2 as an ex-             increasing sequence of subgraphs constructed incrementally
ample of a graph filtration (cubes on the top line) and its            by adding edges in order of decreasing importance (more
persistent homology (the multiset of intervals shown as hor-           important edges introduced earlier in the sequence). By
izontal lines in the bottom). We will revisit this example             tradition, G0 = ∅ and G|E| = G. The objective is for the
later after our method is introduced.                                  learned filtration functional fϕ to ideally produce a filtration
Comparing Topological Features: One can compare two                    function on edges whose induced importance ordering is to
edge-weighted graphs by computing distances between the                be consistent with the partitioning into G∗X and G∗ϵ , such
persistent homologies of their corresponding graph filtra-             that ∀e ∈ G∗X and e′ ∈ G∗ϵ , f (e) > f (e′ ).
tions. A commonly used (pseudo-)metric is the bottleneck               For notational conciseness, we omit the super- and sub-
distance dB (Definition B.1 in Appendix B). Recall that per-           scripts for f = fϕG and F(G) = Fϕ (G) when the context
sistent homology can be represented as a multiset of points            is clear. We denote F(G≤t ) to be the filtration of the sub-
in R2 . The bottleneck distance is essentially a variant of the        graphs on edges with filtration values greater than 1 − t.
Wasserstein distance between these two multisets (persis-              Symmetrically, let F(G≥t ) be the filtration of the subgraphs
tence diagrams) under the ℓ∞ -norm. A crucial property of              on edges with filtration values smaller than or equal to 1 − t.
the bottleneck distance is its stability: small perturbations in
the input data (e.g., edge weights) lead to small changes in           Our approach is founded on ensuring the following property:
the bottleneck distance, ensuring robustness in downstream             Persistent Homology Gap: There is a significant difference
applications (see Appendix B for more details). Our pro-               between the topological features derived from two compo-
posed topological discrepancy is constructed based on the              nents of a graph’s filtration, F(G≤t ) and F(G≥t ), which
bottleneck distance and its stability property.                        are well separated at some threshold value t ∈ [0, 1]. The
                                                                       persistent homologies computed from these respective parts
3. Method of T OP I N G                                                serve as the topological invariants, denoted as TX and Tϵ .
                                                                       Remark 3.1. The underlying idea of this property is that,
In the following context, for a given G, we denote the ora-
                                                                       when considering the generating process of rationale sub-
cle rationale subgraph and its complement as G∗X and G∗ϵ
                                                                       graphs and their irreverent counterparts, their topological
respectively. We use GX and Gϵ to represent a candidate ra-
                                                                       structures follow two distinct evolutionary paths. Our meth-
tionale subgraph and its complement respectively predicted
                                                                       ods are designed to statistically capture such a topologi-
by our model.
                                                                       cal discrepancy. Figure 2 provides a visual illustration of
In contrast to existing methods, we re-examine the prob-               our method’s objective when successfully applied. A well-
lem from a global perspective through the lens of topology.            learned graph filtration (top row) assigns higher importance
Our central hypothesis is that: if the prediction task is de-          scores to edges in the ground-truth rationale subgraph G∗X .
termined by a core substructure G∗X belonging to a small               As a result, the 1st persistent homology barcode (bottom
family of rationale graphs GX , then the full graph G can              row), which tracks the lifecycles of basic cycles, clearly dis-
be viewed as being “grown” from this core G∗X by attach-               tinguishes the topological features of the learned rationale
ing auxiliary structure G∗ϵ . The identification of such core          GX from those of the complement Gϵ . The annotation “Per-
rationale substructures is highly non-trivial, as it demands           sistent Homology Gap” in the figure exemplifies this desired
consistency across the generation process and the discovery            clear separation, where features identified with GX (long
of common topological patterns across the entire dataset.              bars appearing earlier that persist significantly) are distinct

                                                                   5
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

from features associated with Gϵ (shorter bars introduced              diagrams, dtopo (P(TX ), P(Tϵ )) can be lower bounded by:
later with shorter persistence). Our topological discrepancy
                                                                              max | EP ∼P(TX ) [ψ(P )] − EQ∼P(Tϵ ) [ψ(Q)] |
measure, introduced subsequently, is designed to quantify                     ψ∈Ψ
and optimize such a distinguishing topological gap.
                                                                       Learnable Vectorization for the Lower Bound To prac-
We denote the induced probability distributions of persistent          tically compute the lower bound of dtopo , we need a set of
homologies as P(TX ) and P(Tϵ ) respectively.                          1-Lipschitz continuous functions Ψ = {ψ1 , ψ2 , · · · , ψk }
Definition 3.2 (Topological Discrepancy). The topological              that map persistence diagrams to a Euclidean space where
discrepancy dtopo between P(TX ) and P(Tϵ ) is defined as              expectations are tractable. TDA offers well-studied vector-
                                                                       ization methods for this purpose. We adopt the learnable
dtopo (P(TX ), P(Tϵ )) ≜          inf           E(P,Q)∼π [dB (P, Q)]   vectorization approach from (Hofer et al., 2019), which rep-
                           π∈Π(P(TX ),P(Tϵ ))
                                                                       resents persistence diagrams as k-dimensional vectors. This
where Π(P(TX ), P(Tϵ )) is the set of all couplings between            is achieved by learning k parameterized kernels, termed
P(TX ) and P(Tϵ ), and dB (P, Q) is the bottleneck distance            structure elements, to capture point distributions on the
(Definition B.1 in Appendix B) between the persistent ho-              diagrams. These structure elements are designed to be Lips-
mologies P and Q.                                                      chitz continuous with some constant C. Specifically, on a
                                                                       given persistence diagram p, we employ the Rational Hat
Essentially, dtopo is the 1-Wasserstein distance between the           structure element with learnable center c ∈ R2 and radius
distributions of persistent homologies TX and Tϵ under the             r ∈ R, which is defined as:
metric dB . Now we are ready to introduce the target loss of                          X         1                     1
our model based on our topological discrepancy property.                φ(p; c, r) =                     −
                                                                                      x∈p
                                                                                          1 + ∥x  − c∥ 2   1+  | |r| − ∥x − c∥2 |
  L(ϕ) = EG [Lce (ŷG , yG )] − αLtopo (P(TX ), P(Tϵ )) (2)
                                                                       By setting ψ = C1 φ, we get a 1-Lipschitz continuous repre-
The topological constraint term Ltopo is realized by the topo-         sentation function as we want. The expectations E[ψ(P )]
logical discrepancy dtopo . The prediction loss term Lce is            are approximated by empirical means over the data in prac-
the standard cross-entropy loss between the predicted label            tice. To select the maximum in the lower bound formulation,
ŷG and the ground truth label yG . The predicted label ŷG =          in our experiments, instead of a simple softmax, we utilize
hϕ σfϕ (G) is obtained by applying prediction network hϕ               a 2-head attention mechanism to identify and sum the top-
on the subgraph GX extracted through σ from the filtra-                2 maxima from the k vectorized representations. We use
tion fϕ (G). hϕ and fϕ share the same backbone GN Nϕ                   k = 8 Lipschitz continuous representation functions in our
model, which outputs a permutation equivalent representa-              experiments. This learnable vectorization, combined with
tion (node or edge representation). fϕ = M LPf ◦ GN Nϕ                 multi-head attention, not only provides an efficient approx-
applys a simple multi-layer perceptron (MLP) model to get a            imation of dtopo but also facilitates a self-adjusted focus
1-dimensional edge representation as the filtration function.          on data-dependent topological features. This mechanism
hϕ = M LPh ◦ P ool ◦ GN Nϕ first pools the permutation                 guides the model to learn the most task-relevant topolog-
equivalent presentation of GN Nϕ to get a permutation in-              ical information, which we found empirically to enhance
variant graph representation, then applys another MLP to               training stability and improve performance. All topological
get the final graph representation for predicting ŷG . Here           representations are Lipschitz continuous and differentiable
we omit other details of learnable parameters in the MLP               almost everywhere, enabling end-to-end training. Com-
for simplicity. The persistent homologies TX and Tϵ , as               putations for these representations and their gradients are
permutation invariant graph representations, are also used             performed using the codebase from (Zhang et al., 2022).
in the final representation M LPh through combining with
                                                                       In the rest of the paper, we use dtopo to denote the lower
the graph representation P ool ◦ GN Nϕ . See Figure 1 as a
                                                                       bound used in practice. Finally, we give the following theo-
high-level illustration of the architecture of our model.
                                                                       rem to show that our loss L(ϕ) with dtopo is guaranteed to
                                                                       be optimized by the ground truth.
3.1. Self-adjusted Topological Constraint
                                                                       Theorem 3.4. Assume ∀G, |EX | < |Eϵ |, and G∗X is min-
In this subsection, we will discuss the construction and prop-         imal with respect to yG in the sense that any subgraph
erties of our topological features in details. The original            GX ⊂ G∗X losses some information of label, then L(ϕ) is
construction of dtopo is intractable in general. Here we pro-          uniquely optimized by fϕ∗ (e) = 1{e ∈ G∗X }.
vide a tractable lower-bound through Kantorovich duality               Remark 3.5. Note that our guarantee does not depend on
of 1-Wasserstein distance (Villani, 2009) as follows:                  any stability or invariance assumptions on GX , therefore,
Proposition 3.3. Given a set of 1-Lipschitz continuous func-           it will not be affected by variform rationale subgraphs in
tions, Ψ = {ψ1 , ψ2 , · · · , ψk }, on the space of persistence        theory. The proof is deferred to the appendix C.

                                                                   6
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

3.2. Prior Regularization                                             3.3. Comparing with Related Works
Although we present theoretical guarantees, in practice, sim-         Two works most related to ours are DIR (Wu et al., 2022)
ply increasing model capacity does not necessarily lead to            and GSAT (Miao et al., 2022). We briefly compared their
better performance, and overfitting may still occur. To miti-         work with ours. Compared to DIR, our model also con-
gate this, we introduce a prior regularization term on fϕ that        siders the distribution of complement graphs of rationale
enforces a marginal distribution Pprior over edge filtrations,        subgraphs, but in a “soft way”. Instead of directly storing
thereby helping stabilize the training procedure:                     sample complement subgraphs, our methods can be viewed
                                                                      as storing a distribution of topological summary of comple-
                                                                      ment graphs, which is more efficient. Relative to GSAT, our
                                          
            L(ϕ) + β Lprior fϕ (G), Pprior .
                                                                      loss can also be seen as a variational lower bound of the GIB
Concretely, we assume each edge filtration fϕG ∈ [0, 1]               loss. However, we employ a different prior for the rationale
follows a two-mixture Gaussian distribution:                          subgraph GX and remove GSAT’s hyperparameter r. Our
                                                                      topological loss acts as a self-adjusted cut, separating GX
                                                                      from G. In practice, GSAT’s attention can collapse to the
     Pprior = w N (µ1 , r1 ) + (1 − w) N (µ2 , r2 ),
                                                                      constant r if not carefully tuned (Chen et al., 2024). By
                                                                      contrast, our prior performs an unsupervised two-Gaussian
where w, µ1 , µ2 , r1 , r2 are parameters. Then we can de-            clustering (akin to k-means), preventing such collapse. Em-
fine the prior regularization Lprior via a Kullback–Leibler           pirically, as long as the two means of Gaussian distributions
(KL) divergence term augmented with a penalty to prevent              remain distinct, their exact positions have little effect on per-
collapsing to a single mode:                                          formance. Thus, we do not need to tune the hyperparamters,
                                                                      and simply fix them at 0.25 and 0.75.
       Lprior (fϕ (G), Pprior )
     =DKL [fϕ (G)∥Pprior ] + γ(r1−2 + r2−2 )                          4. Experiments
        X
     =−        log(Pprior (fϕ (G)e )) + γ(r1−2 + r2−2 )               We evaluate our proposed method in terms of both inter-
          e∈GE
                                                                      pretability and predictive performance on various bench-
                                                                      mark datasets. Our approach, T OP I N G, demonstrates signif-
A key insight is that this two-mixture prior induces a clus-
                                                                      icant advantages over state-of-the-art post-hoc interpretation
tering mechanism on the edge filtrations in [0, 1] for Gx
                                                                      methods as well as intrinsic interpretable models across al-
and Gϵ . We note that any choice satisfying |µ1 − µ2 | > 0
                                                                      most all datasets. We will provide a brief introduction to the
and a reasonable weighting w ∈ (0, 1) can still maintain a
                                                                      datasets, baselines, and experiment setups, and leave more
suitable two-cluster separation on [0, 1]. The exact cluster
                                                                      details in the Appendix E.
centers µ1 , µ2 matter less than their separation since the
edge filtration is learned and used in the topological discrep-
                                                                      4.1. Experimental settings
ancy, thanks to the stability property of persistent homology.
This approach fundamentally differs from existing methods             Datasets. We consider eight benchmark datasets com-
such as GSAT (Miao et al., 2022) and GMT (Chen et al.,                monly used in the graph explainability literature, catego-
2024), offering greater stability and reduced sensitivity to          rized into three types: Single Motif, Multiple Motif, and
hyperparameter choices. In practice, we simply fix w = 0.5,           Real Dataset. The first two consist of synthetic datasets.
µ1 = 0.25, µ2 = 0.75, and initialize r1 = r2 = 0.25. We               Single Motif includes BA-2Motifs (Luo et al., 2020), BA-
also apply Gumbel-Softmax reparameterization trick (Jang              HouseGrid (Amara et al., 2023), SPmotif0.5 and SPmo-
et al., 2017) used in (Miao et al., 2022) to sample subgraphs.        tif0.9 (Wu et al., 2022). These datasets contain graphs
Remark 3.6. Although we only talk about edge filtra-                  with a single type of motif or structural pattern repeated
tions, our methods can be applied to filtrations on nodes,            throughout. Multiple Motif includes BA-HouseAndGrid,
edges, or higher-order simplices (faces, tetrahedrons, etc.).         BA-HouseOrGrid (Bui et al., 2024), and BA-HouseOrGrid-
In our experiments, we start with the filtration functions            nRnd. The last one is a synthetic dataset we create for veri-
on the nodes and then extend the node filtration to the               fying the variform rationale challenge for existing intrinsic
edge filtration by setting f (u, v) = min(f (u), f (v)) or            methods (see Appendix E for more details). These datasets
max(f (u), f (v)). This type of filtration is known as upper-         involve graphs with multiple types of motifs, thereby in-
or lower-star filtration in TDA. It contains less information         creasing the complexity and providing a more challenging
in general since node filtrations can only represent O(|V |)          scenario for explanation methods. Real Dataset include Mu-
much “information” but edge filtrations can representup to            tag (Luo et al., 2020) and Benzene (Sanchez-Lengeling et al.,
O(|E|) = O(|V |2 ) “information”. However, it provides                2020). Appendix E.5 visually illustrates sample graphs from
more computational efficiency.                                        each dataset and interpretation results of different models.

                                                                  7
                        TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration


Table 1. Interpretation Performance (AUC) on test datasets. The shadowed entries are the results when T OP I N G outperform the means of
the best baselines based on the mean-1*std of T OP I N G.
                                             S INGLE M OTIF                                        M ULTIPLE M OTIF                        R EAL DATASET
M ETHOD              BA-2M OTIFS     BA-H OUSE G RID   SP MOTIF 0.5    SPM OTIF 0.9    BA-H OUSE A ND G RID   BA-H OUSE O R G RID      M UTAG         B ENZENE
GNNE XPLAINER        67.35 ± 3.29     50.73 ± 0.34     62.62 ± 1.35    58.85 ± 1.93        53.04 ± 0.38          53.21 ± 0.36        61.98 ± 5.45   48.72 ± 0.14
PGE XPLAINER         84.59 ± 9.09     50.92 ± 1.51     69.54 ± 5.64    72.34 ± 2.91        10.36 ± 4.37           3.14 ± 0.01       60.91 ± 17.10    4.26 ± 0.36
M ATCH E XPLAINER    86.06 ± 28.37    64.32 ± 2.32     57.29 ± 14.35   47.29 ± 13.39       81.67 ± 0.48          79.87 ± 1.61        91.04 ± 6.59   55.65 ± 1.16
MAGE                 79.81 ± 2.27     82.69 ± 4.78     76.63 ± 0.95    74.38 ± 0.64        99.95 ± 0.06          99.93 ± 0.07        99.57 ± 0.47   96.03 ± 0.63
DIR                  82.78 ± 10.97    65.50 ± 15.31    78.15 ± 1.32    49.08 ± 3.66       64.96 ± 14.31         59.71 ± 21.56       64.44 ± 28.81   54.08 ± 13.75
GIN+GSAT             98.85 ± 0.47     98.55 ± 0.59     74.49 ± 4.46    65.25 ± 4.42        92.92 ± 2.03          83.56 ± 3.57        99.38 ± 0.25   91.57 ± 1.48
GIN+GMT-L IN         97.72 ± 0.59     85.68 ± 2.79     76.26 ± 5.07    69.08 ± 5.14        76.12 ± 7.47          74.36 ± 5.41        99.87 ± 0.09   83.90 ± 6.07
GIN+T OP I N G       99.57 ± 0.60     99.24 ± 0.66     79.50 ± 3.71    80.82 ± 4.22        95.35 ± 0.95          88.56 ± 2.04        95.79 ± 1.93   98.22 ± 0.92
CIN PP +GSAT         91.12 ± 4.93     91.04 ± 6.59     78.20 ± 4.48    80.24 ± 3.66        95.17 ± 2.46          69.30 ± 2.48        97.27 ± 0.47   95.40 ± 3.05
CIN PP +GMT-L IN     91.03 ± 5.24     93.68 ± 4.79     83.23 ± 4.30    76.40 ± 2.38        85.08 ± 3.85          67.91 ± 5.10        97.48 ± 0.81   94.44 ± 2.49
CIN PP +T OP I N G   100.00 ± 0.00    99.87 ± 0.13     95.08 ± 1.84    92.82 ± 2.45       100.00 ± 0.00         100.00 ± 0.00        96.38 ± 2.56   100.00 ± 0.00


Table 2. Prediction Performance (Acc.) on test datasets. The shadowed entries are the results when T OP I N G outperform the means of the
best baselines based on the mean-1*std of T OP I N G.
                                            R EAL DATASET                                 S PURIOUS M OTIF
            M ODEL       M ETHOD            M UTAG               B ENZENE                  b=0.5                  b=0.7                 b=0.9
                         DIR             68.72 ± 2.51           50.67 ± 0.93           45.49 ± 3.81           41.13 ± 2.62          37.61 ± 2.02
                         GSAT            98.28 ± 0.78          100.00 ± 0.00           47.45 ± 5.87           43.57 ± 2.43          45.39 ± 5.02
            GIN
                         GMT-L IN        91.20 ± 2.75          100.00 ± 0.00           51.16 ± 3.51           53.11 ± 4.12          47.60 ± 2.06
                         TOPING          94.20 ± 5.61          100.00 ± 0.00           52.22 ± 2.07           54.46 ± 5.76          50.21 ± 3.22
                         GSAT            96.14 ± 0.67           99.43 ± 0.54           74.70 ± 3.37           70.41 ± 3.44          65.90 ± 4.18
            CIN PP       GMT-L IN        95.27 ± 1.36           98.87 ± 0.92           73.16 ± 3.51           69.11 ± 4.12          68.60 ± 6.06
                         TOPING          92.92 ± 7.02          100.00 ± 0.00           79.30 ± 3.92           75.46 ± 4.62          77.68 ± 4.64

Baselines. We evaluate the interpretability of several meth-                       protocol to ensure fair comparisons. We employ recom-
ods by differentiating between post-hoc and intrinsic in-                          mended hyperparameter settings on baseline methods.
terpretable approaches. The post-hoc methods we com-
pare include GNNExplainer (Ying et al., 2019), PGEx-                               4.2. Result Comparison and Analysis
plainer (Luo et al., 2020), MatchExplainer (Wu et al., 2023),
and Mage (Bui et al., 2024). Additionally, we consider                             Variform Rationale Challenge. As shown in Figure 3, the
the intrinsic interpretable methods DIR (Wu et al., 2022),                         interpretability of two SOTA intrinsic methods decreases
GSAT (Miao et al., 2022), and GMT-Lin (Chen et al., 2024),                         drastically when the complexity of rationale subgraphs in-
known for their state-of-the-art interpretation capabilities                       creases. Our method’s performance is much better and more
and generalization performance.                                                    stable on such datasets with variform rationales. See Fig-
                                                                                   ure 14 in Appendix E.5 for more visualization results.
Setup. Graph Isomorphism Network (GIN) (Xu et al., 2019)
is the default backbone GNN used in baseline models. Be-                           Interpretation performance. As shown in Table 1, com-
cause our framework, T OP I N G, is fundamentally topologi-                        pared to the most post-hoc based methods(in the first row),
cal based, we also implement it on the CIN PP (Giusti et al.,                      and latest intrinsic interpretable models(in the second/third
2023) backbone to showcase its full capabilities. This will al-                    row), T OP I N G has shown significant improvement across al-
low our method to naturally extend beyond standard graphs                          most all datasets. Especially on the Spurious-Motif datasets,
and operate directly on more general filtrations, including                        which are challenging due to spurious correlations in the
those on richer topological domains like simplicial com-                           training data, we achieve significant improvement over the
plexes (Bodnar et al., 2021a;b) and hypergraphs.                                   previous best approach. On the challenging Multiple Mo-
                                                                                   tif and Benzene datasets, T OP I N G even achieves the best
Metrics and evaluation. For interpretation evaluation, we                          performance.
report explanation ROC AUC following (Ying et al., 2019;
Luo et al., 2020). For prediction performance, we report                           Prediction performance. We compare the results of all
classification accuracy for real datasets and SPmotif (Wu                          intrinsic interpretable models training from scratch. Table 2
et al., 2022) for generalization performance. All the results                      shows the prediction accuracy on Real Dataset and Spuri-
are averaged over 5 runs tested with different random seeds.                       ous Motif. T OP I N G significantly outperforms other baseline
All methods adopt the same graph encoder and optimization                          models on the Spurious-Motif datasets, which exhibit vary-


                                                                               8
                                     TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

                                                                                                          5. Conclusion
                                                                                                          In this work, we introduced TOPING, a novel intrinsically
                                                                                                          interpretable GNN framework that leverages persistent ho-
                                                                                                          mology to identify stable rational subgraphs through persis-
                                                                                                          tent rationale filtration learning. Our approach introduces a
                                                                                                          self-adjusted topological constraint, topological discrepancy,
                                                                                                          to measure the statistical topological difference between
                                                                                                          graph distributions. We provided theoretical guarantees that
                                                                                                          our target function can be uniquely optimized by ground
                                                                                                          truth under certain conditions. Through extensive experi-
                                                                                                          ments, we demonstrated that TOPING effectively addresses
                                                                                                          key challenges in interpretable GNNs, including handling
Figure 3. In BA-HouseOrGrid-nRnd dataset, as nRnd increases,                                              variiform rationale subgraphs, balancing performance and
the complexity of rationale subgraphs increases. Existing SOTA                                            interpretability, and avoiding spurious correlations.
methods struggles on such datasets, while T OP I N G’s performance
is much better and stable.
                                                                                                          Acknowledgements
ing degrees of spurious correlations. This supports our claim                                             We greatly thank the actionable suggestions given by re-
that the model can more effectively focus on classifying the                                              viewers. C. Xin and J. Gao acknowledge funding from
optimal stable subgraph through persistent rationale filtra-                                              IIS-22298766, DMS-2220271, DMS-2311064, CRCNS-
tion learning.                                                                                            2207440, CCF-2208663 and CCF-2118953. F. Xu and
                                                                                                          J. Ding were supported by NSF China under Grant No.
Table 3. Ablation studies.We report both interpretation ROC AUC
and prediction accuracy.
                                                                                                          T2421002, 62202299, 62020106005, 62061146002.
                                        BA-2M OTIFS                          BA-H OUSE G RID
  M ETHOD                            ACC               AUC                  ACC            AUC
                                                                                                          Impact Statement
  T OP I N G W / O dTOPO       100.00 ± 0.00       97.90 ± 1.24       89.24 ± 5.40     92.17 ± 6.43
  T OP I N G W / O Lprior       53.49 ± 4.03       93.20 ± 4.61       52.10 ± 1.72     98.76 ± 1.53       The adoption of powerful but opaque Graph Neural Net-
  T OP I N G                   100.00 ± 0.00       100.00 ± 0.00     100.00 ± 0.00     99.87 ± 0.13
                                                                                                          works (GNNs) in critical scientific and decision-making
Ablation Studies. In addition to the interpretability and                                                 domains is hindered by a lack of trustworthy interpretability,
generalizability analysis, we also conduct further ablation                                               as existing methods struggle to explain predictions when
studies to gain a deeper understanding of the results. Table                                              the underlying rationales are structurally diverse. This work
3 illustrates the usefulness of topological discrepancy and                                               directly addresses this gap by introducing T OP I N G, a novel
the prior regularizer. Topological discrepancy is essential                                               framework that leverages a topological perspective to build
for identifying stable and complex substructures, and the                                                 more transparent AI systems. By learning to identify sta-
prior regularizer can be useful in partitioning a graph. We                                               ble and persistent rationale subgraphs, T OP I N G enables
also examine the sensitivity of hyperparameters on the BA-                                                researchers to clarify the decision-making process of their
HouseAndGrid dataset. As shown in Fig. 4, T OP I N G main-                                                models, which is crucial in scientific applications like chem-
tains stable performance on different settings of weights                                                 istry and biology where understanding the causal mecha-
of topological discrepancy and prior regularization. The                                                  nism is as important as the prediction itself. This ability to
performance decreases on too large or too small weights.                                                  handle complex and varied rationales leads to more reliable
                                                                                                          interpretations and improved generalization, providing a
                       MAX: 1.00
                                                                                        MAX: 1.00
                                                                                                          new path toward trustworthy AI.
1.0                                                   1.0
0.8                                                   0.8
0.6                                                   0.6
0.4                                                   0.4
 0.2                                                   0.2
 0.0                                         0.005     0.0                                    0.005
  0.001                                                 0.001
        0.005                         0.05 Beta               0.005                    0.05 Beta
     Topo                                                  Topo
          Reg 0.01                        r Re
                                               g                Reg 0.01                   r Re
                                                                                                g
             Alph          0.050.5   Prio                          Alph     0.050.5   Prio
                  a                                                     a

(a) Sensitivity of Interpretation                      (b) Sensitivity of Prediction
Figure 4. A sensitivity study on BA-HouseAndGrid shows results
with the topological constraint coefficient varied from [0.001,
0.005, 0.01, 0.05] and the coefficient of prior regularization term
from [0.005, 0.05, 0.5].
                                                                                                      9
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

References                                                             Chen, S., Wulamu, A., Zou, Q., Zheng, H., Wen, L., Guo,
                                                                         X., Chen, H., Zhang, T., and Zhang, Y. MD-GNN: A
Amara, K., El-Assady, M., and Ying, R. GInX-Eval: To-
                                                                         mechanism-data-driven graph neural network for molecu-
 wards in-distribution evaluation of graph neural network
                                                                         lar properties prediction and new material discovery. J.
 explanations. In XAI in Action: Past, Present, and Future
                                                                         Mol. Graph. Model., 123(108506):108506, September
 Applications, 2023. URL https://openreview.
                                                                         2023.
 net/forum?id=w6Qnoy2RXG.
                                                                       Chen, Y., Bian, Y., Han, B., and Cheng, J. How inter-
Bodnar, C., Frasca, F., Otter, N., Wang, Y., Lio, P., Montufar,
                                                                         pretable are interpretable graph neural networks? In
  G. F., and Bronstein, M. Weisfeiler and Lehman go
                                                                         Salakhutdinov, R., Kolter, Z., Heller, K., Weller, A.,
  cellular: CW networks. Advances in neural information
                                                                         Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.), Pro-
  processing systems, 34:2625–2640, 2021a.
                                                                         ceedings of the 41st International Conference on Ma-
Bodnar, C., Frasca, F., Wang, Y., Otter, N., Montufar, G. F.,            chine Learning, volume 235 of Proceedings of Machine
  Lio, P., and Bronstein, M. Weisfeiler and Lehman go                    Learning Research, pp. 6413–6456. PMLR, 21–27 Jul
  topological: Message passing simplicial networks. In                   2024. URL https://proceedings.mlr.press/
  International Conference on Machine Learning, pp. 1026–                v235/chen24b.html.
  1037. PMLR, 2021b.
                                                                       Dehmamy, N., Barabási, A.-L., and Yu, R.    Un-
Brown, N.        Bioisosterism in medicinal chemistry.                   derstanding the Representation Power of Graph
  Bioisosteres in medicinal chemistry, pp. 1–14, 2012.                   Neural Networks in Learning Graph Topol-
                                                                         ogy.     Curran Associates Inc., Red Hook, NY,
Bui, N., Nguyen, H. T., Nguyen, V. A., and Ying, R. Explain-             USA, 2019.       URL https://proceedings.
  ing graph neural networks via structure-aware interaction              neurips.cc/paper/2019/file/
  index. In Salakhutdinov, R., Kolter, Z., Heller, K., Weller,           73bf6c41e241e28b89d0fb9e0c82f9ce-Paper.
  A., Oliver, N., Scarlett, J., and Berkenkamp, F. (eds.),               pdf.
  Proceedings of the 41st International Conference on Ma-
  chine Learning, volume 235 of Proceedings of Machine                 Dey, T. K. and Wang, Y. Computational Topology for Data
  Learning Research, pp. 4854–4883. PMLR, 21–27 Jul                      Analysis. Cambridge University Press, 2022.
  2024. URL https://proceedings.mlr.press/                             Dey, T. K. and Xin, C. Computing bottleneck distance
  v235/bui24b.html.                                                      for 2-D interval decomposable modules. In Speck-
Carrière, M. and Blumberg, A. Multiparameter persistence                mann, B. and Tóth, C. D. (eds.), 34th International
  image for topological machine learning. In Larochelle,                 Symposium on Computational Geometry (SoCG 2018),
  H., Ranzato, M., Hadsell, R., Balcan, M., and Lin,                     volume 99, pp. 32:1–32:15, Dagstuhl, Germany,
  H. (eds.), Advances in Neural Information Processing                   2018. Schloss Dagstuhl – Leibniz-Zentrum für In-
  Systems, volume 33, pp. 22432–22444. Curran Asso-                      formatik. doi: 10.4230/LIPIcs.SoCG.2018.32. URL
  ciates, Inc., 2020. URL https://proceedings.                           https://drops.dagstuhl.de/entities/
  neurips.cc/paper/2020/file/                                            document/10.4230/LIPIcs.SoCG.2018.32.
  fdff71fcab656abfbefaabecab1a7f6d-Paper. Dey, T. K. and Xin, C. Rectangular approximation and
  pdf.                                                      stability of 2-parameter persistence modules. CoRR,
Carrière, M., Chazal, F., Ike, Y., Lacombe, T., Royer, M., abs/2108.07429, 2021. URL https://arxiv.org/
  and Umeda, Y. Perslay: A neural network layer for per-    abs/2108.07429.
  sistence diagrams and new graph topological signatures.              Dey, T. K. and Xin, C. Generalized persistence algorithm
  In Chiappa, S. and Calandra, R. (eds.), Proceedings of                 for decomposing multiparameter persistence modules. J.
  the Twenty Third International Conference on Artificial               Appl. Comput. Topol., 6(3):271–322, September 2022.
  Intelligence and Statistics, volume 108 of Proceedings of              URL https://arxiv.org/abs/1904.03766.
  Machine Learning Research, pp. 2786–2796. PMLR, 26–
  28 Aug 2020. URL https://proceedings.mlr.                            Dey, T. K., Shi, D., and Wang, Y. SimBa: An efficient
  press/v108/carriere20a.html.                                           tool for approximating Rips-filtration persistence via sim-
                                                                         plicial batch collapse. ACM J. Exp. Algorithmics, 24,
Chazal, F., de Silva, V., and Oudot, S. Persistence stability            January 2019. ISSN 1084-6654. doi: 10.1145/3284360.
  for geometric complexes. Geometriae Dedicata, 173(1):                  URL https://doi.org/10.1145/3284360.
  193–214, Dec 2014. ISSN 1572-9168. doi: 10.1007/
  s10711-013-9937-z. URL https://doi.org/10.                           Du, M., Liu, N., and Hu, X. Techniques for interpretable
  1007/s10711-013-9937-z.                                                machine learning. Commun. ACM, 63(1):68–77, Decem-

                                                                  10
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

  ber 2019. ISSN 0001-0782. doi: 10.1145/3359786. URL                Horn, M., Brouwer, E. D., Moor, M., Moreau, Y., Rieck,
  https://doi.org/10.1145/3359786.                                     B., and Borgwardt, K. M. Topological graph neural
                                                                       networks. In The Tenth International Conference on
Edelsbrunner, H. and Harer, J. Computational Topology -               Learning Representations, ICLR 2022, Virtual Event,
  an Introduction. American Mathematical Society, 2010.               April 25-29, 2022. OpenReview.net, 2022. URL https:
  ISBN 978-0-8218-4925-5.                                             //openreview.net/forum?id=oxxUMeFwEHd.
Ghrist, R. Barcodes: The persistent topology of data.
 Bulletin of the American Mathematical Society, 45:61–75,            Horton, J. D. A polynomial-time algorithm to find the
  2008. doi: 10.1090/S0273-0979-07-01191-3. URL                        shortest cycle basis of a graph. SIAM Journal on Comput-
  http://www.ams.org/bull/2008-45-01/                                  ing, 16(2):358–366, 1987. doi: 10.1137/0216026. URL
  S0273-0979-07-01191-3/.                                              https://doi.org/10.1137/0216026.

Giusti, L., Reu, T., Ceccarelli, F., Bodnar, C., and Liò, P.        Hu, G. and Latypov, M. I. AnisoGNN: Graph neural net-
  CIN++: Enhancing topological message passing, 2023.                 works generalizing to anisotropic properties of polycrys-
  URL https://arxiv.org/abs/2306.03561.                                tals. Comput. Mater. Sci., 243(113121):113121, July
                                                                       2024.
Gurniak, E. J., Yuan, S., Ren, X., and Branicio, P. S. Har-
  nessing graph convolutional neural networks for identifi-          Immonen, J., Souza, A. H., and Garg, V. Going beyond
  cation of glassy states in metallic glasses. Comput. Mater.          persistent homology using persistent homology. In Pro-
 Sci., 244(113257):113257, September 2024.                             ceedings of the 37th International Conference on Neural
                                                                       Information Processing Systems, NIPS ’23, pp. 63150–
Gurrapu, S., Kulkarni, A., Huang, L., Lourentzou,
                                                                       63173, Red Hook, NY, USA, 2023. Curran Associates
  I., and Batarseh, F. A.     Rationalization for ex-
                                                                       Inc.
  plainable nlp: a survey.     Frontiers in Artificial
 Intelligence, Volume 6 - 2023, 2023. ISSN 2624-                     Jang, E., Gu, S., and Poole, B. Categorical reparameteri-
  8212.     doi: 10.3389/frai.2023.1225093.     URL                    zation with Gumbel-Softmax. In International Confer-
  https://www.frontiersin.org/journals/                                ence on Learning Representations, 2017. URL https:
  artificial-intelligence/articles/10.                                 //openreview.net/forum?id=rkE3y85ee.
  3389/frai.2023.1225093.
                                                                     Jungnickel, D. Graphs, Networks and Algorithms. Springer
Görmez, Y., Sabzekar, M., and Aydın, Z. IGPRED: Combi-
                                                                       Publishing Company, Incorporated, 3rd edition, 2007.
  nation of convolutional neural and graph convolutional
                                                                       ISBN 3540727795.
  networks for protein secondary structure prediction. Pro-
  teins, 89(10):1277–1288, October 2021.                             Kamberaj, H. Random walks in a free energy landscape
Hofer, C. D., Kwitt, R., Niethammer, M., and Uhl, A. Deep              combining augmented molecular dynamics simulations
  learning with topological signatures. In Advances in Neu-            with a dynamic graph neural network model. J. Mol.
  ral Information Processing Systems 30: Annual Confer-                Graph. Model., 114(108199):108199, July 2022.
  ence on Neural Information Processing Systems 2017, De-
                                                            Kavitha, T., Liebchen, C., Mehlhorn, K., Michail,
  cember 4-9, 2017, Long Beach, CA, USA, pp. 1634–1644,
                                                              D., Rizzi, R., Ueckerdt, T., and Zweig, K. A. Cy-
  2017. URL https://proceedings.neurips.
                                                              cle bases in graphs characterization, algorithms,
  cc/paper_files/paper/2017/file/
                                                              complexity, and applications.         Computer Science
  883e881bb4d22a7add958f2d6b052c9f-Paper.
                                                              Review, 3(4):199–243, 2009.            ISSN 1574-0137.
  pdf.
                                                              doi:        https://doi.org/10.1016/j.cosrev.2009.08.001.
Hofer, C. D., Kwitt, R., and Niethammer, M. Learning rep-     URL          https://www.sciencedirect.com/
  resentations of persistence barcodes. Journal of Machine    science/article/pii/S1574013709000483.
  Learning Research, 20(126):1–45, 2019. URL http:
 //jmlr.org/papers/v20/18-358.html.                         Kazius, J., McGuire, R., and Bursi, R. Derivation and
                                                              validation of toxicophores for mutagenicity prediction.
Hofer, C. D., Graf, F., Rieck, B., Niethammer, M., and        Journal of medicinal chemistry, 48(1):312–320, 2005.
  Kwitt, R. Graph filtration learning. In Proceedings of
  the 37th International Conference on Machine Learning,    Kipf, T. N. and Welling, M. Semi-supervised classification
  ICML 2020, 13-18 July 2020, Virtual Event, volume 119       with graph convolutional networks. In Proceedings of the
  of Proceedings of Machine Learning Research, pp. 4314–      5th International Conference on Learning Representa-
  4323. PMLR, 2020. URL http://proceedings.                   tions, ICLR ’17, 2017. URL https://openreview.
  mlr.press/v119/hofer20b.html.                               net/forum?id=SJU4ayYgl.

                                                                11
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

Li, M., Cao, Y., Liu, X., and Ji, H. Structure-aware graph           Ravichandran, A., Araque, J. C., and Lawson, J. W. Pre-
  attention diffusion network for protein-ligand binding               dicting the functional state of protein kinases using in-
  affinity prediction. IEEE Trans. Neural Netw. Learn.                 terpretable graph neural networks from sequence and
  Syst., PP:1–11, September 2023.                                      structural data. Proteins, 92(5):623–636, May 2024.

Liu, W., Wang, J., Wang, H., Li, R., Deng, Z., Zhang, Y.,            Sanchez-Lengeling, B., Wei, J., Lee, B., Reif, E., Wang, P.,
  and Qiu, Y. D-separation for causal self-explanation. In             Qian, W., McCloskey, K., Colwell, L., and Wiltschko, A.
  Oh, A., Naumann, T., Globerson, A., Saenko, K., Hardt,               Evaluating attribution for graph neural networks. Ad-
  M., and Levine, S. (eds.), Advances in Neural Informa-               vances in neural information processing systems, 33:
  tion Processing Systems, volume 36, pp. 43620–43633.                 5898–5910, 2020.
  Curran Associates, Inc., 2023.                                     Schlichtkrull, M. S., Cao, N. D., and Titov, I. Interpret-
                                                                       ing graph neural networks for NLP with differentiable
Liu, W., Deng, Z., Niu, Z., Wang, J., Wang, H., Zhang,
                                                                       edge masking. In International Conference on Learning
  Y., and Li, R. Is the MMI criterion necessary for in-
                                                                       Representations, 2021. URL https://openreview.
  terpretability? degenerating non-causal features to plain
                                                                       net/forum?id=WznmQa42ZAx.
  noise for self-rationalization. In The Thirty-eighth Annual
  Conference on Neural Information Processing Systems,               Sheriff, K., Cao, Y., and Freitas, R. Chemical-motif char-
  2024. URL https://openreview.net/forum?                              acterization of short-range order with E(3)-equivariant
  id=eAqcVZx30k.                                                       graph neural networks. NPJ Comput. Mater., 10(1),
                                                                       September 2024.
Liu, W., Deng, Z., Niu, Z., Wang, J., Wang, H., Zeng, Z., and
  Li, R. Breaking free from MMI: A new frontier in ratio-            Sterling, T. and Irwin, J. J. ZINC 15–ligand discovery for
  nalization by probing input utilization. In The Thirteenth           everyone. Journal of chemical information and modeling,
  International Conference on Learning Representations,                55(11):2324–2337, 2015.
  2025. URL https://openreview.net/forum?                            Swenson, N., Krishnapriyan, A. S., Buluc, A., Morozov,
  id=WZ0s2smcKP.                                                       D., and Yelick, K. PersGNN: Applying topological data
                                                                       analysis and geometric deep learning to structure-based
Luo, D., Cheng, W., Xu, D., Yu, W., Zong, B., Chen, H.,
                                                                       protein function prediction. arXiv:2010.16027v1, 2020.
  and Zhang, X. Parameterized explainer for graph neural
                                                                       URL https://arxiv.org/abs/2010.16027.
  network. In Proceedings of the 34th International Con-
  ference on Neural Information Processing Systems, NIPS             Tishby, N., Pereira, F. C., and Bialek, W. The infor-
  ’20, pp. 19620 – 19631, 2020.                                        mation bottleneck method. In Proc. of the 37-th An-
                                                                       nual Allerton Conference on Communication, Control
Miao, S., Liu, M., and Li, P. Interpretable and gener-                 and Computing, pp. 368–377, 1999. URL https:
 alizable graph learning via stochastic attention mecha-               //arxiv.org/abs/physics/0004057.
 nism. In Chaudhuri, K., Jegelka, S., Song, L., Szepes-
 vari, C., Niu, G., and Sabato, S. (eds.), Proceedings of            Veličković, P., Cucurull, G., Casanova, A., Romero, A.,
 the 39th International Conference on Machine Learn-                   Liò, P., and Bengio, Y. Graph Attention Networks.
 ing, volume 162 of Proceedings of Machine Learn-                      International Conference on Learning Representations,
 ing Research, pp. 15524–15543. PMLR, 17–23 Jul                        2018. URL https://openreview.net/forum?
 2022. URL https://proceedings.mlr.press/                              id=rJXMpikCZ.
 v162/miao22a.html.                                                  Villani, C. Optimal Transport : Old and New, volume
                                                                       338 of Grundlehren der mathematischen Wissenschaften.
Mukherjee, S., Samaga, S. N., Xin, C., Oudot, S., and Dey,
                                                                       Springer Berlin Heidelberg, Berlin, Heidelberg, 1. aufl.
 T. K. D-GRIL: end-to-end topological learning with 2-
                                                                       edition, 2009. ISBN 9783540710493.
 parameter persistence, 2024. URL https://arxiv.
 org/abs/2406.07100.                                                 Williams, V. V., Xu, Y., Xu, Z., and Zhou, R. New bounds
                                                                      for matrix multiplication: from alpha to omega. In Pro-
Patani, G. A. and LaVoie, E. J. Bioisosterism: a rational             ceedings of the 2024 Annual ACM-SIAM Symposium on
  approach in drug design. Chemical reviews, 96(8):3147–              Discrete Algorithms (SODA), pp. 3792–3835, 2024.
  3176, 1996.
                                                                     Wong, C.-C. and Vong, C.-M. Persistent homology based
Qu, C., Kearsley, A. J., Schneider, B. I., Keyrouz, W., and           graph convolution network for fine-grained 3D shape seg-
 Allison, T. C. Graph convolutional neural network applied            mentation. In 2021 IEEE/CVF International Conference
  to the prediction of normal boiling point. J. Mol. Graph.           on Computer Vision (ICCV), pp. 7078–7087. IEEE, Octo-
 Model., 112(108149):108149, May 2022.                                ber 2021.

                                                                12
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

Wu, F., Li, S., Jin, X., Jiang, Y., Radev, D., Niu, Z., and Li,        Yan, Z., Ma, T., Gao, L., Tang, Z., Wang, Y., and Chen,
 S. Z. Rethinking explaining graph neural networks via                   C. Neural approximation of graph topological features.
 non-parametric subgraph matching. In International Con-                 In Proceedings of the 36th International Conference on
 ference on Machine Learning, pp. 37511–37523. PMLR,                     Neural Information Processing Systems, NIPS ’22, Red
 2023.                                                                   Hook, NY, USA, 2022. Curran Associates Inc. ISBN
                                                                         9781713871088.
Wu, T., Ren, H., Li, P., and Leskovec, J. Graph information
 bottleneck. In Proceedings of the 34th International                  Yao, Y., Li, Z., and Zhao, H. Beyond chain-of-thought,
 Conference on Neural Information Processing Systems,                    effective graph-of-thought reasoning in large language
 NIPS ’20, pp. 20437 – 20448, Red Hook, NY, USA, 2020.                   models. arXiv preprint arXiv:2305.16582, 2023.
 Curran Associates Inc. ISBN 9781713829546.
                                                                       Yao, Y., Li, Z., and Zhao, H.         GoT: Effective
Wu, Y.-X., Wang, X., Zhang, A., He, X., and Chua, T.-                    graph-of-thought reasoning in language models. In
 S. Discovering invariant rationales for graph neural net-               Duh, K., Gomez, H., and Bethard, S. (eds.), Find-
 works. ICLR 2022, 2022. doi: 10.48550/arxiv.2201.                       ings of the Association for Computational Linguis-
 12872.                                                                  tics: NAACL 2024, pp. 2901–2921, Mexico City,
                                                                         Mexico, June 2024. Association for Computational
Xiao, J., Yang, L., Wang, S., and He, Z. Accurate pre-                   Linguistics. doi: 10.18653/v1/2024.findings-naacl.
  diction of second harmonic generation coefficients using               183. URL https://aclanthology.org/2024.
  graph neural networks. Comput. Mater. Sci., 244(113203):               findings-naacl.183/.
  113203, September 2024.
                                                                       Ye, X., Sun, F., and Xiang, S. TREPH: A plug-in topological
Xin, C. Decomposition and Stability of Multiparam-                       layer for graph neural networks. Entropy (Basel), 25(2):
  eter Persistence Modules. PhD thesis, 2023. URL                        331, February 2023.
  https://login.proxy.libraries.rutgers. Ying, R., Bourgeois, D., You, J., Zitnik, M., and Leskovec, J.
  edu/login?qurl=https%3A%2F%2Fwww.                    GNNExplainer: Generating explanations for graph neural
  proquest.com%2Fdissertations-theses%                 networks. Adv. Neural Inf. Process. Syst., 32:9240–9251,
  2Fdecomposition-stability-multiparameter% December 2019.
  2Fdocview%2F2890697441%2Fse-2%
  3Faccountid%3D13626. Copyright - Database          Yu, J., Xu, T., Rong, Y., Bian, Y., Huang, J., and He, R.
  copyright ProQuest LLC; ProQuest does not claim      Graph information bottleneck for subgraph recognition.
  copyright in the individual underlying works; Last   In International Conference on Learning Representations
  updated - 2024-09-23.                                (ICLR),  2021.

Xin, C., Mukherjee, S., Samaga, S. N., and Dey, T. K.                  Zhang, H., Wu, B., Yuan, X., Pan, S., Tong, H., and Pei, J.
  GRIL: A 2-parameter persistence based vectorization                    Trustworthy graph neural networks: Aspects, methods,
  for machine learning. In Proceedings of 2nd Annual                     and trends. Proceedings of the IEEE, 112(2):97–139,
  Workshop on Topology, Algebra, and Geometry in Ma-                     2024a. doi: 10.1109/JPROC.2024.3369017.
  chine Learning (TAG-ML), volume 221 of Proceedings                   Zhang, S., Xiao, M., and Wang, H. GPU-accelerated com-
  of Machine Learning Research, pp. 313–333. PMLR, 7                     putation of Vietoris-Rips persistence barcodes. In 36th
  2023. URL https://proceedings.mlr.press/                               International Symposium on Computational Geometry
  v221/xin23a.html.                                                      (SoCG 2020). Schloss Dagstuhl-Leibniz-Zentrum für In-
                                                                         formatik, 2020.
Xu, K., Hu, W., Leskovec, J., and Jegelka, S. How powerful
  are graph neural networks? In International Conference               Zhang, S., Mukherjee, S., and Dey, T. K. GEFL: Extended
  on Learning Representations, 2019. URL https://                        filtration learning for graph classification. In Rieck, B.
  openreview.net/forum?id=ryGs6iA5Km.                                    and Pascanu, R. (eds.), Proceedings of the First Learning
                                                                         on Graphs Conference, volume 198 of Proceedings of
Yan, Z., Ma, T., Gao, L., Tang, Z., and Chen, C. Link                    Machine Learning Research, pp. 16:1–16:26. PMLR, 09–
  prediction with persistent homology: An interactive                    12 Dec 2022. URL https://proceedings.mlr.
  view. In Meila, M. and Zhang, T. (eds.), Proceed-                      press/v198/zhang22b.html.
  ings of the 38th International Conference on Machine
  Learning, volume 139 of Proceedings of Machine Learn-                Zhang, S., Xin, C., and Dey, T. K. Expressive higher-
  ing Research, pp. 11659–11669. PMLR, 18–24 Jul                         order link prediction through hypergraph symmetry break-
  2021. URL https://proceedings.mlr.press/                               ing. Transactions on Machine Learning Research, 2024b.
  v139/yan21b.html.                                                      ISSN 2835-8856.

                                                                  13
                  TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

Zhao, Q., Ye, Z., Chen, C., and Wang, Y. Persistence
  enhanced graph neural network. In Chiappa, S. and Ca-
  landra, R. (eds.), Proceedings of the Twenty Third Inter-
  national Conference on Artificial Intelligence and Statis-
  tics, volume 108 of Proceedings of Machine Learning
  Research, pp. 2896–2906. PMLR, 2020.
Zomorodian, A. and Carlsson, G. Computing persistent
  homology. In Proceedings of the twentieth annual sym-
  posium on Computational geometry, pp. 347–356, 2004.
  URL https://link.springer.com/content/
  pdf/10.1007/s00454-004-1146-y.pdf.




                                                               14
                       TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

A. List of Notations
In the following, we list the notations for key concepts involved in this paper.


                                                      Table 4. List of Notations.
              Symbol                   Description

              G = (V, E)               A graph with vertex set V and edge set E.
              GX                       Candidate rationale subgraph.
              Gϵ                       Candidate noise or less relevant part of the graph.
              G∗X                      Oracle rationale subgraph.
              G∗ϵ                      Oracle noise or less relevant part of the graph.
                                 |E|
              fϕ : G → [0, 1]          Filtration functional.
              F(G)                     Graph filtration.
              F(G≤t )                  Subfiltration consisting of subgraphs with f (e) ≤ t.
              F(G≥t )                  Subfiltration consisting of subgraphs with f (e) ≥ t.
              T                        Topological invariant (e.g., persistence barcode).
              dtopo                    Topological discrepancy.
              dbottle                  Bottleneck distance.
              dwass                    1-Wasserstein distance.
              hϕ                       GNN model for prediction.
              σ                        Extraction function to separate graph G into GX and Gϵ .
              φ                        Vectorization function for persistence diagrams.
              Pprior                   Prior distribution on edge filtration.
              Lprior                   Prior regularization.
              α, β, γ                  Hyperparameters for loss function components.


B. More details of TDA
Bottleneck Distance:
Definition B.1 (Bottleneck Distance). Let P1 and P2 be two persistent barcodes. A partial matching π between P1 and
P2 is a subset of P1 × P2 such that each point in P1 and P2 appears in at most one pair in π. For any p = (p1 , p2 ) ∈ R2 ,
denote p̄ = (p2 − p1 , p2 − p1 ). Geometrically, p̄ is the closest point of p to the diagonal line ∆ = {(x, x) | x ∈ R}. The
bottleneck distance between P1 and P2 is defined as:

                        dB (P1 , P2 ) = inf max{ max ∥p − q∥∞ , max ∥p − p̄∥∞ , max ∥q − q̄∥∞ }                         (3)
                                        π       (p,q)∈π               p∈P1 \π1            q∈P2 \π2

where:

  • π ranges over all partial matchings between P1 and P2
  • ∥ · ∥∞ denotes the ∞-norm
  • π1 and π2 denote the projections of π onto P1 and P2 respectively

Intuitively, bottleneck distance measures the minimum cost of transforming one barcode to another by moving each point to
another point in the other barcode. The cost is measured by the maximum distance between matched points in a partial
matching, or the maximum distance between the rest unmatched points to the diagonal line ∆. The bottleneck distance
is a metric on the space of persistent barcodes, which is well studied in topological data analysis (Edelsbrunner & Harer,

                                                                 15
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

2010; Zomorodian & Carlsson, 2004; Chazal et al., 2014; Dey & Xin, 2018). It is shown in (Edelsbrunner & Harer, 2010)
that the bottleneck distance is a stable metric on the space of persistent barcodes, which means that small perturbations in
the input data will not change the bottleneck distance too much. This property is crucial for the stability of the persistent
homology, which is a key property for the robustness and differentiability of all vector representations based on persistent
homology (Dey & Xin, 2021; 2022; Xin, 2023).

C. Missing Proofs
Proof of Theorem 3.4

Proof. By the assumption we know that the first term can only be optimized by GX ≥ G∗X . We just need to show that dtopo
is uniquely maximized by G∗X among those GX ≥ G∗X . In other words, we could assume that we have already restricted fϕ
to the region that satisfies fϕ |EX
                                  ∗ > 0.5 + δ (the partition threshold t = 0.5 is fixed).


For a given G and a fixed partition GX ⊔ Gϵ determined by some fϕ , let p0 , p1 be the 0-th and 1-st persistence diagrams,
and q0 , q1 be the 0-th and 1-st persistence diagrams. Observe that the bottleneck distance between the 0-th persistence
diagrams dB (p0 , q0 ) is maximized when
                                                   fϕ (e) = 1{e ∈ GX }.                                                (4)
The reason is that since we only care about edge filtrations, the filtration values on nodes can be viewed as some global
minimum constant value which is commonly set to be time 0 (or more precisely, 1 for GX and 0.5 for Gϵ since we build
the filtration in the reversed ordering of importance). Then since |Eϵ | > |EX | =⇒ |q0 | > |p0 |, we hope to maximize
the death times of points in q0 and minimize the death times of points in p0 to maximize dB (p0 , q0 ), which gives us the
constant filtration function fϕ (e) = 1{e ∈ GX } on each partition. Then, for constant filtration functions, the induced
graph filtrations are essentially reduced to static graphs, and in consequences, persistent homology is essentially reduced to
homology. For 0-degree homology, we just need to compare the 0-th Betti numbers β0ϵ and β0X between Gϵ and GX . In that
case, dB (p, q) = C(β0ϵ − β0X ) = C(|Eϵ | − |EX |) = C(|GE | − 2|EX |) for some constant C independent of ϕ or G. This is
maximized when GX = G∗X .
The rest is to check the bottleneck distance dB (p1 , q1 ) on 1-th persistence diagrams. In a similar way one can check that
dB (p1 , q1 ) should be maximized for some constant filtration function. Then the problem is again reduced to compare
the 1-degree homology between GX and Gϵ . That is |β1X − β1ϵ |. However, observe that |β1X − β1ϵ | ≤ β1 for β1 be the
1-st Betti number of the original graph. By the property of the Euler characteristic on a connected graph we know that
β1 ≤ |E| − |V | + 1 ≤ |E| ≤ |V |2 . Therefore, dB (p1 , q1 ) ≤ M for some large enough M over the whole dataset.
Based on that, since dtopo is essentially a weighted sum of dB on both 0-th and 1-st persistence diagrams, we just need a
large enough constant scaling factor on 0-th persistence diagrams. Then it can been guaranteed that our dtopo is optimized by
G∗X with fϕ∗ (e) = 1{e ∈ G∗X }. Such constant factor can be easily learned by our neural networks, or fixed by hand in the
model.

D. Limitation
One limitation of our model is the computational cost. Currently the bottleneck is limited by the computation of the
topological invariants. In theory, the time complexity of the persistent homology computation is O(nω ), where n is
the number of simplices (nodes for degree 0, edges for degree 1, and faces for degree 2) and ω ≤ 2.371552 is the
matrix multiplication exponent (Williams et al., 2024). Although on graphs, the 0-th and 1-st persistent homology can
be computed much faster in O(n log n) time, the main bottleneck is not in theoretical computational complexity, but in
practical implementation.
Practical Runtime Analysis. To provide concrete insights into the computational overhead, we measured the actual training
time on representative datasets. On BA-2Motifs, each training epoch takes approximately half a minute, while on SPMotif
(a more complex and larger dataset), the runtime is approximately 10 minutes per epoch. All experiments were conducted
on a single RTX 4090 GPU. Importantly, our method consistently converges within 20 epochs across all datasets, in contrast
to baseline methods that usually require 50-100 epochs to converge.
While our method is relatively slower per epoch due to TDA incorporation, this overhead is justified by significant
performance gains and faster convergence. The reduced number of required epochs (20 vs. 50-100 for baselines) partially

                                                             16
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

compensates for the per-epoch computational cost, making the total training time competitive with baseline methods while
achieving consistently superior interpretability performance.
Implementation Bottlenecks and Future Directions. The current software package cannot fully utilize the parallel
computation power of GPUs. The data transfer between GPU memory and CPU memory takes much I/O cost. Maybe
some system-level optimization based on the CUDA framework can help. Some attempts have been made to use GPU to
accelerate the computation of persistent homology (Zhang et al., 2020), but the performance is still not satisfactory enough.
Another possible solution is to use some approximation algorithms to compute the topological invariants. For example,
some efficient sparsification methods (Dey et al., 2019), or pretained NNs for computing persistent homology (Yan et al.,
2022). We leave these problems for the future.

E. More Details about the Experiments
E.1. Datasets
Mutag (Kazius et al., 2005): The dataset involves a task of predicting molecular properties, specifically determining whether
a molecule is mutagenic. The functional groups -NO2 and -NH2 are regarded as definitive indicators that contribute to
mutagenicity, as noted by (Luo et al., 2020).
Benzene (Sanchez-Lengeling et al., 2020): The dataset comprises 12,000 molecular graphs sourced from ZINC15 (Sterling
& Irwin, 2015). The objective is to identify the presence of benzene rings within a molecule. The carbon atoms in these
benzene rings serve as the ground-truth explanations.
BA-2Motifs (Luo et al., 2020): The dataset involves a binary classification task in which each graph combines a Barabasi-
Albert base structure with either a house motif or a five-cycle motif. The graph’s label and ground-truth explanation are
based on the motif it includes.
SPmotif (Wu et al., 2022): The dataset consists of graphs that merge a base structure with a motif. Each graph is manually
infused with a spurious correlation between the base and the motif. The graph’s label and the ground truth explanation are
determined by the motif it contains. Specifically, each graph comprises a base graph ḠS (tree, ladder, or wheel, encoded as
0, 1, 2) and a motif GS (cycle, house, or crane, also encoded as 0, 1, 2). The label is solely determined by GS , but a spurious
correlation is introduced between the label and ḠS . During training, GS is sampled uniformly, while ḠS is sampled with:
                                                          (
                                                            b,      if ḠS = GS
                                               P (ḠS ) = 1−b
                                                              2 , otherwise


Here, b ∈ [ 31 , 1] controls the degree of spurious correlation; b = 13 implies independence. We consider b = 0.5, 0.7, and 0.9.
For testing, ḠS and GS are randomly paired to assess overfitting to spurious correlations.
BA-HouseGrid: The house and grid motifs are chosen because they do not have overlapping structures, such as those found
in the house and 3 × 3 grid.
BA-HouseAndGrid (Bui et al., 2024): Each graph is based on a Barabasi-Albert structure and may be linked with either a
house motif or a grid motif. Graphs that contain both types of motifs are labeled as 1, while those containing only one type
are labeled as 0. Note that each motif appears at most once in each graph.
BA-HouseOrGrid (Bui et al., 2024): Similar to BA-HouseAndGrid, graphs that contain either house motif or grid motif are
labeled as 1, while those containing neither type are labeled as 0. Note that each motif appears at most once in each graph.
BA-HouseOrGrid-nRnd: Similar to BA-HouseOrGrid, graphs that contain either n house motifs or n grid motifs are
labeled as 1, where n is a random integer between 1 (inclusive) and n (inclusive). More formally:

   • Label Assignment:
                                          P (Label = 1) = 0.5,      P (Label = 0) = 0.5

   • For Label = 1: Given n ∈ Z+ , for each i ∈ {1, 2, . . . , n}, the three possible manifestations are:

                                                                                  1
                                               P (i × grid + i × house) =           ,
                                                                                 6n
                                                              17
                   TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration

                                                                          1
                                                       P (i × grid) =       ,
                                                                         6n
                                                                           1
                                                      P (i × house) =        .
                                                                          6n
     When grid and house appear simultaneously, their counts are equal. We do not consider cases where houses and
     grids appear simultaneously in different quantities. To ensure a balanced dataset and to avoid potential bias in model
     training and evaluation, we first guarantee that the number of graphs with label 0 and label 1 is equal. Furthermore,
     within label 1, we generate an equal number of graphs for the above three manifestations. Therefore, the entire dataset
     maintains a balanced distribution across subcategories.

E.2. Details on Hyperparamter Tuning
E.2.1. BACKBONE M ODELS
Backbone Architecture. We use a two-layer GIN (Xu et al., 2019) with 64 hidden dimensions and 0.3 dropout ratio for
all baselines. We use a three-layer CINpp (Giusti et al., 2023) with 64 hidden dimensions and 0.15/0.3 dropout ratio for
T OP I N G. For all datasets, we directly follow (Giusti et al., 2023) using enhanced Topological Message Passing scheme
including messages that flow within the lower neighbourhood, the upper neighbourhood and boundary neighbourhood of
the underlying cell complex. Considering that the largest chordless cycle for most interpretable motifs is equal to 5 (the
BA-2Motifs dataset includes a 5-cycle, while most of the other motifs have chordless cycles with a maximum length of 4),
we lift the maximum length of a chordless cycle to 5 as the cell(dim=2).
Data Splits. For BA synthetic datasets, we follow the previous work (Miao et al., 2022; Chen et al., 2024; Bui et al., 2024)
to split them into three sets(80%/10%/10%). For SPmotifs and real datasets, we use the default splits.
Evaluation. We report the performance of the epoch with the highest validation prediction accuracy and use these models as
the pre-trained models. If multiple epochs achieve the same top performance, we choose the one with the lowest validation
prediction loss.

E.3. More Comparison Results
To further evaluate the effectiveness of T OP I N G modules and compare with the previous intrinsic interpretable baselines, we
additionally conduct experiments from the perspectives of constraints and regularization on both GIN and CINpp backbones.
The results are given in the table 5. Details are as follows.
Constraint. Central to existing self-interpretability is the incorporation of the information bottleneck principle into the
GNN architecture. We follow previous works to re-implement this infomation constraint under the author-recommended
hyperparameters for a fair comparison. The λ of information regularizer is set to be 1. As for topological constraint, we set
the coefficient to 0.01 to achieve the best performance, which aligning with Figure 4.
Regularization. For marginal prior regularization, the choice of information constraint is a KL divergence regularizer.
Specifically, for every graph G ∼ PG and every undirected edge e in G, we sample αe ∼ Bern(r) where r ∈ [0, 1] is a
hyperparameter. The formulation of the mutual information regularizer is:

                                                          X       αe                 1 − αe
                                                                                             
                          DKL (Bern(αe ) ∥ Bern(r)) =       αe log    + (1 − αe ) log                                       (5)
                                                          e
                                                                   r                   1−r

r is initially set to 0.9 and gradually decay to the tuned value 0.7. We adopt a step decay,where r will decay 0.1 for every 10
epochs. As it is mentioned in T OP I N G, we employ a mixture of two Gaussian distributions to establish a prior regularization
term on GX and Gϵ , as outlined in Section 3.2. It is noteworthy that our choice aligns with the use of a standard Gaussian
distribution as the latent distribution in variational auto-encoders. For fair comparison, we set the coefficient of Gaussian
regularizer to 1.
Different components have different effects. Once could select the best combination and train the new architecture to better
extract the subgraph information. Moreover, We provide more discussions and analysis about the the results in the table 5.
Specifically,

                                                              18
                             TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration


                                                                   Table 5. More Comparison Results
                                                                         Prediction                                                           Interpretation
 Backbone   Constraint   Regularization   BA-2Motifs      SPMotif0.5     BA-HouseOrGrid-2Rnd     Benzene       BA-2Motifs      SPMotif0.5       BA-HouseOrGrid-2Rnd     Benzene

            Info.        Bern             100.00 ± 0.00   47.45 ± 5.87         95.25 ± 1.60    100.00 ± 0.00   98.74 ± 0.55    74.49 ± 4.46           76.02 ± 3.64    91.57 ± 1.48
            Topo.        Gauss            100.00 ± 0.00   50.22 ± 2.07         91.35 ± 1.83    100.00 ± 0.00   99.57 ± 0.60    79.50 ± 3.71           88.74 ± 1.70    98.22 ± 0.92
 GIN
            Topo.        –                89.35 ± 5.41    42.80 ± 5.31         88.41 ± 1.51    98.35 ± 0.93    95.79 ± 3.30    75.92 ± 2.98           87.88 ± 2.18    96.54 ± 0.82
            –            Gauss            100.00 ± 0.00   45.95 ± 3.02         92.87 ± 1.88    98.96 ± 0.30    98.06 ± 1.81    72.95 ± 2.45           85.28 ± 1.98    86.08 ± 2.68

            Info.        Bern             100.00 ± 0.00   63.35 ± 6.06        100.00 ± 0.00    100.00 ± 0.00   91.12 ± 4.93    78.20 ± 4.48           75.98 ± 7.09    95.40 ± 3.05
            Topo.        Gauss            100.00 ± 0.00   79.30 ± 3.92        100.00 ± 0.00    100.00 ± 0.00   100.00 ± 0.00   95.08 ± 0.82          100.00 ± 0.00    100.00 ± 0.00
 CINpp
            Topo.        –                53.49 ± 4.03    61.18 ± 3.20         91.83 ± 6.30    98.52 ± 1.40    93.20 ± 4.61    92.10 ± 3.32           97.78 ± 1.54    98.96 ± 1.66
            –            Gauss            100.00 ± 0.00   79.81 ± 4.39         88.84 ± 4.93    100.00 ± 0.00   97.90 ± 1.24    89.48 ± 2.54           98.16 ± 1.25    94.12 ± 3.49




   • When integrating GNN models with enhanced topological message passing scheme, robust explainability methods
     should be able to adapt accordingly and achieve higher and more stable performance, because stronger expressive
     power often means that each edge in the graph can be more easily distinguished. However, the performance of
     graph information bottleneck framework remains highly degenerated in simple task BA-2Motifs and complicated
     task BA-HouseOrGrid-2Rnd. Due to the formulation 5, there exists a trivial solution where all values of αe converge
     directly to the given value of r. CINpp employs distinct perceptrons for each layer of the network and each dimension
     of the complex. It iteratively performs message passing for different types of adjacency. This unique architecture can
     lead information constraint more easily to zero loss, i.e., αe = r. It will result in the inability to distinguish between
     interpretable subgraphs and noise subgraphs.

   • The topological constraint with a Gaussian prior distribution significantly outperforms both GIN and CINpp across all
     tasks, although it occasionally slightly reduces accuracy. Equipped with a more powerful expressive model, T OP I N G
     can easily learn persistent rationale filtration through topological discrepancy loss. One surprising result is that
     using only the Gaussian distribution yields highly competitive results in interpreting spurious motif datasets and the
     BA-HouseOrGrid-nRnd datasets. Nevertheless, the interpretation performance on Benzene dataset remains highly
     degenerated.

E.4. Regarding the result of MUTAG
The results of MUTAG can be attributed to the uniquely simple structure of MUTAG’s rationale subgraphs. MUTAG’s
rationale subgraphs consist of just two edges sharing a common node (the functional groups -NO2 and -NH2). This
represents the simplest possible non-trivial subgraph structure, lacking the topological complexity present in other datasets.
Specifically:

   • There are no cycles (1-homology features)

   • The 0-homology structure (connectivity) is nearly trivial

   • The rationale can be identified primarily through node/edge features rather than topological structure

In such cases, our topological discrepancy measure, which excels at capturing complex structural patterns, may introduce
unnecessary complexity by analyzing features (like cycle bases) that aren’t relevant to the true rationale. The model ends up
relying more heavily on the prediction loss other than the interpretability regularization.
Following up on our previous response regarding MUTAG performance, we conducted additional experiments that provide
compelling evidence for our analysis. Our investigation revealed that the initial lower performance on MUTAG stemmed
from incorporating both 0th and 1st dimensional persistent homology features. However, the rationale subgraphs of MUTAG
—- primarily NO2 and NH2 functional groups —- have relatively simple structures. Therefore, tracking higher-dimensional
topological features like cycles introduced unnecessary complexity that hurt the model’s performance.
As shown in the Table 6, TopInG-0 achieves the second-best performance in both interpretability (AUC) and prediction
(ACC) compared to baseline interpretable GNN models. These results validate our analysis and demonstrate that our
approach remains highly competitive when properly configured for molecular datasets with simpler structural patterns.

                                                                                          19
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration


                                  Table 6. Comparison of interpretable GNN on MUTAG dataset.
                                         Method              AUC               ACC

                                         DIR            64.44 ± 28.81     68.72 ± 2.51
                                         GSAT           99.38 ± 0.25      98.28 ± 0.78
                                         GMT-LIN        99.87 ± 0.09      91.20 ± 2.75
                                         TopInG         96.38 ± 2.56      92.92 ± 7.02
                                         TopInG-0       99.40 ± 0.07      95.18 ± 2.24


E.5. Interpretation Visualization
We provide visualization of the learned interpretabel subgraphs by GSAT, GMT-L IN and T OP I N G in the different datasets.
The transparency of the edges shown in the figures represents the normalized attention weights learned by interpretable
method. Note that we no longer need min-max normalization like (Miao et al., 2022) for better visualization, we can directly
use edge attention to visualize through rational filtration learning, because persistent homology gap has guaranteed that our
edge attention is easy to be distinguished.




                 (a) GSAT                                 (b) GMT-L IN                                (c) T OP I N G

Figure 5. Learned interpretable subgraphs by GSAT, GMT-L IN and T OP I N G on BA-HouseAndGrid. Figures in each row belong to the
same class. Nodes colored red are ground-truth explanations.




Figure 6. Visualizing attention of GSAT(first row), GMT-L IN(second row) and T OP I N G (third row) on Benzene. Figures in the same
column represent an identical graph. Nodes colored red are ground-truth explanations.




                                                                20
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration




Figure 7. Learned interpretable subgraphs by GSAT (first row), GMT-L IN(second row) and T OP I N G(third row) on BA-HouseOrGrid-
2Rnd. Figures in the same column represent an identical graph. Nodes colored red are ground-truth explanations.




Figure 8. Learned interpretable subgraphs by GSAT (first row), GMT-L IN(second row) and T OP I N G(third row) on BA-HouseOrGrid-
4Rnd. Figures in the same column represent an identical graph. Nodes colored red are ground-truth explanations.




Figure 9. Learned interpretable subgraphs by GSAT (first row), GMT-L IN(second row) and T OP I N G(third row) on SPmotif0.9 class 0.
Figures in the same column represent an identical graph. Nodes colored red are ground-truth explanations.



                                                                21
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration




Figure 10. Learned interpretable subgraphs by GSAT (first row), GMT-L IN(second row) and T OP I N G(third row) on SPmotif0.9 class 1.
Figures in the same column represent an identical graph. Nodes colored red are ground-truth explanations.




Figure 11. Learned interpretable subgraphs by GSAT (first row), GMT-L IN(second row) and T OP I N G(third row) on SPmotif0.9 class 2.
Figures in the same column represent an identical graph. Nodes colored red are ground-truth explanations.




                                                                22
                    TopInG: Topologically Interpretable Graph Learning via Persistent Rationale Filtration




Figure 12. The rationals of SPmotif0.9 learned by T OP I N G. Figures in each row belong to the same category. Nodes colored red are
ground-truth explanations.




              Figure 13. The rationals of Mutag learned by T OP I N G. Nodes colored red are ground-truth explanations.




Figure 14. We trained T OP I N G on BA-HouseOrGrid-nRnd with n = 4 only, and test it on BA-HouseOrGrid-nRnd for n = (2, 3, 5, 6).
We still observe high prediction prediction(ACC=100%) and interpretation(AUC=100%) performance on test datasets. The figure
illustrates interpretation results of BA-HouseOrGrid-nRnd for n = (2, 3, 5, 6). Nodes colored red are ground-truth explanations.


                                                                 23
