Flexible Job Shop Scheduling via Dual Attention Network-Based Reinforcement Learning

Runqing Wang, Gang Wang, Jian Sun, Fang Deng, Jie Chen

TL;DR

This paper introduces DANIEL, a novel end-to-end deep reinforcement learning framework that uses a dual-attention network to effectively model the complex relationships in Flexible Job Shop Scheduling (FJSP). DANIEL achieves state-of-the-art performance, outperforming traditional methods and even matching exact solvers in some cases, while demonstrating strong generalization capabilities.

What Problem Does This Paper Address?

The Flexible Job Shop Scheduling Problem (FJSP) is a critical challenge in modern manufacturing, where operations can be processed on multiple machines, creating intricate dependencies. Traditional approaches, like priority dispatching rules (PDRs), are often too simplistic, while exact methods struggle with scalability. Existing deep reinforcement learning (DRL) methods have shown promise but often fall short in solution quality compared to exact methods and face challenges in representing the complex, dynamic nature of FJSP. Specifically, accurately capturing the relationships between operations and machines, and the competitive dynamics between machines, remains a significant hurdle.

Methods

The core innovation of this paper is the Dual Attention Network (DAN) integrated into a DRL framework. DAN addresses the limitations of previous methods by:

  • Dual Attention Mechanism: It employs two distinct attention blocks:
  • Operation Message Attention Block: Focuses on relationships within a job, specifically between an operation and its immediate predecessors and successors, to extract operation-specific features.
  • Machine Message Attention Block: Explicitly models the competitive relationships between machines vying for the same unscheduled operations. This is a novel aspect that captures a crucial dynamic not well-represented in prior work.
  • Tight State Representation: The DRL agent's state representation is designed to be minimal and sufficient, including only relevant operations and machines at any given decision point. This representation shrinks as scheduling progresses, improving computational efficiency.
  • End-to-End DRL: The DAN is integrated with a Proximal Policy Optimization (PPO) based actor-critic reinforcement learning agent. This agent learns to make decisions for both operation sequencing and machine assignment simultaneously, outputting a probability distribution over feasible operation-machine pairs.

Datasets

The paper uses two types of synthetic datasets for training and evaluation:

  • SD₁: Adapted from a previous work [32], featuring jobs with a varying number of operations.
  • SD₂: A new dataset with a wider range for random processing times, where each job has a fixed number of operations equal to the number of machines.

These datasets are used across six different scales (10x5 to 40x10). Additionally, the model is evaluated on four groups of public benchmarks (mk, la(rdata), la(edata), la(vdata)) to assess its cross-distribution generalization capabilities.

Key Insights and Ideas

  • Machine Competition is Crucial: Explicitly modeling the competitive dynamics between machines is a key differentiator. This allows the model to better understand which machines are more critical or contested, leading to more informed scheduling decisions.
  • Dynamic State Representation Matters: By only considering relevant operations and machines, the state space shrinks over time. This not only improves efficiency but also ensures the model focuses on information pertinent to the current decision, avoiding noise from completed tasks.
  • Generalization Beyond Training Data: The DAN's ability to learn generalizable features allows models trained on smaller instances to perform well on larger, unseen instances, a significant advantage for real-world applications where exact problem distributions might be unknown.
  • Bridging the Gap to Exact Solvers: The paper demonstrates that end-to-end DRL methods can achieve performance comparable to, and in some cases even better than, established exact solvers like OR-Tools, a feat rarely seen in this domain.

Key Results

  • Superior Performance: DANIEL consistently outperforms traditional PDRs and the state-of-the-art DRL method [32] across various synthetic datasets and problem sizes.
  • Competitive with Exact Methods: On several instances, DANIEL achieves results comparable to OR-Tools, and even surpasses it by 1.03% on the 20x10 FJSP instances on SD₁ data, where OR-Tools could not find optimal solutions within the time limit.
  • Strong Generalization: Models trained on smaller synthetic datasets (e.g., 20x10) demonstrate excellent performance on larger (e.g., 40x10) and cross-distribution benchmark instances, often outperforming [32] and even matching OR-Tools on some benchmarks.
  • Computational Efficiency: Despite its advanced architecture, DANIEL exhibits runtime comparable to [32] and is significantly more efficient than exact methods.

Limitations and Future Work

  • Limitations: The paper focuses on standard FJSP with deterministic processing times. The current model does not handle dynamic scenarios with new job insertions or uncertainties in processing times.
  • Future Work: The authors suggest extending DANIEL to address dynamic FJSP with uncertainty and exploring multi-agent settings for more complex manufacturing environments. Further research into fine-tuning DANIEL for real-world problems with unknown distributions is also proposed.

Summary updated

BibTeX
@article{wang2024flexible,
  author = {Runqing Wang and Gang Wang and Jian Sun and Fang Deng and Jie Chen},
  title = {{Flexible Job Shop Scheduling via Dual Attention Network-Based Reinforcement Learning}},
  journal = {IEEE Trans. Neural Networks Learn. Syst.},
  year = {2024},
  doi = {10.1109/tnnls.2023.3306421},
}
Figure