MatchXplain: Analyzing Preferences, Explaining Outcomes, and Simplifying Decisions

Hadi Hosseini, Yubo Jing, Ronak SinghIJCAI 2025

Introduction

Matching markets, where two distinct groups such as students and schools or job seekers and employers are paired based on mutual preferences, are fundamental to modern resource allocation. While algorithms like Deferred Acceptance (DA) provide theoretical guarantees of stability, their real-world application often suffers from an "interpretability gap." Decision-makers frequently treat these algorithms as black boxes, receiving final pairings without understanding how input data nuances—such as incomplete lists or preference ties—influenced the final outcome.

Problem Statement

The complexity of real-world preference data often leads to trade-offs between fairness, stability, and economic efficiency. When preferences contain ties or are incomplete, the resulting matchings can vary significantly based on the chosen algorithm or tie-breaking rule. Without tools to analyze these inputs and visualize the consequences of algorithmic choices, social planners struggle to justify or refine matching outcomes. MatchXplain addresses this by providing an interactive platform that pulls back the curtain on algorithmic matching.

Methodology and Framework

MatchXplain employs a multi-stage framework designed to move from raw preference data to interactive, explainable outcomes.

Preference Analysis

Before the matching process begins, the system analyzes input data across three primary dimensions:

  1. Popularity: Utilizing adjusted Borda counts to account for ties and incomplete lists.
  2. Similarity: Applying Kendall tau distance, Principal Component Analysis (PCA), and hierarchical clustering to identify clusters of similar agent preferences.
  3. Tie Analysis: Introducing a "Tie Ratio" metric and the Louvain algorithm to detect groups of agents with similar desirability based on preference ties.

Matching Engine

The platform supports a library of standard and advanced algorithms, including Deferred Acceptance (DA) for stability, Kiraly’s Algorithm for 3/2 approximations in NP-hard scenarios with ties, and Top Trading Cycles (TTC) for Pareto optimality.

System Design and Layered Visualization

The core of MatchXplain is its layered visualization strategy, which follows the "overview first, zoom and filter, then details-on-demand" paradigm.

The MatchXplain framework utilizes a layered approach to visualize both preference data and matching solutions.

As shown in the figure above, the UI is split into two main visualization tracks:

  • Layered Preference Visualization: Provides an overview of preference data (Layer 1), detailed analysis of clusters (Layer 2), and individual agent analysis (Layer 3).
  • Layered Solution Visualization: Offers a high-level comparison of different matchings (Layer 1), details of specific matchings (Layer 2), and properties such as "blocking pairs" or "envy" for individual agents (Layer 3).

Key Insights

MatchXplain emphasizes that explainability must begin at the input stage. If a matching outcome appears unfair, the root cause often lies in the structure of the input data, such as highly clustered preferences. By offering a "menu" of solutions rather than a single "correct" match, the platform empowers human decision-makers to evaluate trade-offs—such as choosing a larger matching over a perfectly stable one—to meet specific policy objectives. Furthermore, by visualizing abstract concepts like "blocking pairs" through interactive bipartite graphs, the tool makes mathematical stability tangible for non-experts.

Conclusion and Future Work

MatchXplain bridges the gap between algorithmic theory and practical policy-making. While currently optimized for one-to-one matching, future iterations aim to support many-to-one scenarios (e.g., school choice with capacities) and dynamic preference adjustments. By integrating complex statistical tools into a user-friendly interface, MatchXplain transforms matching from a black-box process into a transparent, data-driven decision-making tool.

Summary updated

BibTeX
@inproceedings{hosseini2025matchxplain,
  author = {Hadi Hosseini and Yubo Jing and Ronak Singh},
  title = {{MatchXplain: Analyzing Preferences, Explaining Outcomes, and Simplifying Decisions}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.24963/ijcai.2025/1261},
}
Figure