Learning-Augmented Online Scheduling with Parsimonious Preemption

Mugen Blue, Sungjin Im, Alexander Lindermayr

TL;DR

When scheduling computing jobs of unknown durations, algorithms usually prevent long tasks from hogging resources by constantly pausing and switching between them—a process that causes massive real-world system overhead. This paper introduces new scheduling algorithms that use noisy machine-learned predictions of job sizes to finish tasks quickly while pausing them as rarely as possible. Even on complex, heterogeneous server clusters, their approach keeps completion times near-optimal while ensuring context switches only grow logarithmically with prediction errors.

What Problem Does This Paper Address?

Imagine a data center juggling thousands of incoming tasks. To minimize total wait time (latency), the golden rule is simple: run the shortest jobs first. The catch? In non-clairvoyant scheduling, you don’t know how long a job takes until it finishes.

Classically, algorithms dodge worst-case bottlenecks—like a massive job blocking fifty tiny ones—using strategies like Round-Robin, slicing time into tiny increments and rapidly cycling through active jobs. Recently, "learning-augmented" algorithms have improved upon this by using ML predictions of job sizes to guide scheduling. However, existing theoretical models still rely on frequent, "blind" preemptions (pausing a job and migrating it). In actual silicon, preemption isn't free; it triggers context-switching delays and cache invalidations. Systems engineers use ad-hoc heuristics to curb preemption, while theorists largely ignore the cost. This paper bridges that gap, providing the first rigorous mathematical framework to simultaneously optimize job completion time and minimize preemptions using imperfect predictions.

Methods

Instead of memoryless, high-churn Round-Robin schedules, the authors build upon classical techniques that group jobs by elapsed work, upgrading them with predictions:

  • Predicted Multi-Level Feedback (PMLF): Designed for single machines. Standard MLF puts all new jobs in queue 0, promoting them to lower-priority queues if they exceed exponentially growing runtime thresholds. PMLF uses a job's predicted size to skip the early queues entirely, dropping it straight into the queue matching its expected duration.
  • Simulated Non-preemptive Adaptive Prediction (SNAP): Built for unrelated parallel machines, where different servers run specific jobs at vastly different speeds (e.g., GPUs vs. CPUs). Standard queueing fails here. Instead, SNAP breaks time into disjoint epochs:
  • It solves a fast convex program called Proportional Fairness (PF) to find ideal, fractional processing rates for active jobs.
  • It calculates an epoch duration just long enough for a fixed fraction ($\beta$) of jobs to hit their next size "checkpoint" (powers of $1+\delta$ starting from their predicted size).
  • Crucially, instead of running the messy, high-preemption fractional schedule, it uses an offline rounding technique to convert the epoch's plan into a clean, non-preemptive schedule, executing at most one preemption per job per epoch.
  • $\beta$-robust Polytope Scheduling (PSP): For malleable jobs (tasks that can run across multiple machines simultaneously with diminishing returns), standard mathematical shortcuts break down. The authors invent a new theoretical game where an adversary nullifies $\beta$-fraction of job rates at any moment, proving PF remains robust and adapting SNAP's epoch trick to work here too.

Datasets

Rather than training ML models on historical traces, the authors evaluate their algorithms on synthetic scheduling benchmarks designed to mimic heterogeneous clusters with varying prediction noise:

  • Setup: $m = 10$ machines and $n = 100$ jobs.
  • Heterogeneity: 80% are "regular" short jobs ($p_j \sim \mathcal{U}[1, 10]$) able to run anywhere; 20% are "special" heavy jobs ($p_j \sim \mathcal{U}[1, 200]$) restricted to 2 specialized machines.
  • Prediction Noise: Controlled via an error parameter $R \ge 1$ (tested across exponentially increasing scales to simulate real-world database join misestimations of $1000\times$ or more), generating underestimates $\hat{p}_j = \lceil p_j / \xi_j \rceil$ with $\xi_j \sim \mathcal{U}[1, R]$.

