Approximate ranking from pairwise comparisons

Reinhard Heckel, Max Simchowitz, Kannan Ramchandran, Martin J. Wainwright

In modern machine learning applications, ranking a set of $n$ items based on pairwise comparisons is a fundamental task. Whether it is a recommendation system ordering movies or a search engine prioritizing web pages, the goal is often to identify the top-$k$ items. However, as the number of items grows, the cost of finding an exact top-$k$ list becomes prohibitively high. A study by Heckel et al. (AISTATS 2018) proposes a paradigm shift: by accepting a small, controlled amount of error, we can achieve massive gains in computational efficiency.

The Challenge of Exact Ranking

The difficulty in ranking arises from items with very similar quality. To distinguish between two items that are nearly identical, a large number of pairwise comparisons is required. In many practical scenarios, such as urban planning surveys or emotion-based image ranking, the exact order of items at the boundary of the top-$k$ set is less critical than the overall quality of the selected group.

The authors focus on Borda scores—the probability that an item beats a randomly chosen opponent—to define the true ranking. When these scores are close, standard algorithms struggle, leading to a sample complexity that scales poorly with the number of items.

Estimated Borda scores for the PlaNYC and GIF datasets, showing the distribution of item quality.

Hamming-LUCB: A Strategy for Approximation

To address this, the researchers introduced Hamming-LUCB, an active learning algorithm designed for approximate ranking. The "approximation" is defined by the Hamming distance: the algorithm seeks to find a set of $k$ items that differs from the true top-$k$ set by no more than $h$ elements.

The algorithm employs several key strategies:

  • Active Sampling: It adaptively selects pairs to compare based on current score estimates, focusing resources where they are most needed.
  • Confidence Bounds: By maintaining lower and upper confidence bounds for each item's score, the algorithm can determine which items are safely in the top-$k$ or bottom-$(n-k)$ sets.
  • The "Middle-Item" Skip: This is the core innovation. Hamming-LUCB identifies $k-h$ items that are definitely at the top and $n-k-h$ items that are definitely at the bottom. It effectively "gives up" on perfectly ordering the $2h$ items near the boundary, where the gaps are smallest and comparisons are most expensive.

Experimental Evaluation

The effectiveness of Hamming-LUCB was validated using real-world datasets, including PlaNYC (urban proposals) and a GIF dataset (emotional comparisons), as well as synthetic data. The results consistently showed that allowing a small Hamming error $h$ leads to a dramatic reduction in the number of required comparisons.

Number of comparisons required as a function of the allowed Hamming error h.

As shown in the figure above, the sample complexity is inversely proportional to the number of allowed mistakes. This "factor-of-$h$" speedup can transform a quadratic problem into a linear one, making large-scale ranking tasks feasible. For instance, in the PlaNYC dataset with 263 proposals, a small tolerance for error reduced the required comparisons by an order of magnitude.

Conclusion

The work by Heckel et al. demonstrates that exactness is often the enemy of efficiency in large-scale ranking. By mathematically formalizing the trade-off between accuracy (Hamming distance) and sample complexity, they provide a robust framework for active ranking. Their Hamming-LUCB algorithm is not only theoretically near-optimal but also practically superior to traditional elimination-based methods, offering a powerful tool for any application where "mostly right" is good enough.

Summary updated

BibTeX
@inproceedings{heckel2018approximate,
  author = {Reinhard Heckel and Max Simchowitz and Kannan Ramchandran and Martin J. Wainwright},
  title = {{Approximate ranking from pairwise comparisons}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2018},
  url = {https://openreview.net/forum?id=VhcL6nGC4JR},
}
Figure