Interpretable Modeling of Deep Reinforcement Learning Driven Scheduling

Boyang Li, Zhiling Lan, Michael E. Papka · DOI

Abstract

In the field of high-performance computing (HPC), there has been recent exploration into the use of deep reinforcement learning for cluster scheduling (DRL scheduling), which has demonstrated promising outcomes. However, a significant challenge arises from the lack of interpretability in deep neural networks (DNN), rendering them as black-box models to system managers. This lack of model interpretability hinders the practical deployment of DRL scheduling. In this work, we present a framework called IRL (Interpretable Reinforcement Learning) to address the issue of interpretability of DRL scheduling. The core idea is to interpret DNN (i.e., the DRL policy) as a decision tree by utilizing imitation learning. Unlike DNN, decision tree models are non-parametric and easily comprehensible to humans. To extract an effective and efficient decision tree, IRL incorporates the Dataset Aggregation (DAgger) algorithm and introduces the notion of critical state to prune the derived decision tree. Through trace-based experiments, we demonstrate that IRL is capable of converting a black-box DNN policy into an interpretable rule-based decision tree while maintaining comparable scheduling performance. Additionally, IRL can contribute to the setting of rewards in DRL scheduling.

Introduction

High-Performance Computing (HPC) clusters are the workhorses of modern science, but managing their job schedules is a constant balancing act. While Deep Reinforcement Learning (DRL) has shown incredible promise in optimizing these schedules, it suffers from a "black-box" problem: system managers are often reluctant to deploy models they can't understand or debug. If a DRL agent makes an unexpected scheduling choice that causes a system-wide slowdown, a system manager has no way to "look under the hood" to see what went wrong. Existing interpretability tools don't work well here because scheduling data isn't structured like images or text. There is a pressing need for a model that is deterministic, simple, and easily understandable for people who aren't machine learning experts.

Methods

The authors propose the Interpretable Reinforcement Learning (IRL) framework, which uses a "teacher-student" approach to create an interpretable model. First, a standard Deep Q-Network (DQN) is trained on workload traces to learn an optimal scheduling policy. This DQN acts as the "teacher." Next, a decision tree (the "student") is trained to mimic the DQN's behavior using a dataset of states and actions.

To prevent the decision tree from "drifting" into errors when it encounters states the teacher didn't show it, the framework employs the Dataset Aggregation (DAgger) algorithm. This iteratively retrains the tree by letting it make choices and then having the DRL teacher correct them. Furthermore, to keep the decision tree from becoming unreadable, the authors introduced the concept of "critical states." By only training the tree on states where the job queue is long and decisions are impactful, they significantly reduced the tree's size without hurting performance.

The IRL framework workflow, illustrating the transition from a black-box DNN to an interpretable decision tree via imitation learning and dataset aggregation.

The study used two real-world workload traces from the San Diego Supercomputer Center (SDSC): SP2 (a 128-node system) and DataStar (a 1,664-node system).

Results and Discussion

Experimental results show that IRL achieved scheduling performance within 3-5% of the original black-box DRL model. Compared to the standard First-Come-First-Served (FCFS) policy, IRL reduced average job wait times and slowdowns by up to 70% on the SP2 trace.

An example of a derived decision tree, showing human-readable rules based on request time and system utilization.

Beyond performance, the IRL framework offers significant practical advantages:

  • Interpretability as a Debugging Tool: By examining the decision trees, researchers could identify when a reward function was poorly designed (e.g., fixating on past wait time instead of requested run time).
  • Model Compression: The "critical state" approach reduced the number of nodes in the decision tree by 34% to 48%, enhancing human readability.
  • Efficiency: At inference time, IRL was roughly 60x faster than the DQN, requiring only 0.0003 seconds per job selection.

Conclusion

The IRL framework successfully converts black-box Deep Reinforcement Learning policies into transparent, rule-based decision trees. This approach maintains high scheduling performance while providing the auditability required for real-world HPC deployment. Future work will explore applying IRL to other DRL architectures and investigating additional interpretable models like symbolic regression.

Summary updated

BibTeX
@misc{li2023interpretable,
  author = {Boyang Li and Zhiling Lan and Michael E. Papka},
  title = {{Interpretable Modeling of Deep Reinforcement Learning Driven Scheduling}},
  year = {2023},
  eprint = {2403.16293},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2403.16293},
}
Figure