Manuscript Offprint
arXiv:2610.19038Lag: A Mean-Field Optimal Policy for Online Assignment with Reusable Resources
KEERTHANA GURUSHANKAR, Carnegie Mellon University, USA
We study online task assignment with reusable resources. This problem arises in peer reviewer assignment, skill-based call routing, rideshare matching, emergency dispatch, and crowdsourcing: Tasks arrive according to a geometric process and must be immediately assigned to servers that become temporarily busy, yielding rewards that depend on the task-server pair. The goal is to maximize long-run average reward.
We cast the problem as a contextual restless multi-armed bandit (CRMAB). We derive an occupancy-measure LP (OCC-LP) that upper-bounds the reward of any work-conserving policy. From its dual we obtain LAG, a closed-form index policy. We introduce a scaling regime in which the number of copies of each server and the number of arrivals per step grow together. This regime yields the first deterministic fluid limit for a contextual bandit. In it, LAG is asymptotically optimal.
Finally, we evaluate our algorithms on peer review datasets and call center routing. The Lagrangian index achieves 83–99% of the LP upper bound across all load levels. Moreover, the Lagrangian index policy significantly outperforms the natural greedy assignment scheme, improving reward by up to 12.3% on journal data and 36% on structured synthetic instances.
Additional Key Words and Phrases: contextual restless multi-armed bandits, online resource allocation, reusable resources, M/G/R/R loss systems, skill-based routing, mean-field optimality, occupancy-measure linear programming
1 Introduction
Many service systems maintain a pool of heterogeneous reusable resources (agents, servers, responders) that must be assigned to sequentially arriving jobs. In a skill-based call center, an incoming call must be routed to one of R available agent pools; in a data center, an arriving job is dispatched to one of R server types whose architecture may or may not suit its workload; in emergency dispatch, an incident is assigned k units from a heterogeneous fleet. A large body of literature in the queueing and performance evaluation communities has studied these skill-based parallel service systems under binary compatibility: Server r can serve job type v, or it cannot [1, 2, 25]. Routing decisions in these models are constrained by the compatibility graph but are otherwise interchangeable: Any compatible assignment is as good as any other.
Real systems rarely satisfy this equivalence. In a call center, agents differ not just in which call types they can handle but also in how effectively they serve them: A specialist consistently outperforms a generalist on calls both are qualified for. In a data center, a job may run significantly faster on a server whose architecture suits its workload. In peer review, the quality of a referee report depends on how closely a reviewer's expertise matches the paper's topic. In each of these settings, the assignment decision yields a quality score , a measure of how well resource r serves task type v. The system operator's goal is to maximize the total quality of assignments over time.
We study a discrete-time generalization of the skill-based parallel service model in which the binary compatibility graph is replaced by a real-valued score matrix . At each time step, a task of type arrives i.i.d.; it must be immediately assigned to currently available servers, each of which then becomes busy for a random bounded number of steps before returning to the pool. The objective is to maximize long-run average reward per step, where assigning server to a type- task yields reward . Tasks arriving when fewer than servers are free are dropped.
Author's Contact Information: Keerthana Gurushankar, Carnegie Mellon University, Pittsburgh, PA, USA, kgurusha@andrew.cmu.edu.
Keerthana Gurushankar

