Abstract
The Flexible Job Shop Scheduling Problem (FJSP) is a fundamental optimization challenge in industrial logistics, typically complicated by real-world uncertainty in processing times. Traditional Neural Combinatorial Optimization (NCO) approaches often rely on deterministic assumptions, leading to brittle schedules. This paper presents the Scenario Processing Module (SPM), an attention-based architecture that explicitly incorporates multiple "what-if" scenarios into the decision-making process. Integrated into a Dual Attention Network (SPM-DAN), this approach achieves state-of-the-art performance on stochastic FJSP benchmarks, offering robust, risk-aware scheduling with significant computational efficiency.
Introduction
The Flexible Job Shop Scheduling Problem (FJSP) involves assigning a set of jobs, each comprising multiple operations, to a set of machines to minimize the total makespan. While FJSP is a well-known NP-hard problem, its practical application is often hindered by the stochastic nature of real-world environments. Processing times are rarely fixed; they are subject to machine variability, material delays, and other uncertainties.
Most existing Neural Combinatorial Optimization (NCO) models assume deterministic processing times, resulting in schedules that lack robustness when reality deviates from the estimate. While traditional stochastic optimization methods like simulation-optimization exist, they are often computationally expensive and tailored to specific objectives. This paper addresses this gap by introducing the Scenario Processing Module (SPM), a modular attention-based component that enables NCO models to explicitly reason about uncertainty in a fast and generalizable manner.
Methodology: The Scenario Processing Module (SPM)
The core innovation, the Scenario Processing Module (SPM), shifts away from using single point estimates (like mean processing times). Instead, it provides the neural network with a set of sampled scenarios representing potential realizations of processing times.
The SPM utilizes a multi-head attention mechanism to capture inter-scenario relationships, generating a "stochastic embedding" that represents the distribution of potential outcomes. To maintain computational efficiency for large scenario sets, the authors employ "inducing points"—trainable parameters that reduce the self-attention complexity from $O(n^2)$ to $O(n)$ while still capturing the essential characteristics of the distribution.
This module is integrated into the Dual Attention Network (DAN) architecture, a state-of-the-art model for FJSP. The resulting SPM-DAN model concatenates stochastic embeddings with deterministic features (e.g., operation and machine IDs) before passing them to actor-critic layers. Training is conducted via Proximal Policy Optimization (PPO), allowing the model to optimize for various objectives, including Expected Makespan and Value-at-Risk (VaR), the latter being critical for risk-averse industrial planning.
Experimental Results
The authors evaluated SPM-DAN on synthetic datasets (SD1 and the more realistic SD3) and adapted public benchmarks. SD3 was specifically introduced to better reflect industrial reality, using continuous distributions and varied uncertainty levels across different machine-operation pairs.
As shown in the results, SPM-DAN consistently outperforms traditional Priority Dispatching Rules (PDRs) such as FIFO and SPT, as well as the deterministic DAN baseline. Notably, in stochastic environments, SPM-DAN frequently surpasses the performance of the CP-SAT solver from Google OR-Tools. While CP-SAT is highly effective for deterministic problems, its performance degrades when applied to stochastic realizations it wasn't designed for.
SPM-DAN maintains a significant performance edge, particularly as problem size increases. Furthermore, the model demonstrates impressive zero-shot generalization; a model trained on 20-job instances can be applied to 40-job instances with minimal loss in relative performance, maintaining a ~6% lead over baselines.
Key Insights and Discussion
A fundamental distinction of SPM-DAN is its approach to learning uncertainty. While most Reinforcement Learning agents attempt to learn stochasticity implicitly through the reward signal, SPM-DAN is explicitly provided with scenario embeddings at every decision step. This explicit representation allows the network to "understand" the distribution of potential outcomes directly.
The modularity of the SPM is another major advantage. It acts as a plug-and-play component that can be integrated into various NCO architectures beyond DAN, potentially benefiting other combinatorial problems like the Vehicle Routing Problem (VRP) under uncertainty. Finally, the ability to optimize for Value-at-Risk (VaR) provides a practical tool for industrial managers who prioritize reliability and the avoidance of "worst-case" delays over simple average-case optimization.
Conclusion
SPM-DAN represents a significant step forward in stochastic scheduling. By explicitly embedding uncertainty into the neural architecture, the model achieves robustness without sacrificing the speed inherent to NCO approaches. While the model's performance depends on the quality of sampled scenarios, its efficiency and generalization capabilities make it a promising candidate for real-world industrial deployment. Future work may extend this "proactive" scheduling approach to "reactive" settings, where plans are updated dynamically as actual processing times unfold.
Summary updated