Abstract
Training Graph Neural Networks (GNNs) on massive graphs presents significant computational challenges and often results in poor generalization to unseen data. This paper proposes Subgraph Invariant Learning (SIL), a novel paradigm that conceptualizes large graphs as collections of small-world subgraphs. By optimizing a specialized "InVar" loss, the Invariance Facilitation Model (IFM) extracts label-specific features that remain consistent across diverse subgraphs. This approach enhances both scalability and out-of-distribution (OOD) performance, effectively breaking the trade-off between efficiency and robustness in large-scale graph node classification.
Introduction
Standard GNN architectures face a persistent "scalability vs. robustness" trade-off. While graph reduction techniques like sparsification or condensation can mitigate computational costs, they often require the full graph during training and struggle with OOD generalization. Furthermore, large-scale graphs are prone to issues like over-squashing and over-globalization.
The authors argue for leveraging the "small-world" nature of graphs—where nodes are densely connected locally but sparsely connected globally. The central challenge lies in enabling a model trained on localized subgraphs to learn "invariant" information sufficient for global node classification.
The Invariance Facilitation Model (IFM)
The proposed IFM framework addresses these challenges through a dual-encoder architecture and a novel loss function.
1. Architecture Components
As shown in Figure 1, the IFM consists of two primary modules:
- Invariance Representation Encoder (IRE): This module functions as a long-range dependency compressor. It utilizes InvarATT (Invariance Attention) to aggregate features from nodes sharing the same label across different subgraphs into a set of "invariant embeddings" ($\hat{H}$).
- Node Representation Encoder (NRE): Serving as the primary processing unit, the NRE uses TeleATT (Telematic Attention) to pull global context from the IRE. It then integrates this information with a standard GNN backbone (e.g., GCN, GAT) to process local subgraph structures.
2. The InVar Loss
The model is optimized using the InVar loss, derived from a theoretical lower bound of invariance log-likelihood. It comprises two terms:
- Invariance ($L_I$): A contrastive learning objective (InfoNCE) that ensures node representations are proximal to their corresponding invariant counterparts while remaining distant from those of different labels.
- Entropy ($L_E$): A term that maximizes the entropy of node representations to maintain feature diversity and prevent model collapse into trivial solutions.
Experimental Evaluation
The IFM framework was evaluated on four large-scale datasets: Reddit, Amazon, and two datasets from the Long Range Graph Benchmark (LRGB), PascalVOC and COCO. These datasets were partitioned into subgraphs to test the model's ability to capture long-range dependencies and generalize across localized structures.
Results and Insights
The IFM framework significantly improves the performance of various base GNNs. For instance, on the Reddit dataset, adding IFM to a standard GCN increased the weighted AUC-ROC from 84.74 to 88.28.
Key Findings:
- Invariance and Generalization: By identifying core features of a label that remain stable across subgraphs, the model effectively uses invariance as a proxy for global knowledge.
- The Role of Entropy: Ablation studies highlight that maximizing entropy ($L_E$) is crucial. It forces the model to retain a rich feature set, which is essential for generalizing to complex, unseen subgraph structures.
- Scalability: By operating on subgraphs of size $s$ instead of a full graph of size $n$, the time complexity is reduced from $O(n^2d)$ to $O(ms^2d)$, where $m$ is the number of subgraphs.
- Interpretability: As illustrated in Figure 6, t-SNE visualizations (c and d) demonstrate that IFM produces tighter, more distinct clusters compared to standard GNNs, which often exhibit overlapping class boundaries.
Conclusion
Subgraph Invariant Learning offers a scalable and robust alternative for large-scale graph processing. By focusing on invariant features across subgraphs, the IFM framework achieves superior performance and stability. Future work includes exploring the impact of different graph partitioning strategies and extending this paradigm to dynamic, evolving graphs.
Summary updated