Fig. 1. Online assignment with reusable servers. At each step , a task of type arrives i.i.d. with and is assigned to available servers. State denotes steps until server is free; means available. Scores are shown for available servers only; hatched circles are busy.
Encompassing these and similar problems, our model is a discrete-time M/G/R/R system specified by the following assumptions.
(A1) Discrete-time arrivals ( ). At each step at most one task arrives: A task of type arrives with probability , independently across steps, and no task arrives with probability . We call the type-v arrival rate.
(A2) Type-dependent service . When a type-v task is assigned, a single service duration is drawn i.i.d. from a distribution that depends only on the task type v. All k assigned servers are busy for those steps and return to the pool together. The support is bounded, for all v.
(A3) All-or-nothing blocking (M/G/R/R). At a type-v arrival, if at least k servers are free the policy assigns a set of exactly k of them, yielding reward ; if fewer than k are free the task is dropped and leaves the system.
(A4) Work-conserving policies. We consider only work-conserving policies: Whenever at least k servers are free at a type-v arrival, the policy assigns k of them. A policy chooses which servers to assign, but may not leave a task unserved when it could be served.
The objective is to maximize long-run average reward per step:
1.2 Why This Problem Is Hard
A natural baseline for our problem is a greedy assignment policy: Upon arrival of a type-v task, assign the k currently available servers with the highest scores for type v. Greedy assignment fails to account for future demand: A server that scores well across many task types will be claimed by nearly every arrival and be unavailable when a task arrives for which it is the best match. More precisely, the value of assigning server r to the current task depends not only on the immediate reward , but on the expected reward forgone by future tasks that arrive while r is occupied.
Despite its limitations, greedy is the dominant policy in practice. Automated reviewer assignment systems rank available reviewers by expertise score and assign the top k [29]. In call centers, the routing component of the Wallace and Whitt [25] staffing policy dispatches each call to the best-available agent for its type.
Optimal control can be formulated as an MDP over the joint availability state of all servers, but the state space is exponential in the number of servers, making exact dynamic programming intractable at any practical scale. We instead formulate our problem using a restless bandit framework and derive an occupancy-measure based LP, OCC-LP. The dual of OCC-LP decomposes the problem into independent per-server subproblems, yielding a closed-form index policy.
1.3 Our Contributions
We develop LAG, an index policy for online assignment of reusable, quality-differentiated resources, and show it is asymptotically optimal in theory and performs well in practice. LAG is asymptotically optimal in a mean-field limit, and on real peer-review traces and synthetic instances it attains 83–99% of a tight LP upper bound, including well outside the regime where our optimality theory applies, and improves over the natural greedy policy by up to 12.3% on peer-review datasets. We obtain LAG by viewing the problem through a restless-bandit lens: Each server is an arm and the arriving task type is a context, making the system a contextual restless multi-armed bandit (CRMAB) to which we can adapt restless-bandit index machinery [24, 26, 27].
A tight LP bound and the LAG policy. LP relaxations are a standard tool for upper-bounding the best achievable reward in online matching and restless bandit problems. Our occupancy-measure LP (OCC-LP) does this for our assignment problem. Our OCC-LP is a strictly tighter variant of the KIID LP of Dickerson et al. [10]. The dual of OCC-LP decouples the assignment problem across servers, and each per-server subproblem is solved by a threshold policy. This yields LAG: A scalar index per (task type, server) pair, computed once from the LP solution, after which each arrival is assigned to its highest-index available servers. Greedy ranks servers by score alone. LAG subtracts from each score the value of keeping that server free for future tasks, so it avoids spending a server that later arrivals need more.
A new mean-field scaling regime. Proving optimality for a contextual restless bandit requires a scaling that existing analyses do not provide: The classical n-only scaling of Weber and Weiss [26] keeps one random arrival per step, so the fluid system never settles to a deterministic fixed point. We introduce an -scaling in which n copies of each server and m i.i.d. arrivals grow together; scaling m concentrates the empirical context distribution each step, restoring the deterministic fluid limit needed for a fixed-point analysis. In this regime we prove LAG is asymptotically optimal:
THEOREM 1.1 (INFORMAL; SEE THEOREM 4.1). In the -scaled system, under a mild non-degeneracy condition,
Empirical performance. On real peer-review datasets and structured synthetic instances, LAG attains 83–99% of the OCC-LP upper bound across all load levels, far outside the mean-field regime, and improves over greedy assignment by up to 12.3% on peer-review datasets and up to 36% on synthetic instances. We also validate convergence to the mean-field limit and characterize how the gap between LAG and greedy grows with score heterogeneity.
Keerthana Gurushankar
2 Related Work
Two research communities have studied problems related to ours. The queueing literature on parallel server systems (Section 2.1) asks how to route and staff heterogeneous servers efficiently; the online matching literature (Section 2.2) studies assignment of reusable resources to arriving tasks and evaluates algorithms by competitive ratio. We discuss how each community has approached these problems and where our model and results depart from theirs. We also discuss the restless multi-armed bandit literature (Section 2.3), which we draw on for both the CRMAB formulation of our problem and the fluid-scaling proof techniques behind our main result.
2.1 Parallel Server Systems
The parallel service literature studies systems in which heterogeneous servers must be matched to a stream of arriving tasks subject to compatibility constraints. Call centers, where agents with different skills are assigned to different call types, are the canonical motivating application. We highlight two threads most relevant to our work: Routing policy design and staffing.
Routing. Several papers ask which routing policy optimizes system performance, typically measured by throughput or delay. Adan and Weiss [1] analyze the FCFS-ALIS policy under binary compatibility and derive exact product-form stationary distributions for the joint occupancy state. Armony [3] studies a single customer class routed to server pools of differing speeds and shows that Fastest-Servers-First asymptotically minimizes queue length in the Halfin-Whitt regime. Mandelbaum and Stolyar [17] consider flexible multi-skilled servers with convex delay costs; their service rates vary by both customer type and server. They show that the generalized -rule (which routes each customer to the server maximizing the instantaneous rate of cost decrease) is asymptotically optimal in heavy traffic. Atar [4] proves related results for multi-class systems via a diffusion control approach. In all of these, service heterogeneity enters as a capacity or cost parameter; the optimization objective is throughput or delay, not match quality.
Staffing. Wallace and Whitt [25] ask how many agents of each skill type a call center should employ to meet per-class service targets. Their three-stage algorithm combines Erlang-based total headcount, square-root staffing for primary skills, and fair assignment of secondary skills, and requires that service times not depend on the call type or the agent.
All of the above treat compatible assignments as interchangeable in quality. We replace the binary compatibility graph with a real-valued score matrix , where is the reward for assigning server type to a type- task, and optimize long-run average reward rather than throughput or delay. The OCC-LP is the natural analogue of the throughput LP used throughout this literature; LAG is the index policy derived from its dual.
2.2 Online Assignment with Reusable Resources
Online bipartite matching with reusable resources is a well-studied problem [14]: Agents matched to an arriving task become temporarily unavailable, returning to the pool after a random occupation time, capturing ridesharing, crowdsourcing, organ donation, and server allocation. The dominant performance criterion is competitive ratio, an algorithm’s expected reward guaranteed as a fraction of the expected reward of an offline oracle that knows all future arrivals. Dickerson et al. [10] study the OM-RR-KAD model (Online Matching with Reusable Resources under a Known Adversarial Distribution) and derive an LP-based algorithm (ADAP) achieving competitive ratio for any ; they also establish that no non-adaptive algorithm can achieve better than . Sumita et al. [23] extend this to multiple agents per task and agent rejections. Shanks, Yu and
Jacobson [22] study a variant with rank-1 similarity scores; Delong et al. [9] achieve in the vertex-weighted adversarial case.
Rather than targeting a fractional guarantee relative to an offline oracle, our work directly maximizes expected long-run average reward in the stationary i.i.d. setting: The OCC-LP tightly characterizes the achievable long-run average reward rate, and LAG is asymptotically optimal with respect to this benchmark in the mean-field limit. This approach achieves reward approaching 100% of the OCC-LP bound as the system scales, compared to the ceiling that bounds competitive ratio performance in this literature. Empirically, LAG consistently achieves 83–99% of the OCC-LP bound on application traces, well above what competitive ratio algorithms achieve in practice. Our OCC-LP is related to, but strictly tighter than, the benchmark LP of [10]. The algorithm of [10] achieving the competitive ratio guarantee requires running simulation to precompute its assignment probabilities and is not practical to deploy; we include their ALG-SC-LP heuristic as an experimental baseline in Section 5 and show that LAG consistently outperforms it.
2.3 Restless Bandits and Mean-Field Analysis
A restless multi-armed bandit (RMAB) [27] consists of n arms, each an independent Markov chain. At each step, the decision-maker selects exactly k arms to activate (the per-step budget); each arm receives a reward and transitions according to its active or passive dynamics, and the objective is to maximize long-run average reward subject to the per-step budget constraint. Optimal RMAB control is PSPACE-hard [20], which has motivated a rich literature on tractable index heuristics with theoretical guarantees [19].
Whittle [27] proposed relaxing the per-step budget to a time-average constraint via Lagrangian duality, which decouples the arms into independent single-arm subproblems. When each arm is indexable (meaning the set of states preferring passivity grows monotonically in the Lagrange multiplier), the break-even multiplier defines a scalar Whittle index for each (arm, state) pair, and the resulting policy activates the arms with the highest current indices. Weber and Weiss [26] proved this policy asymptotically optimal as with the activation fraction fixed, under the assumption that the fluid ODE describing the mean-field dynamics has a unique globally stable equilibrium. Their proof establishes that the stochastic occupancy measure concentrates on this equilibrium as , and that the equilibrium coincides with the LP-relaxation optimum. Verloop [24] substantially extended these results to multi-class RMAB problems with heterogeneous arms, dynamic arm arrivals and departures, and multiple simultaneous actions, using a combination of fluid-scaling techniques and LP analysis; our proof of Theorem 4.1 follows Verloop's approach directly. Avrachenkov, Borkar and Shah [5] study a Lagrangian index policy for average-reward RMABs and prove asymptotic optimality in the homogeneous-arm setting.
A contextual RMAB (CRMAB) extends this framework: At each step a context is observed that modulates arm rewards and, possibly, arm transitions. Our problem is naturally a CRMAB: Each server type r is a bandit arm and the arriving task type is the context, determining both the reward and the occupation time for each arm. Chen and Hou [8] introduce a CRMAB in which the context follows a Markov process, arm transitions depend on the context, and the per-step budget is context-dependent; they derive a Lagrangian index policy via dual decomposition, but demonstrate asymptotic optimality only numerically. Our work proves asymptotic optimality of LAG in a new -scaling regime, in which both the number of simultaneous arrivals m and the number of resource copies n grow (Section 4). This regime is necessary: In the standard scaling with one arrival per step, the per-step context is random, which prevents the fluid system from converging to a deterministic fixed point, and the Lagrangian reward may not reach the fluid LP bound. Scaling m alongside n allows the empirical context distribution to concentrate at
Keerthana Gurushankar
Table 1. Summary of notation used in Section 3.
| Symbol | Description |
|---|---|
| Problem parameters | |
| Number of servers | |
| Number of task types | |
| Arrival rate of a type- task (probability per step; ) | |
| Number of servers assigned per type- task | |
| Match reward for assigning server to a type- task | |
| Service duration of a type- task, shared by its servers (random integer) | |
| CRMAB model | |
| State of server at step ; means free | |
| Set of servers assigned at step | |
| OCC-LP variables | |
| Long-run assignment rate of server to type- tasks (per step) | |
| Steady-state free fraction of server | |
| Lagrangian index | |
| Dual variable for the type- demand constraint (2) | |
| Dual variable (Arm- LP value) for the capacity constraint (3) | |
| Lagrangian index of server for task type | |
each step by the law of large numbers, making the fluid limit deterministic and amenable to the fixed-point analysis of [24].
3 Our Proposed Policy
We model the problem as a contextual restless multi-armed bandit (CRMAB).
Arm. Each server is an arm. At step , arm has state , where means is free and means has steps of service remaining; here bounds the service duration ( for all ).
Context. At each step , a task of type arrives i.i.d. with , and no task arrives with probability , independently of the arm states.
Action. When at least servers are free, a policy selects an assignment set with ; when fewer than are free the task is dropped (). We consider only work-conserving policies, which assign whenever servers are free.
Transitions. An assigned server becomes busy for the task's service duration, and every other busy server has one step of service elapse. That is, for each ,
where is a single duration drawn at the moment of assignment and shared by all assigned servers, so they free together.
Reward. Assigning to a type- task yields reward . The objective is to maximize (1).
3.1 OCC-LP: The Occupancy-Measure LP Upper Bound
The occupancy-measure LP (OCC-LP) is a linear program over the long-run assignment rates of a work-conserving policy; its optimum upper-bounds the reward of any such policy, as we prove in Proposition 3.2. The decision variables are for , , the long-run rate of assignments of server to type- tasks (assignments per step), and for , the steady-state free fraction of server . One further quantity enters the LP as a constant: The blocking probability , the long-run fraction of arrivals dropped because fewer than servers are free. By Lemma 3.1, is the same for every work-conserving policy and every task type.
(OCC-LP)
Constraint (2) fixes the type-v assignment rate: Type-v tasks arrive at rate , a fraction 1-B of them are served, and each served task occupies exactly k servers, giving rate . We call the demand for type v. Constraint (3) is Little's Law: Each assignment of type v to server r occupies it for expected duration at rate , so the total busy fraction is . Constraint (4) ensures the assignment rate does not exceed the rate at which server r is simultaneously free and a type-v task arrives; by independence of arrivals and server state in the fluid limit, this rate is .
LEMMA 3.1. Let denote the number of busy servers at step . Under any work-conserving policy the process undergoes the same state transitions, and the steady-state blocking probability is independent of both the policy and the arriving task type.
PROOF. Run any two work-conserving policies on the same arrival sequence and the same service time draws, starting from . Suppose agrees under both. A work-conserving policy assigns exactly servers iff , so under the common value of both policies make the same acceptor-drop decision. On acceptance both occupy servers for the same duration , which depends only on the type and not on which servers are chosen, so the same number become busy and the same number later free; hence again agrees. By induction the two processes coincide step by step, so they share the same transitions and the same steady-state blocking probability . For type-independence, is i.i.d. and independent of the history, hence of , while the event is a function of alone (as is constant); thus for every .
REMARK 1. In continuous time the blocking probability has a closed form. Modeling each task as a call that holds k of R circuits for one duration gives an Erlang loss network [15], whose blocking depends only on the means: . Our discrete-time model admits no such closed form: B is sensitive to the service distribution beyond its mean. We therefore compute B numerically; the Erlang expression still serves as a useful reference value.
We write OCC-LP(B) to make the blocking probability explicit, and OCC-LP(0) for the B = 0 instance in which the demand constraint reads . As the system scales the blocking vanishes (Section 4), so OCC-LP(0) is the fluid limit from which we derive LAG and against which we prove its optimality, while OCC-LP(B) is the valid upper bound at finite scale.
Keerthana Gurushankar
PROPOSITION 3.2 (LP UPPER BOUND). For any work-conserving policy , with B the blocking probability of Lemma 3.1,
PROOF. Fix a policy . Let be the long-run fraction of steps server is free, and the long-run rate of type- assignments to server :
For policy , the objective equals . We show is feasible for (OCC-LP).
Constraint (2). At each type-v arrival a work-conserving policy assigns exactly k servers when at least k are free, and drops the task otherwise. Let and let count the accepted type-v arrivals. Then
using and a.s., where is the policy- and type-independent blocking probability of Lemma 3.1.
Constraint (3). By Little’s Law applied to server : The long-run assignment rate to server is , the mean service time per assignment is , and the average occupancy is . Hence .
Constraint (4). Server r can only be assigned when free, so
Let denote the history before step (all arrivals, assignments, and service draws through step ). The state is -measurable, while is i.i.d. with and independent of , so is a martingale with bounded increments, giving a.s. Hence
Therefore is feasible for OCC-LP(B), giving .
Note that this upper bound is similar to, but tighter than, the KIID variant of [10, LP (1)].
3.2 LAG, the Lagrangian Index Policy
We derive a Lagrangian index policy via dual decomposition of the OCC-LP. We show in Section 5 that it achieves 83–99% of the OCC-LP upper bound across all evaluated instances and loads, and prove asymptotic optimality in Section 4.
Lagrangian decomposition. We derive the index from the fluid limit OCC-LP(0). Specifically, we form its Lagrangian by relaxing the equality demand constraint (2) (with ) using multipliers , one per task type :
subject to (3) and (4). For fixed , the maximization over decouples across servers . For each , the Arm-r LP is:
(Arm-r LP)
Let denote the optimal value of the Arm-r LP.
Dual LP.. The Lagrangian dual problem is:
By strong duality, the optimal dual value equals OPT(OCC-LP(0)). Let be an optimal dual solution, the corresponding primal solution, and .
DEFINITION 3.1 (LAG POLICY). Assume for every . Fix an optimal dual solution and an optimal solution of OCC-LP(0). For and , define the Lagrangian index
and the tie weight . When a task of type arrives, LAG drops it if fewer than servers are free; otherwise, it assigns free servers in decreasing index order, with zero-index ties calibrated to the LP assignment rates. The precise allocation and rounding rules are specified in Appendix A and are part of the policy definition.
In , the score is the immediate reward. The price is the opportunity cost of serving a type- task. The term is the cost of keeping server busy, since each step of its time is worth .
The Lagrangian relaxation replaces the per-arrival assignment requirement by time-average demand constraints. For the selected primal optimum , consider the decoupled policy that, when server r is free and type v arrives, accepts with probability
Feasibility gives and . The sign characterization below implies for positive indices and for negative indices; zero-index acceptance is calibrated by this ratio. The construction in Lemma 3.4 realizes the selected occupancies, so the total original reward is . This decoupled policy meets demand in time average but need not assign exactly servers to each arrival.
Keerthana Gurushankar
PROPOSITION 3.3. There exists an optimal solution for OCC-LP, , which satisfies, for every , :
In the full model, LAG assigns exactly k servers to each arrival, so this decoupled optimality result does not translate directly. In Section 4, we establish a mean-field scaling regime in which this distinction vanishes.
To prove Proposition 3.3, we translate the Arm-r LP into a bandit problem. Lemma 3.4 shows the optimal average reward of the bandit equals . Lemma 3.5 shows that, at the dual-optimal penalties, positive indices require acceptance, negative indices require rejection, and zero indices permit either action or randomization. Lemma B.1 then establishes Proposition 3.3 by expressing the primal–dual gap as a sum of nonnegative terms. Proofs of Lemmas 3.4 and 3.5 are deferred to Appendix B.
DEFINITION 3.2 (ARM-r BANDIT). Given a penalty vector , the Arm-r bandit is a single server observed in discrete time:
State. The server is either free or busy with steps of service remaining. At each step a type-v task arrives with probability (and none with probability ), independently of the server state.
Action. When the server is free and a type-v task arrives, a policy chooses to accept or reject . Acceptance is only possible when the server is free.
Reward. Accepting a type-v task yields immediate reward ; the server then becomes busy for steps, drawn i.i.d. ( ) and independently of all other quantities.
Objective. Let denote the long-run average reward per step under policy started from the free state. The time-average Arm-r bandit maximizes over policies .
The penalty is the shadow price of the demand constraint for type : It reflects the opportunity cost of serving a type- arrival, as determined by the global demand constraints (2).
LEMMA 3.4 (ARM-r BANDIT-LP EQUIVALENCE). At penalties , the optimal average reward of the Arm-r bandit equals the value of the Arm-r LP: .
LEMMA 3.5. At penalties , an optimal stationary policy for the time-average Arm-r bandit can be specified by acceptance probabilities satisfying:
An arbitrary optimal policy for the penalized Arm-r bandit need not realize the selected primal optimum: it may choose different actions at zero indices. The calibrated probabilities above realize by the achievability construction in Lemma 3.4. Separately, Lemma B.1 shows that the sign conditions of Proposition 3.3 hold for every optimal primal solution paired with any optimal dual solution.
4 Mean-Field Optimality
In this section, we propose a mean-field scaling regime and prove that LAG is asymptotically optimal in the scaling regime.
Our analysis follows the Weber–Weiss tradition of mean-field proofs for index policies [24, 26], which rests on delicate fixed-point and convergence arguments for finite Markov chains. These arguments require each arm to have a finite state space, which the discrete-time model of Section 1.1 provides: With bounded service durations, each server’s state lies in .
4.1 The Mean Field Scaling Regime
A rich body of prior work studies mean-field asymptotic optimality of index policies for restless bandit problems [16, 19, 24, 26]. The classical result of [26] shows that when there are n identical arms, the Whittle index policy is optimal as . However, these results do not directly extend to our contextual RMAB setting. It is not immediately clear how a CRMAB should be scaled. We begin by considering two natural approaches:
Batch-scaling (n-scaling). Suppose we scale the number of resources by a factor of n, so that there are n copies of each resource type. At each time step, a single arrival is assigned nk resources out of a pool of size nR. This model is depicted in Figure 7b (Appendix D). [8] consider a related scaling regime for general CRMABs.
The difficulty is that the arrival process remains stochastic at unit rate. As a result, even as , the system does not converge to a deterministic fixed point. Instead, the evolution of the system depends on the realized sequence of contexts, and the fluid limit may exhibit non-trivial dynamics (e.g., limit cycles) driven by the context process.
Buffet-scaling (m-scaling). Alternatively, suppose there are m i.i.d. arrivals at each time step, and m copies of each resource type. Each arrival must be matched to k free resources, thus a total of mk assignments are made at each step. This model is depicted in Figure 7c (Appendix D).
This avoids the limit-cycle issue, since averaging over many arrivals produces a deterministic arrival sequence in the limit. However, this scaling fundamentally changes the problem. At each time step, assignments can be made jointly across all arrivals, allowing resources to effectively choose the most favorable matches among a batch of tasks. This is strictly more powerful than in the original problem, in which each resource only observes a single arrival.
Formally, under this scaling, the induced occupancy measures may violate the constraint (4) in OCC-LP. The limiting LP (e.g., the KIID LP [10]) therefore provides a looser upper bound than OCC-LP. In our experiments, heuristics based on this LP almost always perform worse than those based on the tight OCC-LP bound, likely because the relaxation models the problem less tightly. This is discussed in Section 5.
Thus, neither scaling provides the right generalization of the Weber–Weiss regime: n-scaling preserves the problem structure but does not yield a deterministic limit, while m-scaling yields a deterministic limit but relaxes the problem too much.
The -scaling. We propose a partitioned scaling that combines both ideas. We scale the number of arrivals and resources, while constructing a system that ensures that each resource only observes one arrival per time step.
At each time step, m i.i.d. arrivals occur, and there are mn resources of each type. For each resource type, the mn resources are uniformly partitioned into m groups of size n, and each group is assigned to one arrival. Thus, each arrival observes n resources of each type (for a total of nR), and must select nk of them. Assigned resources become unavailable for steps (at most d).
We scale the arrival rate by m, the demand per arrival by n, and the resource pool by mn, so that the system load remains unchanged:
Keerthana Gurushankar

