CSC304 Lecture 14 Mechanism Design w/o Money 2: Stable Matching - - PowerPoint PPT Presentation

β–Ά
csc304 lecture 14
SMART_READER_LITE
LIVE PREVIEW

CSC304 Lecture 14 Mechanism Design w/o Money 2: Stable Matching - - PowerPoint PPT Presentation

CSC304 Lecture 14 Mechanism Design w/o Money 2: Stable Matching Gale-Shapley Algorithm CSC304 - Nisarg Shah 1 Stable Matching Recap Graph Theory: In graph = (, ) , a matching is a set of edges with no common


slide-1
SLIDE 1

CSC304 Lecture 14

Mechanism Design w/o Money 2: Stable Matching Gale-Shapley Algorithm

CSC304 - Nisarg Shah 1

slide-2
SLIDE 2

Stable Matching

CSC304 - Nisarg Shah 2

  • 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-3
SLIDE 3

Stable Marriage Problem

CSC304 - Nisarg Shah 3

  • 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-4
SLIDE 4

Why ranked preferences?

CSC304 - Nisarg Shah 4

  • Until now, we dealt with cardinal values.

➒ Our goal was welfare maximization. ➒ This was sensitive to the exact numerical values.

  • Our goal here is stability.

➒ Stability is a property of the ranked preference. ➒ That is, you can check whether a matching is stable or not

using only the ranked preferences.

➒ So ranked information suffices.

slide-5
SLIDE 5

Example: Preferences

CSC304 - Nisarg Shah 5

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-6
SLIDE 6

Example: Matching 1

CSC304 - Nisarg Shah 6

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-7
SLIDE 7

Example: Matching 1

CSC304 - Nisarg Shah 7

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-8
SLIDE 8

Example: Matching 2

CSC304 - Nisarg Shah 8

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: What about this matching?

slide-9
SLIDE 9

Example: Matching 2

CSC304 - Nisarg Shah 9

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-10
SLIDE 10

Does a stable matching always exist in the marriage problem?

CSC304 - Nisarg Shah 10

Can we compute it in a strategyproof way?

Can we compute it efficiently?

slide-11
SLIDE 11

Gale-Shapley 1962

CSC304 - Nisarg Shah 11

  • Men-Proposing Deferred Acceptance (MPDA):
  • 1. Initially, no one has proposed, no one is engaged, and no one is

matched.

  • 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-12
SLIDE 12

Example: MPDA

CSC304 - Nisarg Shah 12

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-13
SLIDE 13

Running Time

CSC304 - Nisarg Shah 13

  • 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 β†’ at most π‘œ2 proposals

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

Stable Matching

CSC304 - Nisarg Shah 14

  • 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-15
SLIDE 15

Stable Matching

CSC304 - Nisarg Shah 15

  • 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-16
SLIDE 16

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 16

  • 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-17
SLIDE 17

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 17

  • Theorem: Every execution of MPDA returns the men-
  • ptimal stable matching in which every man is matched to

his best valid partner 𝑐𝑓𝑑𝑒 𝑛 .

➒ Surprising that this is even a matching. E.g., why can’t two

men have the same best valid partner?

➒ Every man is simultaneously matched with his best

possible partner across all stable matchings

  • Theorem: Every execution of MPDA produces the women-

pessimal stable matching in which every woman is matched to her worst valid partner.

slide-18
SLIDE 18

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 18

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

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

blocking pair.

slide-19
SLIDE 19

Men-Optimal Stable Matching

CSC304 - Nisarg Shah 19

  • 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-20
SLIDE 20

Strategyproofness

CSC304 - Nisarg Shah 20

  • Theorem: MPDA is strategyproof for men, i.e.,

reporting the true ranking is a weakly dominant strategy for every man.

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

  • But the women might want to misreport.
  • Theorem: No algorithm for the stable matching

problem is strategyproof for both men and women.

slide-21
SLIDE 21

Women-Proposing Version

CSC304 - Nisarg Shah 21

  • 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-22
SLIDE 22

Extensions

CSC304 - Nisarg Shah 22

  • 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-23
SLIDE 23

Extensions

CSC304 - Nisarg Shah 23

  • 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-24
SLIDE 24

Extensions

CSC304 - Nisarg Shah 24

  • For ~20 years, most people thought that these

problems are very similar to the stable marriage problem

  • Roth [1985]:

➒ No stable matching algorithm exists such that truth-

telling is a weakly dominant strategy for hospitals (or colleges).

slide-25
SLIDE 25

Extensions

CSC304 - Nisarg Shah 25

  • 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-26
SLIDE 26

NRMP: Matching in Practice

CSC304 - Nisarg Shah 26

  • 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