Metric Search for Rank List Compatibility Matching with Applications

Wenqi Guo, Jeffrey UhlmannarXiv 2023 · DOI · arXiv

Abstract

Modern digital matching platforms often rely on superficial metrics or simple interaction histories, failing to capture the nuance of deep compatibility. This paper proposes a robust framework for matching users based on ranked preference lists using the Kendall-Tau distance. To overcome the computational bottlenecks of searching millions of profiles, we implement a Cascading Metric Tree (CMT) that utilizes the triangle inequality to prune the search space. Our evaluation on synthetic datasets of up to 2.5 million users demonstrates that this approach achieves sublinear scaling and maintains practical search times, offering a scalable solution for high-dimensional compatibility matching.

Introduction

In the era of big data, dating and social discovery applications face the challenge of providing meaningful matches within massive user bases. While simple filters are computationally inexpensive, they often overlook the complex, ranked nature of human preferences—such as favorite movies, sports, or values. Representing these preferences as ranked lists allows for a deeper comparison, but calculating the distance between a query user and every other profile in a database of millions is computationally prohibitive. This study investigates an efficient metric search strategy to enable real-time, deep compatibility matching.

Methodology

Kendall-Tau Distance

The core of our matching logic is the Kendall-Tau distance, a metric that measures the ordinal disagreement between two ranked lists. It specifically counts the number of pairwise swaps required to transform one list into another. For this application, we utilize a normalized version of the metric (scaled from 0 to 1), where 0 represents perfect agreement and 1 represents complete reversal. This provides a mathematically rigorous foundation for defining "compatibility."

Cascading Metric Tree (CMT)

To avoid the "brute-force" approach of checking every profile, we organize user data into a Cascading Metric Tree. Because the Kendall-Tau distance satisfies the triangle inequality, we can partition the population into hierarchical sets based on their distance from a central "root" node. During a search, the algorithm calculates the distance between the query user and the root; it then uses the triangle inequality to mathematically exclude (prune) entire branches of the tree that cannot possibly contain a match within the specified query radius ($r$).

Experimental Results

Scaling and the "Curse" of Dimensionality

We tested the CMT algorithm using synthetic datasets ranging from 5,000 to 2.5 million users, with list lengths ($len$) of 10, 15, 20, and 30 items. A critical finding was the impact of list length on search efficiency. As the length of the ranked lists increases, the objects in the metric space become more sparse, making them appear more unique. This phenomenon, often called the "curse of dimensionality," reduces the effectiveness of tree pruning.

Scaling of relative call counts across varying list lengths (Len=10, 15, 20, 30) and population sizes.

As shown in the figure above, the "Relative Number of Calls" (the ratio of distance calculations to total population) remains low for shorter lists but increases significantly as $len$ reaches 30. However, for practical list lengths (up to 20), the CMT consistently outperforms brute-force methods.

Performance and Efficiency

Crucially, the algorithm exhibits sublinear scaling. As the total population ($N$) grows, the relative computational cost of finding a match actually decreases. This suggests that the system becomes more efficient as the user pool expands, a vital characteristic for global-scale applications.

Search time performance as a function of results found (nFound) for a population of 2.5 million users (Len=20).

In our benchmarks, the algorithm successfully identified matches in a database of 2.5 million users in under 4 seconds on a single CPU core for lists of 20 items. For shorter lists (len=10), search times dropped to under 800ms, proving the feasibility of real-time deployment.

Discussion and Future Work

While the CMT provides a powerful tool for efficient searching, several areas for improvement remain. Currently, the "ball query" approach is static; if a user requires more matches, the search must be re-initiated. Future iterations could implement "Ring Queries" to allow for incremental results. Additionally, the researchers noted that users might rank low-priority items arbitrarily at the end of lists, introducing noise. Moving toward "Set Queries"—where users first select a subset of interests before ranking—may improve robustness.

Finally, while the mathematical efficiency of the Kendall-Tau distance is proven, its psychological correlation with long-term relationship success requires further empirical validation. Future work will involve interdisciplinary collaboration to bridge the gap between metric search efficiency and human compatibility outcomes.

Conclusion

This paper demonstrates that deep compatibility matching using ranked lists is computationally viable at scale. By combining the Kendall-Tau distance with a Cascading Metric Tree, we achieve sublinear search performance that can handle millions of users. This framework provides a scalable alternative to the superficial matching algorithms prevalent in modern social applications.

Summary updated

Abstract

As online dating has become more popular in the past few years, an efficient and effective algorithm to match users is needed. In this project, we proposed a new dating matching algorithm that uses Kendall-Tau distance to measure the similarity between users based on their ranking for items in a list. (e.g., their favourite sports, music, etc.) To increase the performance of the search process, we applied a tree-based searching structure, Cascading Metric Tree (CMT), on this metric. The tree is built on ranked lists from all the users; when a query target and a radius are provided, our algorithm can return users within the radius of the target. We tested the scaling of this searching method on a synthetic dataset by varying list length, population size, and query radius. We observed that the algorithm is able to query the best matching people for the user in a practical time, given reasonable parameters. We also provided potential future improvements that can be made to this algorithm based on the limitations. Finally, we offered more use cases of this search structure on Kendall-Tau distance and new insight into real-world applications of distance search structures.
BibTeX
@misc{guo2023metric,
  author = {Wenqi Guo and Jeffrey Uhlmann},
  title = {{Metric Search for Rank List Compatibility Matching with Applications}},
  year = {2023},
  eprint = {2303.11174},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2303.11174},
}
Figure