Fig. 2. -scaled system : independent streams share copies of each resource type , split into groups of each per timestep. Blue cell = Dispatcher 's partition total); green cell = assigned this step total)
The load is the long-run fraction of busy servers, the same for every work-conserving policy that serves all demand. Our optimality result requires the system to stay strictly underloaded.
ASSUMPTION 4.1 (STRICT UNDERLOAD).
This is only slightly stronger than . For any feasible OCC-LP solution, the bound constraint (4) gives . The demand constraint (2) fixes the left side at , so . Summing the capacity constraint (3) over and using the demand constraint gives . Hence , i.e., . Assumption 4.1 asks for the strict inequality.
Under this scaling, the system admits a mean-field limit as . The randomness in arrivals and resource states averages out, and each arrival effectively sees a deterministic fraction of available resources of each type. At the same time, the per-resource interaction structure of the original problem is preserved.
The -scaling admits a natural operational interpretation as a large-scale, distributed matching system with limited visibility, depicted in Figure 2.
(1) First, the m arrivals at each time step can be viewed as m independent dispatchers (or frontends), each receiving one task. Rather than a single centralized decision-maker with access to the entire resource pool, decisions are made locally and in parallel.
(2) Second, the random partitioning of the mn resources into m groups of size n models limited access to resources. Each dispatcher only observes a subset of size n of each resource type, rather than the full system of size mn. This reflects practical constraints in large systems, where querying or coordinating across all resources is infeasible due to latency or computational overhead. The partitioning can be interpreted as randomized load balancing or hashing of resources to dispatchers. The partition is redrawn at random at every time step.
(3) Third, each resource is queried by exactly one dispatcher per time step. This enforces that a resource is matched based only on a single arriving context, as in the original problem. In particular, resources cannot compare across multiple simultaneous arrivals, avoiding the “buffet” effect of m-scaling where resources effectively choose their most preferred task from a batch.
We define -scaling formally below.
DEFINITION 4.1 ((m, n)-SCALED SYSTEM). Fix . The -scaled system is defined as follows.
Resources. For each type , there are mn resources of type .
Arrivals. For each timestep t, m i.i.d. tasks arrive.
Distribution. The mn resources of each type are split into m uniform partitions, such that every resource sees a uniformly chosen arrival and each arrival sees n uniformly chosen resources of each type.
Assignment. An arriving task is assigned exactly nk free resources from its dispatcher's partition if at least nk are free; otherwise it is dropped without any assignment.
Service. Each accepted type-v task draws one duration , independently across tasks conditional on their types and independently of partitioning and assignment. All nk resources assigned to that task share this draw and return together.
For any policy , let denote the long-run average total reward per timestep under in the -scaled system. When dispatcher j has at least nk free resources, scaled LAG uses the same LP-calibrated allocation rule with budget k and capacities , where is its free count of type r, then rounds to exactly nk assignments as specified in Appendix A. Writing a for the fractional allocation and for the rounded counts, this rule guarantees
At n = 1, it recovers Definition 3.1.
In the remainder of the section we show LAG is asymptotically optimal in the -scaled loss system: Its normalized reward converges to OPT(OCC-LP(0)) (achievability), and no work-conserving policy exceeds this value in the limit (upper bound). The upper bound combines Proposition 3.2, which bounds any policy by OPT(OCC-LP( )), with the fact that blocking vanishes (Proposition 4.7), so the bound tends to OPT(OCC-LP(0)).
THEOREM 4.1 (ASYMPTOTIC OPTIMALITY OF LAG). Under Assumptions 4.1 and 4.2, in the -scaled loss system,
and for every work-conserving policy . Hence LAG is asymptotically optimal.
Below we state the lemmas we use to prove Theorem 4.1. Proofs are deferred to Appendix C.
4.2 Lemmas Concerning the Waterfill Function
The proof of Theorem 4.1 relies on two properties of the OCC-LP optimum: its waterfill structure and the Lipschitz continuity of the waterfill map.
Keerthana Gurushankar
We write waterfill(b, c; , w) for the fractional allocation that fills capacities c in decreasing index order with budget b, using capped proportional allocation with weights w among zero-index servers. Its exact three-stage definition is given in Appendix A (Definition A.1). This is the allocation map used by both the finite and fluid versions of LAG.
LEMMA 4.2 (4-LIPSCHITZ). For fixed , the map on satisfies .
LEMMA 4.3 (FLUID FIXED POINT OF LAG). Let and w be as in Definition 3.1.
(a) For every and , waterfill .
(b) Define by and for . Then , , and .
4.3 The Fluid Differential Equations
Let be the fluid state space, where denotes the fraction of type-r resources with exactly steps of service remaining ( means free).
DEFINITION 4.2. For and , the fluid assignment rate of LAG is
When , this is the ideal fractional assignment rate before integer rounding. At shortage states, the waterfill partially allocates the available mass only to define a continuous auxiliary map ; the stochastic loss system always drops such tasks. Transition approximation will be required only on the well-stocked set of Lemma 4.4.
We define the fluid map to describe one step of the system when every random quantity equals its average. Its input gives, for each type , the fraction of type- resources with steps of service left. A resource with steps left moves to steps left. When LAG assigns a free resource to a type- task, that resource stays busy for steps. The fluid assignment rate of Definition 4.2 is the fraction of type- resources that LAG assigns to type- tasks in one step. The three lines below apply this to free resources (), to resources with steps left for , and to resources with the maximum steps left.
DEFINITION 4.3 (FLUID MAP). Define the map by
The -scaled system has mn resources of each type, so the fractions it can realize are multiples of . Let be the set of states with for all and . This set is finite.
LEMMA 4.4 (TRANSITION CONVERGENCE ON WELL-STOCKED STATES). Under Assumption 4.1, let and
Let be the random one-step transition of the scaled loss system under LAG. For every ,
For every bounded continuous ,
For any fixed m, n, let denote a stationary distribution of the -scaled chain under LAG; at least one exists since is finite.
LEMMA 4.5 (REWARD). Let and . For every m, n and every initial state , there exists a stationary distribution of the -scaled system under LAG such that
where .
4.4 Congestion vanishes
The upper-bound half of Theorem 4.1 needs the blocking probability to vanish. We show that in the mean-field limit an arriving task almost never finds fewer than k servers free. Let denote the fraction of type-r servers that dispatcher j sees free, and the fraction free in the whole system. A task at dispatcher j is short of servers exactly when .
Fix any work-conserving policy , and let be a stationary distribution of the -scaled chain under . We argue in two steps: First that the whole system keeps plenty of servers free, then that each dispatcher's sample is close enough to the average to inherit this. The first step writes for the expected number of free servers in excess of the that one task needs; Assumption 4.1 makes . The total number of free servers stays above with probability tending to one.
LEMMA 4.6. Let be any work-conserving policy with stationary distribution . Under Assumption 4.1, with ,
The second step accounts for the fact that a dispatcher sees only a sample of n servers per type, not the whole system. The next proposition shows the sample is close enough to the mean that a task almost never finds itself short.
PROPOSITION 4.7. Under Assumption 4.1, for any work-conserving policy the stationary probability that an arriving task finds fewer than k free servers among those it observes, , tends to 0 as .
4.5 Proof of Optimality
ASSUMPTION 4.2 (GLOBAL ATTRACTOR PROPERTY). There exists a unique such that for every initial ,
Keerthana Gurushankar
As noted in [24], this global attractor property was imposed in [26] to establish the asymptotic optimality of Whittle's index policy in a setting with a fixed population of symmetric bandits. In practice, this property is typically difficult to verify analytically and is usually established through numerical evidence.
LEMMA 4.8. Under Assumptions 4.1 and 4.2, for any sequence with , the stationary distributions converge weakly to .
PROOF SKETCH OF THEOREM 4.1. We sketch both halves; full details are in Appendix C.
Achievability. By Lemma 4.5, the normalized reward of LAG equals up to an error as , so it is governed by the stationary law . Assumption 4.2 and Lemma 4.8 pin this law down: concentrates on the unique fluid fixed point , so the reward converges to . It remains to identify . Assembling a fluid state from the waterfill-structured OCC-LP optimum of Lemma 4.3 yields a fixed point of the fluid map (Definition 4.3); uniqueness (Assumption 4.2) forces to be this state, so and the reward converges to OPT(OCC-LP(0)).
Upper bound. For any work-conserving policy , Proposition 3.2 bounds its normalized reward by , where is the blocking probability of the -scaled system. Blocking is exactly the shortage event of Proposition 4.7, so . The OCC-LP value is continuous in the demand at . Strict underload (Assumption 4.1) puts the demand at in the interior of the set of demands for which the OCC-LP is feasible, and the value is continuous at every such interior point. Hence . The two bounds meet, so LAG is asymptotically optimal.
5 Experiments
We evaluate LAG on six instances spanning real peer-review datasets, synthetic call-center routing, and structured synthetic regimes, comparing against Greedy, Random, ALG-SC-LP [10], and Whittle [13] (Section 5.1). Our main findings are:
-
LAG achieves 85.6–94.5% of OCC-UB across all instances at load , and earns at least as much reward as every other online policy on every instance (Table 2). The appendix reports all other loads (Table 3).
-
On real peer-review datasets, LAG outperforms Greedy by 6–10 percentage points at ; on synthetic instances the gap reaches up to 23 percentage points (36% relative).
-
In the mean-field limit, LAG approaches OCC-UB on all six instances we test, in line with Theorem 4.1 (Section 5.3).
5.1 Policies Evaluated
We compare the following policies and reference bounds throughout Section 5.
LAG (our policy). The Lagrangian index policy defined in Section 3.2. Upon arrival of a type-v task, LAG assigns the k available servers with the largest Lagrangian index values (Definition 3.1). The dual variables are computed once by solving the OCC-LP offline; no further LP solves are needed at runtime.
Baselines.
Greedy: At each step, assigns the k available servers with the largest current scores , ignoring future demand entirely. Variants of this approach are used in automated online assignment systems [12, 29].
Random: Assigns k servers chosen uniformly at random from all currently available servers, ignoring scores entirely. Serves as a lower-bound sanity check.
ALG-SC-LP [10]: The safe-choice LP policy of [10]. It solves the KIID LP offline for a fractional allocation , and at each step selects server r with probability proportional to among available servers, defaulting to Greedy when no available server has positive LP weight.
Whittle [13]: A closed-form index policy derived via the subsidy-of-indifference approach for restless multi-armed bandits [27]. The index is
This index has a simple closed-form but provides no asymptotic optimality guarantee.
Upper Bounds. The following LP optimal values are not online policies; they are shown as reference lines in all figures.
OCC-UB: Optimal value of the OCC-LP (Section 3.1), an upper bound on the expected reward of any work-conserving policy (Proposition 3.2). At finite scale we plot OPT(OCC-LP, ), evaluated at the empirical blocking rate measured during simulation.
KIID-UB: Optimal value of the KIID LP of [10].
5.2 How Does Performance vary with Load
We measure reward as a function of system load , where is the total arrival rate. We sweep by varying while holding all other parameters fixed. At each load point we solve the OCC-LP once and compute LAG indices from the resulting dual variables; all other policies use only the score matrix and, where applicable, their respective LPs. We test six instances across three domains: two from real peer-review data, two synthetic call-center instances, and two analytical instances. Table 2 summarizes results at ; the full load sweep appears in Table 3 in the appendix.

