Abstract
Scheduling Directed Acyclic Graphs (DAGs) of tasks onto parallel processors is a fundamental challenge in high-performance computing (HPC). While static scheduling is common, dynamic environments with unpredictable task durations require adaptive strategies. This paper introduces a Geometric Deep Reinforcement Learning framework that leverages Graph Neural Networks (GNNs) to learn scheduling policies. By encoding the task graph's topology, the agent achieves performance comparable to industry-standard heuristics like ASAP while exhibiting superior generalization to unseen problem scales and hardware configurations.
Introduction
In HPC, applications are represented as DAGs where nodes are tasks and edges denote data dependencies. Scheduling these tasks is an NP-hard combinatorial optimization problem. Traditional dynamic schedulers often rely on simple heuristics, such as As-Soon-As-Possible (ASAP), which may lack the flexibility to adapt to complex, uncertain environments. This research explores whether a reinforcement learning (RL) agent can learn a more sophisticated, adaptive policy that outperforms these hand-crafted rules.
Methodology: Geometric Deep Reinforcement Learning
The authors frame scheduling as a Markov Decision Process (MDP) solved via an Advantage Actor-Critic (A2C) algorithm. Central to this approach is the use of Graph Convolutional Networks (GCNs) to generate state embeddings.
The GCN architecture allows the model to process graphs of arbitrary size by "passing messages" between connected nodes. The state space includes a sub-DAG of active and available tasks within a lookahead window $w$. Node features incorporate task types, connectivity metrics, and critical path information. The "Actor" selects the next task to schedule, while the "Critic" evaluates the state to guide learning.
Experimental Setup
The framework was evaluated using the Cholesky factorization algorithm, a standard benchmark in scientific computing. DAGs were generated with varying tile counts ($T = 4, 8, 16$). Simulations used task durations derived from real-world GPU performance data. The RL agent was benchmarked against ASAP (prioritizing the longest critical path), a Greedy heuristic (prioritizing tasks with the most successors), and a Random baseline.
Results and Discussion
The RL agent consistently matched or exceeded the performance of the ASAP heuristic, which is the current industry standard for dynamic scheduling.
Generalization and Transfer Learning
A key strength of the GNN-based approach is its ability to generalize. An agent trained on a specific configuration (e.g., $T=8$ on 4 processors) could be deployed "zero-shot" on larger problems or different hardware counts without retraining. This suggests the model learns the underlying structural properties of the scheduling problem rather than just memorizing specific sequences.
The Lookahead Window Trade-off
The study highlighted a trade-off regarding the lookahead window $w$. While global features like the critical path allow for optimal performance even with $w=0$, the GNN can autonomously "discover" these properties through message passing if the window size is increased (e.g., $w=4$), albeit at a higher computational cost per decision.
Conclusion
This work demonstrates that Geometric Deep RL is a viable and robust approach for dynamic DAG scheduling. Future research will address limitations such as non-zero communication costs and heterogeneous processing resources. Integrating these learned schedulers into production HPC runtimes like StarPU remains a primary goal for practical deployment.
Summary updated