Problemcore
Rank aggregation
Also called ranking fusion, metasearch aggregation.
Combine several rankings of the same items into one consensus ranking that agrees with them as much as possible.
- Time
- O(n^3 + n^2 k) worst
- Where
- k = the number of input rankings; n = the number of distinct items
- Model
- Word RAM
Rank aggregation takes several rankings of the same items and builds one ranking that agrees with them as much as possible. In information retrieval the rankings are the result lists of several search systems, or of one system with several query versions, and the problem is also called data fusion or metasearch. The usual measure of agreement is the Kendall tau distance, and the ranking that minimizes the total distance is the Kemeny ranking, which is NP-hard to find. With the Spearman footrule in place of Kendall tau the optimum is found in polynomial time, and fast rules such as the Borda count, reciprocal rank fusion and CombMNZ are what systems use in practice.
In plain words
Several search engines, or several judges, each give us an ordered list of the same things, and the lists do not fully agree. We want one list that is a fair summary of all of them. One way to say what fair means: for each pair of things, look at which one each input list puts higher, and try to agree with as many lists as possible over all pairs. Finding the list that does this best is hard when there are many things. So in practice we use simple rules. We can give points by position and add them up. We can add the systems' own scores after we put them on a common scale. Or we can let a random walk move from worse to better items and see where it spends its time.
Definition
Input. A universe of items and input rankings . Each is a total order of a subset , best first; it is full if and partial otherwise, as a top 1000 list is. Some inputs also carry a real score for each ranked item.
Output. One total order of , or of its top part.
Question. Which agrees best with the inputs? The standard answer fixes a distance between rankings and asks for
With the Kendall tau distance , the number of pairs in opposite order, this is Kemeny optimal aggregation. With the footrule , the sum over items of the absolute difference of their positions, it is footrule optimal aggregation. For partial lists, Dwork, Kumar, Naor and Sivakumar count only the pairs, or items, that a list ranks.
Known complexity. Kemeny optimal aggregation is NP-hard for every even and every odd , and by two 2026 preprints also for and so for ; it can be solved in time. Footrule optimal aggregation of full rankings is an assignment problem and takes time. The positional and score rules take , where is the total length of the inputs. Any exact method must read all of the input, so is a lower bound.
Variants
- Rank-only or score fusion. Rank-only methods use the positions, so they work for systems whose scores have different scales. Score methods such as CombSUM and CombMNZ use normalized scores and keep the gaps between items.
- Full or partial lists. In metasearch, each engine returns only its top results, and an item missing from a list can mean "ranked low" or "never seen". Methods differ in how they treat it.
- Weighted inputs. Each list gets a weight, set by hand or learned on training queries. With training data the problem becomes supervised fusion, a form of learning to rank.
- Top part only. Only the first few positions of matter, as on a search results page.
- Winner only. In voting, only the top item is wanted, as in the Kemeny winner problem.
- Federated search. The lists come from different collections, so they rarely overlap. Merging them is part of federated search, where overlap-based rules such as CombMNZ help little.
Examples
Two runs on the toy collection. For the query "sorted array search", the BM25 list is and the second run of the collection gives , with scores 2.0, 2.0, 1.5, 1.0 and 1.0. The lists share documents 1, 2, 4 and 8, and they disagree only on the pair . The table shows the outputs of five methods and their Kendall cost, the number of pairs ranked by a list that the output puts in the other order, summed over the two lists.
| method | output | Kendall cost |
|---|---|---|
| Borda count, missing items share the last points | 4 | |
| reciprocal rank fusion, | 5 | |
| CombSUM, min-max scores | 1 | |
| CombMNZ, min-max scores | 3 | |
| MC4 Markov chain, | 1 |
The pair costs 1 for every output, so 1 is the least possible cost. An exhaustive search over the 720 orders finds exactly two with cost 1: and . They must put document 6 just below 1, because ranks it above 8, 2 and 4 and does not rank it, and document 7 just above 4. Borda and RRF give low points to an item that a list does not hold, so they push 6 and 7 down and break pairs that a list ranks. This is a choice about what a missing item means, not an error.
A majority winner that Borda misses. Five voters: three rank and two rank . A majority puts above each other item. The Kemeny ranking is with cost 4. Borda, with points 3, 2 and 1, gives 12, 11 and 7, so it returns , which costs 5.
Known algorithms
| algorithm | uses | guarantee for the Kendall objective | time |
|---|---|---|---|
| Borda count | ranks | ratio 5 on full lists | |
| Reciprocal rank fusion | ranks | none | |
| CombSUM and CombMNZ | scores | none | |
| Markov chain aggregation | pairwise majorities | none | for rounds |
| footrule optimal aggregation | positions | ratio 2 on full lists | |
| best input list | ranks | ratio 2 on full lists | |
| Kemeny by subset DP | pairwise counts | exact | |
| PTAS of Kenyon-Mathieu and Schudy | pairwise counts | ratio | polynomial for fixed |
The guarantees of the last four rows are proved on the Kemeny page. The first four rows have measured, not proved, quality as retrieval methods: Fox and Shaw, Lee, Aslam and Montague, and Cormack, Clarke and Büttcher each found that fusion often beats the best single input on TREC runs.
Local Kemenization. Any output can be improved by swapping adjacent items while the majority of the lists that rank both prefers the swap. Dwork, Kumar, Naor and Sivakumar showed that the result is locally Kemeny optimal and satisfies the extended Condorcet criterion: if a majority ranks every item of a set above every item outside , then all of comes first.
| Algorithm | Time | Space | Properties | Code |
|---|---|---|---|---|
| Borda count | O(n k + n log n) worst | O(n) extra | not comparison baseddeterministiciterative | 1 language |
| CombSUM and CombMNZ | O(N + n log n) worst | O(N) extra | not comparison baseddeterministiciterative | 1 language |
| Markov chain rank aggregation | O(n^2 k + n^2 t) worst | O(n^2 + n k) extra | not comparison baseddeterministiciterative | 1 language |
| Reciprocal rank fusion | O(N + n log n) worst | O(n) extra | not comparison baseddeterministiciterative | 1 language |
Bounds
Hardness. Kemeny optimal aggregation is NP-hard, already for four lists; see the Kemeny page for the precise results.
Footrule versus Kendall. Diaconis and Graham proved for full rankings. So the footrule optimum, which is polynomial, is within a factor 2 of the Kemeny optimum.
No perfect rule. For three or more items, Arrow's theorem shows that no rule that maps every profile of full rankings to a ranking can be at once unanimous, independent of irrelevant alternatives and not a dictatorship. Every method in the table gives up one of these properties; the Kemeny rule, for example, is not independent of irrelevant alternatives.
Reading the input. Every method that depends on all lists must read them, which costs time.
Reductions
- Kemeny to feedback arc set. The Kemeny problem is a weighted feedback arc set problem on the majority digraph, with the margins as weights.
- Footrule to assignment. Put item at position at cost ; a minimum cost perfect matching of items to positions is a footrule optimal ranking.
- Borda to mean position. On full lists, the Borda order is the order by mean position, and it minimizes the total squared difference of positions, as the Borda page proves.
- Markov chains to PageRank. The Markov chain methods compute a stationary distribution of a walk on items with a teleport step, as PageRank does on web pages.
Applications
- Metasearch. Merge the result lists of several search engines into one page, the setting of Dwork, Kumar, Naor and Sivakumar and of Aslam and Montague.
- Hybrid retrieval. Merge a lexical list such as BM25 with a dense retriever, often with reciprocal rank fusion, for example in retrieval-augmented generation.
- Query variants. Run several versions of a query and fuse the lists.
- Voting and judging. Combine the rankings of voters or judges, where the Kemeny and Borda rules come from.
- Evaluation. Combine the rankings of systems under several metrics or test collections into one leaderboard, and compare rankings with rank correlation.
References
- Cynthia Dwork, Ravi Kumar, Moni Naor and D. Sivakumar, Rank aggregation methods for the Web, Proceedings of the 10th International World Wide Web Conference (WWW10), 613-622, the problem of rank aggregation for metasearch with partial lists, Kemeny optimal and footrule optimal aggregation, the Markov chain methods and local Kemenization
- Javed A. Aslam and Mark H. Montague, Models for metasearch, Proceedings of the 24th Annual International ACM SIGIR Conference (SIGIR 2001), 276-284, metasearch with rank-based fusion, Borda-fuse, compared with score-based fusion on TREC runs
- Edward A. Fox and Joseph A. Shaw, Combination of multiple searches, The Second Text REtrieval Conference (TREC-2), NIST Special Publication 500-215 (1994), 243-252, the score-based combination rules CombSUM and CombMNZ
- Gordon V. Cormack, Charles L. A. Clarke and Stefan Büttcher, Reciprocal rank fusion outperforms Condorcet and individual rank learning methods, Proceedings of the 32nd Annual International ACM SIGIR Conference (SIGIR 2009), 758-759, reciprocal rank fusion and its comparison with Condorcet fusion and CombMNZ on TREC and LETOR 3
- Persi Diaconis and R. L. Graham, Spearman's footrule as a measure of disarray, Journal of the Royal Statistical Society, Series B 39(2) (1977), 262-268, the inequality between the Kendall tau distance and the Spearman footrule, K at most F at most 2K
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 9H0GWC Edit this page History Report an error Markdown