2) combinatorial algorithms for traditional market models vijay v. vazirani

98
2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Upload: amanda-bruce

Post on 17-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

2) Combinatorial Algorithms for Traditional Market Models

Vijay V. Vazirani

Page 2: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Theorem: Equilibria exist.

Page 3: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Theorem: Equilibria exist.

Do markets operate at equilibria?

Page 4: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Theorem: Equilibria exist.

Do markets operate at equilibria?

Can equilibria be computed efficiently?

Page 5: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu is highly non-constructive

Page 6: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu is highly non-constructive

“Invisible hand” of the market: Adam Smith

Page 7: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu is highly non-constructive

“Invisible hand” of the market: Adam Smith

Scarf, 1973: approximate fixed point algs.

Convex programs: Fisher: Eisenberg & Gale, 1957Arrow-Debreu: Newman and Primak, 1992

Page 8: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Used for deciding tax policies, price of new

products etc.

New markets on the Internet

Page 9: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Algorithmic Game Theory

Use powerful techniques from modern algorithmic theory and notions from game theory to address issues raised by Internet.

Combinatorial algorithms for finding market equilibria.

Page 10: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Two Fundamental Models

Fisher’s model

Arrow-Debreu model,

also known as exchange model

Page 11: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Combinatorial Algorithms

Primal-dual schema based algorithms Devanur, Papadimitriou, Saberi & V., 2002

Combinatorial algorithm for Fisher’s model

Auction-based algorithmsGarg & Kapoor, 2004

Approximation algorithms.

Page 12: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Approximation

Find prices s.t. all goods clear

Each buyer get goods providing

at least optimal utility.(1 )

Page 13: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Primal-Dual Schema

Highly successful algorithm design

technique from exact and

approximation algorithms

Page 14: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Exact Algorithms for Cornerstone Problems in P:

Matching (general graph) Network flow Shortest paths Minimum spanning tree Minimum branching

Page 15: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Approximation Algorithms

set cover facility location

Steiner tree k-median

Steiner network multicut

k-MST feedback vertex set

scheduling . . .

Page 16: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Main new idea

Previous: problems captured via

linear programs

DPSV: nonlinear convex program

Eisenberg-Gale Convex Program, 1959

Page 17: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Fisher’s Model n buyers, with specified money, m(i) for buyer i k goods (unit amount of each good) Linear utilities: is utility derived by i

on obtaining one unit of j Total utility of i,

i ij ijj

