TL;DR
GauS introduces a novel differentiable framework for large-scale operator scheduling by modeling discrete time steps as continuous Gaussian random variables. This approach naturally captures the ordinal nature of time, slashes the optimization parameter space from $O(D|V|)$ to $O(|V|)$, and achieves Pareto-optimal scheduling quality while running orders of magnitude faster than traditional exact solvers.
What Problem Does This Paper Address?
Operator scheduling is a fundamental, NP-hard challenge spanning software compilation and high-level hardware synthesis (HLS). It involves mapping a directed acyclic graph (DAG) of computational operations onto discrete time steps while minimizing costs (like resource usage or memory footprint) and honoring strict dependency constraints.
As modern deep learning workloads and heterogeneous architectures scale up, scheduling tasks have ballooned from hundreds to tens of thousands of nodes. Traditional exact solvers (like Integer Linear Programming or Satisfiability Modulo Theory) guarantee optimal solutions but suffer from exponential runtime, making them impractical for large-scale graphs. Conversely, heuristic-based methods are fast but often get trapped in suboptimal local choices.
Recent "differentiable" combinatorial optimization methods try to bridge this gap by relaxing discrete choices into continuous spaces. However, existing approaches rely on categorical distributions (e.g., Gumbel-Softmax) that suffer from two major flaws:
- Ordinal Blindness: They treat time steps as independent, nominal labels, ignoring the fact that step 1 is physically closer to step 2 than to step 100.
- Poor Scalability: Their parameter space scales as $O(D|V|)$ (where $D$ is the schedule depth and $|V|$ is the number of nodes), leading to catastrophic out-of-memory (OOM) errors on large workloads.
Methods
The authors propose GauS (Gaussian reparameterization Scheduling), a framework that models the execution step of each operator as an independent continuous Gaussian random variable:
$$X_i \sim \mathcal{N}(\mu_i, \sigma_i^2)$$
Here, the mean ($\mu_i$) represents the expected scheduling step, and the standard deviation ($\sigma_i$) represents the scheduling uncertainty.
Key aspects of the methodology include:
- Temporal Proximity Prior: Shifting $\mu_i$ smoothly transports probability mass between neighboring steps, natively encoding the sequential nature of time into the gradient descent process.
- Massive Parameter Reduction: By optimizing only $\mu$ and $\sigma$ per node, GauS reduces the optimization space to a compact $2|V|$ parameters, completely independent of the schedule depth $D$.
- Differentiable Expectations: Using the Gaussian Cumulative Distribution Function (CDF), the authors derive smooth, differentiable mathematical proxies for complex objectives and constraints, including resource limits, memory footprints, and—for the first time in a differentiable framework—cyclic recurrence constraints in pipelined (modulo) scheduling.
- Optimization & Legalization: GauS uses the Augmented Lagrangian Method (ALM) to dynamically balance constraints and objectives via gradient descent on GPUs. Once optimized, the continuous means are rounded to the nearest integer, and a lightweight greedy heuristic fixes any remaining minor constraint violations.
Datasets
GauS was evaluated on both synthetic and realistic benchmarks:
- EPFL Combinational Benchmark Suite: Real-world hardware synthesis workloads ranging from small circuits to massive designs (e.g.,
divwith 57,375 nodes and a depth of 4,373). - Synthetic Random Workloads (RW): A suite of generated graphs designed to rigorously test scalability up to nearly 10,000 nodes.
- Pipelined Modulo Benchmarks: Because existing pipelined benchmarks were too small for modern requirements, the authors synthesized a new dataset by augmenting the EPFL and RW suites with resource and loop-carried recurrence constraints.
Key Insights and Ideas
- Time is an Ordered Sequence, Not a Set of Labels: Treating time steps as orthogonal categories wastes valuable structural information. GauS's continuous Gaussian relaxation ensures that gradients pull operators toward temporal neighbors rather than across a flat, unordered space.
- Uncertainty as an Exploration Mechanism: The standard deviation ($\sigma$) naturally acts as an exploration knob. Early in the optimization process, $\sigma$ is large, encouraging wide exploration of the schedule space. As the model converges, $\sigma$ shrinks, effectively "hardening" the continuous probabilities into a clean, deterministic discrete schedule.
- GPU-Native Efficiency: Shifting from a categorical matrix to a pair of linear vectors ($\mu$ and $\sigma$) allows the entire scheduling pipeline to be vectorized, maintaining near-100% GPU utilization throughout execution.
Key Results
- Quality vs. Previous Differentiable Methods: On shared feasible instances, GauS achieves a 71.8% geometric mean improvement in solution quality over the categorical baseline (GS-Schedule).
- Memory Scalability: While GS-Schedule frequently crashes due to OOM errors on large graphs, GauS scales linearly, easily handling massive designs like
square,multiplier, anddiv. - Speed vs. Exact Solvers: GauS consistently hits the Pareto-optimal frontier. When commercial exact solvers (Gurobi, CPLEX) manage to converge on medium-sized workloads, GauS achieves equivalent solution quality one to two orders of magnitude faster. On the largest benchmarks, exact solvers fail to find any feasible solution within a 15-minute window, while GauS succeeds in seconds.
Limitations and Future Work
The primary limitation acknowledged by the authors is the assumption of node independence. GauS models each operator as an independent Gaussian variable, which ignores the complex temporal correlations between tightly coupled operations (e.g., a producer and consumer sharing a critical edge).
While a full Gaussian Process could capture these correlations, it would introduce an expensive $O(|V|^2)$ space complexity, ruining the scalability gains. The authors point to future work exploring more efficient ways to model node correlations and advanced optimization strategies to further boost convergence stability.
Summary updated