NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Online Job Assignment

Farbod Ekbatani, Yiding Feng, Ian A. Kash, Rad Niazadeh

In the world of cloud computing, platforms like AWS and Microsoft Azure face a relentless challenge: how to assign a stream of incoming jobs to a fixed set of servers when you don't know what's coming next. Unlike traditional advertising auctions where a "budget" is spent and gone, cloud resources are reusable. A server processes a job for a specific duration and then becomes available again.

A new paper titled "Online Job Assignment" by Ekbatani et al. introduces a sophisticated yet practical algorithm called Forward-Looking BALANCE (FLB) that achieves theoretically optimal performance in these complex, "adversarial" environments.

TL;DR

The authors design Forward-Looking BALANCE (FLB), the first online algorithm for job assignment that is asymptotically optimal when both job rewards and durations are highly varied. By anticipating future server availability rather than just looking at current capacity, FLB achieves a competitive ratio that scales logarithmically with the diversity of jobs, matching theoretical lower bounds.

What Problem Does This Paper Address?

The paper tackles the Online Job Assignment problem. Imagine a set of servers, each with a fixed capacity. Jobs arrive one by one in continuous time. For each job, the platform must immediately decide: which server should take it, or should we reject it?

Two things make this hard:

  1. Heterogeneity: Jobs have different "per-unit" rewards ($R$) and different durations ($D$). A high-reward job might be very short, while a long job might pay very little.
  2. Reusability: Unlike "packing" problems where items stay in a bin forever, jobs here release server capacity once their duration ends.

Existing algorithms like the classic BALANCE (used for ad allocation) fail here because they are "myopic"—they only look at how full a server is right now. In a world with varying durations, a server that is full now but will be empty in one second is much more valuable than a server that is half-full but will stay that way for an hour.

Methods

The core contribution is the Forward-Looking BALANCE (FLB) algorithm. It builds on the intuition that we should "hedge" our bets against future high-value arrivals.

Key Innovations:

  • Projected Utilization: Instead of checking current capacity, FLB calculates "projected available capacity" at multiple future inspection times.
  • Exponential Penalty Function: The algorithm assigns a "score" to each server. This score is the job's reward minus a penalty. The penalty is calculated using an exponential function of the projected utilization across those future inspection times.
  • Primal-Dual Analysis with Configuration LP: To prove how well the algorithm works, the authors use a "Configuration Linear Program." This is a more granular mathematical benchmark than standard LPs because it tracks specific subsets of non-overlapping jobs (configurations) that can fit on a single server unit.
  • Inductive Invariant: The authors prove that FLB stays within server capacity limits (feasibility) not by hard constraints, but by maintaining a mathematical "invariant" throughout its execution.

Datasets

The paper evaluates the algorithm using two types of synthetic environments:

  1. Worst-Case Instances: Specifically designed adversarial scenarios where rewards and durations increase exponentially over time to "trick" myopic algorithms.
  2. Randomized Practical Instances: Simulations where job arrivals follow a Poisson process, and rewards/durations are drawn from truncated normal distributions.

Key Insights and Ideas

  • The "Aha" Moment: The researchers realized that for reusable resources, the "state" of a server isn't just a single number (current load), but a trajectory of future availability.
  • Logarithmic Scaling: The difficulty of the problem is tied to the "heterogeneity parameters" $R$ (max/min reward) and $D$ (max/min duration). The paper shows that the best possible performance loss (competitive ratio) must scale with $\ln(RD)$.
  • Implicit Feasibility: One surprising finding is that you don't need to explicitly tell the algorithm "don't exceed capacity." If the penalty function is tuned correctly based on $R$ and $D$, the algorithm naturally avoids over-committing to low-value jobs.

Key Results

  • Theoretical Optimality: For the general case, FLB achieves a competitive ratio of $\ln(RD) + 3 \ln \ln(R \vee D) + O(1)$. This establishes that the "asymptotic logarithmic constant" for this problem is exactly 1, which is the best possible result.
  • Fixed Rewards: In the special case where all jobs have the same reward but different durations, the ratio improves to $\ln(D) + O(1)$.
  • Numerical Superiority: In simulations, FLB significantly outperforms GREEDY (which takes everything it can) and standard BALANCE (which is too conservative or too myopic). FLB shines particularly in "intermediate congestion" regimes where smart capacity management is most critical.

Limitations and Future Work

  • Large Capacity Assumption: The primary results assume servers have relatively large initial capacities ($c_{min} \to \infty$). While common in cloud contexts, the performance for very small-capacity servers (e.g., $c=1$ or $2$) remains an open theoretical gap.
  • Agnosticism: The current optimal parameters for FLB require knowing the ranges $R$ and $D$ in advance. The authors show that "agnostic" algorithms (that don't know these ranges) perform significantly worse.
  • Future Directions: The authors suggest extending FLB to handle machine-learning-based "advice" (forecasts of future arrivals) or allowing for waitlists and advanced bookings, which are common in real-world cloud marketplaces.

Summary updated

BibTeX
@misc{ekbatani2025online,
  author = {Farbod Ekbatani and Yiding Feng and Ian A. Kash and Rad Niazadeh},
  title = {{Online Job Assignment}},
  year = {2025},
  eprint = {2506.06893},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.06893},
}
Figure