Non-clairvoyant Scheduling with Partial Predictions

Ziyad Benomar, Vianney Perchet

TL;DR

Scheduling jobs without knowing their runtimes is a classic "blind" optimization problem. This paper explores what happens when a scheduler has predictions for only a small subset ($B$ out of $n$) of those jobs. The authors provide near-optimal algorithms for this scenario and reveal a surprising new trade-off: to make an algorithm's performance degrade gracefully with prediction error ("smoothness"), you must sacrifice some peak performance when predictions are perfect ("consistency").

Introduction: The Partial Prediction Problem

In operating systems and cloud computing, a scheduler often has to decide which job to run next without knowing how long each job will take. This is known as non-clairvoyant scheduling, where the typical goal is to minimize the average completion time.

The classic "safe" strategy is Round-Robin, which is 2-competitive (meaning it takes at most twice as long as an omniscient scheduler). Recently, "learning-augmented" algorithms have used machine learning to predict job sizes, allowing schedulers to beat that factor of 2. However, most existing research assumes the scheduler has predictions for every job.

In reality, predictions are expensive to compute, or data might be scarce. This paper asks a highly practical question: What if we only have predictions for $B$ jobs out of $n$? How much does partial information help, and how do we handle the fact that these few predictions might be highly inaccurate?

Algorithmic Frameworks

The authors introduce two primary algorithmic frameworks to tackle partial predictions:

  1. Catch-up and Resume Round-Robin (CRRR): This algorithm only requires the relative order of the $B$ predicted jobs. It uses a synchronization phase to ensure that predicted "short" jobs don't get delayed by "long" unknown jobs.
  2. Switch Algorithm: This is a more sophisticated approach that uses the actual predicted values. It alternates between running unknown jobs via Round-Robin and finishing predicted jobs.

To handle imperfect predictions, the authors modify the Switch algorithm using Randomized Breakpoints. Instead of trusting a prediction $y$ blindly, the algorithm picks a "switch point" from a probability distribution (a shifted exponential) centered around the prediction. This prevents a tiny error in a prediction from causing a massive jump in the completion time. Finally, they combine this with a standard Round-Robin at a fixed rate to ensure robustness—guaranteeing the algorithm never performs significantly worse than the "blind" baseline, even if the predictions are completely wrong.

Theoretical Bounds and Key Results

The authors establish strong theoretical foundations for the partial prediction setting.

  • Theoretical Bounds: They prove a new lower bound for any algorithm with $B$ predictions. For large $n$, the competitive ratio is at least $2 - w - (3 - 2\sqrt{2})w(1-w)$, where $w = B/n$.
  • Algorithm Performance: The Switch algorithm achieves a competitive ratio of $2 - B/n$ with perfect predictions, which is nearly optimal and closely tracks the theoretical lower bounds.
Competitive ratio vs. fraction of known job sizes ($B/n$).
  • Order is Power: Surprisingly, for large numbers of jobs, simply knowing the order of the $B$ jobs is almost as beneficial as knowing their exact sizes. Both lead to a competitive ratio of roughly $2 - B/n$.

The Consistency-Smoothness Tradeoff

This paper's most novel theoretical contribution is identifying a new tradeoff axis. In standard learning-augmented algorithms, you trade off performance with perfect advice (consistency) against performance with terrible advice (robustness). Here, the authors find a third axis: Smoothness.

To ensure the algorithm doesn't "panic" and perform wildly differently when a prediction is off by 1% versus 2%, you have to accept slightly worse performance when the prediction is perfectly accurate.

Empirical competitive ratio as prediction error ($\tau$) increases.

Simulations show that the randomized Switch algorithm successfully smooths out the performance curve. While a "greedy" use of predictions shows a sharp jump in error as soon as noise is introduced, the randomized version degrades linearly and gracefully. Interestingly, this specific consistency-smoothness tradeoff only appears in the "partial prediction" regime. When $B=0$ (no info) or $B=n$ (full info), the tradeoff effectively disappears, which explains why previous researchers hadn't highlighted it.

Experimental Validation

The paper relies on synthetic benchmarks commonly used in scheduling theory to evaluate performance:

  • Exponential Distributions: Used to establish baseline lower bounds.
  • Pareto Distributions: These "heavy-tailed" distributions (where a few jobs are much larger than the rest) model realistic computing tasks, like web requests.
  • Noisy Synthetic Data: Predictions are generated by adding Gaussian or uniform noise to the true job sizes to test the algorithm's smoothness and consistency under stress.

Limitations and Future Work

  • Error Metrics: The authors use the $\ell_1$ norm (absolute error) to measure prediction quality. However, they note that for algorithms like CRRR that rely on ordering, an error metric based on "inversions" (how many jobs are out of order) might be more appropriate.
  • The "Smoothness Gap": There is still a small gap between the lower bound and the performance of the smooth version of the Switch algorithm. The authors pose an open question: Is it possible to design an algorithm that is both perfectly smooth and achieves the absolute $2 - B/n$ consistency limit?
  • Action Predictions: The paper focuses on predicting job sizes. A different approach would be predicting the actions of an optimal scheduler (e.g., "run job A now"). Adapting these results to "action predictions" remains an exciting task for future research.

Summary updated

BibTeX
@inproceedings{benomar2024non,
  author = {Ziyad Benomar and Vianney Perchet},
  title = {{Non-clairvoyant Scheduling with Partial Predictions}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=jJLcXGB2uA},
}
Figure