Abstract
Scheduling operations under resource constraints is a fundamental NP-hard problem in high-level synthesis (HLS), compiler optimization, and high-performance computing. Traditional exact solvers like Integer Linear Programming (ILP) struggle to scale to industrial-sized problems, while heuristics often sacrifice solution quality. This paper presents a novel, fully differentiable framework that leverages GPU-accelerated gradient descent to solve large-scale scheduling problems. By introducing the Constrained Gumbel Trick, we enable hard inequality constraints to be integrated directly into a differentiable sampling process. Our approach requires no training data and outperforms industry-standard solvers like Gurobi and CPLEX on large, complex designs, achieving significant speedups on graphs with tens of thousands of nodes.
Introduction
Scheduling—the process of determining the optimal time and resource allocation for a set of operations—is a critical bottleneck in modern hardware design. As chip complexity grows, the underlying combinatorial problems scale into the thousands or tens of thousands of tasks. This growth presents a significant challenge for traditional optimization tools.
Currently, researchers face a binary choice: utilize exact solvers (such as ILP or SAT) which provide optimal solutions but fail to converge within reasonable timeframes for large instances, or rely on heuristics which are fast but often suboptimal. Furthermore, traditional solvers are primarily designed for single-threaded CPU execution, failing to exploit the massive parallel processing capabilities of modern GPUs. This paper bridges this gap by formulating scheduling as a differentiable optimization problem that can be solved natively on hardware accelerators.
Methodology
Dataless Auto-Differentiation
Unlike typical deep learning approaches that require large datasets to train a generalizable model, our framework treats the scheduling of a single graph as an independent optimization task. We utilize the deep learning "toolbox"—including the Adam optimizer and Softmax functions—to perform gradient descent directly on the schedule of a specific instance.
System of Difference Constraints (SDC)
To represent dependencies (e.g., "Operation B must follow Operation A"), we utilize a System of Difference Constraints. Each scheduling decision is represented as a probability vector over a discrete set of possible time steps.
The Constrained Gumbel Trick
The core innovation of this work is the Constrained Gumbel Trick. While the standard Gumbel-Softmax allows for differentiable discrete sampling, it does not inherently respect hard constraints. We address this by applying a cumulative sum (cumsum) operation to transform one-hot vectors into "feasibility masks." This mathematical transformation ensures that any sampled schedule strictly satisfies dependency constraints during the forward pass while remaining fully differentiable for backpropagation.
Loss Functions
We define differentiable loss functions to target specific optimization goals:
- Memory Optimization: An entropy-based loss is used to distribute tasks evenly across stages, minimizing peak memory usage.
- Communication Efficiency: A dedicated loss term minimizes data transfer between different scheduling stages, optimizing for interconnect bandwidth.
Experimental Evaluation
Datasets
We evaluated the framework across three distinct categories:
- Synthetic Random Workloads (RW): 12 designs ranging from 800 to 8,000 nodes.
- EPFL Benchmark Suite: Real-world circuit designs (e.g., Adders, Barrel Shifters) containing up to 20,000 nodes.
- Technology-Mapped Designs: Denser versions of the EPFL benchmarks mapped to 7nm library cells to test solver limits under high-density constraints.
Performance and Scalability
The differentiable approach demonstrated significant advantages in large-scale scenarios. On designs such as the "Voter" circuit (~20k nodes), traditional solvers like Gurobi and CPLEX often failed to initiate optimization within a 3,600-second timeout. In contrast, our method reached high-quality solutions in approximately 360 seconds, representing a 10x improvement in optimization initiation and execution.
Furthermore, while traditional solvers experienced 2x to 3x performance degradation when moving from sparse to dense graphs, our differentiable approach maintained nearly identical convergence speeds. This robustness to graph density suggests that tensor-based optimization is more stable for industrial-scale problems than branch-and-bound methods.
Discussion and Limitations
While the framework excels at scale, it is not a universal replacement for ILP solvers. On small or sparse graphs, traditional solvers remain superior as they can find global optima with high precision, whereas gradient-based methods may settle in local optima. Additionally, we observed that the loss function can occasionally "overfit" the specific instance after many epochs, suggesting that future research into adaptive stopping criteria and better regularization is warranted.
Conclusion
By reformulating combinatorial scheduling as a series of differentiable tensor operations, we unlock the power of GPU acceleration for NP-hard optimization. The Constrained Gumbel Trick provides a bridge between hard discrete constraints and continuous optimization, offering a scalable alternative to traditional CPU-bound solvers for the next generation of hardware design and high-performance computing.
Summary updated