The Complexity of Interactively Learning a Stable Matching by Trial and Error

Ehsan Emamjomeh-Zadeh, Yannai A. Gonczarowski, David Kempe

Abstract

In traditional market design, finding a stable matching typically requires full knowledge of participant preferences. This paper explores the complexity of learning a stable matching through an interactive "trial and error" process. We demonstrate that even with minimal feedback—receiving only a single blocking pair when a proposed matching is unstable—a stable matching can be identified in $O(n^2 \log n)$ queries for one-to-one markets and $O(n^3 \log n)$ for many-to-many markets.

Introduction

The Stable Matching Problem, famously introduced by Gale and Shapley in 1962, is a cornerstone of economic theory and mechanism design. However, the standard Gale-Shapley algorithm assumes a central planner possesses complete information regarding the preference rankings of all participants. In practice, eliciting these preferences is often a significant hurdle due to privacy concerns, the cognitive load on participants, and the sheer scale of the market.

This research shifts the focus toward an interactive learning paradigm. Instead of asking for full preference lists upfront, can a market designer converge to a stable matching simply by proposing solutions and receiving feedback on why they fail? This "trial and error" approach mirrors real-world scenarios where flaws in a proposed allocation are only revealed through the complaints of dissatisfied parties.

The Coarse Query Model

The authors formalize this process using a "coarse query model." In this setting, the learner (the market designer) proposes a complete matching. The environment (the market) responds in one of two ways:

  1. Success: The matching is stable.
  2. Failure: The environment provides a single blocking pair.

A blocking pair consists of two individuals who are not matched with each other but would both prefer to be together than with their current assignments. The challenge is that the environment is adversarial; it may choose the least informative blocking pair possible to slow down the learner's progress.

Algorithmic Framework: Speculative Preferences

The core strategy developed by the authors involves maintaining a set of constraints on the possible preference rankings of all participants. The algorithm proceeds in rounds:

  1. Constraint Maintenance: The algorithm tracks all information gathered from previous blocking pairs.
  2. Speculative Matching: The algorithm selects "speculative" preferences that are consistent with all current constraints. It then computes a stable matching based on these speculative preferences (using Gale-Shapley) and proposes it.
  3. Feedback Integration: If a blocking pair is returned, it provides a new constraint (e.g., "Person A prefers Person B over Person C"), narrowing the space of possible preference profiles.

To ensure the algorithm converges quickly, the speculative preferences must be "representative." The authors leverage Yu’s Proportional Transitivity Theorem to prove that a representative ranking can always be found such that any revealed blocking pair rules out a constant fraction of the remaining possible rankings.

Complexity Results

One-to-One Markets

For standard one-to-one markets (e.g., the classic stable marriage problem), the authors establish a deterministic query complexity of $O(n^2 \log n)$. This is nearly optimal, as they also prove a lower bound of $\Omega(n^2)$.

Furthermore, the authors address the computational challenge of finding representative rankings. By employing Huber’s algorithm for sampling linear extensions of a partial order, they provide a randomized algorithm that achieves the $O(n^2 \log n)$ query bound in polynomial running time.

Many-to-Many Markets

The problem becomes significantly more complex in many-to-many markets, such as firms hiring multiple workers. In this context, a blocking pair only indicates that a firm prefers a specific worker over at least one of its current employees, but it does not specify which one.

Despite this ambiguity, the authors prove a query complexity of $O(n^3 \log n)$ for arbitrary quotas. However, while the number of interactions remains polynomial, the computational task of finding the next speculative matching is potentially NP-hard. For markets with small or bounded quotas ($q$), they provide a more efficient algorithm with a complexity of $O(n^{q+2})$.

Discussion and Future Work

This work highlights a fascinating "query vs. computation" gap. While it is possible to learn a stable matching with a relatively small number of interactions, the internal processing required to choose those interactions can be intensive, particularly in many-to-many settings.

The authors identify a key open problem (Open Problem 1.6): the development of an interactive learning algorithm for many-to-many markets that is both query-efficient and computationally efficient for large quotas. This would require new techniques for sampling linear orders under "disjunctive" constraints—a frontier in algorithmic combinatorics.

Conclusion

By demonstrating that stable matchings can be learned through minimal, adversarial feedback, this research provides a theoretical foundation for more flexible and less information-intensive market design. It shows that "trial and error," when guided by sophisticated algorithmic principles, is a powerful tool for reaching equilibrium in complex economic systems.

Summary updated

BibTeX
@inproceedings{emamjomehzadeh2020complexity,
  author = {Ehsan Emamjomeh-Zadeh and Yannai A. Gonczarowski and David Kempe},
  title = {{The Complexity of Interactively Learning a Stable Matching by Trial and Error}},
  booktitle = {EC},
  year = {2020},
  url = {https://openreview.net/forum?id=TW5WV9XwVX},
}
Figure