Enhancing Graph Representation Learning with Localized Topological Features

Zuoyu Yan, Qi Zhao, Ze Ye, Tengfei Ma, Liangcai Gao, Zhi Tang, Yusu Wang, Chao ChenarXiv 2025 · DOI

Abstract

Standard Graph Neural Networks (GNNs) are theoretically limited by the 1-Weisfeiler-Lehman (1-WL) isomorphism test, often failing to distinguish complex structural patterns such as high-order cycles. This paper introduces the Persistence Enhanced Graph Network (PEGN), a framework that extracts localized topological features using Extended Persistent Homology (EPH). By analyzing vicinity graphs rather than global structures, PEGN captures the specific "neighborhood shape" around nodes and edges. Our approach significantly boosts performance on node classification and link prediction tasks, outperforming standard GNNs and breaking the 1-WL theoretical ceiling.

Introduction

Most modern Graph Neural Networks rely on a "message passing" paradigm, where nodes aggregate information from their immediate neighbors. While effective for many applications, this approach has a major theoretical limitation: it cannot distinguish certain non-isomorphic graphs, such as those where every node has the same degree but different global cycle structures. This limitation is formally described by the 1-Weisfeiler-Lehman (1-WL) test.

To address this, researchers have turned to Topological Data Analysis (TDA), specifically Persistent Homology. However, previous TDA-based methods focused on global graph summaries, which are often ineffective for node-level or edge-level tasks. This paper proposes a method to "localize" these powerful topological tools to enhance the representational power of GNNs.

Non-isomorphic graphs (a) and (b) that are indistinguishable by the 1-WL test due to identical local degree distributions.

Methodology: The PEGN Framework

The core innovation of the Persistence Enhanced Graph Network (PEGN) lies in its ability to generate descriptive topological signatures for local neighborhoods. The process involves four key steps:

1. Vicinity Graphs

Instead of analyzing the entire graph, the model extracts a $k$-hop neighborhood for node tasks or the intersection of neighborhoods for edge tasks. This focuses the topological analysis on the relevant local context, making the features useful for localized predictions.

2. Extended Persistent Homology (EPH)

Standard Persistent Homology often misses "essential" features—topological structures like loops that never "die" during the filtration process. PEGN utilizes Extended Persistent Homology (EPH), which captures the full life cycle of these structures. This provides a much more descriptive set of features for graph data than traditional methods.

The Extended Persistent Homology (EPH) framework, illustrating the filtration of a graph and the generation of a persistence diagram.

3. Distance-Based Filtration

To compute topology, a "filter function" is used to sweep through the graph. The authors utilize geometric metrics such as shortest path distance and Ollivier-Ricci curvature. Curvature is particularly effective as it naturally identifies bottlenecks and well-connected clusters, which are highly relevant for determining node roles within a network.

4. Vectorization (PI+)

The resulting topological diagrams are converted into fixed-size vectors called Persistence Images (PI). The authors introduce PI+, which augments these images with simple structural counts (e.g., the number of edges at each hop) to ensure that no low-level structural information is lost during the abstraction process.

Key Insights and Results

PEGN provides a "structural positional encoding" that informs GNNs about local connectivity patterns that message passing alone would miss. Theoretically, the authors prove that localized EPH features can distinguish graph pairs that even the more powerful 3-WL or 4-WL tests cannot.

Performance Benchmarks

The framework was evaluated on standard citation, shopping, and biological networks:

  • Node Classification: PEGN variants reached state-of-the-art results, such as 79.4% accuracy on the PubMed dataset, outperforming standard GCN and GAT models.
  • Link Prediction: The pair-wise topological approach proved highly effective. On the Cora dataset, PEGN achieved an AUC-ROC of 95.0%, a significant jump from the standard GCN baseline of 90.5%.
  • Efficiency: While the model supports end-to-end differentiable learning of filter functions, the authors found that pre-computing geometric features like curvature offers a high-performance, computationally efficient alternative.

Conclusion and Future Work

By localizing Extended Persistent Homology, PEGN successfully bridges the gap between high-level topological analysis and node-level representation learning. While the computational complexity of calculating EPH for every node remains a challenge for massive web-scale graphs, the performance gains on standard benchmarks are substantial. Future research will focus on developing more efficient approximations and applying these features to temporal and heterophilic networks.

Summary updated

BibTeX
@misc{yan2025enhancing,
  author = {Zuoyu Yan and Qi Zhao and Ze Ye and Tengfei Ma and Liangcai Gao and Zhi Tang and Yusu Wang and Chao Chen},
  title = {{Enhancing Graph Representation Learning with Localized Topological Features}},
  year = {2025},
  eprint = {2501.09178},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2501.09178},
}
Figure