Line Graph Vietoris-Rips Persistence Diagram for Topological Graph Representation Learning

Jae‐Sun Shin, Eunjoo Jeon, T.-c. Cho, Nam Ik Cho, Youngjune GwonarXiv 2024 · DOI

Abstract

While message passing graph neural networks result in informative node embeddings, they may suffer from describing the topological properties of graphs. To this end, node filtration has been widely used as an attempt to obtain the topological information of a graph using persistence diagrams. However, these attempts have faced the problem of losing node embedding information, which in turn prevents them from providing a more expressive graph representation. To tackle this issue, we shift our focus to edge filtration and introduce a novel edge filtration-based persistence diagram, named Topological Edge Diagram (TED), which is mathematically proven to preserve node embedding information as well as contain additional topological information. To implement TED, we propose a neural network based algorithm, named Line Graph Vietoris-Rips (LGVR) Persistence Diagram, that extracts edge information by transforming a graph into its line graph. Through LGVR, we propose two model frameworks that can be applied to any message passing GNNs, and prove that they are strictly more powerful than Weisfeiler-Lehman type colorings. Finally we empirically validate superior performance of our models on several graph classification and regression benchmarks.

Introduction

Message Passing Graph Neural Networks (MPGNNs) have become the standard for graph representation learning. However, they are fundamentally limited by their local nature; they excel at capturing neighborhood features but often fail to grasp global topological structures, such as large cycles or complex connectivity patterns. This limitation is often characterized by their equivalence to the 1-dimensional Weisfeiler-Lehman (1-WL) isomorphism test.

To address this, researchers have integrated Topological Data Analysis (TDA), specifically persistent homology, into GNNs. Most existing approaches utilize node filtration, where a graph is analyzed by gradually including nodes based on their feature values. However, node filtration can be lossy. If two distinct graphs share similar node feature distributions, their persistence diagrams may become identical, rendering them indistinguishable even when they are structurally different.

Methodology: Topological Edge Diagram (TED)

To overcome the limitations of node-based TDA, this work introduces the Topological Edge Diagram (TED). Instead of filtering by nodes, TED focuses on edge filtration. This shift allows the model to directly observe and control the connectivity of the graph, ensuring that node embedding information is preserved while simultaneously capturing higher-order topological context.

Comparison of Node Filtration vs. Edge Filtration (TED) for distinguishing non-isomorphic graphs G and H.

Line Graph Vietoris-Rips (LGVR)

To implement TED efficiently, the authors propose the Line Graph Vietoris-Rips (LGVR) algorithm. The process involves:

  1. Line Graph Transformation: The input graph is converted into its line graph, where edges of the original graph become nodes, and connections represent shared endpoints.
  2. Edge Feature Encoding: Node features from the original graph are aggregated to form features for the "edge nodes" in the line graph.
  3. Vietoris-Rips Filtration: Standard TDA tools are applied to these edge features to generate persistence diagrams.

The authors propose two architectures: $\mathcal{C}$-LGVR, which uses the persistence diagram from the line graph as the primary graph representation, and $\mathcal{C}$-LGVR+, a hybrid framework that integrates the topological diagram with standard GNN pooling outputs (e.g., from GIN or PPGN) using a specialized integration technique to maximize expressivity.

Theoretical Contributions and Results

A key theoretical result of this paper is the proof that TED is strictly more powerful than the 1-WL test. By capturing the "skeleton" of the graph through edge-based Vietoris-Rips filtration, the model can distinguish non-isomorphic graphs that standard GNNs and node-filtration methods cannot.

Experimental Performance

The LGVR framework was evaluated across graph classification and regression tasks:

  • Graph Classification: On bioinformatics and social network datasets, LGVR-enhanced models consistently outperformed baseline GNNs and state-of-the-art node-filtration methods. For instance, on the MUTAG dataset, GIN-LGVR achieved an accuracy of 86.67%, compared to the standard GIN's 78.89%.
  • Graph Regression: On the QM9 dataset, GIN-LGVR+ outperformed standard GIN across all 12 target properties, demonstrating that global topological information is crucial for precise scientific modeling.
  • Stability: Beyond accuracy, the LGVR models exhibited lower variance across different data splits (e.g., a standard deviation of 4.42 for GIN-LGVR vs. 5.08 for GIN), suggesting that topological features provide a more robust global signal.

Conclusion

The introduction of Topological Edge Diagrams and the LGVR algorithm marks a significant step forward in topological graph learning. By shifting from node to edge filtration, the proposed method preserves critical node information while providing a more expressive representation of global structure. Future work will explore integrating native edge attributes and scaling the approach for larger, more complex graphs.

Summary updated

Abstract

While message passing graph neural networks result in informative node embeddings, they may suffer from describing the topological properties of graphs. To this end, node filtration has been widely used as an attempt to obtain the topological information of a graph using persistence diagrams. However, these attempts have faced the problem of losing node embedding information, which in turn prevents them from providing a more expressive graph representation. To tackle this issue, we shift our focus to edge filtration and introduce a novel edge filtration-based persistence diagram, named Topological Edge Diagram (TED), which is mathematically proven to preserve node embedding information as well as contain additional topological information. To implement TED, we propose a neural network based algorithm, named Line Graph Vietoris-Rips (LGVR) Persistence Diagram, that extracts edge information by transforming a graph into its line graph. Through LGVR, we propose two model frameworks that can be applied to any message passing GNNs, and prove that they are strictly more powerful than Weisfeiler-Lehman type colorings. Finally we empirically validate superior performance of our models on several graph classification and regression benchmarks.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
MUTAGGIN-LGVRmean accuracy86.67+0.56 vs baselinesplit: val · scale=single · layers=3 · backbone=GIN
Source quote
L556: \textbf{{GIN-LGVR}} │ \bf{86.67} │ 60.29 │ \bf{73.42} │ 69.22 │ 69.39 │ 72.5 │ 45.47
IMDB-MPPGN-LGVR+mean accuracy51.0split: val · layers=3 · backbone=PPGN · hidden-dimension=400
Source quote
L560: \textbf{{PPGN-LGVR} (+)} │ \bf{91.11} │ \bf{66.47} │ \bf{76.76} │ \bf{83.04} │ \bf{81.88} │ \bf{73.5} │ \bf{51.0}
QM9 · α; isotropic polarizabilityPPGN-LGVR+test mean absolute error0.19-0.19 vs baselinesplit: test · layers=3 · targets=12 jointly predicted · backbone=PPGN · hidden-dimension=400
Source quote
L650: \alpha │ 3.435 │ 4.818 │ 2.985 │ 3.542 │ \bf{2.76} │ 0.382 │ \bf{0.19}
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
MUTAGGFL baselinemean accuracy86.11split: val · scale=single · layers=3 · backbone=GIN
Source quote
L554: {GFL} │ 86.11 │ 60.0 │ 73.06 │ 71.14 │ 70.53 │ 68.7 │ 44.67
QM9 · α; isotropic polarizabilityPPGN baselinetest mean absolute error0.382split: test · layers=3 · targets=12 jointly predicted · backbone=PPGN · hidden-dimension=400
Source quote
L650: \alpha │ 3.435 │ 4.818 │ 2.985 │ 3.542 │ \bf{2.76} │ 0.382 │ \bf{0.19}
BibTeX
@misc{shin2024line,
  author = {Jae‐Sun Shin and Eunjoo Jeon and T.-C. Cho and Nam Ik Cho and Youngjune Gwon},
  title = {{Line Graph Vietoris-Rips Persistence Diagram for Topological Graph Representation Learning}},
  year = {2024},
  eprint = {2412.17468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.17468},
}
Figure