Modelcore
Load balancing game
Also called KP model, Koutsoupias-Papadimitriou model, selfish load balancing.
Selfish jobs choose machines to minimize their own load, and the social cost is the makespan. It is the first model of the price of anarchy.
The load balancing game is the model in which Koutsoupias and Papadimitriou first measured the price of anarchy, in 1999. Jobs are players, each job chooses a machine, and each job wants its machine to finish early. The social cost is the makespan, the finishing time of the busiest machine. This page defines the model and lists what is known about its equilibria; the page price of anarchy of load balancing states and proves the bounds on how bad the equilibria can be.
Throughout, is the number of machines and is the number of jobs, which are the players. This is a cost game: each job minimizes its cost.
The machine
Machines and jobs. There are machines and jobs . Four machine environments are studied, the same as in scheduling (machine environments):
| environment | data | time of job on machine |
|---|---|---|
| identical | weights | |
| related | weights , speeds | |
| restricted assignment | weights , allowed sets | if , else not allowed |
| unrelated | times |
Pure strategies. Job chooses one machine . A profile is a schedule. The load of machine is , with for related machines and for identical ones. The cost of job is the load of its machine, : all jobs on a machine finish together, at the end. A pure Nash equilibrium is a schedule in which no job can move to a machine whose load, with the job added, is smaller:
Mixed strategies. Job chooses machine with probability , independently of the other jobs. Its expected cost on machine is
A mixed profile is a Nash equilibrium if every machine with minimizes over . A mixed best response has its support inside the set of pure best responses, so it is enough to check the pure choices of each job.
Social cost. The social cost of a schedule is the makespan . For a mixed profile it is the expected makespan , the expectation of a maximum, which is not the maximum of the expected loads.
What it counts
The model measures the loss caused by selfish choice:
- the price of anarchy, the largest ratio of the makespan of an equilibrium to the optimal makespan, for pure or for mixed equilibria (Koutsoupias and Papadimitriou called it the coordination ratio);
- the price of stability, the same ratio for the best equilibrium;
- the time to compute a pure equilibrium, and the number of moves that selfish jobs make before they reach one.
The optimum is the optimum of makespan minimization on the same machines, which is NP-hard even for 2 identical machines.
Relation to other models
- Congestion games. A load balancing game is a weighted atomic congestion game in which each strategy is a single resource and the cost of a resource is its load. With unit weights it is a singleton congestion game with . But the social cost here is the maximum cost, not the sum, so the results for the sum, such as the bound of the smoothness framework, do not apply.
- Selfish routing. Koutsoupias and Papadimitriou phrased the model as traffic on parallel links from a source to a sink. If the jobs are many and tiny, the model becomes the nonatomic selfish routing model on parallel links with linear latencies . There every Wardrop equilibrium balances the loads, so its makespan is optimal; the loss in the atomic model comes from the size of the jobs.
- Scheduling. A pure equilibrium on identical machines is a schedule that no single move of one job improves for that job. Such schedules are local optima of makespan minimization for the move of one job. List scheduling can end in a schedule that is not an equilibrium, but longest processing time first always ends in one (below).
- Mechanism design. In truthful scheduling on unrelated machines the machines are the selfish agents and the jobs are assigned by a mechanism. Here the jobs are the agents.
Known results in the model
Each item below is a theorem unless it says otherwise.
Pure equilibria exist in all four environments. Sort the loads of a schedule in decreasing order and call it the load vector. Suppose job moves from machine to machine and gains, so . Machine loses load, and the new load of is below the old load of . Both changed entries are below the old , and no other entry changes. So the load vector decreases in lexicographic order. There are finitely many schedules, so every sequence of improving moves is finite and ends in a pure equilibrium (the game has the finite improvement property).
Longest processing time first gives a pure equilibrium on identical machines. Sort the jobs by and put each one on a machine of least load. Take any job on machine , and let be the last job put on . Then , and when was placed, had the least load, so is at most the final load of every machine . So , and job does not gain by a move. The algorithm takes time. Fotakis and coauthors (2002) gave a greedy algorithm of the same kind for related machines.
The price of stability is 1. Start from an optimal schedule and let jobs make improving moves. By the lexicographic argument, the largest load never increases, so the final equilibrium is also optimal. This holds in all four environments.
The best and the worst equilibria are hard to compute. By the previous result, the best pure equilibrium has the optimal makespan, so computing it is as hard as makespan minimization. For 2 identical machines, the partition problem reduces to deciding whether the optimal makespan is half the total weight. Fotakis and coauthors also proved that computing the worst pure equilibrium is NP-hard.
Improving moves of unit jobs on identical machines. With , the potential is at most . A move from to with changes it by , because the loads are integers. So at most improving moves occur, in any order. Even-Dar, Kesselman and Mansour (2003) studied the number of moves for weighted jobs and other environments.
Price of anarchy. The bounds below are proved or cited on price of anarchy of load balancing.
| environment | pure equilibria | mixed equilibria |
|---|---|---|
| identical | ||
| related | ||
| unrelated | unbounded | unbounded |
For unrelated machines, take 2 machines and 2 jobs with , , and , for a small . The schedule with job 1 on machine 2 and job 2 on machine 1 has makespan 1. Each job would pay after a move, so it is an equilibrium. The optimum puts each job on its fast machine, with makespan , so the ratio is unbounded.
Example
Take identical machines and jobs of weights .
| schedule | loads | equilibrium? | makespan |
|---|---|---|---|
| 3, 3 | yes | 3 | |
| 4, 2 | yes | 4 | |
| 5, 1 | no | 5 |
In the second schedule, a job of weight 2 that moves pays , no less than now, and a job of weight 1 that moves pays . So it is an equilibrium, with makespan 4 against the optimum 3, the ratio . In the third schedule, a unit job on the first machine pays 5 and would pay after a move.
Now take 2 identical machines and 2 unit jobs, each of which picks a machine with probability . A job pays on either machine, so this mixed profile is an equilibrium. The makespan is 2 with probability and 1 with probability , so the expected makespan is , while the optimum and every pure equilibrium have makespan 1. Koutsoupias and Papadimitriou proved that is the worst ratio for 2 identical machines.
References
- Elias Koutsoupias and Christos Papadimitriou, Worst-case equilibria, STACS 1999, Lecture Notes in Computer Science 1563, 404-413, the model of selfish traffic on parallel links, the coordination ratio of the expected makespan, and the bound 3/2 for two identical links
- Noam Nisan, Tim Roughgarden, Eva Tardos and Vijay V. Vazirani (eds.), Algorithmic Game Theory, Cambridge University Press, 2007, Chapter 20, Berthold Vocking, Selfish load balancing (the model, the existence of pure equilibria, and the price of anarchy bounds)
- Dimitris Fotakis, Spyros Kontogiannis, Elias Koutsoupias, Marios Mavronicolas and Paul Spirakis, The structure and complexity of Nash equilibria for a selfish routing game, ICALP 2002; Theoretical Computer Science 410(36) (2009), a greedy algorithm that computes a pure equilibrium on related links, and the hardness of computing the best and the worst pure equilibrium
- Eyal Even-Dar, Alex Kesselman and Yishay Mansour, Convergence time to Nash equilibria, ICALP 2003, the number of steps of best and better response dynamics in load balancing games
- Artur Czumaj and Berthold Vocking, Tight bounds for worst-case equilibria, ACM Transactions on Algorithms 3(1) (2007), Article 4; SODA 2002, the tight bounds on the price of anarchy for identical and related machines
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag QE5Z2N Edit this page History Report an error Markdown