GraphPerf-RT: A Graph-Driven Performance Model for Hardware-Aware Scheduling of OpenMP Codes

Mohammad Pivezhandi, Mahdi Banisharif, Saeed Bakhshan, Abusayeed Saifullah, Ali JannesariarXiv 2025 · DOI

Introduction

Autonomous AI agents, such as those in robotics and self-driving vehicles, increasingly rely on heterogeneous Systems-on-Chip (SoCs) that integrate high-performance and energy-efficient cores. Efficiently scheduling parallel tasks—often modeled using OpenMP—on these complex chips is a significant challenge. Schedulers must simultaneously optimize for execution speed (makespan), energy efficiency, and strict thermal constraints.

Traditional approaches often struggle with this complexity. Heuristics are frequently too rigid for irregular workloads, while standard machine learning models often flatten task dependencies, losing critical structural information. Furthermore, model-free reinforcement learning (RL) requires risky on-device exploration that can lead to hardware damage through overheating. GraphPerf-RT addresses these issues by serving as a high-fidelity "world model" for RL agents, enabling risk-aware, real-time scheduling.

Methodology: Graph-Driven Performance Modeling

GraphPerf-RT is built upon a novel heterogeneous graph representation that captures the intricate interactions between software tasks and hardware resources.

The GraphPerf-RT framework transforms task DAGs into heterogeneous graphs incorporating resource and memory nodes with specific features.

The framework employs three core pillars:

  1. Heterogeneous Graph Representation: The system is modeled as a graph with three node types: Tasks (encoding semantics like workload and depth), Resources (encoding CPU cores, frequency, and thermal state), and Memory (encoding cache levels and bandwidth). Typed edges represent task precedence, task-to-core placement, and hardware contention.
  2. Heterogeneous Graph Attention Networks (GAT): A GAT with type-specific encoders processes this graph, allowing the model to distinguish between different relationship types, such as task-to-task dependencies versus resource-to-memory constraints.
  3. Evidential Regression: To ensure safety, the model employs evidential learning. Instead of a point prediction, it outputs parameters for a Normal-Inverse-Gamma (NIG) distribution. This provides a mathematically grounded measure of both aleatoric (noise) and epistemic (model) uncertainty in a single, fast forward pass.

This model is integrated into a Model-Based RL (MAMBRL-D3QN) pipeline. The agent uses GraphPerf-RT to simulate thousands of scheduling scenarios safely in software before executing the most promising and certain policies on physical hardware.

Experimental Evaluation

The researchers evaluated GraphPerf-RT across three ARM-based platforms: the NVIDIA Jetson TX2, NVIDIA Jetson Orin NX, and the RUBIK Pi. The evaluation utilized a dataset of 73,920 samples derived from 42 benchmarks in the Barcelona OpenMP Tasks Suite (BOTS) and PolyBench, covering a wide spectrum of computational patterns.

Overview of the GraphPerf-RT pipeline and its impact on performance and safety metrics.

Key Results

  • High Fidelity Prediction: The model achieved a Spearman correlation ($\rho$) of 0.95, demonstrating exceptional ranking performance for scheduling decisions.
  • Calibrated Uncertainty: The uncertainty estimation proved highly reliable, achieving a Prediction Interval Coverage Probability (PICP) of 99.9% at a 95% confidence level. This "uncertainty gating" reduced unsafe scheduling proposals from 18% to just 3%.
  • System-Level Gains: Compared to model-free RL baselines, the GraphPerf-RT-driven agent reduced makespan by 66% and energy consumption by 82%, all while maintaining zero thermal violations.
  • Real-Time Efficiency: With inference times between 2–7ms, the model is sufficiently fast for integration into runtime schedulers without introducing bottlenecks.

Discussion and Future Directions

The success of GraphPerf-RT highlights that structural information is a first-class citizen in performance modeling. Moving from tabular representations to graph-based models significantly improved ranking capabilities. Furthermore, the ability to quantify "what the model doesn't know" through evidential learning is crucial for deploying AI in safety-critical embedded environments.

Future work will focus on automating hardware "device discovery" to reduce manual mapping efforts. Additionally, the authors aim to model complex thermal transients during long-running tasks and extend the framework to support GPU-based workloads (CUDA/OpenCL) and multi-tenant environments where multiple applications compete for the same SoC resources.

Summary updated

BibTeX
@misc{pivezhandi2025graphperf,
  author = {Mohammad Pivezhandi and Mahdi Banisharif and Saeed Bakhshan and Abusayeed Saifullah and Ali Jannesari},
  title = {{GraphPerf-RT: A Graph-Driven Performance Model for Hardware-Aware Scheduling of OpenMP Codes}},
  year = {2025},
  eprint = {2512.12091},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.12091},
}
Figure