Modeladvanced
Divergence from randomness
Also called DFR framework.
Weights a term by how far its frequency in a document diverges from a random model, normalized for information gain and document length.
Divergence from randomness is a framework of term weights in which a term gets a high weight in a document when its frequency there would be very improbable if the occurrences of the term were spread over the documents at random. Amati and van Rijsbergen (2002) build each weight from three choices: a basic model of randomness, such as the Poisson distribution, whose improbability is measured in bits; a first normalization, the after effect, which discounts the gain once the term is known to occur; and a second normalization of the term frequency for document length. The choices give names such as PL2 and InL2, and InL2 is close to BM25 with and . The framework keeps the eliteness idea of the two-Poisson model with no parameter to fit for the basic models.
The machine
Statistics. For a term and a document : documents, occurrences of in the collection, documents that contain it, and the average length . All logs on this page are , so the weights are in bits.
The weight. Equations 1 and 3 of Amati and van Rijsbergen define
and the score is (equation 43). Three choices fill it in.
1. Second normalization: length. The raw is first mapped to a normalized frequency :
- H1 (equation 41): , a uniform density of the term over the document;
- H2 (equation 42): , a density that falls more slowly with length.
The paper introduces a free parameter later (equation 46), , and uses for TREC-10. The base form H2 is the case .
2. Basic model: . is the probability that a document gets occurrences of when the occurrences fall into the documents at random. With :
- P, Poisson (equation 6), with Stirling's formula for the factorial: ;
- G, the geometric limit of the Bose-Einstein model (equation 17): ;
- I(n), the tf-idf model (equation 19): ;
- I(ne) (equation 20): the same with replaced by the expected number of documents that contain , , and I(F) (equation 21) with in place of ;
- D, the divergence approximation of the binomial (equation 8), and BE, the Bose-Einstein model (equation 18).
3. First normalization: the after effect, . Once a term occurs in a document, more occurrences are less surprising. is the probability of one more occurrence, given of them, in the elite set of the term:
- L, Laplace's law of succession (equation 24): ;
- B, a ratio of two binomials (equation 27): .
Names. A model is named by its three letters: basic model, after effect, length normalization. PL2 is Poisson with Laplace and H2, InL2 is I(n) with Laplace and H2, and BB2 is Bose-Einstein with B and H2 (Table I of the paper).
A check on the paper's example. For the term "progress" Amati and van Rijsbergen take , and , so . Model P gives , then , then , which sum to 76.3296. The paper prints 76.3295.
Example on the toy collection. In the toy collection of the information retrieval pages, , , and every other document has 10 tokens. With H2 and , for one occurrence in , for one occurrence in a document of 10 tokens and for two. For q1 = "sorted array search" the values of are , and . In , for "search":
and , so the PL2 weight is 1.2300. The same steps give 0.8087 for "sorted" and 1.0150 for "array" in .
| rank | document | PL2 | InL2 |
|---|---|---|---|
| 1 | 3.0538 | 2.1750 | |
| 2 | 2.0555 | 1.3428 | |
| 3 | 1.7643 | 1.1759 | |
| 4 | 1.1755 | 0.9198 | |
| 5 | 0.7893 | 0.4977 |
For InL2 the I(n) factors are 1.0 for "sorted", 1.3626 for "array" and 1.8480 for "search", so in the weight is . On q2 = "posting list merge" InL2 ties and at 1.5980, like BM25, because it uses , and "list" and "merge" both have . PL2 separates them, 2.1505 above 1.9499, because it uses : "list" occurs 3 times in the collection ( holds it twice) and "merge" only 2 times, so one occurrence of "merge" is less likely by chance.
What it counts
- Information in bits. is the information content, in the sense of Shannon, of seeing occurrences under the random model. is the fraction of that information that counts as gain.
- Parameters. None for the basic models and the after effects, which use only , and . The length normalization H2 has in its later form, tuned for each collection.
- Statistics and cost. Each posting needs , each document its length, and each term and . Scoring reads the posting lists of the query terms, postings, as for BM25.
Relation to other models
- Two-Poisson model. The two-Poisson model fits two Poisson parts for each term, elite and non-elite. Divergence from randomness keeps one random part, fitted to the whole collection, and measures how far a document is from it. The after effect plays the role of the elite set: it is computed as if the document were already elite for the term.
- BM25. For InL2 the length and tf part is with . Amati and van Rijsbergen expand it (Section 6, equation 45) as about . That is the tf part of BM25 with and , so and . At and the exact value is 0.5392 and the approximation 0.5389. The paper also notes that the tf formula of the INQUERY system matches (equation 34).
- Tf-idf. The I(n) basic model is times an idf in bits, so InL2 is a tf-idf weight with a saturating tf part.
- Pivoted normalization. H2 is another length correction. It divides by a logarithm of the relative length, not by the straight line of pivoted normalization.
- Divergence measures. Model D approximates the binomial probability through the Kullback-Leibler divergence of the term's share of the document from its share of the collection.
Known results in the model
- InL2 approximates BM25. The expansion above (Amati and van Rijsbergen 2002, equation 45) shows that a weight derived from three independent choices with no tuned constant lands close to BM25 with and .
- The after effect is needed. Without it, the basic models grow at least linearly in . With L, the PL2 weight grows only like : for and no length normalization it is 0.7915 at , 2.6794 at and 5.8760 at . With I(n) and L the weight is bounded by the idf, as in BM25.
- A family of models. The paper evaluates many combinations of basic model, after effect and normalization on TREC collections, and its Table I names them. The Terrier search engine implements the framework, and PL2, InL2 and I(ne)B2 are among its standard models.
- Length parameter. The base form of H2 has no free parameter. The constant of equation 46 was added afterwards and is tuned for each collection.
References
- Gianni Amati and Cornelis Joost van Rijsbergen, Probabilistic models of information retrieval based on measuring the divergence from randomness, ACM Transactions on Information Systems 20(4), 357 to 389, 2002, the weight (1 - Prob2) times (-log2 Prob1) in equations 1 and 3; the basic models P, D, G, BE, I(n), I(ne) and I(F) in equations 6 to 21; the first normalizations L and B in equations 24 and 27; the second normalizations H1 and H2 in equations 41 and 42 and the parameter c in equation 46; the score of equation 43; the names of Table I; and the comparison with BM25 in Section 6, equation 45
- Stefan Buettcher, Charles L. A. Clarke and Gordon V. Cormack, Information Retrieval, Implementing and Evaluating Search Engines, MIT Press, 2010, Chapter 9 (language modeling and related methods, with divergence from randomness)
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 84Z020 Edit this page History Report an error Markdown