Deep Policies for Online Bipartite Matching: A Reinforcement Learning Approach

Mohammad Ali Alomrani, Reza Moravej, Elias Boutros KhalilTMLR 2022

TL;DR

This paper introduces a Reinforcement Learning (RL) framework to learn optimal policies for online bipartite matching problems, moving beyond myopic or greedy approaches. By leveraging historical data, their deep learning models achieve a 3-10% improvement in matching quality compared to traditional baselines across various datasets.

What Problem Does This Paper Address?

The core challenge in online bipartite matching is making irrevocable assignment decisions in real-time when the future arrivals of entities are uncertain. Traditional algorithms often rely on myopic or greedy strategies, which can be suboptimal in scenarios where historical data reveals underlying patterns. This paper aims to bridge this gap by using RL to learn sophisticated matching policies that can exploit this historical information for better decision-making, especially in repeated matching scenarios.

Methods

The authors propose an end-to-end Reinforcement Learning framework. They formulate the online matching problem as a Markov Decision Process (MDP) and train neural network policies using RL. Key methodological contributions include:

  • Neural Network Architectures: They design several architectures, including Feed-Forward (ff), Feed-Forward with history (ff-hist), Invariant Feed-Forward (inv-ff), Invariant Feed-Forward with history (inv-ff-hist), and Graph Neural Networks (gnn-hist). These vary in their ability to incorporate historical information and handle graph size/permutation invariance.
  • Feature Engineering: Extensive features are engineered at the graph, node, and solution levels to provide rich context to the RL agent, going beyond simple edge weights.
  • RL Training: The REINFORCE algorithm is used for training, with a baseline to reduce gradient variance.
  • Supervised Baseline: For comparison, they also train a supervised version (ff-supervised) using behavior cloning.

Datasets

The authors evaluate their models on a combination of synthetic and real-world datasets:

  • Synthetic Datasets:
    • Erdos-Renyi (ER) graphs
    • Barabasi-Albert (BA) graphs
  • Real-World Datasets:
    • gMission: Derived from crowdsourcing data for worker-task assignment.
  • MovieLens: Based on user ratings for movie recommendation, used for Online Submodular Bipartite Matching.

They also create "var" versions of the real-world datasets where fixed nodes are re-sampled for each instance, testing robustness to changes in the underlying graph structure.

Key Insights and Ideas

  • History is Crucial: Models that incorporate historical information (e.g., ff-hist, inv-ff-hist) consistently outperform their history-less counterparts, highlighting the value of learning from past decisions and observations.
  • Invariance Matters: Architectures that are invariant to graph size and node permutation (e.g., inv-ff, inv-ff-hist) generalize better, especially when dealing with variations in the number of fixed nodes or their ordering.
  • RL Outperforms Supervised Learning: RL-based policies generally achieve better performance than supervised learning (behavior cloning), particularly in complex scenarios. This is attributed to RL's ability to learn sequential reasoning and recover from early suboptimal decisions, which supervised learning struggles with.
  • Greedy is a Strong Baseline, but Beatable: While greedy algorithms are surprisingly effective, especially in simpler settings, the learned RL policies demonstrate consistent improvements, particularly on graphs with strong structural patterns or when strategic skipping is beneficial.
  • Feature Engineering Enhances Performance: The inclusion of rich node and graph-level features significantly aids the RL agent in understanding the state and making better decisions.

Key Results

  • Improved Matching Quality: The proposed RL models achieve an average improvement of 3-10% in matching quality (optimality ratio) compared to classical baselines across various synthetic and real-world datasets.
  • Edge-Weighted Bipartite Matching (E-OBM): Models with history (ff-hist, inv-ff-hist) consistently outperform their history-less counterparts. inv-ff-hist shows strong performance on BA graphs due to their explicit patterns.
  • Online Submodular Bipartite Matching (OSBM): RL models significantly outperform greedy, with gnn-hist showing the best performance, leveraging user attributes as node features.
  • Transferability: Models trained on smaller graphs can transfer reasonably well to larger graphs, with invariant models showing better robustness.
  • Permutation Invariance: Non-invariant models' performance degrades significantly when fixed nodes are permuted, while invariant models remain largely unaffected.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while inv-ff-hist and gnn-hist are generally recommended, the "best" model can be problem-dependent.
  • For Adwords, a problem with budget constraints, the RL models struggled to significantly outperform greedy algorithms, possibly due to the negligible penalty for suboptimal actions in that specific setting.
  • The paper notes that while GNNs are powerful, their computational cost can be higher, especially for larger graphs.
  • Future Work:
    • Explore more advanced RL training algorithms beyond basic policy gradients.
  • Test on new real-world datasets with richer node and edge features, potentially benefiting GNNs further.
  • Extend the framework to other online combinatorial optimization problems.

Summary updated

BibTeX
@article{alomrani2022deep,
  author = {Mohammad Ali Alomrani and Reza Moravej and Elias Boutros Khalil},
  title = {{Deep Policies for Online Bipartite Matching: A Reinforcement Learning Approach}},
  journal = {Accepted by TMLR},
  year = {2022},
  url = {https://openreview.net/forum?id=mbwm7NdkpO},
}
Figure