(a) ICLR

(b) TMLR
Fig. 3. Reward per step vs. load on real peer-review datasets. LAG tracks the OCC-UB across all loads.
In Figure 3, arriving tasks represent papers and servers represent reviewers (k = 3). Match scores are tf-idf cosine similarities [18] normalized to [0, 1]; service times are drawn from the empirical TMLR review-duration distribution [13]. We subsample R = 30 reviewers and V = 10 papers uniformly at random from each full matrix. For Figure 3a we use the ICLR 2018 similarity score matrix [28]; for Figure 3b we use the TMLR journal similarity matrix [13]. On TMLR, LAG reaches 87.8% of OCC-UB at while Greedy falls to 78.4%, a gap that widens at high load. On ICLR the gap is smaller (94.5% vs. 88.9%) but persistent across all loads.
Figure 4 presents two synthetic call-center instances with k = 1 and geometric service times.
Keerthana Gurushankar

(a) Specialist

(b) Priority
Fig. 4. Reward per step vs. load on synthetic call-center instances (k=1, geometric service).
The Specialist instance has two generalists that score 1.0 on all six call types and five specialists that score 1.0 only on their native routine type. A hard type with no specialist arrives three times as often as each routine type. For a routine call, both generalists and the native specialist score 1.0; Greedy breaks the three-way tie at random, wasting generalist capacity that only generalists can provide to hard calls. At , Greedy and Whittle both reach 85.5% of OCC-UB; LAG attains 90.6% by routing routine calls to native specialists via the per-type dual prices .
The Priority instance has two priority handlers scoring on (standard, priority) calls and six standard handlers scoring . Standard calls arrive 70% of the time. Because priority handlers outscore standard handlers on standard calls, Greedy assigns them first to standard arrivals, blocking capacity for high-reward priority calls. At , LAG and Whittle both achieve 85.6% of OCC-UB while Greedy falls to 63.0%.

