Learning to generalize Dispatching rules on the Job Shop Scheduling

Zangir Iklassov, Dmitrii Medvedev, Ruben Solozabal, Martin Takác · DOI

Abstract

The Job Shop Scheduling Problem (JSP) remains a fundamental challenge in combinatorial optimization. While traditional heuristics offer speed, they often lack optimality, and exact solvers scale poorly. This paper presents a size-agnostic Reinforcement Learning (RL) framework coupled with a novel training strategy, Reinforced Adaptive Staircase Curriculum Learning (RASCL). By leveraging a reverse LSTM architecture and an adaptive curriculum, the proposed model achieves significant improvements in generalization, outperforming state-of-the-art neural solvers and traditional dispatching rules on large-scale, unseen scheduling tasks.

Introduction

The Job Shop Scheduling Problem (JSP) involves scheduling a set of jobs, each comprising a sequence of operations, across multiple machines to minimize the total completion time, or makespan. As an NP-hard problem, JSP is typically addressed using Priority Dispatching Rules (PDRs) or exact solvers. However, PDRs are often sub-optimal, and exact solvers are computationally prohibitive for real-time industrial applications.

Recent advances in Reinforcement Learning (RL) have attempted to "learn" superior heuristics. Yet, these models frequently struggle with generalization; a model trained on small instances (e.g., 15x15) often fails when applied to larger ones (e.g., 100x20). Furthermore, standard Curriculum Learning techniques often lead to "catastrophic forgetting," where an agent loses proficiency on simpler tasks as it encounters more complex ones.

Methodology

Size-Agnostic Architecture

To address the limitations of fixed-size models, the authors propose an architecture designed for equivariance and scalability.

  1. Reverse LSTM (rLSTM): Recognizing that an operation's priority depends on subsequent tasks within the same job, the model employs an rLSTM. This propagates information from the final operation of a job back to the current one, providing a "look-ahead" capability.
  2. Set2Set Module: To ensure the model remains invariant to the number or order of jobs, a Set2Set module aggregates embeddings. This allows the architecture to handle arbitrary problem sizes.
  3. Actor-Critic Framework: The JSP is modeled as a Markov Decision Process (MDP). The agent iteratively selects operations to schedule, guided by an actor-critic network that evaluates state-action pairs.
The proposed size-agnostic architecture incorporating rLSTM and Set2Set modules within an Actor-Critic framework.

Reinforced Adaptive Staircase Curriculum Learning (RASCL)

Standard curriculum learning typically progresses linearly. RASCL introduces a more dynamic approach by monitoring the "optimality gap" across all previously encountered difficulty levels. If performance on a specific level degrades, RASCL samples from a distribution of the worst-performing levels to "anchor" the policy, effectively preventing catastrophic forgetting and ensuring robust performance across scales.

Experimental Evaluation

The model was evaluated on two primary benchmarks: Taillard’s Instances and Demirkol’s (DMU) Instances. To test generalization, models were trained on instances up to 30x20 and evaluated on much larger, unseen instances (up to 100x20).

Key Results

The proposed approach demonstrated a substantial improvement over existing neural solvers and traditional heuristics. On Taillard’s instances, the average optimality gap was reduced from 19.35% to 10.46%. Notably, on the largest 100x20 instances, the gap reached as low as 3.96%.

Performance comparison across various instance sizes, demonstrating the model's ability to maintain low optimality gaps.

The results indicate that generalization is not merely an architectural challenge but also a training one. By ensuring the model remains "sharp" across various scales through RASCL, the agent captures the combinatorial complexity inherent in larger scheduling tasks.

Conclusion and Future Work

While the model shows remarkable performance on synthetic benchmarks, training on very large instances remains computationally demanding due to GPU memory constraints. Future research will focus on extending this framework to stochastic or partially observable environments, better reflecting the dynamic and unpredictable nature of real-world manufacturing floors. This work represents a significant step toward deploying learned heuristics in complex industrial scheduling environments.

Summary updated

BibTeX
@misc{iklassov2022learning,
  author = {Zangir Iklassov and Dmitrii Medvedev and Ruben Solozabal and Martin Takác},
  title = {{Learning to generalize Dispatching rules on the Job Shop Scheduling}},
  year = {2022},
  eprint = {2206.04423},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2206.04423},
}
Figure