U u xiju

]1,0[

x

xuuij

ijj iji

Page 18: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Fisher’s Model n buyers, with specified money, m(i) k goods (each unit amount, w.l.o.g.) Linear utilities: is utility derived by i

on obtaining one unit of j Total utility of i,

Find prices s.t. market clears

i ij ijj

U u xiju

xuu ijj iji

Page 19: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Can equilibrium allocations be captured via an LP?

Set of feasible allocations:

1

, 0

iji

ij

j x

i j x

Page 20: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Does equilibrium optimize a global objective function?

Guess 1: Maximize sum of utilities, i.e.,

Problem: and

are equivalent utility functions.

max ( ) maxi ij iji i j

u x u x

2 ( )iu x( )iu x

Page 21: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

However,

1i 1

1i 1

Maximize ( ) ( ) does not necessarily

maximize 2 ( ) ( )

1

, 0

i

i

iji

ij

u x u x

u x u x

j x

i j x

Page 22: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Guess 2: Product of utilities.

11

11

Maximize ( ) ( )

maximizes 2 ( ) ( )

1

, 0

ii

ii

iji

ij

u x u x

u x u x

j x

i j x

Page 23: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

However, suppose a buyer with $200 is

split into two buyers with $100 each

And same utility function.

Clearly, equilibrium should not change.

Page 24: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

However,

11

21

1

Maximize ( ) ( ) does not necessarily

maximize ( ) ( )

1

, 0

ii

ii

iji

ij

u x u x

u x u x

j x

i j x

Page 25: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Money of buyers is relevant.

Assume a utility function is written on

each dollar in market

Page 26: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Guess 3: Product of utilities over all dollars

( )Max ( )

1

, 0

m ii

i

iji

ij

u x

j x

i j x

Page 27: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Eisenberg-Gale Program, 1959

max ( ) log

. .

:

: 1

: 0

ii

i ij ijj

iji

ij

m i u

s t

i u

j

ij

u xx

x

Page 28: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Via KKT Conditions can establish:

Optimal solution gives equilibrium

allocations

Lagrange variables give prices of goods

Page 29: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

DPSV Algorithm

“primal” variables: allocations of goods

“dual” variables: prices

algorithm: primal & dual improvements

Allocations Prices

Page 30: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Buyer i’s optimization program:

Global Constraint:

Market Equilibrium

Page 31: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

People Goods

$100

$60

$20

$140

Page 32: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Prices and utilities

$100

$60

$20

$140

$20

$40

$10

$60

10

20

4

2

utilities

Page 33: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Bang per buck

$100

$60

$20

$140

$20

$40

$10

$60

10

20

4

2

10/20

20/40

4/10

2/60

Page 34: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Bang per buck

Utility of $1 worth of goods

Buyers will only buy goods providing

maximum bang per buck

Page 35: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Equality subgraph

$100

$60

$20

$140

$20

$40

$10

$60

10

20

4

2

10/20

20/40

4/10

2/60

Page 36: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Equality subgraph

$100

$60

$20

$140

$20

$40

$10

$60

Most desirable goods for each buyer

Page 37: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Any goods sold in equality subgraph make agents happiest

How do we maximize sales in equality subgraph?

Page 38: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Any goods sold in equality subgraph make agents happiest

How do we maximize sales in equality subgraph?

Use max-flow!

Page 39: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Max flow

100

60

20

140

20

40

10

60

infinite capacities

Page 40: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Idea of Algorithm

Invariant: source edges form min-cut

(agents have surplus)

Iterations: gradually raise prices,

decrease surplus

Terminate: when surplus = 0, i.e.,

sink edges also form a min-cut

Page 41: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Ensuring Invariant initially

Set each price to 1/n

Assume buyers’ money integral

Page 42: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

How to raise prices? Ensure equality edges retained

i

j

l

ij il

j l

u u

p p

Page 43: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

How to raise prices? Ensure equality edges retained

i

j

l

ij il

j l

u u

p p

• Raise prices proportionatelyj ij

l il

p u

p u

ij il

j l

u u

p p

Page 44: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

20x

40x

10x

60x

initialize: x = 1

x

Page 45: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

20x

40x

10x

60x

x = 2: another min-cut

x>2: Invariant violated

Page 46: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

40x

80x

20

120

active

frozenreinitialize: x = 1

Page 47: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

50

100

20

120

active

frozen x = 1.25

Page 48: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

50

100

20

120

Page 49: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

50

100

20

120

unfreeze

Page 50: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

50x

100x

20x

120x

x = 1, x

Page 51: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

m

buyers goods

Page 52: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

m p

buyers goods

ensure Invariant

Page 53: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

m p

buyers goodsequality

subgraph ensure Invariant

Page 54: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

m px

x = 1, x

Page 55: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

}{ S( )S

( ) ( ( ))x p S m S

Page 56: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

}{ S( )S

( ) ( ( ))x p S m S freeze S

tight set

Page 57: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

}{ S( )S

prices in S are market clearing

Page 58: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

x = 1, x

S( )S

active

frozen

px

Page 59: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

x = 1, x

S( )S

active

frozen

px

Page 60: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

x = 1, x

S( )S

active

frozen

px

Page 61: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

new edge enters equality subgraph

S( )S

active

frozen

Page 62: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

unfreeze component

active

frozen

Page 63: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

• All goods frozen => terminate

(market clears)

Page 64: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

• All goods frozen => terminate

(market clears)

• When does a new set go tight?

•Solve as parametric cut problem

Page 65: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Termination Prices in S* have denominators

Terminates in max-flows.

,nnU

max { }ij ijU u

2 2Mn

Page 66: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Polynomial time? Problem: very little price increase

between freezings

Page 67: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Polynomial time? Problem: very little price increase

between freezings

Solution: work with buyers having

large surplus

Page 68: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Max flow

100

60

20

140

20

40

10

60

Page 69: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

100

60

20

140

20

40

10

60

20

0

10

60

40

0

Max flow

Page 70: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

surplus(i) = m(i) – f(i)

100

60

20

140

20

40

10

60

20

0

10

60

40

0

40

60

20

70

Page 71: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

surplus(i) = m(i) – f(i)

100

60

20

140

20

40

10

60

20

0

10

60

40

0

40

60

20

70

Surplus vector = (40, 60, 20, 70)

Page 72: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Balanced flow

A max-flow that minimizes l2 norm of

surplus vector

tries to make surpluses as equal as possible

Page 73: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Algorithm

Compute balanced flow

Page 74: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

Active subgraph: Buyers with maximum surplus

Page 75: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

x = 1, x

px

Page 76: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

new edge enters equality subgraph

Page 77: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

Unfreeze buyers having residual path to

active subgraph

Page 78: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

Unfreeze buyers having residual path to

active subgraph

Do they have large surplus?

Page 79: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

f: balanced flow

R(f): residual graph

Theorem: If R(f) has a path from i to j then

surplus(i) > surplus(j)

Page 80: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

New set tight

Page 81: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

active

frozen

New set tight: freeze

Page 82: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Theorem: After each freezing, l2 norm of

surplus vector drops by (1 - 1/n2 ) factor.

Two reasons: total surplus decreasesflow becomes more balanced

Page 83: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Idea of Algorithm

algorithm: primal & dual improvements

measure of progress: l2-norm of surplus vector

Allocations Prices

Page 84: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Weak gross substitutability

Increasing price of one good cannot decrease

demand for another good.

Page 85: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Weak gross substitutability

Increasing price of one good cannot decrease

demand for another good.

=> never need to decrease

prices (dual variables).

Page 86: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Weak gross substitutability

Increasing price of one good cannot decrease

demand for another good.

=> never need to decrease

prices (dual variables).

Almost all primal-dual algs work this way.

Page 87: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Polynomial time

2 2( ( log log ))O n n U MnTheorem:

max-flow computations suffice.

Page 88: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Model

Approximate equilibrium algorithms:

Jain, Mahdian & Saberi, 2003:

Use DPSV as black box.

Devanur & V., 2003: More efficient, by

opening DPSV.

Page 89: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Garg & Kapoor, 2004Auction-based algorithm

Start with very low prices

Keep increasing price of good that is in demand

B has excess money. Favorite good: g Currently at price p and owned by B’

B outbids B’

Page 90: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

(1 )p

p

B 'B

p(1 )p

Outbid

Page 91: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Auction-based algorithm Go in rounds:

In each round, total surplus decreases by factor

Hence iterations suffice, M= total moneytotal money

1 2, ,... nB B B

(1 )

(1 )log M

Page 92: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Model

Start with all prices 1 Allocate money to agents (initial endowment) Perform outbid and update agents’ money

Page 93: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Model

Start with all prices 1 Allocate money to agents (initial endowment) Perform outbid and update agents’ money

Any good with price >1 is fully sold

Page 94: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Arrow-Debreu Model

Start with all prices 1 Allocate money to agents (initial endowment) Perform outbid and update agents’ money

Any good with price >1 is fully sold

Eventually every good will have price >1

maxmax

min minij

ij

uprice

price u

Page 95: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Garg, Kapoor & V., 2004:

Auction-based algorithms for

additively separable concave utilities

satisfying weak gross substitutability

Page 96: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Kapoor, Mehta & V., 2005:

Auction-based algorithm for

a (restricted) production model

Page 97: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani

Q: Distributed algorithm for equilibria?

Appropriate model?

Primal-dual schema operates via

local improvements

Page 98: 2) Combinatorial Algorithms for Traditional Market Models Vijay V. Vazirani