(a) Unfriendly

(b) Low-rank
Fig. 5. Reward per step vs. load on synthetic instances. On Unfriendly, Greedy wastes high-quality servers on poor-match tasks. On Low-rank, Whittle falls more than 22 percentage points below LAG.
Figure 5 presents two synthetic instances designed to expose complementary failure modes. Both use deterministic service time steps) and .
The Unfriendly instance has good server types and dummy server types. Good server scores for the subset of paper types it is well-matched to, and otherwise; dummy servers score 0 on all paper types. The task types cover all binary patterns of the good servers, arriving uniformly. Because the near-zero score of 0.01 is strictly positive, Greedy assigns a good server even when the match is poor, burning capacity rather than absorbing the arrival with a dummy server and holding the good server for a future high-reward match. At , Greedy achieves only of OCC-UB while LAG attains , a relative improvement of . LAG and Whittle coincide on this instance (): Both correctly identify that the value of withholding a well-matched server outweighs the immediate reward of a poor match.
The Low-rank instance (, ) uses a rank-1 score matrix , where and are linearly spaced in over , , and task types arrive uniformly. LAG performs best (94.3% of OCC-UB at ), followed by ALG-SC-LP (91.8%) and Greedy (86.3%). Whittle falls to 71.9%, more than 22 percentage points below LAG and more than 14 points below Greedy.
Table 2. Reward as % of OCC-UB at load .
| Instance | LAG | Whittle | ALG-SC-LP | Greedy | Random |
|---|---|---|---|---|---|
| TMLR | 87.8 | 83.2 | 80.5 | 78.4 | 49.6 |
| ICLR | 94.5 | 92.5 | 90.0 | 88.9 | 72.0 |
| Specialist | 90.6 | 85.5 | 84.6 | 85.5 | 55.0 |
| Priority | 85.6 | 85.6 | 82.2 | 63.0 | 54.9 |
| Unfriendly | 88.7 | 88.7 | 82.2 | 66.8 | 42.7 |
| Low-rank | 94.3 | 71.9 | 91.8 | 86.3 | 67.1 |
5.3 Convergence to the Mean-Field Limit
We test Theorem 4.1 empirically. Using the six instances at load , we scale the system under the -scaling with , sweeping . Simulation length scales adaptively as so that total computational work stays roughly constant across values. Each data point is the mean of 3 independent trials; shaded bands show confidence intervals.
Figure 6 plots LAG's reward per server copy as a percentage of OCC-UB for all six instances on a log axis. At each , OCC-UB is OPT(OCC-LP()), where is the blocking rate we measure in the simulation, as in Section 5.1. The measured blocking rate falls from between 0.104 and 0.133 at on all instances except Low-rank (0.010) to at most 0.001 at . At (), LAG reaches on TMLR, on ICLR, on Specialist, on Priority, on Unfriendly, and on Low-rank. Convergence is fastest on Low-rank, which crosses at . It is slowest on Priority, which stays between and for from 16 to 16,384 before reaching at .
Keerthana Gurushankar

