TL;DR
Imagine playing a massive, high-stakes game of factory Tetris—either you carefully place one piece at a time (accurate, but agonizingly slow), or you dump them all at once and hope for the best (fast, but messy). SchedDiff breaks this compromise by bringing diffusion models to scheduling: instead of generating images from static, it iteratively denoises random operation rankings into near-optimal schedules in a fixed number of steps. The result is a neural solver that gets faster relative to traditional sequential methods as factories scale up, without sacrificing schedule quality.
What Problem Does This Paper Address?
The Job Shop Scheduling Problem (JSSP) is a classic, brutally hard puzzle: you have $n$ jobs and $m$ machines, where each job requires a strict sequence of operations on specific machines. The goal is to minimize the makespan—the total time until the very last job finishes—without letting two jobs use the same machine simultaneously.
Neural networks trained to solve JSSP have been stuck in a frustrating trade-off:
- Constructive methods build schedules step-by-step (autoregressively). They yield great schedules, but require $N = n \times m$ sequential forward passes. Double the operations, double the wait.
- One-shot methods predict the priority of every operation simultaneously in a single pass. They are blazingly fast, but because they can't look back and fix suboptimal guesses, solution quality suffers. Plus, sampling from them just jitters a single deterministic guess rather than discovering genuinely different strategies.
How do you get the thoughtful refinement of constructive methods while keeping the scale-invariant speed of one-shot models? And why haven't existing combinatorial diffusion models solved this? Because prior diffusion approaches operate on binary choices (e.g., flipping edges on/off), which for JSSP explodes to $O(m \cdot n^2)$ variables and easily breaks strict precedence rules.
Methods
SchedDiff reframes JSSP as generating a clean ranking of operations, because given any priority list, a deterministic "list scheduler" can always construct a valid, rule-abiding schedule. However, standard diffusion adds Gaussian noise to continuous numbers or flips unordered bits—neither of which respects rankings, where only relative order matters.
SchedDiff introduces three clever adaptations:
- Diffusion on Discrete Ordinal Space: Instead of continuous noise, the forward process perturbs clean ranks ($1, \dots, N$) using a discretized Gaussian kernel. At low noise, rank 4 is likely to swap with rank 3 or 5, preserving ordinal proximity; at high noise, it becomes uniform static.
- Pairwise Ranking Objective & Predict-and-Corrupt: A Graph Attention Network (modulated by noise level via AdaLN-Zero) takes noisy ranks on the problem's disjunctive graph and outputs a single scalar score per operation—keeping the output size-agnostic. Rather than MSE (which punishes harmless shifts in absolute score), it uses a Bradley-Terry pairwise ranking loss that only cares if operation $A$ outranks $B$. During inference, it uses a predict-and-corrupt loop over $T$ fixed steps: predict clean scores, sort into ranks, re-corrupt to the next lower noise level, and repeat.
- Active List Scheduling: Standard list scheduling blindly appends operations to the end of a machine's timeline. SchedDiff upgrades this with gap insertion—scanning earlier idle windows on a machine to squeeze operations in without delaying others, provably guaranteeing a makespan at least as good as (and usually tighter than) standard decoding.
Datasets
- Training: Synthetic JSSP instances ($15\times 15$, $20\times 15$, and $20\times 20$, with 2,000 instances each) with processing times drawn uniformly from $U(1, 99)$, labeled using OR-Tools.
- Evaluation: Standard JSSP benchmarks TA (up to $100\times 20$), DMU (out-of-distribution processing times from $U(1, 200)$), and LA.
- Scalability & Zero-Shot: Synthetic instances up to $800\times 20$ ($40\times$ larger than training), plus Brandimarte and Hurink benchmarks for Flexible JSSP (FJSP, where operations can choose among multiple machines).
Key Insights and Ideas
- Ordinal structure is non-negotiable: Replacing SchedDiff's rank-aware diffusion and pairwise loss with standard Gaussian diffusion + MSE degrades performance by up to 8.3%. MSE treats
[1, 2, 3]and[10, 20, 30]as wildly different targets even though they produce the exact same schedule! - Stochastic trajectories create true diversity: Because each sample starts from pure random noise and takes stochastic refinement steps, SchedDiff explores genuinely different scheduling topologies (achieving a Graph Edit Distance of 1.27 vs. 0.11–0.23 for one-shot baselines among top solutions).
- Gap insertion shines at scale: Active list scheduling helps marginally on small $15\times 15$ puzzles (+0.3%), but cuts the optimality gap by 4.2% on $100\times 20$ instances, where heavy machine contention creates plenty of awkward idle gaps to exploit.
Key Results
- State-of-the-Art Neural Quality: On the TA benchmark, SchedDiff ($K=5$ samples, $T=200$ steps) achieves an average optimality gap of 4.2%, beating leading constructive models like MP-ASIL (7.4%) and one-shot baselines (16.9%).
- Out-of-Distribution Robustness: On DMU, it scores an 8.5% gap compared to 12.9% for the best learning baseline (BOPO).
- Massive Scalability: Because $T$ is fixed regardless of problem size, SchedDiff is 3–7$\times$ faster than top constructive baseline SLIM on large synthetic problems ($200\times 20$ to $500\times 20$), and scales up to $800\times 20$ where constructive models run out of memory.
- Zero-Shot Transfer: Paired with a simple Earliest Completion Time rule for machine assignment, SchedDiff transfers zero-shot to Flexible JSSP, achieving a 5.1% average gap—outperforming specialized FJSP neural solvers DANIEL (5.3%) and RESCHED (5.5%).
Limitations and Future Work
- Decoupled Machine Assignment: SchedDiff only orders operations; for Flexible JSSP, it relies on a hand-crafted heuristic to pick machines. Jointly diffusing priorities and machine assignments is a natural next step toward a universal scheduler.
- Single-Target Supervision: Training relies on computationally expensive OR-Tools labels, pairing each training instance with just one optimal ranking even when multiple distinct optimal schedules exist. Future work could explore self-supervised objectives to eliminate solver bottlenecks and learn the full multi-modal distribution of optimal schedules.
Summary updated