A Data-Driven Approach to Dataflow-Aware Online Scheduling for Graph Neural Network Inference

Pol Puigdemont, Enrico Russo, Axel Wassington, Abhijit Das, Sergi Abadal, Maurizio Palesi · DOI

Introduction

Graph Neural Networks (GNNs) have emerged as a powerful tool for processing data with irregular structures, such as social networks, molecular graphs, and quantum optimization problems. However, this irregularity poses significant challenges for traditional hardware like CPUs and GPUs. While specialized GNN accelerators have been developed, their performance is highly sensitive to the specific topology of the input graph. A hardware configuration (dataflow) optimized for one graph may perform poorly on another. Currently, most systems rely on a fixed dataflow, leading to sub-optimal performance. This paper addresses the challenge of determining the optimal hardware configuration in real-time for diverse, incoming graph workloads.

Methodology

The authors propose a two-stage, data-driven framework to optimize GNN inference latency through predictive scheduling.

Latency Prediction

The core of the approach is a set of lightweight gradient-boosting regressors, implemented using LightGBM. These models predict the execution time of a specific graph on various accelerator configurations. The models utilize both "base" features (e.g., node and edge counts, density) and "engineered" features, such as clustering coefficients and estimated cycle counts for the two primary GNN computation phases: Aggregation and Combination.

GNN inference involves Aggregation and Combination phases, often represented via CSR formats for efficiency.

The researchers found that training separate models for each hardware configuration yielded superior accuracy compared to a single monolithic model.

Predictive Online Scheduling

To leverage these predictions, the authors developed SJF-Predicted, an online scheduling algorithm. In a heterogeneous multi-accelerator system, the scheduler uses the ML models to estimate the "length" of incoming jobs. It then applies a "Shortest Job First" (SJF) heuristic to minimize waiting times and balance the load across available hardware.

Experimental Setup

The framework was trained and evaluated using a combination of synthetic and real-world datasets:

  • Graphlaxy: A synthetic generator used to create thousands of graphs with diverse topologies for training.
  • Real-World Benchmarks: Evaluation included datasets from SuiteSparse, QOPTLib, and bioinformatics (ENZYMES, PROTEINS).
  • Out-of-Distribution Testing: The PATTERN and TSP datasets were used to assess the model's robustness to unfamiliar graph structures.

Key Insights

A central finding of this research is the "No Free Lunch" theorem applied to GNN dataflows. Even within a single dataset, the optimal hardware configuration varies significantly between individual graphs.

The distribution of optimal accelerator dataflows across a dataset shows that no single configuration is universally superior.

Furthermore, the study highlights that for online scheduling, predictor overhead must be minimal. The LightGBM models achieve inference in approximately 2,300 nanoseconds—only 12% of the average job waiting time—making the approach practically viable.

Results

The data-driven approach demonstrated significant performance gains:

  • Accuracy: The models achieved 91.28% accuracy in predicting the optimal dataflow, with a Mean Absolute Percentage Error (MAPE) of 3.78% for in-distribution data.
  • Single Accelerator Efficiency: Selecting the best dataflow for a single configurable accelerator improved performance by 58.42% over the best fixed configuration.
  • System-Wide Speedup: In multi-accelerator environments, the SJF-Predicted scheduler achieved a 3.17× speedup in mean completion time and a 6.26× speedup in mean execution time.

Conclusion and Future Work

This work demonstrates that data-driven latency prediction can effectively bridge the gap between irregular GNN workloads and specialized hardware. Future research directions include expanding the architectural design space beyond the 24 configurations studied, improving out-of-distribution robustness, and extending the framework to multi-layer GNNs where optimal dataflows may shift between layers.

Summary updated

BibTeX
@inproceedings{puigdemont2024data,
  author = {Pol Puigdemont and Enrico Russo and Axel Wassington and Abhijit Das and Sergi Abadal and Maurizio Palesi},
  title = {{A Data-Driven Approach to Dataflow-Aware Online Scheduling for Graph Neural Network Inference}},
  booktitle = {ASP-DAC},
  year = {2024},
  doi = {10.1145/3658617.3697660},
}
Figure