Manuscript Offprint
arXiv:2610.21008Deep Reinforcement Learning for HPC Job Scheduling: A Statistical Evaluation
Justin M. Cheney [0009-0004-1991-474X] and Clement N. Nyirenda [0000-0002-4181-0478]
Computer Science Department, University of the Western Cape, Robert Sobukwe Rd, Bellville, Cape Town, 7535, South Africa
Corresponding author: Clement N. Nyirenda (cnyirenda@uwc.ac.za)
eResearch Office, University of the Western Cape, Bellville, Cape Town, South Africa
Abstract. Deep Reinforcement Learning (DRL) offers learned job selection for High-Performance Computing (HPC), but performance against heuristics alone does not establish value beyond action masking. Six DRL treatments are compared: Proximal Policy Optimization (PPO), Advantage Actor-Critic (A2C), and Deep Q-Network (DQN), each with and without masking. Three heuristics and a seed-paired masked uniform-random control provide baselines across ten seeds on two real Slurm (Simple Linux Utility for Resource Management) workload traces, one homogeneous and one heterogeneous, under a common non-parametric framework. All masked treatments complete evaluation, whereas unmasked treatments are truncated. On the homogeneous trace, no masked DRL treatment significantly improves average waiting time or average and maximum bounded slowdown over the control. On the heterogeneous trace, MaskablePPO improves all three metrics relative to the control. Its average waiting time is equivalent to the three heuristics within a ±10% margin, and its maximum bounded slowdown is 22% lower than Last-Come, First-Served (LCFS). MaskablePPO has the leading average-waiting rank among complete treatments on both traces, but Nemenyi comparisons detect no significant difference from MaskableA2C. Among masked variants, MaskablePPO has the lowest recorded mean training time, while MaskableDQN has the lowest mean decision latency. These findings distinguish completion from baseline-specific scheduling gains and support including a masked random control when assessing learned-selection value.
Keywords: High-Performance Computing · Deep Reinforcement Learning · Statistical Analysis · Job Scheduling
1 Introduction
High-Performance Computing (HPC) job schedulers determine when jobs run and which resources they receive [15]. Increasing workload and hardware diversity complicates the balance between waiting time and resource utilisation [15].
Deep Reinforcement Learning (DRL) offers learned scheduling policies as an alternative to traditional heuristics [5,25]. Their practical value, however, depends on whether learning improves schedule quality enough to justify training and decision-time costs.
Existing studies benchmark individual DRL schedulers against traditional baselines [18,16], leaving limited evidence for choosing between DRL algorithms under a common experimental protocol. A structured review of 53 papers identifies Proximal Policy Optimization (PPO) family methods in 40% of the sample, but this prevalence does not establish their superiority. Moreover, performance against a heuristic alone does not establish that learned selection adds value beyond action masking. A controlled comparison must therefore examine algorithm choice and masking together, evaluating schedule quality alongside computational cost.
Action masking excludes infeasible choices before action selection. MaskablePPO, MaskableDQN, and MaskableA2C apply this restriction to their corresponding base algorithms. The objective is to compare DRL algorithms in terms of schedule quality and computational cost, and to assess learning value beyond action masking. The comparison includes six DRL variants: PPO, Deep Q-Network (DQN), and Advantage Actor-Critic (A2C), each with and without masking. Three heuristics and a masked random control provide baselines on two Slurm (Simple Linux Utility for Resource Management) workload traces. Waiting time, slowdown, turnaround time, and resource utilisation are assessed through non-parametric comparisons [2]. The investigation is guided by three research questions (RQs):
-
What does action masking contribute to schedule quality and evaluation completion?
-
Does PPO’s schedule quality and computational cost relative to A2C and DQN justify its prevalence in recent HPC scheduling literature?
-
How does the performance of learned policies relative to heuristic and masked random baselines differ between the homogeneous and heterogeneous workload traces, considering training and decision-time costs?
This paper makes the following contributions:
-
A controlled statistical comparison of PPO, A2C, and DQN, with and without action masking, across homogeneous and heterogeneous Slurm workload traces, using common workloads, reward functions, and environment-step budgets.
-
An assessment of masking’s contribution to evaluation completion and schedule quality, including a masked random control to test whether learned selection adds value beyond feasibility constraints.
-
A non-parametric, multi-metric assessment of algorithm rankings and trade-offs between schedule quality and cost, evaluating PPO's relative performance across the two traces.
Given the paper’s scope constraints, a basic understanding of HPC and non-parametric statistical analysis is assumed. The remainder of this paper reviews the literature and the gaps motivating the study (Section 2), sets out the method-ology (Section 3), presents the results (Section 4), discusses their implications and limitations (Section 5) and concludes (Section 6).
2.1 HPC Job Scheduling
Job scheduling combines job selection, which determines execution order, with resource allocation, which assigns cores, memory, and graphics processing units (GPUs) to selected jobs [25]. Scheduling objectives include reducing waiting times, increasing resource utilisation, and maintaining fairness [15]. These objectives can conflict, motivating evaluation across multiple metrics rather than a single performance measure.
2.2 Traditional and Meta-heuristic Techniques
Traditional heuristics address competing scheduling objectives by assigning priorities to pending jobs. First-Come-First-Served (FCFS) preserves arrival order, whereas Shortest Job First (SJF) prioritises shorter estimated runtimes. FCFS can cause head-of-line blocking, while SJF can delay long jobs [19]. Backfilling supplements these priority rules by running other jobs in otherwise idle capacity while protecting a reservation for a waiting job [9]. Workload managers such as Slurm coordinate scheduling policies with resource management [27]. This separation allows DRL to be studied as an alternative job-selection policy, rather than a replacement for the workload manager. Meta-heuristics search candidate schedules using techniques such as genetic algorithms, particle swarm optimization [21], and simulated annealing [15]. Such searches can improve schedule quality, but their computational cost and sensitivity to tuning must be considered. Learning-based approaches instead seek a policy that can be reused across scheduling decisions.
2.3 Deep Reinforcement Learning for Job Scheduling
Reinforcement learning trains a policy through interaction and reward, without requiring labelled optimal scheduling decisions. DRL uses neural networks to represent policies or value functions, with scheduling formulated as a Markov Decision Process (MDP) over queue and cluster states [22,25]. PPO-family methods account for 45% of the 60 systems described in the surveyed literature. However, performance on general reinforcement-learning benchmarks [17] does not by itself establish an advantage in HPC scheduling. This motivates direct comparisons of scheduling performance and computational cost.
Algorithm families. Value-based methods estimate action values, with DQN using experience replay and target networks [13]. Policy-based methods optimise expected return directly, while actor-critic methods combine a policy with a value estimate that helps reduce variance in its updates. A2C is the synchronous variant of Asynchronous Advantage Actor-Critic (A3C) [12]. These categories overlap: PPO and A2C both use actor and critic networks, but differ in their update objectives and data reuse. PPO uses a clipped surrogate objective and repeatedly optimises rollout data, whereas A2C uses synchronous advantage-based updates [12]. Therefore, their sample efficiency, exploration, and stability must be assessed in the scheduling task rather than inferred from their algorithm category [1].
Action masking. Action masking simplifies the agent's decision process by excluding infeasible actions [20]. For value-based methods, invalid actions are masked before arg max selection; for policy-based methods, invalid probabilities are zeroed before normalisation. In HPC scheduling this prevents selecting jobs whose resource demands exceed current capacity. When masking is included as part of the environment without being evaluated separately, reported performance does not establish whether learning adds value beyond constraint enforcement. This paper compares masked variants against their unmasked counterparts to assess differences in schedule quality and evaluation completion. A masked random control selects uniformly among valid actions, providing a reference for performance without learning under the same feasibility constraints.
2.4 DRL Applications in Job Scheduling
DRL has been adopted across cloud computing [10], edge systems [23] and HPC clusters [6,25], targeting makespan, utilisation and fairness. Wu et al. [26] employed a Double-DQN-derived method for dual-objective flexible job-shop scheduling, comparing it with three meta-heuristics rather than other DRL algorithms. PPO-based examples include Gao et al. [6], who applied Gated Transformer-XL (GTrXL) with PPO, and Wang et al. [25], who proposed hierarchical PPO for two-level scheduling. These studies evaluate PPO-based scheduling designs rather than providing a common-protocol comparison of PPO, A2C and DQN. RLScheduler [28] uses a policy-gradient actor-critic approach, motivated by concerns that workload variability may cause oscillations in Q-learning. Its benchmarks include FCFS, SJF, the named multi-factor priority rules WFP3 and UNICEP (which combine waiting time, requested runtime, and resource demand), and the regression-derived priority rule F1. These heuristic comparisons do not directly compare DRL algorithms or establish learning value against a masked random control. Others extend the base algorithms through multi-agent formulations [11] and transfer learning [24].
These studies demonstrate the potential of DRL for adaptive scheduling, but differences in statistical treatment, performance metrics, workloads and baselines limit direct comparison of their reported improvements. A gain against a meta-heuristic on a synthetic workload is not directly equivalent to a gain against a heuristic on a production trace. This evaluation heterogeneity motivates the common-protocol comparison used here.
2.5 Limitations and Research Gaps
The benefits of DRL come with limitations bearing on deployability. State and action spaces can grow with workload complexity, increasing the computational demands of learning. Sparse or delayed rewards can complicate learning, particularly when scheduling outcomes emerge over many decisions. Learned policies can be difficult to interpret, which may restrict adoption in mission-critical environments. Algorithm choice therefore involves more than schedule quality. Training requires computation and time, while using a trained policy introduces a decision-time overhead. Interpretability and maintenance present additional deployment concerns, but these are not quantified in this study. Three gaps motivate the present comparison. First, PPO's prevalence does not establish a schedule-quality or computational-cost advantage over A2C and DQN under common experimental conditions. Second, performance with masking alone does not establish learning value beyond feasibility enforcement. Third, differences in metrics, workloads, baselines and statistical treatment limit direct comparison of reported results, while single-metric reporting can conceal trade-offs between schedule quality and utilisation. The methodology in Section 3 addresses these directly.
3 Methodology
The study compares ten scheduling methods, referred to as treatments: six DRL variants, three heuristics, and one masked random control. PPO, A2C, and DQN use stable-baselines3 (SB3) implementations, while MaskablePPO uses sb3-contrib [14]. MaskableA2C and MaskableDQN use local implementations. The heuristic baselines are SJF, Last-Come, First-Served (LCFS), and UNI-CEP. All ten are compared across two Slurm workload traces, using the HPCSim scheduling simulator [25] as the environment under fixed seeds for reproducibility. Git commit hashes and SHA-256 manifests record provenance. Locked Nix inputs pin software dependencies, while Apptainer packages the execution environment. Snakemake 9.4.3 orchestrates the pipeline.
3.1 Environment and Dataset
HPCSim uses the cluster and job-queue state representation described by Wang et al. [25]. The observation is the information available to the agent at each scheduling decision. The cluster component describes available resources and running jobs. The queue component describes a fixed-size window of pending jobs, including their resource requests, timing information, and scheduling feasibility. The window limits the jobs visible to the agent, not the total queue length. With the configuration in Table 1, queues exceeding 512 jobs are represented by
448 jobs from the head and 64 from the tail. Shorter queues are padded with zeros, and the total queue length is included. The “best_fit” allocator is fixed across all treatments to keep allocation policy constant while comparing job selection. Backfill is disabled in the primary comparisons for both DRL policies and baselines, avoiding an additional scheduling mechanism available only to the heuristics. These comparisons therefore evaluate job-selection policies under fixed allocation and backfill settings, rather than complete production Slurm configurations.
The dataset is taken from Wang et al. [25]: two Slurm traces, one homogeneous (physical), the other heterogeneous (deeplearn). Each trace is ordered by submission time and divided into an earlier development split and a later holdout split. The development splits are used for training, primary comparisons, and model selection. The holdout splits are kept for final generalisation assessment.
3.2 Training and Evaluation
The DRL variants use the hidden-layer sizes and activation function in Table 1. Only the DQN variants use a replay buffer. Each DRL training run has a target budget of 3 million environment steps; optimisation-update counts are not matched across algorithms. Ten fixed seeds initialize the Python, NumPy, and PyTorch random number generators. Training six DRL variants with ten seeds produces 60 runs per trace and 120 across both traces. Each trained model is evaluated on its corresponding development split using its training seed. Evaluation is deterministic: the model selects its preferred action rather than sampling exploratory actions. Results are aggregated across the ten seeds for each DRL variant. Scheduling performance is measured using average and maximum waiting time, average and maximum bounded slowdown, average turnaround time, and
Table 1. Experimental configuration: environment, hyperparameters and dataset.
| Parameter | Value | Notes |
|---|---|---|
| HPCSim environment | ||
| Allocator | best_fit | Fixed as controlled factor |
| Window Size | 512 | Observable queue depth |
| Tail Size | 64 | Queue tail buffer |
| Random jobs | False | Deterministic trace replay |
| Backfill | False | Uniform mechanism across algorithms |
| Hyperparameters | ||
| Hidden Layers | [4096, 2048, 1024] | All |
| Activation function | tanh | All |
| Discount factor (γ) | 0.99 | All |
| Policy | MultiInputPolicy | All |
| Entropy Coefficient | 0.0 | PPO/A2C variants only |
| Replay Buffer Size | 150,000 | DQN variants only |
| Dataset: physical / deeplearn | ||
| Trace | physical_jobs.csv / deeplearn_jobs.csv | |
| Topology | physical_topology.txt / deeplearn_topology.txt | |
| Node file | nodes.csv | |
| Total Jobs | 84,135 / 68,720 | |
| Development Jobs (70%) | 58,894 / 48,104 | |
| Holdout Jobs (30%) | 25,241 / 20,616 | |
| Temporal Range | 37d 11h 42m 8s / 382d 5h 21m 49s | |
central processing unit (CPU) and GPU utilisation, following Wang et al. [25]. The three primary metrics reported in baseline comparisons are average waiting time and average and maximum bounded slowdown. Decision latency, evaluation wall-clock time, and episode reward are also recorded. The training reward is the negative mean queued waiting time in hours ( ). This reward is computed every 512 actions; intervening actions receive zero reward.
3.3 Statistical Framework
Following Carrasco et al. [2], distributional assumptions are assessed before any comparative tests. Shapiro-Wilk assesses normality of the recorded seed-level metric values for each treatment. The non-normality detected in some treatment distributions, reported in Section 4, supports a comparison that does not rely on normally distributed performance values. Friedman therefore compares the six DRL variants through their within-seed ranks across ten seed blocks ( ). Kendall's accompanies the Friedman results and summarises agreement in treatment ranks across seeds, where and . Where Friedman is significant, Nemenyi post-hoc comparisons follow, with Critical Difference (CD) plots showing non-significant rank groupings [3]. Wilcoxon confidence intervals and confidence curves give effect-size context. The Page trend test assesses trends across the declared treatment order, not convergence over training time [4]. One DRL treatment is Pareto-selected for each trace across the primary and secondary metrics. If needed, the predefined tie-break order is average waiting time, average bounded slowdown, then CPU utilisation. For each heuristic, one-sample Wilcoxon signed-rank tests compare seed-level MaskablePPO and MaskableA2C outcomes with its fixed reference value. Practical equivalence is assessed using two one-sided tests (TOST), with a margin of of that reference value [8]. Non-significance in a difference test does not establish equivalence. For each DRL treatment compared with a heuristic or the random control, Holm correction is applied jointly to the six Wilcoxon difference-test p-values: average and maximum waiting time, average and maximum bounded slowdown, average turnaround time and CPU utilisation [7].
A random action-selection control is included as a reference condition, drawing uniformly at each decision over the valid actions of the same MDP, under the same mask, without backfill, on the same ten seeds. Each masked DRL treatment is compared with the control using a two-sided Wilcoxon signed-rank test on seed-paired differences. The control shows how a policy performs without learning under the same action mask. Matching a heuristic alone does not establish that learning adds value. Finally, DRL treatments and the random control are evaluated on the holdout splits using the same ten seeds; the heuristics remain deterministic reference runs.
4 Results
This section reports results following the methodology in Section 3, presenting the physical and deeplearn traces in turn before examining generalisation, train-ing and inference cost, and training diagnostics. Shapiro-Wilk rejects normality for some average-waiting distributions: physical A2C ( , ) and DQN ( , ), and deeplearn A2C ( ). These results support the decision not to assume normality and to use the rank-based framework described in Section 3. Tests use recorded seed-level metric values; reported means and medians summarise performance across seeds.
Two conventions apply throughout. The first is truncation. None of the three unmasked treatments completed a full evaluation episode on either trace. Without a mask the policy can select an action naming no allocatable job, which HPCSim treats as a request to advance time; once the event queue is empty, simulated time freezes on an identical state and the episode cannot terminate. A hang guard stops the run after 500,000 consecutive steps without a job completion. These metrics describe incomplete evaluations and are not directly comparable with full-trace outcomes. The treatments are excluded from schedule-quality best-value marking and multi-metric selection, and marked “†” throughout. They remain in the six-treatment statistical comparisons, which must therefore be interpreted with this limitation. The second is the backfill band. Each heuristic was evaluated with backfill both enabled and disabled, and the width of that band is reported per trace below; the baseline figures quoted elsewhere are the no-backfill ones, for the reason given in Section 3.
4.1 Homogeneous Workload: Physical Trace
On this trace, truncation limits comparisons with the unmasked treatments, while backfill changes the heuristic reference values. Enabling backfill reduces UNICEP's average waiting time by 12.3%, but LCFS still records lower average waiting time than the complete DRL treatments with both backfill settings. GPU utilisation is omitted because this is a CPU-only workload.
Table 2 shows that MaskableA2C and MaskablePPO have similar mean average waiting times, whereas MaskableDQN has higher waiting time and bounded slowdown, with greater variation across seeds. The unmasked variants record higher waiting times still, but their truncated evaluations limit comparisons with complete-trace outcomes. Across all six DRL treatments, Friedman detects statistically significant differences for all nine reported metrics, with from 22.11 to 47.14 and Kendall's W from 0.442 to 0.943. However, because these tests include truncated outcomes, the differences do not by themselves establish full-trace schedule-quality superiority. For CPU utilisation, the omnibus test is significant ( , ), yet the mean values for MaskableA2C and MaskablePPO both round to 0.1057; a pairwise comparison is needed to determine whether these two treatments differ.
Table 3 ranks MaskablePPO first and MaskableA2C second for average waiting time, but the Nemenyi comparison detects no significant difference between them (p = 1.000, n = 10, k = 6). Across the declared sequence of DQN, A2C, PPO, MaskableDQN, MaskableA2C, and MaskablePPO, the Page test detects a decreasing average-waiting trend (L = 838, ), with significant trends also found for the other scheduling metrics in Table 2, except maximum waiting time (). However, these trends depend on the declared order and include truncated evaluations; they do not demonstrate strict monotonic improvement in full-trace schedule quality. For average waiting time on physical, the paired 95% confidence interval for MaskableA2C minus MaskablePPO is s. It lies within the stated margin relative to MaskablePPO, supporting practical equivalence for this metric under that margin. This interval evidence is distinct from the non-significant Nemenyi comparison and does not establish equivalence across all metrics. The confidence curve peaks near zero. The recorded multi-metric selection identifies MaskableA2C as the sole Pareto candidate on physical; this selection is separate from MaskablePPO's leading average-waiting rank.
The DRL-only rankings must also be considered alongside performance relative to the heuristics and the masked random control. For MaskablePPO and MaskableA2C, most median relative differences against the no-backfill heuristics lie approximately between and on the reported primary metrics. Average bounded slowdown shows larger contrasts: their values are and higher than LCFS, respectively, but and lower than UNI-CEP.
Table 4 compares the three masked DRL treatments with the random control using seed-paired differences. After Holm correction, seven of the nine comparisons detect significant differences, and all seven favour the random con-
Table 2. Physical trace - performance metrics (mean std.). Wait and turnaround in seconds; slowdown is a ratio; utilisation a fraction.
| Algorithm | Avg Wait | Avg Slowdown | Avg Turnaround | Max Wait | Max Slowdown | CPU Util |
|---|---|---|---|---|---|---|
| MaskablePPO | 2,243 | 7.49 | 10,985 | 69,126 | 2,918 | 0.1057 |
| MaskableDQN | 4,474 | 116.39 | 13,216 | 2,065,995 | 193,701 | 0.0982 |
| MaskableA2C | 2,223 | 7.36 | 10,965 | 49,881 | 2,966 | 0.1057 |
| PPO | 8,470 | 125.33 | 17,065 | 47,693 | 4,060 | 0.0974 |
| DQN | 6,229 | 87.23 | 14,820 | 54,745 | 5,325 | 0.0980 |
| A2C | 5,500 | 63.99 | 14,094 | 34,767 | 3,357 | 0.0968 |
| LCFS | 2,090 | 5.88 | 10,832 | 58,418 | 3,096 | 0.1060 |
| SJF | 2,176 | 8.14 | 10,918 | 69,909 | 3,060 | 0.1051 |
| UNICEP | 2,499 | 15.87 | 11,241 | 63,851 | 3,513 | 0.1053 |
| Random (masked) | 2,166 | 6.01 | 10,908 | 53,819 | 2,599 | 0.1058 |
Table 3. Physical trace - Nemenyi post-hoc ranking, average waiting time.
| Algorithm | Mean Rank | Median | Mean | p vs. best |
|---|---|---|---|---|
| MaskablePPO | 1.7 | 2,242 | 2,243 | — |
| MaskableA2C | 1.9 | 2,212 | 2,223 | 1.000 |
| A2C† | 4.1 | 2,923 | 5,500 | 0.047* |
| MaskableDQN | 4.4 | 5,008 | 4,474 | 0.016* |
| PPO† | 4.4 | 8,623 | 8,470 | 0.016* |
| DQN† | 4.5 | 4,429 | 6,229 | 0.011* |
trol. These comparisons provide no evidence of a learned-policy advantage over masked random selection on the reported metrics under this configuration.
For mean average waiting time, headroom is defined as the percentage by which the masked random control exceeds the best no-backfill heuristic, relative to that heuristic. Table 2 gives LCFS at 2,090 s and the random control at 2,166 s; the unrounded values yield headroom. On this physical trace, the results do not establish a learned-policy advantage over the masked random control that would justify replacing a heuristic.
4.2 Heterogeneous Workload: Deeplearn Trace
Table 5 shows that MaskablePPO's mean average waiting time is close to that of the no-backfill heuristics. Enabling backfill reduces LCFS's average waiting time by , while SJF and UNICEP then record means about 4 and 3 seconds lower than MaskablePPO, respectively. The baseline gap is larger on this trace. Using mean average waiting time, Table 5 gives the masked random control at 1,170 s and the best no-backfill heuristic, UNICEP, at 846 s. The unrounded values yield headroom relative to UNICEP, compared with on physical. This descriptive gap does not establish why learning performs differently across traces. Across the six DRL treatments, Friedman detects statistically significant differences for all ten metrics, with Kendall's from 0.487 to 0.905. However, GPU utilisation (, ) is computed as resource-seconds/(total resource makespan); for fixed completed work, a longer makespan lowers the reported ratio. This measure should therefore be interpreted alongside makespan and evaluation completion. Evaluation wall-clock time for unmasked A2C, DQN and PPO also includes the 500,000 stall steps before truncation.
Table 6 gives unmasked PPO the lowest mean rank for average waiting time, but its truncated evaluations make it ineligible for selection. MaskablePPO has the lowest mean rank among complete treatments and is the recorded multi-metric selection. However, no Nemenyi comparison with MaskablePPO detects a significant difference. MaskableA2C's lower median (837 s versus 851 s) contrasts with its much higher mean, which is dominated by two extreme seed-level outcomes. The lower median alone therefore does not establish superiority or consistent performance across seeds.
Table 4. Physical trace - random control comparison, primary metrics.
| Treatment | Metric | Random median | DRL median | Δ% | Seeds better | p (Holm) | vs. random |
|---|---|---|---|---|---|---|---|
| MaskablePPO | Avg Wait | 2,171.033 | 2,242.491 | +4.3% | 2/10 | 0.156 | Not sep. |
| MaskablePPO | Avg Slow. | 5.977 | 7.335 | +24.8% | 0/10 | 0.012 | Worse |
| MaskablePPO | Max Slow. | 2,570.333 | 2,914.091 | +12.9% | 1/10 | 0.029 | Worse |
| MaskableDQN | Avg Wait | 2,171.033 | 5,007.956 | +139.9% | 1/10 | 0.012 | Worse |
| MaskableDQN | Avg Slow. | 5.977 | 125.576 | +1982.5% | 0/10 | 0.012 | Worse |
| MaskableDQN | Max Slow. | 2,570.333 | 251,871.750 | +9392.2% | 0/10 | 0.012 | Worse |
| MaskableA2C | Avg Wait | 2,171.033 | 2,212.443 | +3.1% | 3/10 | 0.336 | Not sep. |
| MaskableA2C | Avg Slow. | 5.977 | 7.305 | +22.7% | 0/10 | 0.012 | Worse |
| MaskableA2C | Max Slow. | 2,570.333 | 2,962.182 | +14.6% | 0/10 | 0.012 | Worse |
Table 7 shows statistically significant improvements for MaskablePPO over the masked random control on all three reported primary metrics after Holm correction. Against the no-backfill heuristics, however, TOST supports practical equivalence with UNICEP on all three primary metrics within the ±10% margin. The reported reductions in maximum bounded slowdown are 22.0% relative to LCFS and 63.2% relative to the random control.
Table 5 shows that MaskablePPO's mean average waiting time is within 1% of SJF (851 s) and UNICEP (846 s). These small average-waiting differences should be considered alongside the training and decision-time costs in Section 4.4. The configured deeplearn topology contains 30 nodes and 120 GPUs, while physical
Table 5. Deeplearn trace - performance metrics (mean ± std. dev.). Wait and turnaround in seconds; slowdown is a ratio; utilisation a fraction.
| Algorithm | Avg Wait | Avg Slowdown | Avg Turnaround | Max Wait | Max Slowdown | CPU Util | GPU Util |
|---|---|---|---|---|---|---|---|
| MaskablePPO | |||||||
| MaskableDQN | |||||||
| MaskableA2C | |||||||
| PPO† | |||||||
| DQN† | |||||||
| A2C† | |||||||
| LCFS | |||||||
| SJF | |||||||
| UNICEP | |||||||
| Random (masked) | |||||||
Table 6. Deeplearn trace - Nemenyi post-hoc ranking, average waiting time.
| Algorithm | Mean Rank | Median | Mean | p vs. best |
|---|---|---|---|---|
| PPO† | 1.7 | 821 | 818 | 0.066 |
| A2C† | 2.2 | 821 | 4,274 | 0.261 |
| DQN† | 3.1 | 825 | 19,328 | 0.891 |
| MaskablePPO | 4.0 | 851 | 846 | — |
| MaskableA2C | 4.3 | 837 | 24,520,863 | 0.999 |
| MaskableDQN | 5.7 | 45,552 | 45,729 | 0.324 |
Table 7. Deeplearn trace - random control comparison, primary metrics.
| Treatment | Metric | Random median | DRL median | Δ% | Seeds better | p (Holm) | vs. random |
|---|---|---|---|---|---|---|---|
| MaskablePPO | Avg Wait | 1,171.719 | 850.901 | -28.0% | 10/10 | 0.012 | Better |
| MaskablePPO | Avg Slow. | 7.199 | 3.645 | -49.8% | 10/10 | 0.012 | Better |
| MaskablePPO | Max Slow. | 5,921.342 | 2,267.550 | -63.2% | 10/10 | 0.012 | Better |
| MaskableDQN | Avg Wait | 1,171.719 | 45,551.950 | +3900.3% | 1/10 | 0.023 | Worse |
| MaskableDQN | Avg Slow. | 7.199 | 721.107 | +9995.8% | 1/10 | 0.023 | Worse |
| MaskableDQN | Max Slow. | 5,921.342 | 957,643.358 | +12070.5% | 1/10 | 0.023 | Worse |
| MaskableA2C | Avg Wait | 1,171.719 | 837.357 | -27.8% | 8/10 | 1.000 | Not sep. |
| MaskableA2C | Avg Slow. | 7.199 | 3.646 | -48.6% | 8/10 | 1.000 | Not sep. |
| MaskableA2C | Max Slow. | 5,921.342 | 2,307.000 | -55.7% | 8/10 | 1.000 | Not sep. |
contains 87 nodes and 6,264 CPU cores. Differences between these two traces do not establish that heterogeneous resources cause better DRL performance.
4.3 Generalisation
Generalisation is assessed on the reserved holdout splits without further training or reselection. On physical, mean average waiting time falls approximately four-fold for MaskableA2C and MaskablePPO; on deeplearn, it rises approximately threefold for MaskablePPO. These changes concern different chronological job sets and should not alone be interpreted as improvement or deterioration in the trained policies. The ranks order treatments by their across-seed mean average waiting times, rather than the mean within-seed ranks used in the DRL statistical comparisons. MaskableA2C and MaskablePPO retain first and second place on physical, while MaskablePPO and unmasked PPO exchange the first two positions on deeplearn. Elsewhere on physical, MaskableDQN moves from third to sixth and A2C from fourth to third.
4.4 Training and Inference Cost
Tables 8 and 9 show that, among the masked variants, MaskablePPO and MaskableA2C have lower mean training times than MaskableDQN on both traces, while MaskableDQN has the lowest mean decision latency. Focusing on these variants keeps the latency comparison within completed evaluations.
MaskableDQN's lower decision latency in Tables 8 and 9 is only one part of its resource cost: training also requires replay storage. The reported comparisons do not isolate the effects of replay capacity or update reuse on schedule quality, but the training configuration provides context for the diagnostics in Section 4.5. Both DQN variants use a buffer capacity of 150,000 transitions and minibatches
Table 8. Physical trace - training and inference cost.
| Algorithm | Train (h) | Runs | Eval (s) | Eval Ratio | Latency (ms) |
|---|---|---|---|---|---|
| MaskablePPO | 3.81 ± 0.09 | 10 | 2,677 | 35× | 22.31 |
| MaskableDQN | 5.76 ± 0.68 | 10 | 1,434 | 19× | 2.77 |
| MaskableA2C | 4.34 ± 0.17 | 10 | 2,612 | 34× | 22.55 |
| PPO† | 3.42 ± 0.24 | 10 | 19,842 | 257× | 23.91 |
| DQN† | 5.63 ± 0.66 | 10 | 6,297 | 81× | 2.68 |
| A2C† | 3.77 ± 0.12 | 10 | 18,954 | 245× | 20.94 |
Table 9. Deeplearn trace - training and inference cost.
| Algorithm | Train (h) | Runs | Eval (s) | Eval Ratio | Latency (ms) |
|---|---|---|---|---|---|
| MaskablePPO | 1.23 ± 0.02 | 10 | 629 | 13× | 4.97 |
| MaskableDQN | 1.73 ± 0.02 | 10 | 352 | 7× | 0.67 |
| MaskableA2C | 1.45 ± 0.27 | 10 | 1,202 | 25× | 5.06 |
| PPO† | 1.26 ± 0.25 | 10 | 4,542 | 94× | 4.74 |
| DQN† | 1.71 ± 0.02 | 10 | 2,509 | 52× | 1.08 |
| A2C† | 1.61 ± 0.29 | 10 | 5,022 | 104× | 4.89 |
of 2,048, storing current and next observations from the high-dimensional queue and cluster state. The memory requirements of this storage depend on array dimensions and data types.
4.5 Training Diagnostics
Explained variance, entropy, and learning rate are examined to help interpret the scheduling results. These diagnostics do not establish that training was sufficient or isolate the cause of poor performance. No episode-reward curve is reported because rollout/ep_rew_mean changes infrequently during training. DQN logs reward at episode boundaries, with reported averages of 3 to 21 reward-log entries per run. Its blank explained-variance and entropy entries reflect metrics not reported by the logger, rather than zero-valued measurements.
The training diagnostics first examine policy entropy, which describes the concentration of action probabilities. For unmasked A2C, the final logged entropy is nats on physical and on deeplearn. The former indicates concentrated action probabilities, whereas the latter is close to the 513-action uniform-distribution ceiling ( ). Critic fit is examined through explained variance, which measures how much variation in training returns is captured by the critic, rather than schedule quality: 1 indicates no residual variation and 0 indicates no reduction in variance. For example, A2C's windowed explained variance on the physical trace is over the 2M–3M training-step interval.
The distinction between critic fit and schedule quality can be examined through the masked treatments. On physical, the final logged explained variance is for MaskableA2C and for MaskablePPO. Neither treatment differs significantly from the masked random control in average waiting time, while both have significantly higher average and maximum slowdown (Table 4). These scheduling comparisons, rather than critic fit alone, provide the evidence for assessing whether learned job selection adds value beyond masking.
5 Discussion
Tables 2 and 5 highlight the importance of headroom. The descriptive values of 3.7% on physical and 38.4% on deeplearn affect how each workload's results are interpreted, without establishing heterogeneity as their cause. The training diagnostics also highlight two issues: the common 3M environment-step target does not match optimiser update counts, and rewards occur only every 512th action. At , a reward 512 actions away carries a discount weight of . Controlled comparisons of reward density and optimisation budgets within each trace would help resolve their contributions to scheduling outcomes. The findings remain specific to the tested reward, training configurations and two workload traces. These constraints frame the research questions below.
RQ1: The contribution of action masking. All masked treatments complete evaluation on both traces, but completion alone does not establish good schedule quality. The masked random comparisons assess the additional value of learning. On physical, neither MaskablePPO nor MaskableA2C differs significantly from the control in average waiting time, while both have significantly higher average and maximum slowdown (Table 4). On deeplearn, MaskablePPO improves all three metrics relative to the control, with Holm-adjusted p = 0.012 for each comparison (Table 7). MaskableDQN performs significantly worse than the control on all three metrics on both traces. Masking therefore supports completion in the tested configuration, while the benefit of learned selection depends on the treatment and workload.
RQ2: The justification for concentrating on PPO. MaskablePPO has the best average-waiting rank among complete treatments on both traces (Tables 3 and 6), but its Nemenyi comparisons with MaskableA2C detect no significant difference on physical (p = 1.000, rounded) or deeplearn (p = 0.999, rounded). The recorded multi-metric selection chooses MaskableA2C on physical and MaskablePPO on deeplearn. The cost comparison also presents a trade-off: PPO variants have lower recorded mean training times than their corresponding A2C variants (by 9–22%) and DQN variants, while MaskableDQN has the lowest mean decision latency among masked treatments (Tables 8 and 9). These findings support PPO as a leading candidate in the tested configuration, but do not establish a general schedule-quality and cost advantage that justifies its prevalence.
RQ3: When a DRL scheduler is worth its inference cost. With heuristic backfill disabled, the justification for learned selection differs between the two traces. On physical, the masked treatments show no improvement over the random control in average waiting time or slowdown. On deeplearn, MaskablePPO has significantly lower average slowdown than all three heuristics and is equivalent to UNICEP on the three primary metrics within the specified margin. These gains carry computational costs: MaskablePPO's evaluation takes and the fastest heuristic's time on physical and deeplearn, respectively. The deeplearn holdout further qualifies the comparison: its descriptive average-waiting advantage over LCFS and SJF widens, but its difference from UNICEP remains below 1%, while its advantage over masked random narrows from 27.7% to 3.9%. Practical justification therefore depends on whether gains over the relevant baseline, on the metrics of interest, outweigh training and decision-time costs under the intended workload.
6 Conclusion and Future Work
The study compared six DRL treatments, three heuristics and a masked uniform-random control over ten seeds on two real HPC workload traces under a common non-parametric framework. Masking contributed to the completion of evaluation runs, but the findings also show that the benefit of learned selection depends on both the treatment and workload, rather than masking alone. MaskablePPO had the leading average-waiting rank among complete treatments, but its Nemenyi comparisons with MaskableA2C detected no significant difference. The multi-metric selection chose MaskableA2C on physical and MaskablePPO on deeplearn. PPO's lower recorded training times and DQN's lower decision latencies present a cost trade-off rather than a general advantage for one family. Scheduling gains were also baseline- and metric-dependent: on the deeplearn holdout, MaskablePPO's average-waiting difference from UNICEP remained below 1%. Practical justification therefore requires weighing the relevant gains against training and decision-time costs.
Beyond these findings, a key outcome is the value of including a seed-paired masked random control. It helps distinguish the performance of learned selection from that attainable through feasibility masking with random selection. Building on this comparison, future studies should vary reward density and optimisation budgets within fixed traces to assess their contributions to scheduling outcomes, then examine additional workloads to test whether the observed contrasts recur. If consistent learned-selection benefits are established, model distillation could be evaluated for reducing decision latency while preserving feasibility masking and schedule quality.
Acknowledgments. Computations were performed using the University of the Western Cape's High Performance Computing and Research Cloud facilities. The authors acknowledge the use of OpenCode to assist with grammatical editing, sentence restructuring, and minor code refinement. All suggestions assisted by artificial intelligence were reviewed, revised, and verified by the authors, who take full responsibility for the final content and code.
Disclosure of Interests. The authors have no competing interests to declare that are relevant to the content of this article.
References
-
Bapoo, U., Nyirenda, C.N.: Comparative analysis of parameterized action actor-critic reinforcement learning algorithms for web search match plan generation. In: Proceedings of the Tenth International Congress on Information and Communication Technology (ICICT 2025). vol. 1413, pp. 203–213 (2025). https://doi.org/10.1007/978-981-96-6435-1_16
-
Carrasco, J., García, S., Rueda, M.M., Das, S., Herrera, F.: Recent trends in the use of statistical tests for comparing swarm and evolutionary computing algorithms: Practical guidelines and a critical review. Swarm and Evolutionary Computation 54, 100665 (2020)
-
Demšar, J.: Statistical comparisons of classifiers over multiple data sets. Journal of Machine Learning Research 7, 1–30 (2006)
-
Derrac, J., García, S., Molina, D., Herrera, F.: A practical tutorial on the use of nonparametric statistical tests as a methodology for comparing evolutionary and swarm intelligence algorithms. Swarm and Evolutionary Computation 1(1), 3–18 (2011). https://doi.org/10.1016/j.swevo.2011.02.002
-
Firmano, V.: Deep Reinforcement Learning for Dynamic Job-Shop Scheduling in High-Utilization Systems. Master's thesis, Politecnico di Torino (2024)
-
Gao, X., Dong, H., Zhang, L., Wang, Y., Yang, X., Li, Z.: Self-attention mechanisms in hpc job scheduling: A novel framework combining gated transformers and enhanced ppo. Applied Sciences (Switzerland) 15 (8 2025). https://doi.org/10.3390/app15168928
-
Holm, S.: A simple sequentially rejective multiple test procedure. Scandinavian Journal of Statistics 6(2), 65–70 (1979)
-
Lakens, D.: Equivalence tests: A practical primer for t tests, correlations, and meta-analyses. Social Psychological and Personality Science 8(4), 355–362 (2017)
-
Lifka, D.A.: The ANL/IBM SP scheduling system. In: Workshop on Job Scheduling Strategies for Parallel Processing (JSSPP'95). Lecture Notes in Computer Science, vol. 949, pp. 295–303. Springer (1995). https://doi.org/10.1007/3-540-60153-8_35, foundational work on backfilling strategies for HPC job scheduling
-
Mangalampalli, S.S., Karri, G.R., Mohanty, S.N., Ali, S., Khan, M.I., Abdullaev, S., Alqahtani, S.A.: Multi-objective prioritized task scheduler using improved asynchronous advantage actor critic (a3c) algorithm in multi cloud environment. IEEE Access 12, 11354–11377 (2024). https://doi.org/10.1109/ACCESS.2024.3355092
-
Manhary, F.N., Mohamed, M.H., Farouk, M.: A scalable machine learning strategy for resource allocation in database. Scientific Reports 15 (12 2025). https://doi.org/10.1038/s41598-025-14962-5
-
Mnih, V., Badia, A.P., Mirza, M., Graves, A., Harley, T., Lillicrap, T.P., Silver, D., Kavukcuoglu, K.: Asynchronous methods for deep reinforcement learning. In: Proceedings of the 33rd International Conference on Machine Learning (ICML 2016). Proceedings of Machine Learning Research, vol. 48, pp. 1928–1937. PMLR (2016), http://proceedings.mlr.press/v48/mniha16.html
-
Mnih, V., Kavukcuoglu, K., Silver, D., Rusu, A.A., Veness, J., Bellemare, M.G., Graves, A., Riedmiller, M., Fidjeland, A.K., Ostrovski, G., Petersen, S., Beattie, C., Sadik, A., Antonoglou, I., King, H., Kumaran, D., Wierstra, D., Legg, S., Hassabis, D.: Human-level control through deep reinforcement learning. Nature 518(7540), 529–533 (February 2015). https://doi.org/10.1038/nature14236
-
Raffin, A., Hill, A., Gleave, A., Kanervisto, A., Ernestus, M., Dormann, N.: Stable-baselines3: Reliable reinforcement learning implementations. Journal of Machine Learning Research 22(268), 1–8 (2021), http://jmlr.org/papers/v22/20-1364.html
-
Sanjalawe, Y., Al-E'mari, S., Fraihat, S., Makhadmeh, S.: Ai-driven job scheduling in cloud computing: a comprehensive review. Artificial Intelligence Review 58(7) (July 2025). https://doi.org/10.1007/s10462-025-11208-8, article number not specified in online-first publication
-
Sankaran, P., Lingishetty, S.K., Kumar, M.: Leveraging reinforcement learning for efficient task scheduling in multi-cloud environments. International Journal of Innovative Research in Computer Science and Technology 13(2), 35–41 (April 2025). https://doi.org/10.55524/ijircst.2025.13.2.6
-
Schulman, J., Wolski, F., Dhariwal, P., Radford, A., Klimov, O.: Proximal policy optimization algorithms (August 2017), http://arxiv.org/abs/1707.06347
-
Sharma, A.K., Kunkel, J.: GrapheonRL: A graph neural network and reinforcement learning framework for constraint and data-aware workflow mapping and scheduling in heterogeneous HPC systems (May 2025), http://arxiv.org/abs/2506.00260, arXiv preprint arXiv:2506.00260
-
Silberschatz, A., Galvin, P.B., Gagne, G.: Operating System Concepts. Wiley, Hoboken, NJ, 10th edn. (2018)
-
Stolz, R., Krasowski, H., Thumm, J., Eichelbeck, M., Gassert, P., Althoff, M.: Excluding the irrelevant: Focusing reinforcement learning through continuous action masking. In: Globerson, A., Mackey, L., Belgrave, D., Fan, A., Paquet, U., Tomczak, J., Zhang, C. (eds.) Advances in Neural Information Processing Systems. vol. 37, pp. 95067–95094. Curran Associates, Inc. (2024). https://doi.org/10.52202/079017-3013, https://proceedings.neurips.cc/paper_files/paper/2024/file/acf4a08f67724e9d2de34099f57a9c25-Paper-Conference.pdf
-
Subramoney, D., Nyirenda, C.N.: Multi-swarm PSO algorithm for workflow scheduling in cloud-fog environments. IEEE Access 10, 117199–117214 (2022). https://doi.org/10.1109/ACCESS.2022.3220239
-
Sutton, R., Barto, A.: Reinforcement Learning, second edition: An Introduction. Adaptive Computation and Machine Learning series, MIT Press (2018), https://books.google.co.za/books?id=uWV0DwAAQBAJ
-
Wang, H., Chen, X., Zhang, K., Smith, R.H.: Dynamic multi-objective flexible job shop scheduling: A three-phase deep reinforcement learning approach. Tech. rep. (2024), https://ssrn.com/abstract=5312558
-
Wang, L., Rodriguez, M.A., Lipovetzky, N.: Metapilot: A drl-based controller for dynamic adaptation to shifting scheduling objectives in hpc systems. Future Generation Computer Systems 178, 108269 (5 2025). https://doi.org/10.1016/j.future.2025.108269, https://linkinghub.elsevier.com/retrieve/pii/S0167739X25005631
-
Wang, L., Rodriguez, M.A., Lipovetzky, N.: Optimizing HPC scheduling: a hierarchical reinforcement learning approach for intelligent job selection and allocation. Journal of Supercomputing 81(8) (June 2025). https://doi.org/10.1007/s11227-025-07396-3, article number not specified in online-first publication
-
Wu, R., Zheng, J., Yin, X.: Dynamic scheduling for multi-objective flexible job shops with machine breakdown by deep reinforcement learning. Processes 13 (4 2025). https://doi.org/10.3390/pr13041246
-
Yoo, A.B., Jette, M.A., Grondona, M.: SLURM: Simple linux utility for resource management. In: Job Scheduling Strategies for Parallel Processing (JSSPP 2003). Lecture Notes in Computer Science, vol. 2862, pp. 44–60. Springer (2003). https://doi.org/10.1007/10968987_3
-
Zhang, D., Dai, D., He, Y., Bao, F.S., Xie, B.: RLScheduler: An automated HPC batch job scheduler using reinforcement learning. In: SC20: International Conference for High Performance Computing, Networking, Storage and Analysis (2020). https://doi.org/10.1109/SC41405.2020.00035