Introduction
In modern Information Retrieval (IR) and Recommender Systems, the pursuit of accuracy has led to the adoption of increasingly complex ranking architectures. Among these, pairwise machine learning models—such as duoBERT—have emerged as a powerful tool. Unlike univariate models that score items in isolation, pairwise models compare pairs of items to determine a preference. While this approach captures nuanced relationships between candidates, it introduces a significant computational challenge: finding the absolute best item (the "champion") in a set of $n$ candidates typically requires a round-robin tournament, necessitating $O(n^2)$ comparisons.
As $n$ grows, the quadratic complexity becomes a bottleneck, particularly when the underlying model is a deep transformer. This paper presents an asymptotically optimal algorithm that reduces the required comparisons to $O(\ell n)$, where $\ell$ represents the number of matches lost by the champion.
The Challenge of Tournament Graphs
In a tournament graph, every pair of distinct nodes is connected by exactly one directed edge (an "arc"), representing the outcome of a comparison. The "champion," or Copeland winner, is the node with the highest out-degree—that is, the most wins.
In an ideal scenario where preferences are transitive (if A beats B and B beats C, then A beats C), finding the winner is trivial. However, real-world ML models often produce non-transitive results, creating cycles (e.g., A beats B, B beats C, and C beats A). In such "noisy" environments, standard knockout tournaments fail to guarantee the correct winner. To ensure finding the true Copeland winner, researchers previously relied on exhaustive $O(n^2)$ comparisons, which is often prohibitive for real-time applications like conversational search.
Theoretical Lower Bounds
The authors establish a theoretical foundation for the problem using adversarial arguments and Yao’s Lemma. They prove that any algorithm—whether deterministic or randomized—requires at least $\Omega(\ell n)$ comparisons to identify the champion, where $\ell$ is the number of losses sustained by that champion. This finding is significant because it shifts the complexity focus from the total population size $n$ to the relative "strength" of the winner. Interestingly, the authors also proved that randomization provides no asymptotic advantage over deterministic approaches for this specific problem.
The Proposed Algorithm: Multi-Life Elimination
The core contribution of this work is a deterministic algorithm that achieves the $O(\ell n)$ bound without prior knowledge of $\ell$.
Sequential Strategy
The algorithm employs an "exponential search" strategy. It begins by guessing a bound $\alpha$ for the number of losses a champion might have. It then conducts an elimination tournament where a candidate is removed only after it has lost $\alpha$ matches.
- If the winner of this round has fewer than $\alpha$ losses, the algorithm terminates, having found the champion.
- If the winner has $\alpha$ or more losses, the algorithm doubles the value of $\alpha$ and repeats the process.
This "oblivious" approach allows the algorithm to adapt to the specific characteristics of the tournament graph dynamically, ensuring correctness even in the presence of non-transitive cycles.
Parallel and Probabilistic Adaptations
To leverage modern hardware like GPUs, the authors introduced a batched version of the algorithm. This version maintains a pool of "alive" candidates and fills batches of size $B$ even as the pool shrinks, ensuring high throughput. Furthermore, the algorithm was extended to handle probabilistic outputs from ML models, defining the champion as the player who minimizes the expected number of losses.
Experimental Evaluation
The researchers evaluated their approach using the MS MARCO (Microsoft MAchine Reading COmprehension) dataset, focusing on a passage re-ranking task. The pipeline involved initial retrieval via BM25, followed by a monoBERT re-ranker, and finally a duoBERT pairwise model to identify the top passage from a pool of 30 candidates.
Key Findings
- Efficiency Gains: The algorithm achieved a 13x speedup for top-1 retrieval compared to a full round-robin tournament.
- Inference Reduction: While a full tournament for 30 candidates requires 870 model inferences, the proposed algorithm reached the same result in an average of just 65 inferences.
- Latency Impact: The time required for the final pairwise ranking stage dropped from approximately 57 seconds per query to just 4 seconds. This reduction makes the pairwise stage's overhead negligible relative to the preceding BERT stages.
- Accuracy Preservation: Because the algorithm is mathematically guaranteed to find the same champion as a full tournament, these speedups were achieved with zero loss in ranking accuracy.
Conclusion and Future Work
This work demonstrates that the quadratic bottleneck of pairwise ranking is not an insurmountable barrier. By parameterizing complexity by the champion's losses ($\ell$), the authors provide a path toward deploying sophisticated pairwise models in latency-sensitive environments.
While the algorithm is asymptotically optimal, its performance in "flat" tournament graphs—where many players have a similar number of losses—approaches $O(n^2)$. Future research may explore using scores from initial ranking stages (like monoBERT) to optimize the order of comparisons, potentially further reducing the constant factors in practical applications.
Summary updated