Abstract
Graph Neural Networks (GNN) show great promise in problems dealing with graph-structured data. One of the unique points of GNNs is their flexibility to adapt to multiple problems, which not only leads to wide applicability, but also poses important challenges when finding the best model or acceleration technique for a particular problem. An example of such challenges resides in the fact that the accuracy or effectiveness of a GNN model or acceleration technique generally depends on the structure of the underlying graph. In this paper, in an attempt to address the problem of graph-dependent acceleration, we propose ProGNNosis, a data-driven model that can predict the GNN training time of a given GNN model running over a graph of arbitrary characteristics by inspecting the input graph metrics. Such prediction is made based on a regression that was previously trained offline using a diverse synthetic graph dataset. In practice, our method allows making informed decisions on which design to use for a specific problem. Our results show that ProGNNosis helps achieve an average speedup of 1.22X over randomly selecting a graph representation in multiple widely used GNN models such as GCN, GIN, GAT, or GraphSAGE.
Introduction
Graph Neural Networks (GNNs) have emerged as a powerful tool for processing non-Euclidean data. However, their performance is highly sensitive to the underlying graph topology. Unlike traditional deep learning where input dimensions are fixed, GNNs must handle graphs ranging from small molecules to massive social networks. This structural diversity leads to a "graph-dependent" performance hurdle: a specific GNN implementation or memory representation (e.g., sparse matrices vs. edge lists) may perform optimally on one graph but poorly on another. Currently, selecting the most efficient configuration often relies on manual trial-and-error, which is inefficient and often biased by limited benchmarking datasets.
Methods
To address this, we introduce ProGNNosis, a framework designed to predict GNN training time based on intrinsic graph metrics. The methodology follows a structured pipeline as illustrated in Figure 1.
The process begins with the generation of a highly diverse synthetic dataset using the RMAT generator, augmented by an optimization tool called Graphlaxy to ensure broad coverage of graph characteristics like clustering coefficients. We then profile various GNN models (GCN, GIN, GAT, GraphSAGE) across two primary memory designs: SPARSE (sparse matrix multiplication) and EDGE_LIST (using CUDA gather/scatter instructions). By calculating key metrics—node count, edge count, maximum degree, and mean degree—we build a hybrid regression model. This model combines Linear Regression for general trends with a Support Vector Machine (SVM) using a Radial Basis Function (RBF) kernel to capture the non-linear execution patterns typical of GPU hardware.
Key Insights and Ideas
A critical finding of this research is that GNN performance is not merely a function of graph size. Structural bottlenecks, such as high-degree "hub" nodes, significantly impact the aggregation phase of GNN computation. Furthermore, standard synthetic generators often produce graphs with low clustering, which does not reflect real-world "community" structures. By optimizing the training set for diversity, ProGNNosis achieves better generalization to real-world datasets.
As shown in Figure 6, while there is a general correlation between the number of edges and training time, there is significant variance at any given size. This variance is driven by other structural metrics that ProGNNosis successfully captures. The hybrid modeling approach is essential because GPU performance often exhibits non-linear overheads, particularly for smaller graphs where resource utilization is suboptimal.
Key Results
The ProGNNosis regression models achieved an impressive $R^2$ of 0.98, indicating a very high correlation between predicted and actual training times. When applied to the task of selecting the optimal memory representation (SPARSE vs. EDGE_LIST), the framework achieved over 90% classification accuracy. This informed decision-making translated into tangible performance gains, with an average speedup of 1.22x across all tested models. For specific architectures like GraphSAGE and GIN, speedups reached as high as 1.35x compared to a random selection strategy.
Conclusion
ProGNNosis demonstrates that a data-driven approach using simple graph metrics can effectively navigate the complex design space of GNN acceleration. By predicting performance before execution, it enables automated, graph-aware optimization. Future work will focus on incorporating additional design variables, such as feature vector dimensions and hardware-specific dataflows, to further generalize the model's predictive power.
Summary updated