Abstract
This study investigates whether learnable Positional and Structural Encodings (PSEs) can serve as foundational building blocks for Graph Foundation Models. By analyzing the Graph Positional and Structural Encoder (GPSE) framework, we demonstrate that pre-trained encodings significantly accelerate model convergence—often by 10x to 70x—and substantially improve generalization across diverse graph tasks. While not a universal solution for every dataset, these learned structural signatures represent a significant step toward overcoming the structural heterogeneity inherent in graph data.
Introduction
In contrast to the success of foundation models in Natural Language Processing and Computer Vision, Graph Neural Networks (GNNs) face a "heterogeneity hurdle." Graphs vary wildly in size, topology, and feature types, making it difficult to develop universal representations. Current GNNs often struggle with expressivity (distinguishing different structures) and generalization (performing on unseen data). This research explores whether pre-training a model to learn universal structural "signatures" can provide a robust, plug-and-play enhancement for any downstream GNN backbone.
Methodology
The study centers on GPSE, a model designed to predict traditional graph encodings, such as Laplacian eigenvectors and random walk statistics, using Random Node Features (RNF) as input. Key variants include:
- GPSE+: A version pre-trained on both molecular data and "hard" synthetic graphs (e.g., 4-regular graphs) to enhance structural discrimination.
- GPSE-: A variant using constant vectors instead of random features to test the necessity of randomness versus learned structural patterns.
- Downstream Augmentation: Utilizing the pre-trained GPSE as a frozen feature extractor to provide "structural hints" to standard GNN backbones like GCN, GIN, and GPS.
Experimental Setup
The authors utilized a broad range of benchmarks to evaluate the framework:
- Pre-training: MolPCBA (over 300,000 unique molecular graphs).
- Molecular Property Prediction: ZINC-12k and the MolNet suite (e.g., BACE, BBBP, HIV).
- Expressivity Benchmarks: Synthetic datasets designed to test structural limits, including CSL, EXP, and TRI.
Results and Discussion
Generalization and Efficiency
The primary benefit of GPSE is its ability to reduce the generalization gap—the difference between training and test performance. On the ZINC-12k dataset, GPSE-augmented models reached target Mean Absolute Error (MAE) levels 10 to 70 times faster than baseline models trained from scratch. In data-scarce scenarios (using only 1.25% of training data), GPSE variants consistently outperformed standard encodings like LapPE or RWSE.
Expressivity and Data Diversity
Pre-training on molecular data alone is often insufficient for complex structural tasks because molecules are frequently "tree-like." To handle more complex topologies, the pre-training set must include mathematically "hard" non-isomorphic graphs.
As illustrated in Figure 1, the inclusion of these diverse structures in the GPSE+ variant led to a massive jump in accuracy on the CSL dataset (from ~42% to ~68%), proving that the diversity of the pre-training data is critical for structural expertise.
Conclusion
GPSE demonstrates that pre-trained structural encodings can serve as a powerful catalyst for GNN performance and efficiency. However, it is not yet a universal solution; on certain datasets like ToxCast, simpler encodings still hold an advantage in data-scarce settings. Future work will focus on developing a more diverse "pre-training cocktail" and exploring the integration of these structural signatures with Large Language Models for advanced graph reasoning.
Summary updated