In operations research, the $c\mu$ rule (Smith’s rule) is a fundamental principle for minimizing the total cost of jobs waiting in a queue. It dictates that priority should be given to jobs with the highest product of their "holding cost" ($c$) and "service rate" ($\mu$). However, this rule assumes that the holding costs are known constants. In many real-world scenarios—such as content moderation or cloud computing—these costs are stochastic and their means are unknown to the scheduler.
In their paper, "Scheduling jobs with stochastic holding costs," Dabeen Lee and Milan Vojnovic address this uncertainty by proposing a learning-based scheduling policy that balances exploration and exploitation.
The Challenge of Unknown Costs
When holding costs are random, a scheduler faces a classic trade-off. It must spend time processing different job classes to estimate their mean costs (exploration), while simultaneously trying to finish the most expensive jobs quickly to minimize cumulative costs (exploitation).
The difficulty is compounded in "unbalanced" scenarios, where one job class significantly outnumbers others. A small estimation error for a large class can lead to massive cumulative regret—the difference between the cost incurred by the algorithm and the cost of an optimal policy that knows the means in advance.
The Preemptive-then-Nonpreemptive (PN) $c\mu$ Rule
The authors introduce a hybrid algorithm called the Preemptive-then-Nonpreemptive (PN) $c\mu$ Rule. This approach operates in two distinct phases:
- Learning Phase (Preemptive): For an initial period, the server processes jobs preemptively. By switching between jobs, the scheduler gathers samples of the random holding costs for all classes without committing to a specific job's completion.
- Execution Phase (Nonpreemptive): Using the empirical mean costs calculated during the learning phase, the scheduler switches to a nonpreemptive discipline. It prioritizes jobs based on the estimated $c\mu$ index and processes each selected job to completion.
This hybrid structure avoids the pitfalls of purely preemptive strategies (which can suffer from excessive switching) and purely nonpreemptive strategies (which risk early commitment to low-priority tasks).
Refining for Unbalanced Scenarios
To handle cases where job classes are highly unbalanced, the authors developed a Refined PN $c\mu$ Rule. This version incorporates Upper and Lower Confidence Bounds (UCB/LCB). It effectively gives "the benefit of the doubt" to larger job classes, ensuring they aren't unfairly delayed unless there is strong statistical evidence that another class has a significantly higher priority.
Key Results and Performance
The research provides both theoretical guarantees and numerical validation:
- Regret Bounds: The PN $c\mu$ rule achieves a regret bound of $O(N S^{2/3})$, where $N$ is the number of jobs and $S$ is the service time scaling factor. This is shown to be nearly optimal.
- Robustness: Simulations demonstrate that the PN rule remains effective across various "cost gaps" (the difference in mean costs between classes). While simpler rules fail at either very small or very large gaps, the PN rule maintains high performance.
- Scalability: The algorithm's regret scales sublinearly with service time, meaning it becomes relatively more efficient as the problem size increases.
Future Directions
While the PN $c\mu$ rule provides a robust framework, several avenues for future research remain. These include scenarios where service rates ($\mu$) are also unknown, systems with delayed feedback on costs, and environments with heavy-tailed service time distributions.
Summary updated