# Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling

작업장 일정 계획을 위한 디스패치 학습의 오프라인 강화학습

Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang · arXiv · 2024년 9월 16일

- **연구 문제** 온라인 강화학습은 시뮬레이터 상호작용이 많이 필요해 JSSP 디스패칭 정책 학습에 한계가 있습니다. 이 논문은 CP 해법 데이터로 학습하는 오프라인 강화학습의 가능성을 검토합니다.
- **연구 방법** Offline-LD는 마스크 가능한 mQRDQN과 d-mSAC를 CQL로 학습하며, CP 기반 전문가 데이터와 잡음 데이터, 보상 정규화를 함께 사용합니다.
- **주요 결과** 100개 CP 해법으로 학습한 Offline-LD는 생성 인스턴스 5개 크기 중 4개에서 BC와 L2D를 유의하게 능가하며, 벤치마크 5개 크기 중 3개에서 우세합니다.

## 온라인 강화학습의 한계와 문제 설정

JSSP는 여러 작업의 연산을 기계에 배정해 makespan을 최소화하는 NP-hard 조합최적화 문제입니다. 학습 기반 디스패칭 방법인 L2D는 온라인 강화학습으로 정책을 학습하며, 이는 시뮬레이터와의 반복적 상호작용을 필요로 합니다. 원문은 이 방식이 많은 상호작용을 요구하고, 실제 제조 시스템의 복잡성을 시뮬레이터가 충분히 담기 어렵다는 점을 한계로 듭니다.

이 논문은 환경과의 상호작용 없이 기존 CP 해법 데이터로 학습하는 오프라인 강화학습을 JSSP에 적용하는 문제를 다룹니다. 오프라인 학습에서는 데이터에 없던 행동이 과대추정될 수 있는 분포 이동 문제가 핵심 난점이며, 이를 완화하기 위해 보수적 Q 학습(CQL)을 사용합니다.

## Offline-LD의 MDP와 CQL 기반 학습

Offline-LD는 disjunctive graph를 상태로 두고, 각 노드가 연산의 스케줄 여부와 완료 시간의 하한을 특징으로 갖는 MDP를 사용합니다. 행동은 현재 스케줄 가능한 연산이며, 한 작업의 모든 연산이 배정되면 해당 행동은 마스크됩니다. 보상은 인접한 부분 해의 추정 완료 시간 최댓값의 차이로 정의됩니다.

학습에서는 mQRDQN과 d-mSAC를 사용합니다. CQL의 정규화 항에서는 log-sum-exp를 가능한 행동 a ∈ A(s)에 대해서만 계산하며, 마스크된 행동의 Q값은 음의 무한대로 두어 정규화에 영향을 주지 않도록 합니다. d-mSAC의 엔트로피 목표는 유효 행동 수의 로그에 맞춰 재정식화되어 마스크 가능한 공간에서 사용됩니다.

## CP 기반 전문가 데이터와 잡음 데이터

데이터셋은 100개의 학습 인스턴스에서 시작하며, CP(60분 제한)로 찾은 최적 또는 근최적 해로 전문가 데이터셋 Dexpert를 만듭니다. 잡음 데이터셋 Dnoisy는 각 에피소드가 확률 pnoisy로 잡음을 포함하도록 선택되고, 선택된 에피소드에서는 ε-greedy 방식으로 행동에 잡음을 넣습니다. 유효하지 않은 행동이 생성되면 가능한 행동 중에서 무작위로 고릅니다. 실험 설정에서는 pnoisy=0.5, pϵ=0.1이 사용되었습니다.

