CSC2556 Lecture 5 Facility Location Stable Matching CSC2556 - - - PowerPoint PPT Presentation

β–Ά
csc2556 lecture 5 facility location
SMART_READER_LITE
LIVE PREVIEW

CSC2556 Lecture 5 Facility Location Stable Matching CSC2556 - - - PowerPoint PPT Presentation

CSC2556 Lecture 5 Facility Location Stable Matching CSC2556 - Nisarg Shah 1 Facility Location CSC2556 - Nisarg Shah 2 Apprx Mechanism Design 1. Define the problem: agents, outcomes, values 2. Fix an objective function (e.g., maximizing


slide-1
SLIDE 1

CSC2556 Lecture 5 Facility Location Stable Matching

CSC2556 - Nisarg Shah 1

slide-2
SLIDE 2

CSC2556 - Nisarg Shah 2

Facility Location

slide-3
SLIDE 3

Apprx Mechanism Design

CSC304 - Nisarg Shah 3

  • 1. Define the problem: agents, outcomes, values
  • 2. Fix an objective function (e.g., maximizing sum of

values)

  • 3. Check if the objective function is maximized

through a strategyproof mechanism

  • 4. If not, find the strategyproof mechanism that

provides the best worst-case approximation ratio

  • f the objective function
slide-4
SLIDE 4

Facility Location

CSC2556 - Nisarg Shah 4

  • Set of agents 𝑂
  • Each agent 𝑗 has a true location 𝑦𝑗 ∈ ℝ
  • Mechanism 𝑔

➒ Takes as input reports ව

𝑦 = (ΰ·€ 𝑦1, ΰ·€ 𝑦2, … , ΰ·€ π‘¦π‘œ)

➒ Returns a location 𝑧 ∈ ℝ for the new facility

  • Cost to agent 𝑗 : 𝑑𝑗 𝑧 = 𝑧 βˆ’ 𝑦𝑗
  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 βˆ’ 𝑦𝑗
slide-5
SLIDE 5

Facility Location

CSC2556 - Nisarg Shah 5

  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 βˆ’ 𝑦𝑗
  • Q: Ignoring incentives, what choice of 𝑧 would

minimize the social cost?

  • A: The median location med(𝑦1, … , π‘¦π‘œ)

➒ π‘œ is odd β†’ the unique β€œ(n+1)/2”th smallest value ➒ π‘œ is even β†’ β€œn/2”th or β€œ(n/2)+1”st smallest value ➒ Why?

slide-6
SLIDE 6

Facility Location

CSC2556 - Nisarg Shah 6

  • Social cost 𝐷 𝑧 = σ𝑗 𝑑𝑗 𝑧 = σ𝑗 𝑧 βˆ’ 𝑦𝑗
  • Median is optimal (i.e., 1-approximation)
  • What about incentives?

➒ Median is also strategyproof (SP)! ➒ Irrespective of the reports of other agents, agent 𝑗 is best

  • ff reporting 𝑦𝑗
slide-7
SLIDE 7

Median is SP

CSC2556 - Nisarg Shah 7

No manipulation can help

slide-8
SLIDE 8

Max Cost

CSC2556 - Nisarg Shah 8

  • A different objective function 𝐷 𝑧 = max

𝑗

𝑧 βˆ’ 𝑦𝑗

  • Q: Again ignoring incentives, what value of 𝑧

minimizes the maximum cost?

  • A: The midpoint of the leftmost (min

𝑗

𝑦𝑗) and the rightmost (max

𝑗

𝑦𝑗) locations

  • Q: Is this optimal rule strategyproof?
  • A: No!
slide-9
SLIDE 9

Max Cost

CSC2556 - Nisarg Shah 9

  • 𝐷 𝑧 = max𝑗 𝑧 βˆ’ 𝑦𝑗
  • We want to use a strategyproof mechanism.
  • Question: What is the approximation ratio of

median for maximum cost?

  • 1. ∈ 1,2
  • 2. ∈ 2,3
  • 3. ∈ 3,4
  • 4. ∈ 4, ∞
slide-10
SLIDE 10

Max Cost

CSC2556 - Nisarg Shah 10

  • Answer: 2-approximation
  • Other SP mechanisms that are 2-approximation

➒ Leftmost: Choose the leftmost reported location ➒ Rightmost: Choose the rightmost reported location ➒ Dictatorship: Choose the location reported by agent 1 ➒ …

slide-11
SLIDE 11

Max Cost

CSC2556 - Nisarg Shah 11

  • Theorem [Procaccia & Tennenholtz, β€˜09]

No deterministic SP mechanism has approximation ratio < 2 for maximum cost.

  • Proof:
slide-12
SLIDE 12

Max Cost + Randomized

CSC2556 - Nisarg Shah 12

  • The Left-Right-Middle (LRM) Mechanism

➒ Choose min

𝑗

𝑦𝑗 with probability ΒΌ

➒ Choose max

𝑗

𝑦𝑗 with probability ΒΌ

➒ Choose (min

𝑗

𝑦𝑗 + max

𝑗

𝑦𝑗)/2 with probability Β½

  • Question: What is the approximation ratio of LRM

for maximum cost?

  • At most

(1/4)βˆ—2𝐷+(1/4)βˆ—2𝐷+(1/2)βˆ—π· 𝐷

=

3 2

slide-13
SLIDE 13

Max Cost + Randomized

CSC2556 - Nisarg Shah 13

  • Theorem [Procaccia & Tennenholtz, β€˜09]:

The LRM mechanism is strategyproof.

  • Proof:

1/4 1/4 1/2 1/4 1/4 1/2 2πœ€ πœ€

slide-14
SLIDE 14

Max Cost + Randomized

CSC2556 - Nisarg Shah 14

  • Exercise for you!

Try showing that no randomized SP mechanism can achieve approximation ratio < 3/2.

slide-15
SLIDE 15

CSC2556 - Nisarg Shah 15

Stable Matching

slide-16
SLIDE 16

Stable Matching

CSC2556 - Nisarg Shah 16

  • Recap Graph Theory:
  • In graph 𝐻 = (π‘Š, 𝐹), a matching 𝑁 βŠ† 𝐹 is a set of

edges with no common vertices

➒ That is, each vertex should have at most one incident

edge

➒ A matching is perfect if no vertex is left unmatched.

  • 𝐻 is a bipartite graph if there exist π‘Š

1, π‘Š 2 such that

π‘Š = π‘Š

1 βˆͺ π‘Š 2 and 𝐹 βŠ† π‘Š 1 Γ— π‘Š 2

slide-17
SLIDE 17

Stable Marriage Problem

CSC2556 - Nisarg Shah 17

  • Bipartite graph, two sides with equal vertices

➒ π‘œ men and π‘œ women (old school terminology )

  • Each man has a ranking over women & vice versa

➒ E.g., Eden might prefer Alice ≻ Tina ≻ Maya ➒ And Tina might prefer Tony ≻ Alan ≻ Eden

  • Want: a perfect, stable matching

➒ Match each man to a unique woman such that no pair of

man 𝑛 and woman π‘₯ prefer each other to their current matches (such a pair is called a β€œblocking pair”)

slide-18
SLIDE 18

Example: Preferences

CSC2556 - Nisarg Shah 18

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

≻ ≻

slide-19
SLIDE 19

Example: Matching 1

CSC2556 - Nisarg Shah 19

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Question: Is this a stable matching?

slide-20
SLIDE 20

Example: Matching 1

CSC2556 - Nisarg Shah 20

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

No, Albert and Emily form a blocking pair.

slide-21
SLIDE 21

Example: Matching 2

CSC2556 - Nisarg Shah 21

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Question: How about this matching?

slide-22
SLIDE 22

Example: Matching 2

CSC2556 - Nisarg Shah 22

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles

Yes! (Charles and Fergie are unhappy, but helpless.)

slide-23
SLIDE 23

Does a stable matching always exist in the marriage problem?

CSC2556 - Nisarg Shah 23

Can we compute it in a strategyproof way?

Can we compute it efficiently?

slide-24
SLIDE 24

Gale-Shapley 1962

CSC2556 - Nisarg Shah 24

  • Men-Proposing Deferred Acceptance (MPDA):
  • 1. Initially, no proposals, engagements, or matches are made.
  • 2. While some man 𝑛 is unengaged:

➒ π‘₯ ← 𝑛’s most preferred woman to whom 𝑛 has not

proposed yet

➒ 𝑛 proposes to π‘₯ ➒ If π‘₯ is unengaged:

  • 𝑛 and π‘₯ are engaged

➒ Else if π‘₯ prefers 𝑛 to her current partner 𝑛′

  • 𝑛 and π‘₯ are engaged, 𝑛′ becomes unengaged

➒ Else: π‘₯ rejects 𝑛

  • 3. Match all engaged pairs.
slide-25
SLIDE 25

Example: MPDA

CSC2556 - Nisarg Shah 25

Albert Diane Emily Fergie Bradley Emily Diane Fergie Charles Diane Emily Fergie Diane Bradley Albert Charles Emily Albert Bradley Charles Fergie Albert Bradley Charles = proposed = engaged = rejected

slide-26
SLIDE 26

Running Time

CSC2556 - Nisarg Shah 26

  • Theorem: DA terminates in polynomial time (at

most π‘œ2 iterations of the outer loop)

  • Proof:

➒ In each iteration, a man proposes to someone to whom

he has never proposed before.

➒ π‘œ men, π‘œ women β†’ π‘œ Γ— π‘œ possible proposals ➒ Can actually tighten a bit to π‘œ π‘œ βˆ’ 1 + 1 iterations

  • At termination, it must return a perfect matching.
slide-27
SLIDE 27

Stable Matching

CSC2556 - Nisarg Shah 27

  • Theorem: DA always returns a stable matching.
  • Proof by contradiction:

➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 1: 𝑛 never proposed to π‘₯

  • 𝑛 cannot be unmatched o/w algorithm would not terminate.
  • Men propose in the order of preference.
  • Hence, 𝑛 must be matched with a woman he prefers to π‘₯
  • (𝑛, π‘₯) is not a blocking pair
slide-28
SLIDE 28

Stable Matching

CSC2556 - Nisarg Shah 28

  • Theorem: DA always returns a stable matching.
  • Proof by contradiction:

➒ Assume (𝑛, π‘₯) is a blocking pair. ➒ Case 2: 𝑛 proposed to π‘₯

  • π‘₯ must have rejected 𝑛 at some point
  • Women only reject to get better partners
  • π‘₯ must be matched at the end, with a partner she prefers to 𝑛
  • (𝑛, π‘₯) is not a blocking pair
slide-29
SLIDE 29

Men-Optimal Stable Matching

CSC2556 - Nisarg Shah 29

  • The stable matching found by MPDA is special.
  • Valid partner: For a man 𝑛, call a woman π‘₯ a valid

partner if (𝑛, π‘₯) is in some stable matching.

  • Best valid partner: For a man 𝑛, a woman π‘₯ is the

best valid partner if she is a valid partner, and 𝑛 prefers her to every other valid partner.

➒ Denote the best valid partner of 𝑛 by 𝑐𝑓𝑑𝑒(𝑛).

slide-30
SLIDE 30

Men-Optimal Stable Matching

CSC2556 - Nisarg Shah 30

  • Theorem: Every execution of MPDA returns the β€œmen-
  • ptimal” stable matching: every man is matched to his

best valid partner.

➒ Surprising that this is a matching. E.g., it means two men

cannot have the same best valid partner!

  • Theorem: Every execution of MPDA produces the β€œwomen-

pessimal” stable matching: every woman is matched to her worst valid partner.

slide-31
SLIDE 31

Men-Optimal Stable Matching

CSC2556 - Nisarg Shah 31

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching.
  • Proof by contradiction:

➒ Let 𝑇 = matching returned by MPDA. ➒ 𝑛 ← first man rejected by 𝑐𝑓𝑑𝑒 𝑛 = π‘₯ ➒ 𝑛′ ← the more preferred man due to which π‘₯ rejected 𝑛 ➒ π‘₯ is valid for 𝑛, so (𝑛, π‘₯) part of stable matching 𝑇′ ➒ π‘₯β€² ← woman 𝑛′ is matched to in 𝑇′ ➒ We show that 𝑇′ cannot be stable because (𝑛′, π‘₯) is a

blocking pair.

slide-32
SLIDE 32

Men-Optimal Stable Matching

CSC2556 - Nisarg Shah 32

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching.
  • Proof by contradiction:

𝑇 𝑇′

π‘₯ 𝑛 𝑛′

X

π‘₯ 𝑛 𝑛′ π‘₯β€²

Not yet rejected by a valid partner β‡’ hasn’t proposed to π‘₯β€² β‡’ prefers π‘₯ to π‘₯β€² First to be rejected by best valid partner (π‘₯) Rejects 𝑛 because prefers 𝑛′ to 𝑛 Blocking pair

slide-33
SLIDE 33

Strategyproofness

CSC2556 - Nisarg Shah 33

  • Theorem: MPDA is strategyproof for men.

➒ We’ll skip the proof of this. ➒ Actually, it is group-strategyproof.

  • But the women might gain by misreporting.
  • Theorem: No algorithm for the stable matching

problem is strategyproof for both men and women.

slide-34
SLIDE 34

Women-Proposing Version

CSC2556 - Nisarg Shah 34

  • Women-Proposing Deferred Acceptance (WPDA)

➒ Just flip the roles of men and women ➒ Strategyproof for women, not strategyproof for men ➒ Returns the women-optimal and men-pessimal stable

matching

slide-35
SLIDE 35

Extensions

CSC2556 - Nisarg Shah 35

  • Unacceptable matches

➒ Allow every agent to report a partial ranking ➒ If woman π‘₯ does not include man 𝑛 in her preference

list, it means she would rather be unmatched than matched with 𝑛. And vice versa.

➒ (𝑛, π‘₯) is blocking if each prefers the other over their

current state (matched with another partner or unmatched)

➒ Just 𝑛 (or just π‘₯) can also be blocking if they prefer being

unmatched than be matched to their current partner

  • Magically, DA still produces a stable matching.
slide-36
SLIDE 36

Extensions

CSC2556 - Nisarg Shah 36

  • Resident Matching (or College Admission)

➒ Men β†’ residents (or students) ➒ Women β†’ hospitals (or colleges) ➒ Each side has a ranked preference over the other side ➒ But each hospital (or college) π‘Ÿ can accept π‘‘π‘Ÿ > 1

residents (or students)

➒ Many-to-one matching

  • An extension of Deferred Acceptance works

➒ Resident-proposing (resp. hospital-proposing) results in

resident-optimal (resp. hospital-optimal) stable matching

slide-37
SLIDE 37

Extensions

CSC2556 - Nisarg Shah 37

  • For ~20 years, most people thought that these

problems are very similar to the stable marriage problem

  • Roth [1985] shows:

➒ No stable matching algorithm is strategyproof for

hospitals (or colleges).

slide-38
SLIDE 38

Extensions

CSC2556 - Nisarg Shah 38

  • Roommate Matching

➒ Still one-to-one matching ➒ But no partition into men and women

  • β€œGeneralizing from bipartite graphs to general graphs”

➒ Each of π‘œ agents submits a ranking over the other π‘œ βˆ’ 1

agents

  • Unfortunately, there are instances where no stable

matching exist.

➒ A variant of DA can still find a stable matching if it exists. ➒ Due to Irving [1985]

slide-39
SLIDE 39

NRMP: Matching in Practice

CSC2556 - Nisarg Shah 39

  • 1940s: Decentralized resident-hospital matching

➒ Markets β€œunralveled”, offers came earlier and earlier, quality of

matches decreased

  • 1950s: NRMP introduces centralized β€œclearinghouse”
  • 1960s: Gale-Shapley introduce DA
  • 1984: Al Roth studies NRMP algorithm, finds it is really a version of DA!
  • 1970s: Couples increasingly don’t use NRMP
  • 1998: NRMP implements matching with couple constraints

(stable matchings may not exist anymore…)

  • More recently, DA applied to college admissions