Learning to schedule job-shop problems: Representation and policy learning using graph neural network and reinforcement learning

Junyoung Park, Jaehyeong Chun, Sang-Hun Kim, Youngkook Kim, Jinkyoo Park · DOI

Introduction

The Job-Shop Scheduling Problem (JSSP) is a fundamental NP-hard challenge in operations research. It involves sequencing a set of jobs, each with a specific order of operations, across multiple machines to minimize the total completion time, or makespan. Traditional approaches often struggle with the "curse of dimensionality" in exact methods or the sub-optimality of simple Priority Dispatching Rules (PDRs) like FIFO. This paper proposes a middle ground: a Graph Neural Network (GNN) based scheduler trained via Reinforcement Learning (RL) that combines the speed of heuristics with the adaptive intelligence of learned models.

The GNN Scheduler Framework

The authors frame JSSP as a sequential decision-making process. The core innovation lies in representing the scheduling state as a disjunctive graph, where nodes are operations and edges represent both job precedence (conjunctive) and machine sharing (disjunctive) constraints.

Overview of the proposed GNN-based scheduling framework, illustrating the flow from problem formulation to policy learning.

As shown in the framework overview, the process begins with an MDP formulation for JSSPs using a graph state. This state is then processed by a GNN scheduler consisting of two main components: representation learning (node embedding) and policy learning (parameterized policy). The entire system is trained end-to-end using Reinforcement Learning to optimize the scheduling decisions.

Architecture and Policy Learning

The GNN scheduler operates by transforming the input graph $g_\tau$ into a scheduling action $a_\tau$.

Detailed architecture of the GNN scheduler, showing the transition from input graph to node embeddings and finally to a sampled scheduling action.

The architecture performs $K$ layers of message passing to generate context-aware node embeddings. These embeddings capture the local and global relationships between operations, such as which jobs are waiting for which machines. A parameterized policy $\pi(\cdot | g_\tau)$ then uses these embeddings to sample the next scheduling action. By focusing on "non-trivial states"—moments when a machine is free and multiple jobs are ready—the model avoids the computational overhead of per-unit time-step decisions.

Training and Generalization

The model is trained using Proximal Policy Optimization (PPO), a stable RL algorithm well-suited for combinatorial optimization. The reward function is designed to minimize the number of waiting jobs, which directly correlates with minimizing the overall makespan.

A key strength of this approach is structural generalization. Because GNNs are permutation-invariant and can process graphs of varying sizes, a model trained on small, synthetic 6x6 problems can be applied to massive 20x100 benchmark instances without further training. This "zero-shot" transfer capability is a significant advancement over previous RL methods that required retraining for different problem dimensions.

Key Results and Insights

The GNN scheduler demonstrates superior performance across several dimensions:

  • Efficiency: It significantly outperforms standard heuristics like FIFO and SPT, achieving a low average relative error of 14.7% on test instances.
  • Robustness: In zero-shot evaluations on classic benchmarks (e.g., Taillard instances), the model maintained high solution quality, proving it learns the underlying structure of scheduling rather than just memorizing patterns.
  • Synergy: The joint training of representation and policy ensures that the GNN extracts features specifically optimized for the RL agent's decision-making needs.

Limitations and Future Work

Despite its success, the model faces a computational bottleneck as the number of edges in the disjunctive graph grows quadratically with the number of jobs. Future research could explore more efficient graph topologies, such as bipartite graphs involving machine nodes, to reduce edge counts. Additionally, extending the framework to handle real-world constraints like maintenance windows or flexible job shops remains an open area for exploration.

Reference: Park, J., Chun, J., Kim, S. H., Kim, Y., & Park, J. (2021). Learning to schedule job-shop problems: representation and policy learning using graph neural network and reinforcement learning. International Journal of Production Research, 59(11).

Summary updated

BibTeX
@article{park2021learning,
  author = {Junyoung Park and Jaehyeong Chun and Sang-Hun Kim and Youngkook Kim and Jinkyoo Park},
  title = {{Learning to schedule job-shop problems: Representation and policy learning using graph neural network and reinforcement learning}},
  journal = {Int. J. Prod. Res.},
  year = {2021},
  doi = {10.1080/00207543.2020.1870013},
}
Figure