Fig. 6. LAG’s reward per server copy, reward/(mn), as a percentage of OCC-UB vs. n under the -scaling . OCC-UB is OPT(OCC-LP( )) at the measured blocking rate . All six instances approach OCC-UB as n grows, consistent with Theorem 4.1.
6 Conclusion
We study online assignment of reusable, quality-differentiated resources, where each arriving task must be matched immediately to k servers that then become busy for a random duration. We cast the problem as a contextual restless multi-armed bandit and derive the occupancy-measure LP, whose optimum upper-bounds the reward of any work-conserving policy. The dual of this LP decouples the routing problem across servers and yields LAG, a closed-form index policy: Each task-type and server pair is scored by its raw match value less an opportunity-cost term that reflects the value of keeping that server free for future arrivals. To analyze LAG we introduce an -scaling regime, in which the number of copies of each server and the number of arrivals per step grow together; scaling the arrivals concentrates the context distribution and restores the deterministic fluid limit that a contextual bandit otherwise lacks. In this regime we prove LAG is asymptotically optimal, attaining the LP bound. Empirically, on real peer-review traces and synthetic instances, LAG achieves 83–99% of the LP upper bound and improves over the natural greedy policy by up to 12.3% on peer-review data, including well outside the regime where our optimality theory applies.
References
[1] Ivo Adan and Gideon Weiss. 2014. A Skill Based Parallel Service System Under FCFS-ALIS – Steady State, Overloads, and Abandonments. Stochastic Systems 4, 1 (2014), 250–299. doi:10.1214/13-SSY117
[2] Sigrún Andradóttir, Hayriye Ayhan, and Douglas G. Down. 2003. Dynamic Server Allocation for Queueing Networks with Flexible Servers. Operations Research 51, 6 (2003), 952–968. doi:10.1287/opre.51.6.952.24921
[3] Mor Armony. 2005. Dynamic Routing in Large-Scale Service Systems with Heterogeneous Servers. Queueing Systems 51 (2005), 287–329. doi:10.1007/s11134-005-3760-7
[4] Rami Atar. 2005. Scheduling Control for Queueing Systems with Many Servers: Asymptotic Optimality in Heavy Traffic. The Annals of Applied Probability 15, 4 (2005), 2606–2650. doi:10.1214/105051605000000601
[5] Konstantin Avrachenkov, Vivek S Borkar, and Pratik Shah. 2026. Lagrangian index policy for restless bandits with average reward. Queueing Systems 110, 1 (2026), 21.
[6] Michel Benaim and Jean-Yves Le Boudec. 2008. A class of mean field interaction models for computer and communication systems. Performance evaluation 65, 11-12 (2008), 823–838.
[7] Patrick Billingsley. 2013. Convergence of probability measures. John Wiley & Sons.
[8] Xin Chen and I-Hong Hou. 2024. Contextual restless multi-armed bandits with application to demand response decision-making. In 2024 IEEE 63rd Conference on Decision and Control (CDC). 2652–2657.
[9] Steven Delong, Alireza Farhadi, Rad Niazadeh, Balasubramanian Sivan, and Rajan Udwani. 2024. Online Bipartite Matching with Reusable Resources. Mathematics of Operations Research 49, 3 (2024), 1825–1854. doi:10.1287/moor.
2022.0242 Published online: October 13, 2023.
[10] John P. Dickerson, Karthik A. Sankararaman, Aravind Srinivasan, and Pan Xu. 2021. Allocation Problems in Ride-sharing Platforms: Online Matching with Offline Reusable Resources. ACM Transactions on Economics and Computation 9, 3 (September 2021), 1–17. doi:10.1145/3456756
[11] Rick Durrett. 2019. Probability: theory and examples. Vol. 49. Cambridge university press.
[12] Hui Fang and ChengXiang Zhai. 2007. Probabilistic Models for Expert Finding. In Advances in Information Retrieval, Giambattista Amati, Claudio Carpineto, and Giovanni Romano (Eds.). Springer, 418–430.
[13] Keerthana Gurushankar, Nihar Shah, Alan Scheller-Wolf, and Mor Harchol-Balter. 2026. The Online Reviewer Assignment Problem. Technical report.
[14] Zhiyi Huang, Zhihao Gavin Tang, and David Wajc. 2024. Online Matching: A Brief Survey. ACM SIGecom Exchanges 22, 1 (October 2024), 135–158. doi:10.1145/3699824.3699837
[15] Frank P. Kelly. 1991. Loss networks. The Annals of Applied Probability 1, 3 (1991), 319–378.
[16] Maialen Larrañaga. 2015. Dynamic control of stochastic and fluid resource-sharing systems. Ph. D. Dissertation. Institut National Polytechnique de Toulouse-INPT; Universidad del País Vasco.
[17] Avishai Mandelbaum and Alexander L. Stolyar. 2004. Scheduling Flexible Servers with Convex Delay Costs: Heavy-Traffic Optimality of the Generalized cμ-Rule. Operations Research 52, 6 (2004), 836–855. doi:10.1287/opre.1040.0152
[18] Christopher D Manning. 2008. Introduction to information retrieval. Cambridge University Press.
[19] José Niño-Mora. 2023. Markovian restless bandits and index policies: A review. Mathematics 11, 7 (2023), 1–27.
[20] Christos H Papadimitriou and John N Tsitsiklis. 1987. The complexity of Markov Decision Processes. Mathematics of Operations Research 12, 3 (1987), 441–450.
[21] Robert J Serfling. 1974. Probability inequalities for the sum in sampling without replacement. The Annals of Statistics (1974), 39–48.
[22] M. Shanks, G. Yu, and S. H. Jacobson. 2023. Approximation Algorithms for Stochastic Online Matching with Reusable Resources. Mathematical Methods of Operations Research 98 (2023), 43–56. doi:10.1007/s00186-023-00822-3
[23] Hanna Sumita, Shinji Ito, Kei Takemura, Daisuke Hatano, Takuro Fukunaga, Naonori Kakimura, and Ken-ichi Kawarabayashi. 2022. Online Task Assignment Problems with Reusable Resources. In Proceedings of the AAAI Conference on Artificial Intelligence, Vol. 36. 5199–5207. doi:10.1609/aaai.v36i5.20455
[24] I. M. Verloop. 2016. ASYMPTOTICALLY OPTIMAL PRIORITY POLICIES FOR INDEXABLE AND NONINDEXABLE RESTLESS BANDITS. The Annals of Applied Probability 26, 4 (2016), 1947–1995. http://www.jstor.org/stable/24810047
[25] Rodney B. Wallace and Ward Whitt. 2005. A Staffing Algorithm for Call Centers with Skill-Based Routing. Manufacturing & Service Operations Management 7, 4 (2005), 276–294. doi:10.1287/msom.1050.0086
[26] Richard R Weber and Gideon Weiss. 1990. On an index policy for restless bandits. Journal of Applied Probability 27, 3 (1990), 637–648.
[27] Peter Whittle. 1988. Restless Bandits: Activity Allocation in a Changing World. Journal of Applied Probability 25, A (1988), 287–298. doi:10.2307/3214163
[28] Yichong Xu, Han Zhao, Xiaofei Shi, and Nihar B Shah. 2019. On strategyproof conference peer review. In Proceedings of the 28th International Joint Conference on Artificial Intelligence. 616–622.
[29] Xiquan Zhao and Yangsen Zhang. 2022. Reviewer assignment algorithms for peer review automation: A survey. Information Processing & Management 59, 5 (sep 2022), 20 pages. doi:10.1016/j.ipm.2022.103028
A Tie-Breaking and Rounding Rules for LAG
The rules below complete Definition 3.1 and its -scaled version in Definition 4.1. Fix the primal and dual LP solutions once, and fix a total order on for all equal-index and equal-remainder ties. The tie weights are the LP assignment rates divided by the type-v arrival rate, so . This choice is used in the fluid fixed-point proof (Lemma 4.3).
A.1 Fractional Allocation
The waterfill ranks servers by index. Among servers with index zero, it splits the remaining budget in proportion to given weights.
DEFINITION A.1 (WATERFILL). Let be a budget, capacities, an index vector, and a weight vector. Let be a fixed total order on that breaks ties between equal indices. Split into
Keerthana Gurushankar
The waterfill waterfill(b, c; , w) is computed in three stages.
(1) Group P. Fill the capacities of P in decreasing order of (ties by ) until the budget is used or all of P is full. Let be the unused budget.
(2) Group T. Set for , where is the smallest number with . Let .
(3) Group N. Fill the capacities of N in decreasing order of (ties by ) with budget .
All coordinates are initially zero. If is empty, skip Stage 2 and set . For a type- task, use , , and . In the original system, set , where is the free-server set; in a dispatcher's scaled partition, set . Drop the task without any assignment if the free count is below (respectively, ). Otherwise the fractional allocation
has and .
A.2 Integer Assignments
Set for the original system. For either version, first set , then add one to each of the coordinates with the largest positive fractional remainders of , breaking equal-remainder ties by . Assign free copies of type ; at , these are precisely the servers whose rounded allocation is one. The type counts are deterministic given the free capacities and the chosen LP solutions; any free copies within a type may be selected.
Since is an integer, there are enough positive fractional remainders to distribute the leftover units. A coordinate with a positive remainder satisfies , since is an integer. Consequently,
These are the capacity, budget, and rounding-error guarantees used in the mean-field proofs.
B Deferred Proofs for the Derivation of LAG
PROOF OF LEMMA 3.4. Throughout this proof, the penalty vector is . For any Arm-r bandit policy , let be the long-run rate of type-v assignments to server , and let be the long-run free fraction of server . By the argument of Proposition 3.2 applied to a single server (Little's Law for the capacity constraint, and the martingale bound for the availability constraint), is feasible for the Arm-r LP. Thus the average reward of is .
To show the bound is tight, given the Arm-r LP optimal solution , construct bandit policy that, when free and a type-v task arrives, accepts with probability . The long-run assignment rate under satisfies:
Applying Little’s Law: \phi_r^\hat{\pi} = 1 - \sum_v \mathbb{E}[D_v] u_{vr}^\hat{\pi} = 1 - \frac{\phi_r^\hat{\pi}}{\phi_r^*} \sum_v \mathbb{E}[D_v] u_{vr}^* = 1 - \frac{\phi_r^\hat{\pi}}{\phi_r^*} (1 - \phi_r^*). Solving gives \phi_r^\hat{\pi} = \phi_r^*, hence u_{vr}^\hat{\pi} = u_{vr}^*, and the average reward of equals .
PROOF OF LEMMA 3.5. Throughout this proof, the penalty vector is . We use the average-reward Bellman optimality equation. Let be the optimal average reward per step and a relative value function, normalized so that at the free state. A busy server with steps remaining takes no action and earns no reward, advancing deterministically to state , so ; with this gives .
When the server is free and a type-v task arrives, accepting earns and moves the server to state , while rejecting earns 0 and keeps it free. Accepting is optimal iff its value is at least that of rejecting:
since . By Lemma 3.4, , giving the stated threshold.
LEMMA B.1 (PRICES AND COMPLEMENTARY SLACKNESS). Suppose Assumption 4.1 holds. Let be an optimal dual solution, let , and let . Then:
(i) for every .
(ii) For every feasible for OCC-LP(0),
(iii) A feasible is optimal if and only if and .
Proof. (i) By Lemma 3.4, is the optimal average reward of the Arm-r bandit with penalties . By the proof of Lemma 3.5, the relative value function is with . The Bellman equation at the free state reads , and . This is .
(ii) Substitute . Constraint (2) gives and constraint (3) gives . So . The left side of (ii) therefore equals . By (i), . Split the pairs by the sign of .
(iii) By Assumption 4.1, OCC-LP(0) is feasible (the point , satisfies all constraints), so strong duality holds. Hence is optimal if and only if the left side of (ii) is 0. By , every term on the right of (ii) is nonnegative, so the sum is 0 if and only if each term is 0.
C Deferred Proofs for Mean Field Optimality
PROOF OF LEMMA 4.2. We use two facts for each of the two kinds of fill, priority fill (Stages 1 and 3) and weighted fill (Stage 2). Both output with .
(F1) Budget. If then coordinatewise. Hence .
(F2) Capacity. for fixed .
For priority fill, (F1) is clear. For (F2), by the triangle inequality along a coordinatewise path it suffices to take with . Allocations before in the order do not change. The allocation of increases by at most . Allocations after weakly decrease, and since the total weakly increases, their total decrease is at most the increase at . So . For weighted fill, (F1) holds because is nondecreasing in and . For (F2), by the triangle inequality along a coordinatewise path inside it suffices to treat with . Write and .
Case . Since , the smallest with satisfies . So for . Both totals equal , so and . Also .
Keerthana Gurushankar
Case . Here and . For , the capacity bound gives . Therefore
while . Since the total allocation increases from to , the total decrease in the other coordinates is at most . Hence .
Case . Then , and .
Now take and let be the distances between and on . The unused budgets are and , so and . By (F1), (F2) and the triangle inequality, the three stages change by at most , and . The sum is at most .
PROOF OF LEMMA 4.3. (a) Fix , and let be the groups of Definition A.1 for and . By Lemma B.1(iii) and the bound (4):
(1) if , then ;
(2) if , then ;
(3) if , then .
The demand constraint (2) says . By (1), (2), and since for tied servers outside ,
Stage 1 uses capacities . By (6) the budget fills all of , so the waterfill equals on by (1), and the unused budget is . In Stage 2, if then . Otherwise . At , (3) gives for , so . For , . So is the smallest solution, the waterfill equals on , and . Stage 3 has budget 0, so the waterfill is 0 on . Every has , or and , so by (2) and the definition of .
(b) By constraint (3), , using . So . Since , part (a) gives . Since , , so . For , with , , because . The reward is .
PROOF OF LEMMA 4.4. Fix , and write . Let be the fraction of type-r resources that dispatcher sees free. Uniform partitioning gives hypergeometric marginals, so, for ,
For the partition is deterministic and its variance is zero. Consequently . The partitions need not be independent for this estimate.
Write for the admission indicator. Since , a shortage requires for some . Hoeffding's inequality for sampling without replacement and a union bound give
This bounds a single dispatcher’s shortage probability uniformly on ; we will average errors over dispatchers, so no union bound over m is needed.
Independently of the partitions, draw the i.i.d. task marks : , with a no-arrival mark of probability . The duration is one draw for the entire task and is independent of its assignment conditional on . We may also draw it for a rejected task, since its allocation is zero. Define
Let be the actual number of type-r assignments by dispatcher j, divided by n. Thus on shortage or no arrival; on admission it is the rounded allocation of Definition 4.1. In particular,
All coordinates assigned to the same task use the same .
For each r, the 4-Lipschitz property and the rounding bound imply
On admission this follows by inserting ; on rejection and . It follows uniformly in that
To account for arrivals and shared service durations together, set
with on a no-arrival mark. For fixed r, i, these variables are independent over j, lie in , and have means
Their empirical means therefore satisfy
Independence between resources within a task is neither assumed nor needed: the averaging here is over independent task marks. This also keeps the service-type probabilities inside the calculation, without dropping weights from a signed sum of allocation errors.
The actual transition is
where and no-arrival contributions are zero. Comparing these expressions with , insert the corresponding empirical mean of . Multiplication by cannot increase the absolute allocation discrepancy, so for every coordinate,
Keerthana Gurushankar
Summing over coordinates and applying Markov's inequality yields, for ,
Finally, a continuous on the compact state cube is uniformly continuous. Choose so that implies . Then
Taking the supremum over , then the joint limit and , proves the second assertion.
PROOF OF LEMMA 4.5. Let be the set of well-stocked states. Fix and write . Let be the free fractions that dispatcher observes and . Let be the fraction of type- resources that LAG assigns to a type- task, using the capped proportional allocation and largest-remainder rounding of Definition 4.1 whenever ; set when . On an admitted task, that definition gives a rounding error below in each normalized coordinate. All dispatchers are identically distributed, so the expected reward of one step, divided by , is . Write .
Suppose . A waterfill allocates at most its budget . The Lipschitz bound for the waterfill (Lemma 4.2, constant 4), the rounding error, and give
Here by (7), , and holds because a shortage at a dispatcher requires some , which Hoeffding's inequality for sampling without replacement bounds by (as in the proof of Proposition 4.7). If , then .
Since is finite, the Cesàro averages converge to a stationary distribution [11, Eq. (5.6.1)], and . Therefore
By Lemma 4.6, .
PROOF OF LEMMA 4.6. Each in-service task occupies servers and there are servers of each type, so the busy fraction is , where is the number of tasks in service. Since , the event is exactly .
Index arrival slots by with dispatcher and age . In the loss model a served task starts service at its arrival, so a task is in service in the current state iff it was accepted at some slot and its duration exceeds its age, . Dropping the acceptance indicator,
The md indicators are independent (distinct slots are distinct arrivals, with independent types and durations), and slot is active with probability . Hence
By Hoeffding's inequality over these md independent indicators in ,
Arrivals and durations are exogenous, independent of the policy and of the state history, so this bound holds under the stationary law of any work-conserving policy , giving the claim.
PROOF OF PROPOSITION 4.7. Fix a type and let be as in Lemma 4.6. By that lemma the system's free capacity exceeds with probability tending to one, so it suffices to bound the probability on that event. There the task is short only if its dispatcher's free capacity falls short of the system's by more than , i.e. . Each is a sample of servers drawn without replacement, so by the Serfling inequality [21] (as in Lemma 4.4) and a union bound this has probability at most , uniformly in . Both contributions vanish; averaging over gives .
PROOF OF LEMMA 4.8. We show for every bounded continuous that , following the approach of [6].
First, every subsequence of has a weakly convergent sub-subsequence. Each is supported on . Since is compact, by Prokhorov's theorem [7, Theorem 5.1] every subsequence of has a weakly convergent sub-subsequence.
Second, every subsequential limit is G-invariant. Let . Stationarity of gives:
The LHS converges to . For the RHS, define
by Lemma 4.4. Splitting the stationary integral over and its complement gives
using Lemma 4.6. Since G is continuous by Lemma 4.2, weak convergence implies
Thus , so is G-invariant.
Third, the unique G-invariant measure is . For any G-invariant probability measure , induction gives for all . By Assumption 4.2, pointwise, so by dominated convergence:
Hence . Since every subsequential limit equals , the full sequence converges weakly to .
Keerthana Gurushankar
PROOF OF THEOREM 4.1. By Lemma 4.5 and the continuity of (Lemma 4.2):
where the weak convergence is by Lemma 4.8. It remains to show .
Let and be as in Lemma 4.3. By Lemma 4.3(b), is a fixed point of and . By Assumption 4.2 the fixed point is unique, so and . Therefore the achievability bound holds:
For the matching upper bound, fix any work-conserving policy . Applying Proposition 3.2 to the -scaled instance gives , where is the blocking probability of the scaled system. Blocking is exactly the event of Proposition 4.7, an arriving task finding fewer than free servers, so .
It remains to show . Write for the optimal value of the LP obtained by replacing the demand right-hand side in (2) with a parameter , so that , where . The parameter enters only the constraint right-hand sides, so is concave and finite on the set of for which the LP is feasible, hence continuous on the interior of that set. Strict underload (Assumption 4.1) gives , so admits a feasible point with strict slack in every availability constraint (4); perturbing near preserves feasibility, so lies in the interior. Since as , continuity of at the interior point gives .
Hence , matching the achievability bound, and LAG is asymptotically optimal.
D Diagrams of the Two Partial Scalings
E Full Load-Sweep Results
Table 3 reports reward as a percentage of OCC-UB for all policies across the full sweep, for each of the six instances.
Table 3. Reward as % of OCC-UB across load , all instances.
| Instance | ρ | LAG | Whittle | ALG-SC-LP | Greedy | Random |
|---|---|---|---|---|---|---|
| TMLR | 0.1 | 98.9 | 79.3 | 74.8 | 98.2 | 36.5 |
| 0.2 | 98.1 | 82.7 | 78.4 | 95.8 | 38.8 | |
| 0.3 | 97.1 | 84.8 | 76.2 | 92.6 | 40.9 | |
| 0.4 | 94.6 | 85.2 | 85.2 | 88.2 | 43.1 | |
| 0.5 | 92.8 | 85.6 | 83.0 | 84.7 | 45.2 | |
| 0.6 | 90.8 | 85.2 | 81.6 | 81.6 | 47.4 | |
| 0.7 | 87.8 | 83.2 | 80.5 | 78.4 | 49.6 | |
| 0.8 | 85.8 | 82.3 | 79.4 | 76.4 | 51.3 | |
| 0.9 | 85.5 | 82.8 | 78.7 | 76.5 | 53.5 | |
| 0.1 | 98.8 | 88.0 | 87.7 | 98.3 | 55.6 | |
| 0.2 | 98.2 | 89.5 | 90.2 | 96.8 | 58.3 | |
| 0.3 | 98.1 | 91.4 | 89.7 | 95.4 | 61.4 |
ICLR
continued on next page
| Instance | LAG | Whittle | ALG-SC-LP | Greedy | Random | |
|---|---|---|---|---|---|---|
| 0.4 | 97.0 | 92.1 | 91.8 | 93.0 | 64.3 | |
| 0.5 | 96.6 | 93.1 | 91.9 | 91.6 | 67.3 | |
| 0.6 | 95.8 | 93.1 | 91.8 | 90.3 | 70.0 | |
| 0.7 | 94.5 | 92.5 | 90.0 | 88.9 | 72.0 | |
| 0.8 | 93.6 | 92.1 | 89.6 | 87.9 | 74.1 | |
| 0.9 | 93.1 | 92.3 | 89.0 | 87.8 | 75.1 | |
| Specialist | 0.1 | 98.8 | 96.9 | 95.9 | 96.9 | 37.8 |
| 0.2 | 94.5 | 90.4 | 90.2 | 90.4 | 37.7 | |
| 0.3 | 88.7 | 83.7 | 84.9 | 83.7 | 37.9 | |
| 0.4 | 89.1 | 83.4 | 86.4 | 83.4 | 41.5 | |
| 0.5 | 88.7 | 82.8 | 86.7 | 82.8 | 45.5 | |
| 0.6 | 88.7 | 83.6 | 86.8 | 83.6 | 49.1 | |
| 0.7 | 90.6 | 85.5 | 84.6 | 85.5 | 55.0 | |
| 0.8 | 91.9 | 87.4 | 85.1 | 87.4 | 61.5 | |
| Priority | 0.1 | 88.6 | 83.5 | 89.2 | 88.6 | 41.1 |
| 0.2 | 87.8 | 87.8 | 80.8 | 81.4 | 44.0 | |
| 0.3 | 87.8 | 87.8 | 77.5 | 73.5 | 46.4 | |
| 0.4 | 86.0 | 86.0 | 76.5 | 68.0 | 47.6 | |
| 0.5 | 86.2 | 86.2 | 77.3 | 65.1 | 50.6 | |
| 0.6 | 86.0 | 86.0 | 79.6 | 64.0 | 53.0 | |
| 0.7 | 85.6 | 85.6 | 82.2 | 63.0 | 54.9 | |
| 0.8 | 83.0 | 83.0 | 82.9 | 62.7 | 56.8 | |
| Unfriendly | 0.1 | 98.1 | 98.1 | 97.5 | 97.5 | 26.6 |
| 0.2 | 93.7 | 93.7 | 92.5 | 90.0 | 27.4 | |
| 0.3 | 89.3 | 89.3 | 86.1 | 80.6 | 28.7 | |
| 0.4 | 88.8 | 88.8 | 84.0 | 75.4 | 32.2 | |
| 0.5 | 89.2 | 89.2 | 83.6 | 70.9 | 35.5 | |
| 0.6 | 89.7 | 89.7 | 84.7 | 69.1 | 39.4 | |
| 0.7 | 88.7 | 88.7 | 82.2 | 66.8 | 42.7 | |
| 0.8 | 87.8 | 87.8 | 80.0 | 65.2 | 44.7 | |
| 0.9 | 85.3 | 85.3 | 78.1 | 63.3 | 47.7 | |
| Low-rank | 0.1 | 98.8 | 43.0 | 96.0 | 98.4 | 51.7 |
| 0.2 | 97.8 | 47.5 | 95.6 | 96.6 | 54.6 | |
| 0.3 | 96.1 | 51.1 | 94.0 | 94.0 | 55.8 | |
| 0.4 | 95.5 | 55.8 | 93.5 | 92.3 | 58.6 | |
| 0.5 | 95.4 | 61.0 | 92.6 | 90.7 | 61.1 | |
| 0.6 | 94.6 | 66.2 | 92.0 | 88.5 | 63.7 | |
| 0.7 | 94.3 | 71.9 | 91.8 | 86.3 | 67.1 | |
| 0.8 | 93.0 | 76.6 | 91.1 | 83.6 | 69.7 | |
| 0.9 | 91.4 | 80.0 | 89.6 | 81.6 | 71.9 |
Keerthana Gurushankar

(a) Original system

(b) n-scaled system

(c) m-scaled system
Fig. 7. Two natural scalings of the original system: (a) the original problem; (b) n-scaling, which keeps one random arrival per step; (c) m-scaling, which lets resources compare across a batch of simultaneous arrivals.