Deep Learning for Two-Sided Matching

Sai Srivatsa Ravindranath, Zhe Feng, Shira Li, Jonathan Ma, Scott Duke Kominers, David C. ParkesarXiv 2021

Deep Learning for Two-Sided Matching

Abstract

This paper explores the application of deep learning to the automated design of two-sided matching mechanisms. By developing differentiable surrogates for economic properties such as stability and strategy-proofness, the authors identify a new "efficient frontier" of mechanisms that outperform traditional theoretical baselines like Deferred Acceptance and Random Serial Dictatorship.

Introduction

In two-sided matching markets, such as school choice or medical residency programs, mechanism designers aim to satisfy two primary properties: stability and strategy-proofness (SP). Stability ensures no pair of participants would prefer each other over their assigned matches, while SP ensures no participant can benefit from misrepresenting their preferences. However, a fundamental impossibility result states that these two properties cannot be perfectly achieved simultaneously. Traditional mechanisms like Deferred Acceptance (DA) prioritize stability at the cost of SP, whereas Random Serial Dictatorship (RSD) is SP but often unstable. This research utilizes neural networks to discover novel mechanisms that navigate the trade-off between these competing objectives more effectively than existing theoretical solutions.

Methodology

The proposed approach represents a matching mechanism as a neural network $g^\theta$ that maps discrete preference profiles to a randomized matching matrix. Training this network requires overcoming the non-differentiable nature of economic constraints.

The authors introduce differentiable surrogates for stability and SP. For stability, they define a surrogate for "ex ante stability" (absence of justified envy) suitable for backpropagation. For SP, an adversarial learning framework is employed: during training, the system searches for the optimal misreport for each participant and penalizes the network if such a lie improves the participant's outcome according to First-Order Stochastic Dominance (FOSD).

Figure 1: Neural network architecture for two-sided matching, featuring custom normalization layers to ensure valid matching probabilities.

As illustrated in Figure 1, the architecture consists of a feed-forward network with hidden layers that map preference inputs ($p_{nm}, q_{nm}$) to scores. A critical component is the custom normalization block, which ensures the output is a valid "weakly doubly stochastic" matrix representing marginal match probabilities. The final output $r_{nm}$ is derived through a min-pooling operation over normalized score matrices to enforce consistency.

Experimental Setup

Due to the lack of large-scale public preference datasets, the study relies on synthetic simulations of $4 \times 4$ markets. Three preference structures were tested:

  1. Uncorrelated Preferences: Uniformly random sampling.
  2. Correlated Preferences: Biased toward a common quality ranking to simulate real-world consensus.
  3. Truncated Preferences: Agents only rank a subset of acceptable options.

Results and Discussion

The experimental results demonstrate that the learned mechanisms define a performance frontier that dominates convex combinations of traditional mechanisms (DA, RSD, and TTC). This indicates the discovery of "middle-ground" rules previously undescribed in economic theory.

As the weight for stability in the loss function increases, the learned mechanisms tend to converge toward the deterministic DA algorithm, validating the model's ability to recover known optimal structures. However, the results also highlight the difficulty of achieving both SP and Individual Rationality (IR), often resulting in lower overall welfare when SP is heavily prioritized.

Conclusion and Future Work

This work demonstrates the potential of automated mechanism design via deep learning. While currently limited by the computational cost of enumerating misreports in larger markets, future research could leverage continuous relaxations or attention-based architectures to improve scalability. Incorporating permutation equivariance could further refine the search space, leading to more robust and generalizable matching mechanisms.

Summary updated

BibTeX
@misc{ravindranath2021deep,
  author = {Sai Srivatsa Ravindranath and Zhe Feng and Shira Li and Jonathan Ma and Scott Duke Kominers and David C. Parkes},
  title = {{Deep Learning for Two-Sided Matching}},
  year = {2021},
  eprint = {2107.03427},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.03427},
}
Figure