Motivating Example: Stable peer review assignment at a research conference¶
The Social Perspectives Research Symposium receives five paper submissions and recruits five expert reviewers. Each paper must be assigned to exactly one reviewer.
To promote high-quality reviews, both authors and reviewers submit ranked preference lists:
- Each author ranks the reviewers based on perceived expertise, familiarity with the topic, and potential for constructive feedback.
- Each reviewer ranks the submissions based on interest, alignment with their research, and methodological fit.
The participants are:
- Authors: A1, A2, A3, A4, A5
- Reviewers: R1, R2, R3, R4, R5
For example:
- Author A1 has written a paper on representation in environmental activism and ranks R3, an expert in environmental sociology, as their top choice.
- Reviewer R2 specializes in healthcare policy and ranks submission A4 as their first choice due to its relevance.
- Author A5’s paper focuses on queer representation in contemporary fiction, and they rank R5 highly based on prior work in literature studies.
“R3’s expertise would be invaluable for my analysis.”
“A4’s topic fits directly with my current research.”
“R5’s previous reviews have been extremely helpful.”
The preferences of the authors are given in Table 1 and the preferences of the reviewers are given in Table 2.
The organizers aim to compute a stable matching: an assignment where no author-reviewer pair exists who would both prefer to be assigned to each other over their current assignments.
Table 2:Preference table for the reviewers
Reviewer | 1st | 2nd | 3rd | 4th | 5th |
---|---|---|---|---|---|
R1 | A3 | A1 | A5 | A4 | A2 |
R2 | A4 | A2 | A5 | A1 | A3 |
R3 | A1 | A5 | A2 | A3 | A4 |
R4 | A2 | A5 | A3 | A1 | A4 |
R5 | A5 | A3 | A4 | A1 | A2 |
Theory¶
Definition: Matching Game¶
A matching game of size is defined by two disjoint sets and or proposers and reviewers of size . Associated to each element of and is a preference map:
A matching is any bijection between and . If and are matched by we denote:
Example: Author Reviewer as a Matching Game¶
For Motivating Example: Stable peer review assignment at a research conference the matching game has size , the set of proposers the set of reviewers and the preference maps:
One potential mapping is given by:
Definition: a blocking pair¶
A pair is said to block a matching if but prefers to and prefers to .
Example: Blocking pair for the author reviewer game¶
In (4) the pair is a blocking pair as prefer to and prefers to .
Definition: a stable matching¶
A matching with no blocking pair is said to be stable.
Example: A stable matching for the author reviewer game¶
The following is a stable matching for Motivating Example: Stable peer review assignment at a research conference:
Definition: The Gale-Shapley algorithm¶
Here is the Gale-Shapley algorithm, which gives a stable matching for a matching game:
- Assign every and to be unmatched
- Pick some unmatched , let be the top of ’s preference list:
- If is unmatched set
- If is matched:
- If prefers to then set
- Otherwise remains unmatched and remove from ’s preference list.
- Repeat step 2 until all are matched.
Theorem: Unique matching as output of the Gale Shapley algorithm¶
All possible executions of the Gale-Shapley algorithm yield the same stable matching and in this stable matching every suitor has the best possible partner in any stable matching.
Proof¶
Suppose that an arbitrary execution of the algorithm gives and that another execution gives such that such that prefers to .
Without loss of generality this implies that during must have rejected . Suppose, again without loss of generality that this was the first occasion that a rejection occured during and assume that this rejection occurred because . This implies that has no stable match that is higher in 's preference list than (as we have assumed that this is the first rejection).
Thus prefers to so that blocks . Each suitor is therefore matched in with his favorite stable reviewer and since was arbitrary it follows that all possible executions give the same matching.
Example: Application of the Gale-Shapley algorithm to the author reviewer game¶
We start by assigning and to be unmatched.
We pick which has , the top of the preference list is so we set:
We now pick which has , the top of the preference list is so we set:
We now pick which has , the top of the preference list is so we set:
We now pick which has , the top of the preference list is but is matched (). We have so prefers then their current matching. So we set:
We now pick (for the second time) which has , the top of the preference list is but is matched and prefers their current matching so we remove it from ’s preference list:
We could pick any unmatched reviewer, we will pick again (for the third time), has preference list , the top of the preference list is so we set:
We now pick , the final unmatched reviewer, which has , the top of the preference list is so we set:
Theorem: Reviewer sub optimality of the Gale Shapley Algorithm¶
In a suitor-optimal stable matching each reviewer has the worst possible matching.
Proof¶
Assume that the result is not true. Let be a suitor-optimal matching and assume that there is a stable matching such that such that prefers to . This implies that blocks unless prefers to which contradicts the fact the has no stable match that they prefer in .
Exercises¶
Exercise: Application of the Gale Shapley Algorithm¶
Obtain stable suitor optimal and reviewer optimal matchings for the games shown:
Exercise: Uniqueness with a single reviewer preference list¶
Consider a matching game where all reviewers have the same preference list. Prove that there is a single stable matching.
Programming¶
The python Matching library Wilde et al., 2020 implements the Gale-Shapley algorithm as well as a number of other algorithms for different generalisations of matching games.
import matching
import matching.games
authors = [
matching.Player("A1"),
matching.Player("A2"),
matching.Player("A3"),
matching.Player("A4"),
matching.Player("A5"),
]
reviewers = [
matching.Player("R1"),
matching.Player("R2"),
matching.Player("R3"),
matching.Player("R4"),
matching.Player("R5"),
]
A1, A2, A3, A4, A5 = authors
R1, R2, R3, R4, R5 = reviewers
A1.set_prefs((R3, R1, R4, R5, R2))
A2.set_prefs((R2, R4, R3, R5, R1))
A3.set_prefs((R5, R2, R3, R1, R4))
A4.set_prefs((R2, R3, R5, R1, R4))
A5.set_prefs((R5, R3, R4, R2, R1))
R1.set_prefs((A3, A1, A5, A4, A2))
R2.set_prefs((A4, A2, A5, A1, A3))
R3.set_prefs((A1, A5, A2, A3, A4))
R4.set_prefs((A2, A5, A3, A1, A4))
R5.set_prefs((A5, A3, A4, A1, A2))
game = matching.games.StableMarriage(authors, reviewers)
game.solve()
Notable Research¶
The original Gale-Shapley algorithm was presented in Gale & Shapley, 1962, a rigorous combinatorial treatment of the algorithm is given in Knuth, 1976. Some refinements to the algorithm are given in Gusfield & Irving, 1989 which is considered to be the reference text on matching games.
In the original paper Gale & Shapley, 1962 Gale and Shapley present the so called hospital-resident matching problem which is a matching problem aiming to match many to one. They do so in the context of College admissions in North America. In Roth, 1984 presents the problem in the context of hospital resident assignement. Further to this, Roth considered the problem of kidney exchange in Roth et al., 2004 as a further matching problem.
In 2012, Lloyd Shapley and Alvin Roth were awarded the Nobel Prize in Economic Sciences for their contributions to stable matching and market design. David Gale, who co-authored the foundational 1962 paper introducing the Gale-Shapley algorithm, was ineligible for the award, having passed away in 2008.
Conclusion¶
In this chapter we introduced the theory of matching games, motivated by the practical problem of assigning reviewers to papers at a research conference. The central concept of stability ensures that no pair of participants would prefer to deviate from the assignment, making stable matchings attractive in many real-world settings.
The Gale-Shapley algorithm provides an elegant and efficient solution to the stable matching problem, always producing a suitor-optimal stable matching. While stable matchings always exist in the one-to-one setting, extensions to many-to-one settings (such as hospital-resident assignments) preserve many of the desirable properties of the original algorithm.
A summary of key concepts introduced in this chapter is given in Table 3.
Table 3:Summary of key concepts in matching games
Concept | Description |
---|---|
Matching Game | A game where two disjoint sets have preferences over each other |
Stable Matching | A matching with no blocking pairs |
Blocking Pair | A pair who would both prefer to be matched to each other over their current assignments |
Gale-Shapley Algorithm | An algorithm that produces a stable matching by iteratively proposing and accepting/rejecting proposals |
Suitor-optimality | The property that each suitor receives the best possible partner across all stable matchings |
Reviewer-pessimality | The property that in suitor-optimal matchings, each reviewer receives the worst acceptable partner |
- Wilde, H., Knight, V., & Gillard, J. (2020). Matching: A python library for solving matching games. Journal of Open Source Software, 5(48), 2169.
- Gale, D., & Shapley, L. S. (1962). College admissions and the stability of marriage. The American Mathematical Monthly, 69(1), 9–15.
- Knuth, D. E. (1976). Mariages stables et leurs relations avec d’autres problèmes combinatoires. Les Presses de l’Université de Montréal.
- Gusfield, D., & Irving, R. W. (1989). The stable marriage problem: structure and algorithms. MIT press.
- Roth, A. E. (1984). The Evolution of the Labor Market for Medical Interns and Residents: A Case Study in Game Theory. Journal of Political Economy, 92(6), 991–1016.
- Roth, A. E., Sönmez, T., & Ünver, M. U. (2004). Kidney Exchange. Quarterly Journal of Economics, 119(2), 457–488.