![Figure 1: For the datasets, we start by generating 100 instances. We use constraint programming to find valid solutions for these instances. From these 100 sol…](https://refivu.com/papers/cbf013e6-c77a-4b03-b0aa-f08b69ee047f/figures/figure-cce9523fee93ce1c8e0c3d32ac2958fb.png?thumb=512)

**Fig. 1** For the datasets, we start by generating 100 instances. We use constraint programming to find valid solutions for these instances. From these 100 solutions, we create an expert dataset Dexpert and a noisy dataset Dnoisy. The expert dataset Dexpert use the original solutions found through the constraint programming, whereas the noisy-expert dataset Dnoisy modifies 50% of the solution, by changing the scheduled operations.

[원문](https://arxiv.org/abs/2409.10589v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang · Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

보상 정규화는 학습 전 한 번 수행되는 전처리입니다. 데이터셋의 각 보상을 전문가 데이터의 CP 기준 makespan Cmax,i로 나누어 인스턴스 간 보상 크기를 맞춥니다.

## 생성 인스턴스와 벤치마크에서의 비교

생성 인스턴스 실험에서 Offline-LD는 BC와 L2D를 기준선으로 비교되었으며, 성능은 CP 기준 대비 makespan 차이인 performance gap으로 측정되었습니다. 원문에 따르면 5개 크기 중 4개(\*)에서 Offline-LD가 BC와 L2D를 유의하게 능가하고, 나머지 크기에서는 비슷한 성능을 보입니다. 오프라인 방법은 50,000 학습 스텝, L2D는 10,000 에피소드로 학습되었으며, 이 예산 차이는 비교 해석에 함께 읽어야 합니다.

벤치마크 실험(Taillard, Demirkol)에서는 최선 알려진 상한을 기준으로 gap을 계산합니다. 이 결과에서 Offline-LD는 5개 크기 중 3개에서 우세하지만, 30×20 인스턴스와 처리 시간 범위가 넓은 Demirkol 세트에서는 성능이 낮아집니다.

## 잡음 데이터셋과 일반화의 해석

Dnoisy로 학습한 결과는 Dexpert로 학습한 결과와 비교되었으며, 원문은 잡음 데이터셋이 대체로 더 나은 안정적 정책을 준다고 보고합니다. 저자들은 JSSP에 임계 상태가 많아 특정 행동이 최적 makespan에 결정적이므로, 반사실적 정보가 이를 학습하는 데 도움이 된다고 해석합니다.

일반화 실험에서 mQRDQN은 6×6 또는 10×10으로 학습해도 50×20과 100×20 인스턴스에서 비교적 잘 일반화되었습니다. 반면 d-mSAC는 작은 크기로 학습했을 때 일반화가 약했습니다. 이 결과는 학습 크기와 평가 크기가 다른 특정 설정에 대한 관찰입니다.

![Figure 2: The figure shows the generalization of each trained approach by showing the average gap of the whole benchmark. The x-axis represents the trained ins…](https://refivu.com/papers/cbf013e6-c77a-4b03-b0aa-f08b69ee047f/figures/figure-a42a8911f173ebc0a57bdb072a6e518a.png?thumb=512)

**Fig. 2** The figure shows the generalization of each trained approach by showing the average gap of the whole benchmark. The x-axis represents the trained instance size. The bars are the average gap. Our results indicate that mQRDQN is able to generalize well to larger instance sizes, whereas d-mSAC does not, if trained on smaller instance sizes.

[원문](https://arxiv.org/abs/2409.10589v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang · Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 보상 정규화 절제와 데이터 수 민감도

보상 절제 실험은 6×6 전문가 데이터셋과 mQRDQN으로 수행되었습니다. 비교한 설정은 정규화 없는 표준 설정, 보상 0.01 스케일, αCQL=5, 두 방식의 결합입니다. 원문은 보상을 정규화한 설정이 가장 좋은 결과와 학습 안정성을 보이며, 정규화와 스케일링이 모두 없는 설정이 가장 나쁘다고 보고합니다. 이 실험은 250,000 학습 스텝으로 수행되었습니다.

![Figure 4: This figure shows the results of different training runs of mQRDQN for 6 × 6 with the expert dataset Dexpert, whereby the line is the mean and the sh…](https://refivu.com/papers/cbf013e6-c77a-4b03-b0aa-f08b69ee047f/figures/figure-290f29cd3bce00cebd1266b0ad493093.png?thumb=512)

**Fig. 4** This figure shows the results of different training runs of mQRDQN for 6 × 6 with the expert dataset Dexpert, whereby the line is the mean and the shaded area is the standard deviation. The results show that normalizing the reward stabilizes training and improves performance. We clearly see that normalizing the reward results in better performance. If we neither scale or normalize the reward, the learned policy is highly unstable.

[원문](https://arxiv.org/abs/2409.10589v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang · Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling · 원문 그림 인용 · 원본 PDF 19쪽에서 그림 영역을 추출했습니다.

데이터 수 실험은 mQRDQN을 6×6 전문가 데이터셋으로 학습해 6×6 평가 세트에서 평가했습니다. 10개와 500개 사이의 차이는 Wilcoxon 검정에서 통계적으로 유의하지 않았습니다. 이 결과는 해당 조건에 한정됩니다.

![Figure 3: The results of different training dataset sizes with Offline-LD. The x-axis shows the number of instances in the training dataset used, and the y-axi…](https://refivu.com/papers/cbf013e6-c77a-4b03-b0aa-f08b69ee047f/figures/figure-0fc263783f36ddcd5c26512e013af11d.png?thumb=512)

**Fig. 3** The results of different training dataset sizes with Offline-LD. The x-axis shows the number of instances in the training dataset used, and the y-axis shows the results on the 6× 6 evaluation set.

[원문](https://arxiv.org/abs/2409.10589v4) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang · Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling · 원문 그림 인용 · 원본 PDF 18쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

저자들은 실험이 CP가 생성한 전문가 데이터에 의존한다는 점을 한계로 밝힙니다. 실제 환경에서는 이러한 데이터를 얻지 못할 수 있으므로, 원문은 단순 PDR 등으로 생성한 데이터를 사용하는 후속 연구를 제안합니다.

또한 데이터 수 실험은 특정 6×6 조건에 한정되며, 벤치마크에서의 우세는 모든 크기와 처리 시간 범위로 확대되지 않습니다. BC의 낮은 성능은 저자들이 분포 이동과 제한된 데이터로 해석한 결과이므로, 그 원인을 확정된 사실로 보기는 어렵습니다.

## 논문 정보

- **저자**: Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2024년 9월 16일
- **등록일**: 2026년 11월 6일
- **수정일**: 2025년 7월 3일
- **버전**: v4
- **arXiv**: 2409.10589
- **분류**: cs.LG · cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2409.10589v4) · [원문 PDF ↗](https://arxiv.org/pdf/2409.10589v4)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

The Job Shop Scheduling Problem (JSSP) is a complex combinatorial optimization problem. While online Reinforcement Learning (RL) has shown promise by quickly finding acceptable solutions for JSSP, it faces key limitations: it requires extensive training interactions from scratch leading to sample inefficiency, cannot leverage existing high-quality solutions from traditional methods like Constraint Programming (CP), and require simulated environments to train in, which are impracticable to build for complex scheduling environments. We introduce Offline Learned Dispatching (Offline-LD), an offline reinforcement learning approach for JSSP, which addresses these limitations by learning from historical scheduling data. Our approach is motivated by scenarios where historical scheduling data and expert solutions are available or scenarios where online training of RL approaches with simulated environments is impracticable. Offline-LD introduces maskable variants of two Q-learning methods, namely, Maskable Quantile Regression DQN (mQRDQN) and discrete maskable Soft Actor-Critic (d-mSAC), that are able to learn from historical data, through Conservative Q-Learning (CQL). Moreover, we present a novel entropy bonus modification for d-mSAC, for maskable action spaces. Moreover, we introduce a novel reward normalization method for JSSP in an offline RL setting. Our experiments demonstrate that Offline-LD outperforms online RL on both generated and benchmark instances when trained on only 100 solutions generated by CP. Notably, introducing noise to the expert dataset yields comparable or superior results to using the expert dataset, with the same amount of instances, a promising finding for real-world applications, where data is inherently noisy and imperfect.

## 원문 인용

Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang (2024). Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling. arXiv:2409.10589v4. https://arxiv.org/abs/2409.10589v4

**BibTeX**

```
@misc{remmerden2024offline,
  title = {{Offline Reinforcement Learning for Learning to Dispatch for Job Shop Scheduling}},
  author = {Jesse van Remmerden and Zaharah Bukhsh and Yingqian Zhang},
  year = {2024},
  eprint = {2409.10589},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2409.10589v4}
}
```

## 이 논문의 용어

- [Markov Decision Process](https://refivu.com/terms/5d622f56f22a-markov-decision-process)
- [Proximal Policy Optimization](https://refivu.com/terms/59b59e5d0f9d-proximal-policy-optimization)
- [Behavioral Cloning](https://refivu.com/terms/101aca4bbdf9-behavioral-cloning)
- [makespan](https://refivu.com/terms/7da7079dccb9-makespan)
- [entropy regularization](https://refivu.com/terms/6362dd858d51-entropy-regularization)
- [offline reinforcement learning](https://refivu.com/terms/30dbecd6b730-offline-reinforcement-learning)
- [Implicit Q-learning](https://refivu.com/terms/ee56fd234352-implicit-q-learning)
- [distributional shift](https://refivu.com/terms/b5a64ecefb69-distributional-shift)
- [Conservative Q-Learning](https://refivu.com/terms/eb425219fb81-conservative-q-learning)
- [Job Shop Scheduling Problem](https://refivu.com/terms/a6be6a97c203-job-shop-scheduling-problem)
- [Constraint Programming](https://refivu.com/terms/4625f3b62d4d-constraint-programming)
- [Performance Gap](https://refivu.com/terms/fe382dc5a1d9-performance-gap)
- [shortest processing time](https://refivu.com/terms/53e01ec3b312-shortest-processing-time)

## 다른 논문 해설

- [Efficient and practical quantum compiler towards multi-qubit systems with deep reinforcement learning](https://refivu.com/papers/f3b3c8a5-f92c-492e-8767-2b01944c00d3-efficient-and-practical-quantum-compiler-towards-multi-qubit.md)
- [Reinforcement Learning for Safe Autonomous Two Device Navigation of Cerebral Vessels in Mechanical Thrombectomy](https://refivu.com/papers/46d473c4-132b-4492-b1f5-3c80a980ac3c-reinforcement-learning-for-safe-autonomous-two-device.md)
- [Data Assimilation in Chaotic Systems Using Deep Reinforcement Learning](https://refivu.com/papers/ed912d09-179c-4d9f-b9e8-03fb289eb4be-data-assimilation-in-chaotic-systems-using-deep.md)
- [Risk-Sensitive Reinforcement Learning with Exponential Criteria](https://refivu.com/papers/9fd0a8d2-af59-4086-8c24-415c54dc21f6-risk-sensitive-reinforcement-learning-with-exponential.md)
- [Training Value-Aligned Reinforcement Learning Agents Using a Normative Prior](https://refivu.com/papers/b77603ca-279d-40d9-a2b6-7ec40a3e3f14-training-value-aligned-reinforcement-learning-agents-using-a.md)
- [Reinforcement learning pulses for transmon qubit entangling gates](https://refivu.com/papers/02967625-3a66-40bd-a3cf-3852c84f8a03-reinforcement-learning-pulses-for-transmon-qubit-entangling.md)
- [Are LSTMs Good Few-Shot Learners?](https://refivu.com/papers/0a87600e-7980-43d0-8cc2-239df6e89170-are-lstms-good-few-shot-learners.md)
- [Skill-Critic: Refining Learned Skills for Hierarchical Reinforcement Learning](https://refivu.com/papers/8823187a-3588-4121-865a-a6227cc24802-skill-critic-refining-learned-skills-for-hierarchical.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/cbf013e6-c77a-4b03-b0aa-f08b69ee047f-offline-reinforcement-learning-for-learning-to-dispatch-for)
