Selfish Load Balancing
Load balancing games on identical and uniformly related machines with makespan as (nonutilitarian) social cost; expected cost formula for mixed profiles (20.1); existence of pure equilibria via lexicographically decreasing load vectors; PoA 2 - 2/(m+1) for pure equilibria on identical machines (tight); max-weight best response converges in n steps; PoA Theta(log m / log log m) for pure equilibria on related machines via the inverse gamma function and the layered lower-bound construction; LPT computes a pure equilibrium, PTAS plus Nashification; fully mixed equilibria and balls into bins (Proposition 20.11); the fully mixed Nash equilibrium conjecture is false; PoA Theta(log m / log log m) for mixed equilibria on identical machines via a weighted Chernoff bound; PoA Theta(log m / log log log m) for mixed equilibria on related machines
Motivation: servers without a scheduler
Load balancing is fundamental whenever tasks share resources. The classical version is an optimization problem: assign tasks to machines so the busiest machine is as lightly loaded as possible. But in, say, an Internet file-download service, each user picks the least-loaded server for itself, and nobody enforces a global assignment.
IntuitionThe central question
If every task is placed by a selfish agent seeking the least-loaded machine, how much worse is the busiest machine than under an optimal schedule — with identical or differently fast machines, and with or without randomized play?
This chapter differs from the rest of Part III in two ways:
| Feature | Why it matters |
|---|---|
| Makespan objective (a max, not a sum) | nonutilitarian; captures efficiency and fairness together |
| Mixed equilibria analyzed as well as pure | explicitly measures the damage from uncoordinated randomization |
The model
Makespan scheduling on uniformly related machines. There are machines with speeds and tasks with weights . An assignment is .
DefinitionLoad and makespan
Identical machines means .
The game
Agent controls task , and its pure strategies are the machines . Under assignment , agent pays . Social cost is the makespan.
Mixed strategies. Let and . The profile induces a random assignment.
FormulaExpected load, social cost, and expected cost to an agent
| Component | Detail |
|---|---|
| Signature | |
| Domain | everyone’s mixing probabilities |
| Codomain | the load agent expects to experience if it lands on machine |
| Not the same as | : agent ‘s own weight is certainly there, but only counted with weight in the average |
WarningYour cost exceeds the machine’s average load
Unless , . You always see yourself on the machine. This gap drives several constructions below.
PropositionProposition 20.1 — mixed equilibrium
is a Nash equilibrium iff for all : for every . Agents put probability only on machines minimizing their expected cost.
PropositionProposition 20.2 — pure equilibrium
is a pure Nash equilibrium iff for all : no task can lower its cost by moving alone.
Mixed equilibria exist by Nash’s theorem. Pure ones exist too, and are reached by improvement steps:
PropositionProposition 20.3 — pure equilibria always exist
Every load balancing game has a pure Nash equilibrium.
ProofImprovement steps lexicographically decrease the sorted load vector
Step 1: The potential. Sort loads in decreasing order, .
Step 2: One improvement step. A task moves from the machine at sorted position to the one at position . Necessarily : it moves to a less-loaded machine. Machine ‘s load drops. Machine ‘s new load is still below , since otherwise the move wouldn’t help.
The key step: the number of machines with load strictly decreases, and all loads above are unchanged. So the sorted vector gets lexicographically smaller. There are finitely many assignments, so improvement steps end at a pure equilibrium.
∎
RemarkConsequence: price of stability is 1
Start improvement steps from an optimal assignment. No step raises the makespan, so they end at a pure equilibrium that is also optimal. So only the price of anarchy is interesting here.
RemarkIt’s a routing game
Load balancing is weighted atomic selfish routing on parallel links with linear costs (see routing-games; compare Theorem 18.15 on affine weighted instances). What differs is the objective: max rather than sum. (This connection is my gloss.)
Worked example: two machines, weights 2, 2, 1, 1
ExampleOptimal, worst pure, and a worse mixed equilibrium
Two identical machines. Tasks: two large (weight 2) and two small (weight 1).
Optimum: one large and one small per machine. Makespan 3.
Worst pure equilibrium: both large tasks on machine 1 (load 4), both small on machine 2 (load 2).
- A small task moving would face .
- A large task moving would face , no improvement.
So this is an equilibrium with makespan 4. Makespan can’t be an equilibrium: the other machine would have load , and any task would move there.
Fully mixed equilibrium: every task picks each machine with probability . Then , and by (20.1):
- a large task expects on either machine;
- a small task expects on either.
By symmetry this is an equilibrium. Over the 16 equally likely outcomes:
| Makespan | 3 | 4 | 5 | 6 |
|---|---|---|---|---|
| # outcomes | 4 | 6 | 4 | 2 |
Mixed equilibria can be worse than every pure one.
Price of anarchy
DefinitionDefinition 20.4 — price of anarchy
For the class of instances with machines:
The four variants restrict to identical speeds or not, and to pure profiles or not.
NotePure or mixed?
- Pure fits systems where agents repeatedly make improvement moves until they settle.
- Mixed fits one-shot play.
- Mixed upper bounds are more robust, because mixed equilibria include the pure ones.
Pure equilibria, identical machines
Price of anarchy
The analysis mirrors Graham’s greedy list-scheduling bound of , and comes out slightly better.
TheoremTheorem 20.5 — PoA
Every pure equilibrium on identical machines has
ProofEvery other machine is at least half as full as the busiest
Step 1: The smallest task on the busiest machine. Let have maximum load and be its lightest task. WLOG holds at least two tasks; otherwise . So .
Step 2: The equilibrium condition. If some machine had , task would move there. So
Step 3: Average-load lower bound on OPT.
Step 4: Rearrange. .
∎
NoteTight (Exercise 20.2)
For every , an instance with tasks reaches exactly . The two-machine example above is the case : .
Convergence of best responses
The problem. Improvement steps always converge, but if convergence takes forever, a good equilibrium is of little use.
DefinitionMax-weight best-response policy
An agent is satisfied if it can’t lower its cost by moving. Repeatedly activate a heaviest unsatisfied agent and let it move to a least-loaded machine.
TheoremTheorem 20.6 — at most one activation per agent
On identical machines, from any assignment, the max-weight best-response policy reaches a pure equilibrium after each agent has been activated at most once.
ProofA satisfied agent is only threatened by lighter arrivals
Step 1: Two facts for identical machines.
- An agent is satisfied iff the load of the other tasks on its machine is minimal.
- A best response never lowers the minimum machine load. The machine left behind still has load above the target machine’s old load.
So a satisfied agent can become unsatisfied only if someone moves onto its machine.
Step 2: Someone moves onto ‘s machine. Agent , activated after , moves to , where sits. Max-weight order gives . With loads measured just after the move, ‘s best-response property gives
The key step: is what would pay by moving to . So is still satisfied. Hence once an agent has best-responded, it never needs to move again.
∎
WarningOrder matters
Activating a minimum-weight unsatisfied agent can take exponentially many steps, even on identical machines (Even-Dar et al.).
Pure equilibria, uniformly related machines
With different speeds, the loss is no longer constant, but it grows very slowly.
DefinitionThe inverse gamma function
for positive integers , and
Upper bound
TheoremTheorem 20.7 — PoA
Every pure equilibrium on uniformly related machines has .
Setup. Let . Sort machines by speed, , into the list . For , let be the longest prefix of in which every machine has load . So , and the prefixes shrink as grows.
IntuitionThe layered picture
Heavily loaded machines must be the fast ones: a heavy task sitting on a slow, busy machine would jump to a fast, lightly loaded one. Each layer holds weight that the optimum must spread over the next layer . That forces to have at least times as many machines, and the factorial growth caps the number of layers.
ProofThe recurrence , and its solution
Step 1: . Suppose not, so machine 1 (the fastest) has load . Take a task on a machine with load . Moving to machine 1 costs since : OPT must put somewhere, at best on the fastest machine. This contradicts equilibrium.
Step 2 (Lemma 20.8): tasks in are in under OPT. Let be the fastest machine outside , so . Take a task with , so . If , moving to would cost contradicting equilibrium. So . Any machine has , so placing there gives load . Hence OPT puts in .
Step 3: Count weight. Machines in carry weight each. OPT must fit all of it on at load :
Step 4: Compare speeds. Let be the slowest speed in . Machines in are at least that fast, and those in at most that fast. So , i.e. .
Step 5: Solve. . So .
∎
Matching lower bound
TheoremTheorem 20.9 — PoA
For every there is an instance with tasks and a pure equilibrium with cost .
ExampleThe layered construction
Let . Build groups :
| Group | # machines | speed | tasks per machine (weight) | load |
|---|---|---|---|---|
| tasks of weight |
Fits in machines: , using . Spare machines get speed 1 and no tasks.
It’s an equilibrium. A task in pays .
- Moving to with : load already , so no gain.
- Moving to with : new load , using .
- Spare machines behave like (load ).
Its cost is .
OPT . Shift each group’s tasks down one level. holds tasks, so each machine of gets exactly one task, of weight on speed : load 2.
graph LR GQ["G_q: q tasks each, load q"] -->|"OPT shifts tasks down"| GQ1["G_q-1"] GQ1 -->|"shift down"| DOTS["..."] DOTS -->|"shift down"| G0["G_0: load 2 each in OPT"]
IntuitionWhy the construction is stable
Every task sits in a coordinated but locally optimal spot. Moving down to a slower group costs at least one more unit of load. The only way to balance is a coordinated shift of all tasks one level down, which no single agent can do.
Computing pure equilibria
On related machines, it is open whether a short sequence of improvement steps always exists, and whether one can be found efficiently. A centralized algorithm does work:
AlgorithmLPT (largest processing time first)
Insert tasks in nonincreasing weight order, each on a machine minimizing its cost at insertion time.
TheoremTheorem 20.10 — LPT outputs a pure equilibrium
On uniformly related machines, LPT computes a pure Nash equilibrium.
ProofInduction on insertions; later tasks are lighter
Suppose the partial assignment of tasks is an equilibrium. Task joins machine . Only tasks already on could become unhappy. Let be one of them. With loads after inserting , and :
The first inequality holds because chose to minimize its cost. The right-hand side is ‘s cost of moving to , so stays satisfied.
∎
| Algorithm | Guarantee | Equilibrium? |
|---|---|---|
| LPT, identical | (Graham) | yes |
| LPT, related | (Friesen) | yes |
| PTAS (Hochbaum–Shmoys), related | not necessarily | |
| PTAS + Nashification (Feldmann et al.) | yes |
DefinitionNashification
Efficiently transform any assignment into a Nash equilibrium without increasing the makespan. Combined with the PTAS, it gives a -optimal pure equilibrium in polynomial time. (Exact optimum is NP-hard even on identical machines.)
Mixed equilibria, identical machines
Fully mixed equilibria and balls into bins
DefinitionFully mixed profile
Every agent puts positive probability on every machine. On identical machines, the unique fully mixed Nash equilibrium is .
For unit tasks on identical machines, (20.1) gives every agent the same expected cost on every machine, . This is exactly balls into bins (compare inefficiency-of-equilibria). The optimal makespan is .
PropositionProposition 20.11 — maximum occupancy
Throwing balls uniformly and independently into bins, the expected maximum occupancy is
| Regime | Expected max | Ratio to |
|---|---|---|
| , the worst case |
TheoremTheorem 20.12 — PoA , mixed, identical
With unit tasks, the fully mixed equilibrium has cost , while OPT .
The fully mixed Nash equilibrium conjecture is false
WarningMaximum randomization ≠ worst equilibrium
It is natural to guess that the fully mixed equilibrium, which randomizes the most, is always the worst. It isn’t.
ExampleCounterexample
, so and are integers.
- large tasks of weight 1.
- small tasks of weight .
Fully mixed equilibrium: large balls give per bin. About small balls give per bin, times weight , which is . So the makespan is .
Segregated equilibrium: large tasks uniform over group A (the first machines), small tasks uniform over group B (the rest).
- Large task: cost on A is ; on B it is . It prefers A.
- Small task: cost on B is ; on A it is . It prefers B.
So this is an equilibrium, with balls into bins in group A, giving makespan . That is a factor worse than the fully mixed equilibrium.
IntuitionWhy concentration beats spreading
Collisions hurt most when balls and bins are equal in number. The segregated equilibrium creates exactly that regime among the heavy tasks, while the fully mixed one drowns them in too many bins.
Upper bound
TheoremTheorem 20.13 — PoA , mixed, identical
Every mixed equilibrium on identical machines has .
The proof has two steps: (1) bound the maximum expected load; (2) show the expected maximum exceeds it by at most .
LemmaLemma 20.14 — weighted Chernoff bound
If are independent with values in and , then
NoteCited
See Mitzenmacher–Upfal (2005) for derivations.
ProofExpected loads are small, and tails are Chernoff-thin
Step 1: Maximum expected load. Adapt Theorem 20.5, with the lightest task having positive probability on a machine of maximum expected load, and expected loads throughout. This gives for all .
Step 2: Tail of one machine. Every task weighs at most opt. By Lemma 20.14,
Step 3: Pick the threshold. Let . For large , and , so
Step 4: Integrate with a union bound.
The key step: the machines each contribute a tail of beyond , so the union bound costs only an additive opt.
∎
Mixed equilibria, uniformly related machines
This case combines both effects: a layered speed structure and collisions. The combination costs only a little more.
TheoremTheorem 20.15 — PoA
Every mixed equilibrium on uniformly related machines has .
Setup. Normalize . Let .
- Layers with expected loads. Define prefixes as in Theorem 20.7 but using . The same recurrence gives . Set .
- Split each machine’s tasks. are tasks with , and are those with . Correspondingly .
DerivationHigh-probability tasks are deterministic-ish
This holds with certainty: each such task counts at most its expected contribution.
For we need Chernoff, which needs a weight bound. Group the machines as (and ), and let be the fastest speed in .
LemmaLemma 20.16 — speeds double every two layers
for .
ProofA light task on a deep layer would escape to
Step 1: A light task deep in the layers. Some task with has positive probability on a machine in . OPT must move expected load off , onto machines no faster than , and only light enough tasks fit there at load .
Step 2: Its equilibrium cost is , since it is in the support of a machine with expected load .
Step 3: If speeds didn’t double. Suppose . On the fastest machine of , whose expected load is , task would pay That contradicts equilibrium.
∎
LemmaLemma 20.17 — low-probability tasks are light
For : .
ProofCompare with a machine two layers up
Let . Since and ,
Case . If , then . But can go to the fastest machine for about : its expected load is , plus at most . This contradicts equilibrium.
Case . Let be the fastest machine of . By Lemma 20.16, , so . Equilibrium () gives :
∎
ProofTheorem 20.15 — assemble
Step 1: Chernoff for . Each summand lies in and , so .
Step 2: Threshold. Let . For large , the base is at most and at most . Together with , this gives
Step 3: Union bound and integrate. . (20.3)
Step 4: Combine.
∎
IntuitionWhy only more
The layering already caps expected loads at . Collisions then add a balls-into-bins factor. But with expected loads already that large (many balls per bin, in Proposition 20.11 terms), the extra factor is only .
TheoremTheorem 20.18 — matching lower bound
For every there is an instance with tasks and a mixed equilibrium with .
ProofRandomize the middle layer of the Theorem 20.9 construction
Step 1: Randomize one group. Take and , so . The tasks of (each of weight ) now pick a machine of uniformly. Everything else stays as in .
Step 2: Still an equilibrium. A randomized task expects on , and moving to another group costs (Theorem 20.9).
Step 3: Cost. OPT is still 2. The makespan is at least the maximum occupancy among ‘s machines: balls into bins. By Proposition 20.11,
since makes .
∎
Summary
ImportantTable 20.1 — price of anarchy of load balancing games
| Identical | Uniformly related | |
|---|---|---|
| Pure | ||
| Mixed |
All bounds are tight. Apart from pure/identical, the price of anarchy grows only sublogarithmically in . This gives a first game-theoretic explanation of why uncoordinated systems share resources fairly efficiently.
NoteOpen problems and directions
- Short improvement sequences on related machines. Does one always exist from every assignment, and can it be found efficiently? The author considers this central, since equilibria matter only if they are reached quickly.
- Other dynamics: strategic or coordinated rules, or evolutionary dynamics (Chapter 29), converging fast to exact or approximate equilibria.
- Richer models: realistic cost functions, other social costs.
- Coordination mechanisms (Christodoulou et al.): design machine scheduling policies so that selfishness hurts less. Simple policies cut the PoA from logarithmic to constant (see inefficiency-of-equilibria).
Quick reference
| Object | Statement | Note |
|---|---|---|
| Load | makespan | |
| Expected cost (20.1) | exceeds unless | |
| Props 20.1–20.2 | support ⊆ cost-minimizing machines | mixed / pure |
| Prop 20.3 | pure equilibria exist | sorted loads decrease lexicographically |
| PoS | improvement steps from OPT | |
| Example (2, 2, 1, 1) | OPT 3, worst pure 4, fully mixed 4.25 | mixed can be worse |
| Thm 20.5 | pure, identical: | tight (Exercise 20.2) |
| Thm 20.6 | max-weight best response: each agent moves at most once | min-weight: exponential |
| Thm 20.7 | pure, related: | |
| Lemma 20.8 | tasks on lie in under OPT | heavy tasks need fast machines |
| Thm 20.9 | matching lower bound | groups at speed |
| Thm 20.10 | LPT gives a pure equilibrium | related, identical |
| Nashification | any assignment → equilibrium, same makespan | + PTAS ⇒ |
| Fully mixed | , unique on identical machines | balls into bins |
| Prop 20.11 | max occupancy | worst at |
| Thm 20.12 | mixed, identical: | |
| FMNE conjecture | false | segregated large/small tasks |
| Lemma 20.14 | weighted Chernoff | |
| Thm 20.13 | mixed, identical: | opt, then Chernoff + union |
| Lemmas 20.16–20.17 | speeds double every 2 layers; for | |
| Thm 20.15 | mixed, related: | |
| Thm 20.18 | matching lower bound | randomize layer |
Facts to keep to hand
- Two independent sources of inefficiency. Coordinated but local: pure equilibria on related machines are local optima under single-task moves, and the layered speed structure costs . Uncoordinated collisions: mixed equilibria cost the balls-into-bins factor . Their combination costs only an extra .
- Every mixed upper bound has the same two steps. First bound the maximum expected load by rerunning the pure argument with expectations. Then bound expected maximum / maximum expected with a weighted Chernoff bound plus a union bound. The union bound is affordable because each machine’s tail beyond is .
- Chernoff needs a weight cap, and the cap comes from equilibrium. On identical machines it is . On related machines, tasks with are bounded deterministically, and those with are light () because Lemma 20.16’s doubling offers a cheaper machine two layers up.
- Every pure upper bound is “a light task would move.” Theorem 20.5: the lightest task on the busiest machine. Theorem 20.7 and Lemma 20.8: tasks on deep layers must be heavy relative to faster free machines, and that forces factorial growth of the layers.
- Your own weight is always on your machine. The term in (20.1) creates the example’s 4.25, keeps the segregated equilibrium stable, and makes randomized tasks in Theorem 20.18 pay .
- Maximum randomization is not the worst case. Concentrating equally many heavy balls and bins beats spreading everything.
- Order matters for best responses. Heaviest-first converges in steps on identical machines, lightest-first can take exponential time, and on related machines the question is open. Offline, LPT is heaviest-first by design and yields an equilibrium.
References
- Nisan, Roughgarden, Tardos, Vazirani, Algorithmic Game Theory — chapter 20 (Vöcking)