PORL: Pretrained Offline Reinforcement Learning for the Job Shop Scheduling Problem
Organizations: Department of Industrial Engineering Rosenheim University of Applied Sciences Rosenheim, Germany
Abstract
The Job Shop Scheduling Problem (JSSP) is a fundamental combinatorial optimization problem in industrial optimization. This work introduces Pretrained Offline Reinforcement Learning (PORL), a hybrid approach that combines simulation-based online pretraining with offline fine-tuning on production-specific data. Reinforcement learning through online interaction enables exploration of general scheduling strategies, but typically relies on simulation environments and may suffer from a simulation-to-reality gap. In contrast, offline RL avoids direct interaction with the environment by learning from historical data, but its performance is strongly influenced by dataset quality and coverage. PORL combines the strengths of both paradigms by first learning a general scheduling policy through online interaction and subsequently adapting it offline to a target distribution. A KL-divergence-based policy constraint is introduced to limit deviations from the pretrained policy during fine-tuning. The approach is evaluated on JSSP instances with distribution shift and datasets generated from heuristic, noisy-expert, and random behavioral policies. The results show that PORL consistently achieves lower optimality gaps than standalone offline RL and the considered general scheduling baselines. Furthermore, its advantage over standalone offline RL increases as dataset quality decreases, indicating reduced sensitivity to the quality and coverage of the available offline data. The results suggest that offline adaptation of pretrained policies is a promising approach for industrial scheduling environments where direct online exploration is impractical.
Figures & tables
| Parameter | Value |
|---|---|
| Input feature dimension | 5 |
| Hidden dimension | 64 |
| Number of Graph Isomorphism Network layers ( ) | 3 |
| Hyperparameter | Value |
|---|---|
| Learning rate | |
| Discount factor ( ) | 0.99 |
| TD loss function | smooth_l1 |
| CQL regularization ( ) | 0.0 |
| Training timesteps | 250000 |
| Replay buffer size | 10000 |
| Hyperparameter | Value |
|---|---|
| Learning rate | |
| Discount factor ( ) | 0.99 |
| Training timesteps | 100000 |
| TD loss function | smooth_l1 |
| CQL regularization ( ) | 1.0 |
| Batch size | 64 |
| Hyperparameter | Value |
|---|---|
| 0.5 | |
| Discount factor ( ) | 0.99 |
| Training timesteps | 100000 |
| TD loss function | smooth_l1 |
| Batch size | 64 |
| Target network update frequency | 500 |
| Parameter | Learning rate | |
|---|---|---|
| Initial value | 0.0 | |
| Final value | 1.0 | |
| Ramp start | 0 | 40000 |
| Ramp end | 40000 | 80000 |
| Approach | Optimality gap |
|---|---|
| Generally trained PPO agent | % |
| Pretrained DQN agent (PORL baseline) | % |
| Flow Due Date / Most Work Remaining | % |
| Offline Reinforcement Learning agent | % |
| Pretrained Offline Reinforcement Learning agent | % |
| Approach | Combined Heuristics | Noisy-Expert | Random |
|---|---|---|---|
| Offline RL agent | % | % | % |
| Pretrained Offline RL agent | % | % | % |
RL for Combinatorial Optimization
Reinforcement learning for combinatorial optimization learns sequential decisions and search strategies for difficult discrete problems.
See all 106 papers