arXiv:2609.30948cs.LGSep 2026

Manuscript Offprint

arXiv:2609.30948

PORL: Pretrained Offline Reinforcement Learning for the Job Shop Scheduling Problem

Mateo Toro Diz, Jonathan Hoss, Noah Klarmann

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

1st1^{st} Mateo Toro Diz

Department of Industrial Engineering

Rosenheim University

of Applied Sciences

Rosenheim, Germany

mateo.toro-diz@th-rosenheim.de

2nd2^{nd} Jonathan Hoss

Department of Industrial Engineering

Rosenheim University

of Applied Sciences

Rosenheim, Germany

jonathan.hoss@th-rosenheim.de

3rd3^{rd} Noah Klarmann

Department of Industrial Engineering

Rosenheim University

of Applied Sciences

Rosenheim, Germany

noah.klarmann@th-rosenheim.de

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.

Index Terms—reinforcement learning, scheduling, pretraining, transfer learning, distribution shift

I. INTRODUCTION

The Job Shop Scheduling Problem (JSSP) is a classical combinatorial optimization problem in the field of operations research and management science. Solving the JSSP involves scheduling jobs and their constituent operations on available machines to minimize the total production time, commonly referred to as the makespan. JSSP is highly relevant to industrial production systems, as it serves as an idealized representation of the scheduling challenges encountered on manufacturing shop floors.

The classical JSSP defines the scheduling problem as a static instance, where the set of jobs does not change over time. When this assumption holds, methods such as Branch & Bound [1]–[3] and Constraint Programming [4] can produce optimal or near-optimal schedules for many benchmark instances, although at a high computational cost due to the NP-hardness of the problem. However, real shop floors tend to operate in dynamic environments, where heuristic approaches are often preferred, ranging from simple Priority Dispatching Rules [5] to more sophisticated meta-heuristics [6].

Despite the success of classical approaches, their reliance on handcrafted dispatching rules or computationally intensive instance-specific optimization limits their ability to adapt to changing production environments and generalize across diverse scheduling scenarios. This has motivated the investigation of learning-based approaches, particularly Reinforcement Learning (RL), which learns scheduling policies directly from experience. More recently, Reinforcement Learning (RL) has been successfully applied to JSSP, achieving competitive scheduling performance while learning policies that can generalize across multiple problem instances [7]–[9]. However, online RL approaches require a simulation environment for training, introducing a simulation-to-reality gap.

Offline RL aims to reduce this dependency on simulation by learning directly from previously collected trajectories, eliminating the need for environment interaction during training. However, its performance remains highly dependent on the quality and coverage of the available dataset [10]–[12].

This paper introduces Pretrained Offline Reinforcement Learning (PORL), a hybrid framework that combines the exploration capabilities of online RL with the adaptability of offline RL. Pretrained Offline Reinforcement Learning (PORL) first trains a scheduling policy through online interaction with a simulated environment, enabling the agent to acquire general scheduling strategies. The resulting policy is subsequently refined using offline RL on production-specific datasets, allowing adaptation to the target shop floor without requiring online exploration. By initializing offline learning from a policy that has already explored a large portion of the scheduling state space, PORL reduces the dependence on dataset coverage and mitigates one of the key limitations of conventional offline RL.

Unlike conventional hybrid RL approaches, which employ offline pretraining followed by online fine-tuning, PORL

Supported by the Chips Joint Undertaking and its members, including top-up funding by National Authorities, within the Cynergy4MIE project (Grant Agreement No. 101140226).

adopts the reverse training order. This design is motivated by the high cost and operational risk of exploratory scheduling decisions in real-world industrial systems, where learning directly through interaction with the deployed production environment is typically infeasible.

Our work offers the following contributions:

• We introduce PORL, a novel approach combining simulation-based online pretraining with log-based offline fine-tuning.

• We propose a policy-constrained offline fine-tuning objective that adapts pretrained Q-networks using offline data while controlling divergence from the pretrained policy.

• We show that PORL achieves lower optimality gaps than both dispatching-rule baselines and standalone offline RL approaches under significant distributional shift.

• We demonstrate that PORL maintains strong performance even when trained on low-return datasets, outperforming standalone offline RL approaches.

References (22)