Preference-based learning to rank

Nir Ailon, Mehryar MohriMachine Learning 2010 · DOI

Abstract

Learning to rank is a critical task in information retrieval and recommendation systems. While score-based methods are common, preference-based approaches offer greater flexibility by learning to compare pairs of items. However, these methods often face computational bottlenecks and theoretical challenges when dealing with non-transitive preferences. This paper presents a randomized reduction from ranking to binary classification using a modified QuickSort algorithm. By treating pairwise preferences as probabilities, the proposed method achieves an optimal $O(n \log n)$ time complexity and provides strong theoretical guarantees on the expected ranking loss.

Introduction

In the field of "Learning to Rank," researchers typically follow one of two paths: the score-based approach or the preference-based approach. The score-based approach assigns a numerical value to each item and sorts them accordingly. In contrast, the preference-based approach learns a function to compare two items and determine which is superior. While more flexible, the preference-based approach is notoriously difficult to optimize because real-world preferences are often "noisy" or non-transitive—for instance, a user might prefer item A to B, B to C, but C to A. Finding a linear ordering that minimizes misrankings in such scenarios is an NP-complete problem.

Methodology: The Randomized QuickSort Reduction

To bridge the gap between pairwise preferences and a final ranked list, this work proposes a two-stage reduction process:

  1. Learning Stage: A standard binary classifier is trained to serve as a preference function $h(u, v)$. This function outputs a value in the interval $[0, 1]$, representing the confidence or probability that item $u$ should be ranked above item $v$.
  2. Ranking Stage: The items are ordered using a randomized version of the classic QuickSort algorithm.

In a traditional QuickSort, an item is compared to a pivot and placed deterministically to its left or right. The "twist" in this approach is the use of the preference function's output as a probability. If $h(u, v) = 0.7$, there is a 70% chance that $v$ is placed to one side of the pivot $u$, and a 30% chance it is placed on the other. This stochastic element allows the algorithm to "smooth out" the inconsistencies found in non-transitive preference cycles.

Theoretical Insights

The Necessity of Randomization

The authors demonstrate that randomization is not merely a convenience but a theoretical necessity. They prove a lower bound showing that any deterministic algorithm will inevitably suffer from higher potential error when faced with inconsistent preferences. By incorporating randomness, the algorithm effectively approximates the "Feedback Arc Set" problem in tournaments—a known hard problem—within a fraction of the time.

Bipartite Ranking

The algorithm is particularly effective in bipartite ranking scenarios, where the goal is simply to separate "good" items from "bad" items. In these cases, the randomized reduction introduces zero additional regret over the performance of the base binary classifier, achieving an optimal theoretical bound.

Key Results and Complexity

Loss Bounds

The paper establishes rigorous bounds on the expected pairwise misranking loss. For general ranking tasks, the expected loss is at most twice the loss of the underlying binary classifier. In the specific case of bipartite ranking, this factor is reduced to one, representing the theoretical limit of performance.

Computational Efficiency

One of the most significant contributions of this work is its efficiency. The algorithm requires only $O(n \log n)$ calls to the preference function. This is a substantial improvement over previous state-of-the-art deterministic reductions, which typically required $O(n^2)$ calls. Furthermore, for applications like search engines where only the top $k$ results are required, the complexity can be further optimized to $O(k \log k + n)$, making it highly scalable for large datasets.

Limitations and Future Directions

While the paper provides a robust mathematical foundation, it focuses primarily on theoretical proofs rather than empirical benchmarks. Several areas remain for future exploration:

  • Variance Analysis: As a randomized algorithm, the performance on a single run may deviate from the expected loss. Future work could utilize concentration inequalities to bound this variance.
  • Empirical Validation: The current study lacks testing on high-dimensional, real-world datasets. Implementation in production environments would require careful calibration of the base classifier's confidence scores.
  • Tightening the Bound: While a factor of 2 bound is proven for general ranking, some slower, more complex algorithms have reached a 1.5 bound, suggesting that the theoretical analysis for QuickSort-based ranking might yet be refined.

Summary updated

BibTeX
@article{ailon2010preference,
  author = {Nir Ailon and Mehryar Mohri},
  title = {{Preference-based learning to rank}},
  journal = {Machine Learning},
  year = {2010},
  doi = {10.1007/s10994-010-5176-9},
}
Figure