Source-linked AI summary
PORL: Pretrained Offline Reinforcement Learning for the Job Shop Scheduling Problem
Mateo Toro Diz, Jonathan Hoss, Noah Klarmann
TL;DR
JSSP learning faces a tradeoff: online RL relies on simulation, while offline RL depends on historical-data quality and coverage. PORL pretrains a scheduling policy through simulated interaction, then constrains offline fine-tuning to adapt it to production-specific data. Under distribution shift, it consistently outperforms the stated scheduling baselines.
Problem
Online JSSP reinforcement learning relies on simulation, while offline RL learns from historical data but remains dependent on dataset quality and coverage.
Source: §I · p. 1Method
PORL first learns a general scheduling policy through simulated online interaction, then uses KL-divergence-based policy constraints during offline fine-tuning on production-specific data.
Source: §I · p. 1, §IX · p. 7Results
Under substantial distributional shift, PORL consistently outperforms standalone offline RL, online RL baselines, and priority dispatching rules.
Source: §IX · p. 7Takeaways & Limitations
Combining online exploration with offline adaptation is a promising direction for industrial scheduling where direct online learning is impractical and standalone offline learning can be sensitive to dataset quality and coverage.
Source: §IX · p. 7The reported scope is JSSP instances under substantial distributional shift, and the proposed explanation for gains is presented as possible rather than established.
Source: §VIII · p. 6
Abstract
from arXiv · showhide
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.
I. INTRODUCTION
PORL combines simulation-based online pretraining with offline adaptation to production-specific data, addressing online RL’s simulation dependence and offline RL’s dataset-quality dependence. It constrains fine-tuning around the pretrained policy and reports lower optimality gaps than the stated baselines under distribution shift.
I. INTRODUCTION
- Classical optimization and handcrafted dispatching rules have limited adaptability or generalization across changing production environments and scheduling scenarios.Online RL learns from experience but requires simulation, which can create a simulation-to-reality gap.Source: §I · p. 1
- Offline RL learns from historical trajectories without environment interaction, but its performance depends strongly on dataset quality and coverage.PORL initializes offline learning from a policy that has explored a large portion of the scheduling state space.Source: §I · p. 1
- PORL first learns general scheduling strategies through simulated online interaction, then adapts the policy offline to production-specific data.The reverse training order is motivated by the cost and operational risk of exploratory scheduling in deployed industrial systems.Source: §I · pp. 1–2
- A policy-level constraint limits fine-tuning deviations from the pretrained policy, while offline adaptation targets the production distribution.The contribution summary describes adapting pretrained Q-networks while controlling divergence from the pretrained policy.Source: §I · pp. 1–2
- Under substantial distributional shift, PORL achieves lower optimality gaps than dispatching-rule and standalone offline RL baselines, and performs strongly on low-return datasets.The introduction also reports that PORL outperforms standalone offline RL on low-return data.Source: §I · p. 2
II. RELATED WORK
Prior JSSP reinforcement-learning work includes online graph-based policies and offline methods such as CQL, but online training relies on simulators and offline learning remains constrained by dataset support. The section identifies online pretraining followed by offline adaptation as an unexplored paradigm for JSSP.
A. RL for JSSP
- JSSP RL methods use graph-based representations and GNNs, while DQN policies commonly train through simulator interaction and depend on simulator fidelity.Prior graph-based approaches report strong benchmark performance and generalization [7], [8], [13], [14].Source: A. RL for JSSP · p. 2
B. Offline RL for scheduling
- Offline RL avoids environment interaction, but distributional shift can make value estimates unreliable for unsupported actions; CQL uses value regularization to address this issue.JSSP studies report competitive CQL scheduling using optimal, heuristic, and noisy-trajectory datasets [12],.Source: B. Offline RL for scheduling · p. 2
C. Research gap
- The identified gap is that online-pretraining-then-offline-adaptation had not been systematically explored for JSSP, although target-environment exploration is often unrealistic in industrial scheduling.Online RL enables exploration but may not reflect real production, while offline RL is constrained by available dataset support.Source: C. Research gap · p. 2
III. ALGORITHM
The algorithm uses a heterogeneous graph representation of JSSP states, with operation and machine nodes, and processes the homogenized graph using a GIN. The section also identifies the training-pipeline figure and architecture-hyperparameter table.
A. Model Architecture
- Each JSSP state is represented as a heterogeneous graph with operation and machine nodes, connected by precedence and assignment edges.Precedence edges connect consecutive operations within jobs, while assignment edges link operations to their machines.Source: A. Model Architecture · p. 2
- Feature-based homogenization uses one-hot node-type information to let operation and machine nodes share a feature space while retaining their structural distinctions.The resulting graph is processed by a K-layer GIN whose stacked layers aggregate K-hop neighborhoods.Source: A. Model Architecture · pp. 2–3
III. ALGORITHM
- The model architecture is held fixed across experiments, with its GNN hyperparameters listed in Table I.Fig. 1 illustrates the training pipeline for the offline RL baseline and PORL.Source: §III · p. 2, A. Model Architecture · p. 3, Table I · p. 3
B. Pretrained Offline RL
PORL learns a general scheduling strategy through online pretraining and then adapts it offline to target-instance data while constraining deviations from the pretrained policy.
1) Positioning:
- PORL is intended to specialize a well-trained general policy to a production setting using limited offline data, with fixed online and offline training budgets.The paper evaluates the feasibility of this adaptation principle.Source: 1) Positioning · p. 3
2) Initialization and setup:
- The pretrained online DQN weights initialize the hybrid agent, requiring the same Q-network architecture in both training stages.The initialized agent is then fine-tuned offline.Source: 2) Initialization and setup · p. 3
3) Policy Constraint Formulation:
- The offline objective adapts the pretrained Q-function to target instances while limiting large deviations from the original policy.The constraint is intended to allow targeted specialization without catastrophic degradation of previously learned behavior.Source: 3) Policy Constraint Formulation · p. 3
- A stochastic policy is derived from each Q-function by softmax, and the pretrained policy remains fixed as the reference during fine-tuning.The softmax temperature controls distribution smoothness, and the action mask defines valid actions.Source: 3) Policy Constraint Formulation · p. 3
- Forward KL penalizes probability assigned to actions unlikely under the pretrained policy while allowing action preferences to be reweighted; training also retains CQL alongside DQN and KL losses.The KL constraint strength is controlled by λKL.Source: 3) Policy Constraint Formulation · p. 3
IV. DATASET GENERATION
The dataset-generation setup shifts from standard online-pretraining instances to specialized target distributions designed to represent shop-floor characteristics.
- Online pretraining uses uniformly distributed 15 × 15 instances, while offline fine-tuning uses custom distributions with significant distribution shift and 10 × 10 instances.The size convention is J × M, where J is jobs and M is machines.Source: §IV · p. 4
- Target templates vary machine-specific processing times using Gaussian or uniform distributions and assign partial or full precedence constraints to 50% of jobs.Remaining jobs follow the standard unconstrained JSSP formulation.Source: §IV · p. 4
- The specialized instances differ from generic uniform benchmarks and are intended to resemble shop floors with repeated product flows and heterogeneous machines.The paper describes this shift as a way to bridge simulation-based training and practical manufacturing environments.Source: §IV · p. 4
A. Behavioral policies
The behavioral datasets span heuristic-guided, noisy-expert, and random valid-action policies to represent differing schedule quality.
- Two ϵ-greedy priority dispatching policies follow heuristics but choose a random valid action with probability ϵ.This introduces variability similar to real production logs.Source: A. Behavioral policies · p. 4
- Noisy-expert policies follow an exact-solver schedule with probability 0.5; otherwise each scheduled action has a 0.1 chance of being replaced by a random valid action.If a random action blocks the scheduled optimal action, another random valid action is scheduled.Source: A. Behavioral policies · p. 4
- The third behavioral policy chooses random valid actions to represent low-quality schedules, while hyperparameters remain constant across all three datasets.The fixed hyperparameters are used to test robustness to reduced-quality datasets.Source: A. Behavioral policies · p. 4
V. AGENT TRAINING
The training comparison uses a shared network architecture but different data and optimization procedures for online RL, standalone offline RL, and PORL.
V. AGENT TRAINING
- All three approaches use the same underlying network architecture, while their data, optimization procedures, training budgets, and hyperparameters differ.Source: §V · p. 4
A. Online RL training
- The online RL baseline trains with DQN on 100 fixed, uniformly distributed 15 × 15 instances with operation durations from 0 to 100.Source: A. Online RL training · p. 4
B. Offline and PORL
- Offline RL and PORL use target-specific datasets generated by stochastic behavioral policies rolled out on 50 instances sampled from the target distribution.Source: B. Offline and PORL · p. 4
- Standalone offline RL trains CQL-DQN from scratch, whereas PORL initializes from online-pretrained weights and fine-tunes on the same offline dataset.This setup compares learning exclusively from offline data with adapting a pretrained policy to the target distribution.Source: B. Offline and PORL · p. 4
1) Offline RL:
The section specifies training controls for offline RL and PORL, then describes the evaluation seeds, instances, and performance measures.
1) Offline RL:
- Offline CQL-DQN is trained with fixed hyperparameters listed in Table III.Source: 1) Offline RL · p. 4, Table III · p. 5
2) Pretrained Offline RL:
- PORL uses the offline agent’s dataset and training-step budget, while its learning rate and CQL α change over time to reduce multiobjective optimization instability.Table V presents the PORL hyperparameter ramping.Source: 2) Pretrained Offline RL · pp. 4–5, Table V · p. 5
VI. EVALUATION PROTOCOL
- Each model uses five random seeds, and evaluation uses 100 new instances generated with five seeds different from the training seeds.Evaluation instances remain constant across approaches.Source: §VI · p. 5
- Performance is measured by average makespan and optimality gap, with the gap referenced to an exact solver’s optimum under a 300-second time limit.Source: §VI · p. 5
A. Benchmarking
The benchmarking compares the offline and hybrid agents with dispatching rules and a PPO agent, in addition to the optimal solver comparison implicit in the optimality-gap metric.
A. Benchmarking
- Optimality gap implicitly compares performance with the optimal solver; additional benchmarks are Priority Dispatching Rules and a PPO agent.Source: A. Benchmarking · p. 5
- The PPO benchmark was trained on uniformly distributed 20 × 20 JSSP instances, following Hoss, Link, and Klarmann [14].Source: A. Benchmarking · p. 5
VII. RESULTS
PORL achieves lower optimality gaps than offline RL and the considered scheduling baselines, with its advantage over offline CQL growing as dataset quality decreases. The discussion attributes the gains to transferred knowledge while noting training instability and limits on the evaluation scope.
VII. RESULTS
- PORL outperforms standard offline CQL across heuristic, noisy-expert, and random dataset configurations, with its advantage widening particularly for noisy-expert and fully random data.Table VII reports makespan optimality gaps for the agents across dataset compositions.Source: §VII · p. 5, Table VII · p. 6
- 7.5% lower optimality gap than classical offline RL and 28.7% lower than a PPO agent trained on uniformly distributed instances; PORL also beats FDD/MWR and online RL baselines.The relative reductions are reported against classical offline RL and the PPO agent, respectively.Source: §VII · p. 5, Figure 2 · p. 6
VIII. DISCUSSION AND LIMITATIONS
- Under substantial distributional shift, results suggest simulator-acquired knowledge transfers to offline adaptation; broader state and action exposure may explain more informative initial values and representations.The authors describe this explanation as possible, not established causation.Source: §VIII · p. 6
- FDD/MWR outperforms online RL agents trained on uniform instances, while both offline RL and PORL outperform the heuristic baseline in the evaluated setting.The discussion characterizes dispatching rules as more robust to changing conditions because they are largely distribution-agnostic.Source: §VIII · p. 6
- Limiting divergence from the online pretrained policy helps maintain PORL's advantage over priority dispatching rules on two of three datasets as offline RL degrades faster with lower dataset quality.Source: §VIII · p. 6
- PORL has greater training instability than conventional offline RL, plausibly because DQN, CQL, and KL objectives can give conflicting signals when pretrained and behavioral policies differ.Loss scheduling and hyperparameter ramping partly mitigated the effect but added tuning complexity.Source: §VIII · p. 6
- Preliminary experiments without KL regularization showed catastrophic forgetting and optimality gaps reaching 25%, but a full ablation study was outside the work's scope.Source: §VIII · p. 6
- Evaluation is limited to synthetic 10 × 10 JSSP instances and one distribution-shift scenario; larger problems, real production data, and simulation-to-deployment mismatch remain open boundaries.The authors also leave KL strength and alternative policy constraints for further study.Source: §VIII · p. 6
IX. CONCLUSION
PORL combines simulation-based online pretraining with offline adaptation to production-specific scheduling data, using a KL constraint to limit deviation from the pretrained policy. Under distributional shift, it outperforms the considered baselines, motivating further evaluation on larger problems and real production data.
IX. CONCLUSION
- The framework first learns a general policy through simulation-based online RL, then adapts it offline to production-specific data while a KL constraint limits deviation from the pretrained policy.Source: §IX · p. 7
- PORL consistently outperforms standalone offline RL, online RL baselines, and priority dispatching rules on JSSP instances under substantial distributional shift.Source: §IX · p. 7
- The results indicate that online pretraining provides prior knowledge for adaptation to specialized scheduling environments and reduces offline RL's dependence on dataset quality and coverage.Source: §IX · p. 7
- The authors identify larger-scale scheduling problems, real-world production datasets, and varied levels of distribution shift as future evaluation targets.Source: §IX · p. 7