Generalizing Beyond Suboptimality: Offline Reinforcement Learning Learns Effective Scheduling through Random Solutions

Jesse van Remmerden, Zaharah Bukhsh, Yingqian Zhang

TL;DR

The authors introduce Conservative Discrete Quantile Actor-Critic (CDQAC), an offline reinforcement learning (RL) algorithm that learns highly effective job shop scheduling policies from purely suboptimal—and even completely random—static datasets. By exploiting the unique structural properties of scheduling problems, CDQAC shifts the offline RL paradigm from prioritizing high-quality "expert" data to maximizing state-action coverage, outperforming state-of-the-art online RL methods while using up to 99% less data.

What Problem Does This Paper Address?

Job Shop Scheduling (JSP) and Flexible Job Shop Scheduling (FJSP) are classical combinatorial optimization problems vital to manufacturing. Because exact mathematical methods scale poorly, industries rely on heuristics (like Genetic Algorithms) or online Deep RL. However, online RL requires millions of trial-and-error interactions with a simulator, making it sample-inefficient and computationally expensive.

Offline RL offers an alternative: learning entirely from static, pre-collected datasets. Yet, conventional offline RL algorithms suffer from two major flaws when applied to scheduling:

  1. They typically require expensive, near-optimal "expert" demonstrations (e.g., from slow Constraint Programming solvers) to learn well.
  2. They suffer from distributional shift—when the algorithm evaluates actions not present in the training data, it tends to wildly overestimate their value, leading to catastrophic policy failures.

Methods

To solve these challenges, the authors propose CDQAC, which combines distributional RL with conservative regularization tailored for discrete, variable-sized action spaces:

  • Quantile Critic with Dueling Architecture: Instead of estimating a single expected return, the critic models the full distribution of potential makespans using a uniform mixture of Dirac deltas. It uses a novel dueling architecture that separates the inputs for the value stream ($V_\theta$, which looks at the global state) and the advantage stream ($A_\theta$, which looks at specific machine-operation pairs). This stabilizes value estimation across variable action spaces.
  • Conservative Q-Learning (CQL): To prevent the algorithm from overestimating out-of-distribution (OOD) actions, CDQAC applies a conservative penalty to the scalar mean of the quantile distribution, ensuring unobserved actions are not artificially inflated.
  • Delayed Policy Updates: The actor network is updated less frequently than the critic (every $\eta$ steps). This gives the quantile critic time to stabilize and regularize its value estimates before guiding policy improvements.
  • Dual Attention Network (DAN): The state representation uses an attention-based graph neural network architecture to capture complex relationships between operations and machines.
The CDQAC network architecture featuring the Dual Attention Network and the Dueling Quantile Network streams.

Datasets

The algorithm was trained on 500 generated instances across three sizes ($10\times5$, $15\times10$, and $20\times10$). Trajectories were collected using three heuristic types to build four distinct training datasets:

  1. PDR: Deterministic priority dispatching rules.
  2. GA: Data from the final populations of a Genetic Algorithm (high quality, low diversity).
  3. PDR-GA: A mixture of both.
  4. Random: Uniformly sampled feasible actions (low quality, high diversity).

Evaluation Benchmarks: * FJSP: Brandimarte (mk) and Hurink (edata, rdata, vdata) benchmarks. * JSP: Taillard and Demirkol benchmarks.

Key Insights and Ideas

The most surprising "aha!" moment of the paper flips standard offline RL wisdom on its head: Random data is the best training source for scheduling.

In domains like robotics or Atari games, random data performs terribly because rewards are sparse and random actions lead to short, failed trajectories. Scheduling is fundamentally different due to two structural properties:

  • Dense, Aligned Rewards: Every single transition provides a reward based on the partial makespan increase, meaning even a random trajectory is packed with calibrated value signals.
  • Equal-Length Trajectories: Whether a policy is random or expert, it takes the exact same number of steps to complete a schedule. There is no "early failure" bias.

Consequently, performance hinges entirely on state-action coverage rather than data quality. A random policy naturally explores a much wider variety of states and actions. CDQAC uses trajectory stitching to take the high-value segments scattered across these poor random trajectories and combine them into a single, highly optimized policy.

Figure 1: Illustrative example of overestimating OOD actions. In training steps 1 and 2 examples are shown of negative outcomes of pairing operation Oi,j with either machine M1, with a reward of −3, or M2, with a reward of −5, learning that M3 results in the best outcome, since the combination (Oi,j, M3) does not exist in the dataset. The real return Zπ shows that M3 results in the worst outcome. CQL ensures OOD actions are not overestimated, in comparison to actions in the dataset.

Key Results

  • Outperforming the Data Generator: When trained on the Random dataset (which has an average optimality gap of 28.16%), CDQAC achieved a greedy optimality gap of 10.68% and a sampling gap of 5.86%—massively outperforming the very data that trained it.
  • Beating Online RL: CDQAC trained on random data consistently outperformed state-of-the-art online RL methods like DANIEL and FJSP-DRL on standard benchmarks.
  • Extreme Sample Efficiency: CDQAC achieved competitive performance using only 10 to 25 training instances, representing just 1% to 5% of the data required by online RL baselines.
  • Zero-Shot Generalization: Policies trained on small $10\times5$ instances successfully generalized to larger, unseen $30\times10$ and $40\times10$ instances, outperforming online baselines on out-of-distribution sizes.

Limitations and Future Work

While CDQAC generalizes exceptionally well, direct training on very large instances (e.g., $20\times10$) introduces training instability. As the action space grows, only a single machine-operation pair is updated per transition, causing noisy critic estimates to propagate through Bellman targets.

To combat this action-space explosion, the authors suggest that future work should explore factorized action spaces that decouple operation selection from machine selection. They also plan to extend this offline approach to other complex combinatorial optimization problems where building a high-fidelity simulator is impossible, but historical heuristic data is abundant.

Summary updated

BibTeX
@misc{remmerden2025generalizing,
  author = {Jesse van Remmerden and Zaharah Bukhsh and Yingqian Zhang},
  title = {{Generalizing Beyond Suboptimality: Offline Reinforcement Learning Learns Effective Scheduling through Random Solutions}},
  year = {2025},
  eprint = {2509.10303},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.10303},
}
Figure