Introduction
Training Graph Neural Networks (GNNs) on large-scale datasets presents a significant challenge due to "neighborhood explosion," where the computational requirements grow exponentially with the number of layers. While various optimization strategies like feature caching and specialized sampling exist, they often lack adaptability across different hardware and datasets. Manually tuning hyperparameters like batch size or cache ratios is labor-intensive and requires deep expertise. GNNavigator addresses these issues by providing an adaptive framework that automates GNN training optimization through a multi-objective search process.
System Architecture
GNNavigator is designed as a meta-layer that sits above existing GNN frameworks. Its architecture is built on four core pillars that transform optimization from a manual task into an automated search problem.
- Unified Abstraction: GNN training is decomposed into four functional categories: sampling, transmission, computation, and model design. This allows diverse optimizations to be represented as a unified set of configurable parameters.
- Reconfigurable Runtime Backend: A flexible system capable of mimicking various existing frameworks by simply adjusting these parameters.
- "Gray-box" Performance Estimator: This hybrid model combines theoretical analysis with machine learning to accurately predict execution time, memory usage, and accuracy for specific configurations.
- Adaptive Guideline Exploration: Utilizing Multi-objective Design Space Exploration (DSE), the system identifies the Pareto front of optimal configurations based on user-defined priorities, such as maximizing speed within a specific memory budget.
Performance Estimation and Insights
A key innovation in GNNavigator is its "gray-box" modeling approach. By analytically formulating the expectation of mini-batch sizes (white-box) and using machine learning to tune penalty functions (black-box), the system achieves high accuracy in performance prediction. This is crucial because "optimal" settings vary significantly depending on the target metric—whether it be time, memory, or accuracy.
Key Results and Trade-offs
Evaluation across industry-standard benchmarks (Ogbn-arxiv, Ogbn-products, Reddit2) and various hardware (RTX 4090, A100) demonstrates GNNavigator's effectiveness. Compared to the PyTorch Geometric (PyG) baseline, it achieves up to a 3.1× speedup and an average of 2.3× acceleration. Peak memory consumption is reduced by up to 44.9%.
GNNavigator consistently identifies more efficient trade-offs than specialized frameworks like PaGraph and 2PGraph. By exploring the design space more effectively, it can maintain accuracy within 1-2% of the baseline while significantly improving training efficiency.
Conclusion and Future Work
GNNavigator automates the complex task of GNN optimization, offering significant gains in speed and memory efficiency. While highly effective, future work aims to improve the accuracy of predicting model performance on diverse data distributions and to streamline the integration of new hardware-level primitives into the framework's abstraction layer.
Summary updated