TL;DR
This paper introduces a hybrid scheduling algorithm that minimizes cumulative costs when the "holding cost" of a job is stochastic and unknown. By combining an initial preemptive learning phase with a later nonpreemptive commitment phase, the authors achieve near-optimal performance (regret) that matches theoretical lower bounds.
What Problem Does This Paper Address?
In classical scheduling theory, the goal is often to minimize the total cost of jobs waiting in a system. The gold standard is the $c\mu$ rule, which dictates that you should prioritize jobs with the highest product of mean holding cost ($c$) and service rate ($\mu$).
However, the $c\mu$ rule assumes you already know these parameters. In the real world—think emergency room triage, content moderation on social media, or data center energy management—the "cost" of a job waiting is often a random variable whose true mean is unknown. You only learn about a job's priority by observing it over time.
The challenge is a classic exploration-exploitation trade-off:
- Exploration: You need to process different jobs to estimate their costs.
- Exploitation: You need to finish high-priority jobs quickly to stop them from accruing more costs.
If you switch between jobs too much (preemption), you delay finishing anything, and everyone stays in the system longer. If you commit to one job too early (nonpreemption) based on noisy data, you might finish a low-priority job while a high-priority one sits idle.
Methods
The authors propose the Preemptive-then-nonpreemptive empirical $c\mu$ rule. The algorithm operates in two distinct stages:
- The Preemption Phase (Learning): For a fixed duration $T_s$, the server acts like a multi-armed bandit. In every time slot, it calculates the empirical mean cost of all jobs and processes the one that currently looks the most expensive. Because it can switch (preempt) at any time, it gathers data on multiple jobs.
- The Nonpreemptive Phase (Scheduling): Once the learning phase ends, the algorithm switches modes. It picks the job with the highest estimated priority and sticks with it until completion. Once finished, it moves to the next best job.
The key innovation is the timing of the switch. The authors prove that the optimal length of the learning phase ($T_s$) scales with $T^{2/3}$ (where $T$ is a scaling factor for service time). This specific timing is long enough to distinguish between jobs with different costs but short enough to avoid the "preemption trap" where no jobs get finished.
Datasets
The paper relies on synthetic simulations and numerical experiments to validate the theory:
- Simulated Instances: Jobs with costs sampled from uniform distributions and service times following both deterministic and heavy-tailed Pareto distributions.
- Real-world Grounding: To simulate realistic server workloads, the authors used parameters inspired by Google’s 2019 workload data, specifically using a Pareto distribution (shape parameter 0.7) for job service times.
Key Insights and Ideas
- The "Two-Job Trap": The authors show that if two jobs have very similar costs, a purely preemptive strategy is disastrous. The server will keep switching between them, meaning both jobs stay in the system for nearly the full duration, doubling the total cost compared to finishing one then the other.
- Full Feedback Advantage: Unlike standard Multi-Armed Bandit problems where you only see the reward of the "arm" you pull, here the server observes the realized costs of all jobs currently in the system. This "full feedback" allows for faster learning.
- Sublinear Regret: The performance is measured by regret—the difference between the algorithm's cost and the cost of an omniscient scheduler who knows the true means. The authors prove the regret is sublinear in $T$, meaning the algorithm's relative error vanishes as the jobs get longer.
- The $T^{2/3}$ Sweet Spot: The most surprising theoretical finding is that the optimal regret scales at $O(T^{2/3})$. They provide a matching lower bound, proving that no algorithm can do significantly better than this.
Key Results
- Theoretical Bounds: For $N$ jobs, the expected regret is bounded by $\tilde{O}(NT^{2/3} + N^{3/2}T^{1/2})$.
- Optimality: The authors derived a lower bound of $\Omega(T^{2/3})$, confirming their algorithm is asymptotically near-optimal.
- Empirical Performance: In simulations, the hybrid algorithm consistently outperformed both the purely preemptive and purely nonpreemptive versions. It was particularly robust in "hard" cases where the costs of different jobs were very close to each other (small $\epsilon$).
- Stochastic Service Times: The algorithm remains effective even when service times are not fixed but follow a geometric distribution, though the regret bound increases slightly by a factor of $N^{2/3}$.
Limitations and Future Work
- Known Service Rates: The study assumes that while costs are unknown, the mean service times ($\mu$) are known. In many real-world scenarios, both are unknown.
- Constant Parameters: The current analysis assumes job parameters are constants. The authors note that if there are massive gaps between job parameters, the current bounds might be loose.
- Feedback Constraints: The model assumes the scheduler sees the cost of every job in the system every step. Future work could explore "partial feedback" where you only see the cost of the job currently being processed.
- Large $N$ Gaps: There is still a small gap between the upper and lower bounds regarding the number of jobs ($N$), which remains an open question for refinement.
Summary updated