Abstract
Graph Neural Networks (GNNs) are highly effective for graph-structured data but remain vulnerable to adversarial perturbations. Strategic additions or removals of edges can significantly degrade performance. This paper introduces the Witness Graph Topological Layer (WGTL), a novel defense mechanism that utilizes the topological "shape" of data to enhance robustness. WGTL employs witness complexes to efficiently extract multi-scale topological features from landmark nodes, providing strong stability guarantees. Our evaluation across six benchmark datasets shows that WGTL consistently improves GNN performance under attack, maintaining high computational efficiency even on large-scale graphs.
Introduction
Adversarial attacks on GNNs often involve subtle structural changes that are difficult to detect through local neighborhood analysis. Traditional defenses, such as graph purification or adversarial training, frequently overlook higher-order structures like cycles and clusters. While Persistent Homology (PH) can capture these global features, its high computational cost and sensitivity to noise have limited its practical application in GNN defense. This paper proposes the Witness Graph Topological Layer (WGTL) as a plug-and-play solution to integrate robust topological features into existing GNN architectures.
Methodology
The Witness Graph Topological Layer (WGTL) addresses the limitations of traditional topological methods by using witness complexes. Instead of processing the entire graph, WGTL selects a subset of "landmark" nodes, while other nodes serve as "witnesses" to define local and global topological structures. This approach significantly reduces the computational burden while preserving essential structural information.
Architecture Overview
The WGTL architecture integrates three primary components to create a comprehensive graph representation:
- Local Topology Encoding: Generates topological maps for landmark neighborhoods, capturing fine-grained structural details.
- Graph Representation Learning: Utilizes standard GNN layers (e.g., GCN, GAT) for traditional node feature extraction.
- Global Topology Encoding: Captures the overall graph shape using geodesic distances, providing a macro-scale view of the network.
An attention mechanism dynamically weights these features, allowing the model to prioritize the most relevant information for a given task. Additionally, a Robust Topological Loss ($L_{topo}$) regularizes the model to focus on persistent structural features that are stable against noise, effectively ignoring the transient perturbations introduced by an attacker.
Key Insights
- Inherent Robustness of Shape: Global topological features, such as persistent cycles and large-scale connectivity, are much harder for an adversary to disrupt than individual edge connections. This makes topology a naturally robust signal for defense.
- Landmark-Based Efficiency: By approximating the graph's topology through a small set of landmarks, WGTL avoids the exponential complexity of traditional persistent homology, making it applicable to large-scale datasets.
- Mathematical Stability: The paper provides proofs that the topological encodings are stable under small perturbations. This theoretical foundation ensures that the defense remains reliable even under strategic attacks.
Experimental Evaluation
WGTL was evaluated on diverse datasets, including citation networks (Cora-ML, Citeseer, Pubmed, OGBN-arXiv), social networks (Polblogs), and patent networks (Snap-patents). The results indicate that WGTL provides a substantial robustness boost, improving relative performance by up to 18% under heavy attack.
Furthermore, WGTL demonstrates excellent scalability. On the OGBN-arXiv dataset, which contains over 160,000 nodes, topological computations were completed in approximately 96 seconds. This performance is a significant improvement over traditional PH methods, which often fail to scale to such sizes.
Conclusion
WGTL offers a mathematically grounded and computationally efficient approach to defending GNNs. By focusing on stable topological landmarks, it creates a "shield" that is difficult for adversaries to penetrate without significant cost. The plug-and-play nature of the layer allows it to be easily integrated with various GNN backbones and existing defense mechanisms. Future work will explore applications in dynamic, time-evolving networks and the use of more advanced topological structures like Dowker complexes.
Summary updated