Abstract
Graph Contrastive Learning (GCL) has emerged as a powerful paradigm for self-supervised representation learning on graphs. However, existing methods often fail to capture higher-order structural information, focusing instead on local node features or global summaries. We present TopoGCL, a novel framework that integrates computational algebraic topology into the GCL pipeline. By utilizing Extended Persistence (EP) and a new, stable summary called Extended Persistence Landscapes (EPL), TopoGCL captures the underlying "shape" of graphs. Our "topo-topo" contrastive mode ensures that learned representations are invariant to topological perturbations. Experiments across 12 benchmark datasets demonstrate that TopoGCL consistently outperforms state-of-the-art methods and exhibits superior robustness to feature noise.
Introduction
Graph Contrastive Learning (GCL) typically operates by maximizing the agreement between different augmented views of the same graph. While successful, these methods primarily rely on standard Graph Neural Networks (GNNs) to extract features. Standard GNNs are known to have limitations in capturing complex, higher-order connectivity patterns—such as cycles, loops, and voids—that define a graph's global topology. In fields like bioinformatics or financial modeling, these topological features are often more discriminative than raw node attributes.
To address this, TopoGCL introduces a framework that explicitly encodes topological information into the contrastive learning process. By leveraging the mathematical rigor of persistent homology, TopoGCL provides a principled way to represent and contrast the structural "fingerprints" of graphs.
Methodology
Extended Persistence and Landscapes
Traditional persistent homology can generate "infinite" features that are difficult to integrate into standard machine learning architectures. TopoGCL utilizes Extended Persistence (EP), which tracks the evolution of topological features through both upward (sublevel) and downward (superlevel) filtrations. This ensures that all topological features have a finite lifespan, making them more amenable to vectorization.
To process these features, the authors introduce Extended Persistence Landscapes (EPL). EPL is a functional representation of topological data that is mathematically proven to be stable—meaning small changes in the input graph result in only small changes in the landscape. This stability is crucial for the consistency of contrastive learning.
The TopoGCL Architecture
The architecture consists of three primary components:
- Multi-Filtration Strategy: The graph is analyzed through multiple "lenses" using node centrality measures (e.g., degree, betweenness, and closeness) to create a comprehensive topological profile.
- Extended Topological Layer (ETL): A specialized neural layer that learns latent embeddings from topological summaries (EPLs or images) using Multi-Layer Perceptrons (MLPs) or Convolutional Neural Networks (CNNs).
- Topo-Topo Contrastive Mode: Beyond standard graph-level contrastive objectives, TopoGCL introduces a parallel objective that maximizes the mutual information between the topological signatures of two augmented views. This forces the encoder to prioritize structural invariants over superficial noise.
Experimental Results
Performance and Generalization
TopoGCL was evaluated on 12 real-world benchmark datasets spanning chemical molecules (e.g., NCI1, MUTAG, PROTEINS), social networks (IMDB), and discussion threads (REDDIT). The model outperformed 12 state-of-the-art baselines, including GraphCL, InfoGraph, and AutoGCL, on 11 out of the 12 datasets. Notably, the model showed statistically significant improvements on 8 datasets, with an average relative gain of 1.25% over the closest competitor.
Robustness to Noise
A key strength of TopoGCL is its resilience. In experiments where 20% Gaussian noise was added to node features, TopoGCL maintained significantly higher performance stability compared to traditional GCL methods. This confirms that the "shape" of the graph, as captured by extended persistence, serves as a robust anchor when node-level data is corrupted.
Computational Efficiency
While topological methods are often perceived as computationally expensive, the proposed EPL summary was found to be more efficient than existing methods like Extended Persistence Images (EPI). The use of a quasilinear algorithm for computation allows TopoGCL to scale effectively to standard benchmark sizes without the prohibitive overhead typically associated with persistent homology.
Discussion and Future Work
TopoGCL demonstrates that higher-order topology is not just a theoretical curiosity but a practical tool for improving graph representations. The model's ability to distinguish between structures that appear identical to standard GNNs—such as specific protein folding patterns—highlights the value of the topological approach.
Currently, TopoGCL is optimized for graph-level classification. Future research directions include extending this framework to node-level tasks (such as community detection) and link prediction. Additionally, applying extended persistence to dynamic, time-evolving graphs presents an exciting opportunity to track how the "shape" of a network evolves over time in response to external stimuli.
Summary updated