Key Insights and Ideas

  • Overestimates and underestimates are fundamentally asymmetric: Underestimating a job's size just means it hits a few extra checkpoints, costing a logarithmic number of extra preemptions. Overestimating is dangerous: if a tiny job is predicted to be huge, it gets buried at the back of the line, ruining total completion time.
  • Intentional underestimation as a shield: To handle overestimates, the authors scale down all predictions so at most $g$ jobs remain overestimated. They run their standard algorithm until only $O(g)$ jobs remain, then reset all remaining predictions to zero—preserving latency guarantees with negligible extra preemptions.
  • Taming fractional schedules via simulation: Algorithms like Proportional Fairness are mathematically elegant for heterogeneous clusters, but practically unusable because they constantly slice time and migrate jobs. Simulating PF in discrete epochs and rounding the chunks into non-preemptive blocks gives you PF's brains without the context-switching headaches.

Key Results

Performance is measured via the competitive ratio (how close total completion time is to an all-knowing offline optimal schedule; lower is better) and total preemptions, benchmarked against $D = \sum_j (\log_2(p_j/\hat{p}_j) + 1)$:

  • Single & Identical Machines: PMLF achieves a $(2 + \varepsilon)$-competitive ratio (nearly matching the theoretical best-possible bound of 2 for unknown job sizes) with $O(\frac{1}{\varepsilon} D)$ total preemptions—meaning $O(1)$ preemptions per job when predictions are accurate.
  • Unrelated Machines: SNAP achieves a $14.48(1 + \varepsilon)$-competitive ratio while capping preemptions at $O(\frac{1}{\varepsilon^3} D)$.
  • Malleable Jobs: Their generalized framework achieves a $27\frac{e}{e-1}(1 + \varepsilon)$-competitive ratio with $O(\frac{1}{\varepsilon^3} D)$ preemptions.
  • Experimental Validation: A naive "Blind" non-preemptive strategy performs great when error $R$ is tiny, but its latency degrades linearly as errors grow. Conversely, SNAP keeps its competitive ratio flat (~1.3–1.4) across massive error spikes while requiring noticeably fewer preemptions than a standard "Doubling" heuristic. Furthermore, an experimental Hybrid SNAP variant successfully captures the best of both worlds—matching Blind when predictions are sharp and SNAP when predictions are wildly off.

Limitations and Future Work

  • Simultaneous arrivals: The core mathematical proofs assume all jobs arrive at time $t = 0$ to keep the analysis clean (though the authors sketch out how to handle arbitrary arrival times in the appendix).
  • Knowing the overestimate bound: Their trick for handling overestimated jobs relies on knowing a global upper bound $g$ on how many jobs were overpredicted—though they note estimating a single aggregate number is much easier than predicting individual job sizes.
  • Formalizing Hybrid SNAP: While combining a zero-preemption "Blind" phase with SNAP worked brilliantly in empirical tests, turning this hybrid approach into a rigorous theoretical guarantee remains an open avenue for future work.

Summary updated

Abstract

Learning-augmented algorithms have emerged as a powerful paradigm to surpass traditional worst-case lower bounds by integrating potentially noisy predictions. While this framework has seen success in online scheduling, existing work primarily optimizes job latency while relying on frequent, "blind" preemptions. This ignores the fundamental trade-off between algorithmic performance and preemption complexity. We provide the first systematic study of learning-augmented scheduling that curbs preemption while optimizing latency. We establish that the gap between theoretical latency bounds and preemption overhead can be bridged with solid analytical foundations. Our results include $O(1)$-competitive algorithms for single and unrelated parallel machines with only $O(1)$ preemptions per job under accurate predictions, with overhead scaling logarithmically with the prediction error. By providing the first bounded-preemption guarantees for unrelated and malleable machines, we extend the theoretical reach of the learning-augmented framework to more constrained and realistic settings. Finally, our algorithms are validated through experiments.
BibTeX
@inproceedings{blue2026learning,
  author = {Mugen Blue and Sungjin Im and Alexander Lindermayr},
  title = {{Learning-Augmented Online Scheduling with Parsimonious Preemption}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=4DXp81vtxV},
}
Figure