Theoremcore
Probability ranking principle
Ranking by decreasing probability of relevance maximizes the expected sum of decreasing rank weights of relevant documents, when the relevance of a document does not depend on the others.
The probability ranking principle says that a retrieval system should rank the documents in decreasing order of their probability of relevance to the query. As a theorem it holds when the relevance of each document does not depend on the other documents shown, when the probabilities are exact, and when the user's utility adds a fixed, decreasing weight for each relevant document by rank. Then the sorted order maximizes the expected utility, by linearity of expectation and an exchange argument. It is the reason why the binary independence model and BM25 rank by an estimate of that probability, and it fails when documents repeat each other, which is the starting point of result diversification.
Statement
Fix a query and a finite set of documents. A ranking is a bijection , with the document at rank . The relevance of document is a random variable on a probability space that models what the system knows from its evidence.
Hypotheses.
- Relevance of each document is its own. depends on and the query only. It does not depend on which other documents the ranking shows, on their order, or on what the user has seen before . So the same variables serve for every ranking.
- Calibrated probabilities. The system knows exactly for each .
- Rank-linear utility. The utility of a ranking is with fixed weights that do not depend on the .
Theorem. Under hypotheses 1 to 3, every ranking with maximizes over all rankings . If the weights are strictly decreasing and the are distinct, is the only maximizer.
No statistical independence between the variables is needed. Hypothesis 3 covers:
- the number of relevant documents in the top , and so precision at : for and after;
- discounted cumulative gain with 0-1 gains: ;
- the cost model of Robertson and of Manning, Raghavan and Schuetze (Section 11.2.2), for a list of documents. Let be the cost of retrieving a non-relevant document and the cost of missing a relevant one. Up to a constant that does not depend on the ranking, the expected cost of the top is , which is the case for .
In plain words
Suppose that the system knows, for each document, the chance that the user will find it relevant, and that this chance does not change when the user has seen other documents. Suppose also that the user gains a fixed amount from each relevant document, and more for one near the top than for one further down. Then the best list puts the most probable document first, the next most probable second, and so on.
If two neighbors in a list are in the wrong order, swapping them moves the more probable one to the place that is worth more, and the expected gain can only go up. Any list can be sorted by such swaps, so the sorted list is the best one. The rule says nothing about how to find the chances. Models such as BM25 are ways to estimate them.
Proof
Fix a ranking . By linearity of expectation, which holds for any joint distribution of the ,
Hypothesis 1 lets us use the same , and so the same , for every ranking. Hypothesis 2 makes the true value.
Call a pair of ranks an inversion of if . If has an inversion, it has one at two adjacent ranks and , since otherwise . Let be with the documents at ranks and swapped. Only two terms of the sum change, so
because and . The swap removes exactly one inversion and creates none. So after at most swaps we reach a ranking with no inversion, that is, a sorted ranking, and the expected utility never went down. Two sorted rankings differ only in the order of documents with equal , and such documents give the same terms in the sum, so all sorted rankings have the same expected utility. Hence for every .
For uniqueness, let the be strictly decreasing and the distinct. Then a ranking has an adjacent inversion, and the swap above gives a strictly positive change. So is not a maximizer, and is the only one.
The same argument is the rearrangement inequality: a sum of products is largest when both sequences are sorted in the same order.
Consequences
- Rank by any increasing function of the probability. The proof uses only the order of the . A model may rank by the log-odds , or by any strictly increasing function of , and get the same ranking. The binary independence model and BM25 rank by such a function, estimated from term statistics.
- Where to stop needs the true values. With the costs and above, retrieving changes the expected cost by . A system that may choose how many documents to return should return exactly those with . This rule needs calibrated values, not only their order. It is the Bayes decision rule of a Bayes optimal classifier with these costs.
- Graded relevance. If the gain of is a random value in place of , the same proof shows that ranking by decreasing maximizes , so DCG with graded gains is maximized by sorting on the expected gain.
- Some nonlinear measures under statistical independence. If the are independent random variables, the probability that the top holds at least one relevant document is . This is largest when the top are the documents with the largest , so the sorted ranking is also optimal for this measure.
- Measures outside the theorem. Average precision, reciprocal rank and nDCG are not of the form of hypothesis 3: they divide by a random number of relevant documents or depend on products of the . The proof above does not cover them.
Tightness
Each hypothesis is needed. The clearest failure is a pair of duplicates.
Dependent relevance. Let and be two copies of one text, so always, with . Let be a different document with , independent of . The user wants one relevant document and reads two, so the utility is 1 if the top 2 holds a relevant document and 0 if not.
- The principle puts and first. The top 2 holds a relevant document exactly when , with probability 0.6.
- The ranking fails only when and , so it succeeds with probability .
Once the user has read , the copy adds nothing, so the value of depends on the document above it. This breaks hypothesis 1, and the utility is not of the form of hypothesis 3. Chen and Karger (2006) study such measures and rank greedily: each next document is the one most likely to be relevant given that the documents above it are not. Maximal marginal relevance, IA-Select and xQuAD are methods of this kind.
Uncalibrated probabilities. If the system ranks by estimates that are not in the order of the true , sorting by the estimates is optimal only for its own beliefs. With true values 0.6 and 0.5 and estimates 0.4 and 0.5, the system puts the second document first and its expected precision at 1 is 0.5 in place of 0.6. Gordon and Lenk (1992) list such failures of the assumptions together with the cases where the principle stays optimal.
Weights that increase. If , as for a user who skips the first result, the best ranking puts the second most probable document at rank 1. The order of the weights is what decides the order of the documents.
History
Maron and Kuhns proposed in 1960 to rank documents by a probability of relevance computed from weighted index terms. The classic statement of the principle as a rule for retrieval systems, with its justification under explicit assumptions and the discussion of a counterexample of Cooper, is the paper of Robertson (1977). The binary independence model of Robertson and Sparck Jones (1976) and the later Okapi weights are derived from it. Gordon and Lenk (1991, 1992) examined it from the point of view of decision theory. Chen and Karger (2006) and the work on diversification since then study the cases where the relevance of one document depends on the documents above it.
References
- Stephen E. Robertson, The probability ranking principle in IR, Journal of Documentation 33(4), 294 to 304, 1977, the statement of the principle, its justification under the stated assumptions, and the discussion of a counterexample due to Cooper, in which the documents cannot be judged one at a time
- Christopher D. Manning, Prabhakar Raghavan and Hinrich Schuetze, Introduction to Information Retrieval, Cambridge University Press, 2008, Chapter 11, Section 11.2 (the probability ranking principle, Section 11.2.1 for the 1/0 loss case and Section 11.2.2 for retrieval costs)
- Michael D. Gordon and Peter Lenk, When is the probability ranking principle suboptimal?, Journal of the American Society for Information Science 43(1), 1 to 14, 1992, the conditions under which ranking by probability of relevance is optimal for the user, and examples where it is not
- M. E. Maron and J. L. Kuhns, On relevance, probabilistic indexing and information retrieval, Journal of the ACM 7(3), 216 to 244, 1960, the ranking of documents by a probability of relevance computed from weighted index terms
- Harr Chen and David R. Karger, Less is more, probabilistic models for retrieving fewer relevant documents, Proceedings of SIGIR 2006, 429 to 436, metrics that reward one relevant document in the top k, for which ranking by probability of relevance is not optimal, and a greedy ranking that conditions on the documents above
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 | W4 complete |
|
Tag MKV8DT Edit this page History Report an error Markdown