Introduction
Graph Neural Networks (GNNs) have demonstrated remarkable success in modeling structured data. However, most existing architectures are "dataset-locked," meaning they are designed to be trained and evaluated on a single graph. Transferring knowledge between disparate graphs remains a significant challenge due to variations in feature dimensionality, local structural patterns, and label spaces.
This paper introduces G5, a modular extension of the GRAPH-BERT architecture. G5 is designed to facilitate graph-to-graph transfer by decoupling dataset-specific features from a universal structural reasoning core. Furthermore, the authors address the extreme "data desert" scenario termed Apocalypse Learning (AL)—a zero-label supervised node classification task where the model must classify nodes in a target graph without any local training labels, relying solely on knowledge transferred from external sources.
The G5 Architecture
The G5 framework (representing the five "Gs" in "graph-to-graph transfer of a universal GRAPH-BERT") employs a pluggable, modular design to bridge the gap between heterogeneous datasets.
Modular Components
- Input Accommodation Components: To handle varying raw feature dimensions across datasets, G5 utilizes dataset-specific initial Graph-Transformer layers. These layers project unique features into a shared hidden dimension ($d_h$).
- Input Size Unification Interlayer: Different graphs often require different context sizes (defined by the subgraph sampling parameter $k$). This layer uses padding or pruning to ensure that all input subgraphs match the fixed dimensions expected by the universal core.
- Universal GRAPH-BERT Core: At the heart of G5 is a shared set of Transformer layers. This core is trained to learn general, dataset-agnostic graph representations, acting as a universal engine for structural understanding.
- Output Representation Fusion: This layer aggregates the learned representations of a node and its sampled context into a single, robust feature vector for downstream tasks.
Apocalypse Learning Strategies
To enable classification in the absence of target-graph labels, G5 employs two primary cross-source reasoning strategies:
- Cross-Source Classification Consistency Maximization (CCCM): This strategy treats classifiers pre-trained on source graphs as "experts." By passing target-graph nodes through these external classifiers, the model minimizes the consistency loss between their predictions to find a consensus label.
- Cross-Source Dynamic Routing (CDR): Drawing inspiration from capsule networks, CDR uses an iterative dynamic routing mechanism. It aggregates "votes" from multiple source-graph classifiers to determine the most probable label for a node in the unlabeled target graph, effectively synthesizing a classifier for the new domain.
Experimental Evaluation
The G5 model was evaluated using three standard citation network benchmarks: Cora, Citeseer, and Pubmed. The experiments covered three distinct scenarios: Isolated Mode (standard training), Mixed Mode (concurrent training), and Transfer Mode (pre-training on source graphs followed by fine-tuning or zero-label reasoning on a target graph).
Performance in Isolated Mode
In standard supervised settings, G5 demonstrates performance competitive with state-of-the-art GNNs. As shown in the table below, G5 achieves accuracy levels comparable to GAT and the original GRAPH-BERT, reaching 84.1% on the Cora dataset.
Sparse Label and Zero-Label Results
G5 excels in scenarios with limited data. When only 5% of labels are available on the Citeseer dataset, pre-training on Cora improves accuracy from 34.1% (training from scratch) to 41.8%.
In the most challenging Apocalypse Learning (zero-label) scenario, G5 achieved approximately 32-35% accuracy on Cora and Citeseer using the CDR strategy. While this is lower than fully supervised performance, it significantly outperforms random guessing (approx. 14-16%), providing a successful proof-of-concept for cross-graph label reasoning without local supervision.
Conclusion and Future Work
G5 represents a significant step toward universal graph models that can transcend individual dataset boundaries. By decoupling feature processing from structural reasoning, it enables effective knowledge transfer and even zero-label classification. Future research may explore more advanced attention-based fusion mechanisms and test the model's transferability across more diverse graph domains, such as moving from citation networks to biological or social graphs.
Summary updated