Introduction
The development of "foundation models" has revolutionized fields like Natural Language Processing and Computer Vision by providing powerful, pretrained backbones that generalize across diverse tasks. In the domain of Graph Neural Networks (GNNs), achieving similar scalability has been hindered by feature heterogeneity. Graphs from different domains—such as academic citations and product networks—often utilize node features that reside in disjointed semantic spaces. Naive joint pretraining on such diverse data typically results in "negative transfer," where the unified model performs worse than models trained on individual datasets.
GraphAlign is a novel framework designed to overcome these hurdles. By aligning disparate graph features into a unified distribution, it enables the pretraining of a single GNN across multiple heterogeneous domains, outperforming both individual and vanilla joint training approaches.
Methodology
GraphAlign introduces three core components to bridge the gap between heterogeneous graph features:
- Language Model Encoding: To handle text-attributed graphs (TAGs), the framework uses an efficient language model (e.g., E5-small) to project textual attributes into a shared 256-dimensional semantic space.
- Feature Normalization (Centering): Even within a shared space, features from different graphs tend to form distinct clusters. GraphAlign applies a centering process, subtracting the mean from each graph's features individually. This shifts all distributions to a common origin, facilitating the GNN's ability to identify cross-domain patterns.
- Mixture-of-Feature-Experts (MoF): Inspired by the Mixture-of-Experts (MoE) architecture, this module is placed at the input layer. It uses a routing gate to dynamically assign nodes to one of $K$ linear feature projectors (experts) based on node characteristics. This allows the model to adapt to domain-specific nuances before passing a unified signal to the GNN backbone.
Experimental Results
The authors evaluated GraphAlign using a combination of massive-scale benchmarks (ogbn-arxiv, ogbn-products, ogbn-papers100M) and classic transfer learning datasets (Cora).
Performance and Scalability
GraphAlign consistently outperformed vanilla joint training across four major self-supervised learning (SSL) frameworks—BGRL, GRACE, GraphMAE, and GraphMAE2—with average accuracy gains of up to 2.42%. Furthermore, the framework successfully scaled to the ogbn-papers100M dataset, demonstrating its capability to handle graphs with hundreds of millions of nodes.
Cross-Domain Transfer
In zero-shot and few-shot transfer scenarios, GraphAlign showed remarkable generalization. When tested on the unseen Cora dataset, it achieved 74.49% accuracy, significantly surpassing specialized baselines like OFA (48.76%) and Prodigy (61.09%).
Conclusion
GraphAlign demonstrates that effective feature alignment is the key to unlocking the potential of multi-graph pretraining. By addressing feature discrepancy through centering and dynamic expert routing, it provides a viable path toward universal graph foundation models. Future research will explore extending these alignment strategies to non-textual modalities, such as molecular or financial networks.
Summary updated