Abstract
In online non-clairvoyant scheduling, job sizes are unknown until completion, presenting a significant challenge for minimizing makespan on uniformly related machines. Historically, deterministic algorithms for this problem have been limited by a competitive ratio of $O(\log m)$. This paper explores the integration of machine learning (ML) predictions to overcome these theoretical barriers. We introduce a framework that utilizes potentially noisy predictions to achieve a competitive ratio of $O(\min\{\log \eta, \log m\})$, where $\eta$ is the prediction error. Our proposed algorithms are both consistent (performing well with accurate predictions) and robust (maintaining classic bounds even with adversarial predictions). Empirical results validate that our approach significantly outperforms traditional baselines in practice.
Introduction
Scheduling tasks efficiently is a cornerstone of cloud computing and resource management. In many real-world scenarios, the scheduler operates in a "non-clairvoyant" mode, where the processing time of a job is unknown upon arrival. When machines have varying speeds—known as uniformly related machines—the complexity increases. For decades, the best achievable competitive ratio for minimizing makespan in this setting was $O(\log m)$, where $m$ is the number of machines.
With the rise of machine learning, it is now possible to predict job characteristics based on historical data. This paper, originally presented at ICAPS 2022, investigates how such predictions can be leveraged to improve online scheduling performance while ensuring the system remains resilient to prediction errors.
Methodology
The authors propose a framework that balances the optimism of ML predictions with the caution required for online decision-making.
Prediction Error and Robustness
A key contribution is the definition of an algorithm-independent error measure, $\eta$, defined as the maximum ratio between the predicted size and the actual size (or vice versa). An $\eta = 1$ indicates perfect prediction. The goal is to design algorithms that are:
- Consistent: Achieving near-optimal performance when $\eta$ is small.
- Robust: Maintaining the classic $O(\log m)$ performance even when $\eta$ is large or predictions are "garbage."
Algorithmic Framework
The researchers developed two primary algorithms based on an improved 2-relaxed decision procedure:
- Algorithm with Known Error (
knowError): Uses a doubling strategy for both job size estimates and the target makespan. If a job fails to complete within its predicted time (adjusted by the known error), the estimates are updated. - Robust Algorithm (
unknowError): Designed for scenarios where the error $\eta$ is unknown. It starts with an optimistic assumption ($\eta=1$) and iteratively adapts its error estimate based on observed job completions. If the error exceeds a threshold (specifically $\eta^2 \ge m$), it gracefully switches to the classic $O(\log m)$ strategy.
Empirical Evaluation
The algorithms were tested against a classic non-clairvoyant baseline using a massive synthetic dataset comprising 2 million problem instances. The simulation covered a wide range of machine counts ($2^1$ to $2^{10}$) and varying levels of prediction noise.
Key Results
The theoretical analysis proves a competitive ratio of $O(\min\{\log \eta, \log m\})$, showing that performance scales with prediction quality rather than just system size.
As shown in Figure 1, the proposed algorithms (knowError and unknowError) consistently outperform the classic algorithm. While the classic algorithm's performance ratio grows logarithmically with the number of machines, the prediction-augmented algorithms maintain a much lower and more stable ratio, often hovering around 1.5. Notably, even when predictions are completely uninformative ($\eta = \infty$), the robust algorithm matches the performance of the classic approach, demonstrating no downside to incorporating predictions.
Conclusion
By integrating ML predictions into online scheduling, this work successfully bypasses long-standing theoretical lower bounds. The proposed algorithms offer a practical way to utilize modern predictive models while maintaining rigorous performance guarantees. Future research may extend these concepts to "preemptive-resume" models or other scheduling objectives like minimizing total completion time.
Summary updated