Modelcore
Query likelihood model
Also called language modeling approach to retrieval, Ponte-Croft model.
Ranks each document by the probability that a unigram language model estimated from it generates the query.
The query likelihood model ranks the documents of a collection for a query by , the probability that a language model estimated from document generates the words of . The model of each document is a unigram model: a probability for each word of the vocabulary, with no word order. Jay Ponte and Bruce Croft introduced this language modeling approach in 1998. The standard form today uses a multinomial model and a smoothing method, most often Jelinek-Mercer or Dirichlet prior smoothing, because the maximum likelihood estimate gives probability 0 to every query with a word that the document lacks. With smoothing the model reaches the effectiveness of BM25 and is the base of feedback models such as the relevance model.
The machine
Why the query probability. Bayes' theorem gives . The factor is the same for all documents, and with a uniform prior the ranking by is the ranking by . A prior that depends on the document, for example on its length or its link count, can be added as .
The document model. Let be the count of word in , the length of in tokens, the count of in the whole collection and the number of tokens of the collection. The maximum likelihood estimate is , and the collection model is . A query with count for word has, under the multinomial model with parameters ,
with natural logs. The multinomial coefficient of the query is the same for all documents and is left out.
Smoothing. A smoothed model gives a seen word , one with , the probability , and an unseen word the probability , where makes the probabilities sum to 1. Jelinek-Mercer smoothing uses and . Dirichlet smoothing uses and . Both formulas also hold for unseen words, since they give there.
The rank-equivalent form. Split the sum into seen and unseen words, and add and subtract for the seen ones. Then
The last sum does not depend on , so it can be dropped for ranking. The first sum runs only over the query words in , so it can be computed from the posting lists of the query words, as in any ranked retrieval system. Zhai and Lafferty used this form to explain what smoothing does.
The Bernoulli form. Ponte and Croft's original model is a multiple-Bernoulli model: each word of the vocabulary is present in the query or not, and . It ignores how often a word occurs in the query. The multinomial form above replaced it in most later work.
Walk-through on the toy collection. The toy collection has documents and tokens. For q1 = "sorted array search", is 5, 3 and 2, so is , and . Document 1, "binary search finds a key in a sorted array", has 9 tokens and holds each query word once. Document 2 holds "sorted" twice and "array" once, document 8 holds "sorted" and "array", document 7 holds "search" and document 4 holds "sorted"; each of these has 10 tokens. Documents 3, 5 and 6 hold no query word.
| document | 1 | 2 | 8 | 7 | 4 | 3, 5, 6 |
|---|---|---|---|---|---|---|
| maximum likelihood | -6.5917 | |||||
| Jelinek-Mercer, | -7.7210 | -9.0709 | -9.5486 | -10.1872 | -10.8388 | -11.7866 |
Without smoothing only document 1, which has all three words, gets a finite score: . With the order is , then the three documents with no query word, which all get the constant . In the rank-equivalent form, document 1 gets the weights 1.0136 for "sorted", 1.3676 for "array" and 1.6843 for "search", and . The rare word "search" has the largest weight, the common word "sorted" the smallest.
What it counts
- The score. A log probability, at most 0, for each document. Only the order matters. Scores for different queries are not on one scale, because longer queries have lower probabilities.
- Parameters. One smoothing parameter, for Jelinek-Mercer or for Dirichlet, tuned on judged queries. The statistics are , , and .
- Time. With the rank-equivalent form, postings, plus the length of each scored document for , plus the selection of the top results. Documents without any query word all get the same score, so they need not be scored.
- Space. One for each posting, one length per document and one per word, the same as for BM25.
Relation to other models
- Tf-idf. In the rank-equivalent form, the weight of a seen word grows with , like a tf factor, and falls with , like an idf factor; the term acts as a length correction. Smoothing with the collection model thus produces the three parts of a classic weighting from a probability model.
- BM25. BM25 comes from the probability ranking principle and a model of relevance, the query likelihood model from a model of the document. The two reach similar effectiveness on standard test collections, which is a measured result.
- Binary independence model. The binary independence model models how documents are generated given relevance and needs relevance information or a guess of it. The query likelihood model needs no relevance information but has no explicit notion of relevance, which feedback models such as the relevance model add back.
- KL divergence. Ranking by , the Kullback-Leibler divergence from a query model to the document model, gives plus a constant. With the maximum likelihood query model , this is , the same ranking. A better query model, estimated from feedback documents, then plugs into the same formula.
- Divergence from randomness. Divergence from randomness also compares the frequency of a word in a document with its frequency in the collection, but it scores the surprise of the count under a model of randomness, not a probability of the query.
Known results in the model
- Zero probabilities. Without smoothing, a document that lacks any query word scores , so the model behaves like a Boolean AND, as the toy table shows. A query word with gives to every document even with smoothing, as in q4 of the toy collection, so systems drop such words from the query or give them a small floor probability.
- Smoothing does idf and length normalization. This follows from the rank-equivalent form, as Zhai and Lafferty showed. With Jelinek-Mercer, is the same for all documents and the length correction disappears; with Dirichlet, is larger for short documents.
- Sensitivity to smoothing. Zhai and Lafferty measured on TREC collections that the results depend strongly on the smoothing parameter. With Jelinek-Mercer, short title queries did best with little smoothing, near 0.1, and long queries with much more, near 0.7. With Dirichlet smoothing, a of about 2000 worked well across collections. A two-stage method with estimated parameters came close to the best single setting. These are measurements, not theorems.
- Order on the toy collection. On q1 the ranking is the same for , 0.5 and 0.7. The documents differ in length by at most one token, so the length effects of Dirichlet smoothing are small there; the Dirichlet page shows one on q2 and uses a made-up pair of documents for a larger one.
References
- Jay M. Ponte and W. Bruce Croft, A language modeling approach to information retrieval, Proceedings of the 21st Annual International ACM SIGIR Conference (SIGIR 1998), 275-281, the language model of each document, the ranking by the probability of the query under it, and the multiple-Bernoulli form of that probability
- Chengxiang Zhai and John Lafferty, A study of smoothing methods for language models applied to information retrieval, ACM Transactions on Information Systems 22(2) (2004), 179-214, the general form of a smoothed document model with the coefficient alpha_d, the rank-equivalent score, and the comparison of Jelinek-Mercer, Dirichlet prior and absolute discounting smoothing on TREC collections
- Christopher D. Manning, Prabhakar Raghavan and Hinrich Schuetze, Introduction to Information Retrieval, Cambridge University Press, 2008, Chapter 12, Section 12.2 (the query likelihood model, the conjunctive behaviour of the maximum likelihood estimate, and the linear interpolation with the collection model)
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 5D98HN Edit this page History Report an error Markdown