Load Balancing with Duration Predictions

Yossi Azar, Niv Buchbinder, Tomer EpshteinarXiv 2025 · DOI

Abstract

This paper investigates the online load balancing problem in a setting where job durations are neither perfectly known nor entirely unknown. By utilizing machine-learning-style predictions with a bounded error factor $\mu$, the authors develop a robust algorithm that achieves competitive ratios significantly better than non-clairvoyant approaches. The work introduces the "Price of Estimation" and provides both upper and lower bounds on performance, effectively bridging the theoretical gap between clairvoyant and non-clairvoyant scheduling.

Introduction

Load balancing is a foundational problem in computer science: given $m$ machines and a stream of incoming jobs, the goal is to assign jobs to machines such that the maximum load (the "makespan" or $L_\infty$ norm) is minimized. In a fully dynamic setting, jobs arrive and depart at arbitrary times, making the scheduling task significantly more complex.

Historically, algorithmic theory has focused on two extremes:

  1. Clairvoyant Algorithms: These assume perfect knowledge of job durations upon arrival. In this regime, algorithms can achieve polylogarithmic competitive ratios (e.g., $O(\log m)$).
  2. Non-Clairvoyant Algorithms: These assume zero knowledge of job durations. Performance in this regime is much worse, with proven lower bounds that are polynomial in the number of machines (e.g., $O(\sqrt{m})$).

In modern systems, we often possess predictions—perhaps from a machine learning model—that are helpful but not perfect. This paper addresses the gap between these two extremes by asking: How can we design algorithms that are robust to prediction errors?

The Prediction Model

The authors define a model where each job $j$ arrives with a predicted duration $\tilde{d}_j$. The actual duration $d_j$ is guaranteed to be within a distortion factor $\mu$ of this prediction. Specifically, the relationship is defined such that the actual duration is at most a factor $\mu$ away from the estimate. This $\mu$ represents the "unreliability" of the prediction.

Algorithm Design

The "Pseudo Load" Approach

A naive strategy would be to treat predictions as absolute truth and apply standard clairvoyant algorithms. However, the authors demonstrate that this approach is inefficient. Instead, they introduce the concept of pseudo loads.

When a job arrives, the algorithm calculates a pseudo load based on the maximum possible duration (the prediction scaled by the error factor). The algorithm then employs a greedy assignment rule designed to minimize a specific potential function of these pseudo loads. This ensures that even if predictions are slightly off, the overall distribution of work remains balanced relative to the worst-case potential.

The Doubling Technique

The initial algorithm assumes that the error factor $\mu$ and the maximum possible duration $\tilde{D}$ are known a priori. To bridge the gap to practical application, the authors utilize a doubling technique. The system starts with small guesses for these parameters. If a job's actual behavior contradicts the current guess (e.g., it runs longer than the assumed maximum), the algorithm "restarts" copies of the scheduling logic with doubled parameter values, ensuring the algorithm remains competitive even without prior knowledge of the error scale.

Key Insights and Theoretical Results

The Price of Estimation (PoE)

A central contribution of the paper is the introduction of the Price of Estimation. This metric quantifies the maximum penalty an objective function suffers due to a distortion $\mu$ in job durations. The authors prove that this price is $\Theta(\mu \log \tilde{D})$, providing a mathematical foundation for understanding how prediction error propagates through scheduling objectives.

Competitive Ratios

The paper establishes new bounds for the competitive ratio of load balancing with predictions:

  • Upper Bound: The proposed algorithm achieves a competitive ratio of $O(\mu(p + \log(\mu \tilde{D})))$ for the $L_p$ norm. For the standard $L_\infty$ objective, this simplifies to $O(\mu \log(m \mu \tilde{D}))$.
  • Lower Bound: The authors prove that any deterministic algorithm must have a competitive ratio of at least $\Omega(\sqrt{\mu} + \log m)$.

These results show that while a dependence on the error factor $\mu$ is mathematically unavoidable, the proposed algorithm successfully fills the massive gap between $O(\log m)$ and $O(\sqrt{m})$.

Monotonicity

A crucial observation in the analysis is that while the actual load on a machine fluctuates as jobs finish, the snapshot of currently known jobs creates a load vector that is monotonically decreasing over time. This property is the "secret sauce" that allows for a rigorous competitive analysis in a dynamic environment.

Conclusion and Future Work

This research demonstrates that even highly inaccurate predictions are significantly more valuable than no predictions at all. However, several open questions remain. There is a quadratic gap between the current lower bound ($\sqrt{\mu}$) and the upper bound ($\mu$), suggesting that more refined algorithms might exist. Additionally, the current approach is "oblivious"—it does not update its strategy as it observes jobs finishing. Future research into adaptive algorithms that learn from real-time execution data could further close the gap between theory and practice in predictive scheduling.

Summary updated

BibTeX
@misc{azar2025load,
  author = {Yossi Azar and Niv Buchbinder and Tomer Epshtein},
  title = {{Load Balancing with Duration Predictions}},
  year = {2025},
  eprint = {2512.12202},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.12202},
}
Figure