Differentiable Combinatorial Scheduling at Scale
Mingju Liu, Yingjie Li, Jiaqi Yin, Zhiru Zhang, Cunxi Yu
TL;DR
This work addresses resource-constrained scheduling, an NP-hard problem, by introducing a differentiable combinatorial scheduling framework built on System of Difference Constraints (SDC) and a constrained Gumbel Trick. The method vectorizes the search space, encodes inequality constraints via a differentiable transformation, and optimizes a dual-objective loss that minimizes memory and inter-stage communication using gradient descent on GPUs. Key contributions include a fully differentiable LP-based scheduling formulation without training data and demonstrated performance gains over CPLEX, Gurobi, and CP-SAT on synthetic and EPFL benchmarks. The approach broadens the applicability of differentiable methods to large-scale scheduling problems and enables fast, parallelizable optimization for DAG-based workloads, with open-source code available at the project repository.
Abstract
This paper addresses the complex issue of resource-constrained scheduling, an NP-hard problem that spans critical areas including chip design and high-performance computing. Traditional scheduling methods often stumble over scalability and applicability challenges. We propose a novel approach using a differentiable combinatorial scheduling framework, utilizing Gumbel-Softmax differentiable sampling technique. This new technical allows for a fully differentiable formulation of linear programming (LP) based scheduling, extending its application to a broader range of LP formulations. To encode inequality constraints for scheduling tasks, we introduce \textit{constrained Gumbel Trick}, which adeptly encodes arbitrary inequality constraints. Consequently, our method facilitates an efficient and scalable scheduling via gradient descent without the need for training data. Comparative evaluations on both synthetic and real-world benchmarks highlight our capability to significantly improve the optimization efficiency of scheduling, surpassing state-of-the-art solutions offered by commercial and open-source solvers such as CPLEX, Gurobi, and CP-SAT in the majority of the designs.
