Techniquecore
Pseudo-relevance feedback
Also called blind relevance feedback.
Assumes the top documents of a first retrieval are relevant and expands the query with their terms, with no user input.
Pseudo-relevance feedback runs relevance feedback with no user. It takes the top documents of a first search, assumes that they are relevant, finds the terms that are frequent in them and rare elsewhere, adds the best of these terms to the query, and searches again. Any feedback update can be used: Rocchio with no negative part, the relevance weights of the binary independence model, or the relevance model of the language modeling approach. On test collections it raises average effectiveness, mostly recall, but it lowers it on queries whose first top documents are off topic, because the new query then drifts toward them. Croft and Harper proposed using the top documents in place of judgments in 1979, and it became a standard part of TREC systems in the 1990s.
In plain words
Relevance feedback works well, but users seldom mark results. So we guess. We take the first few results of a search and act as if the user had marked them all as good. The words that these documents share are probably about the topic, so we add the most telling of them to the query and search again. When the first results are good, the new query finds more good documents, including ones that use other words for the same thing. When the first results are bad, the new query finds more documents like the bad ones. This shift away from what the user meant is called drift, and it is the main risk of the method.
When it applies
Use it when there are no judgments, the first search puts mostly relevant documents at the top, and recall matters, for example in ad hoc search over news or scientific text with short queries. It helps most for short queries that miss synonyms. It is a poor choice when precision at the very top is all that counts, when the first ranking is weak, when queries are already long and specific, and when a second search is too slow for the latency budget, since the expanded query has many terms.
The template
PRF(q, k, m, λ)- 1
R1 ← SEARCH(q) - 2
F ← the top k documents of R1 ▷ hole: k, usually 10 to 50 - 3
for each term t of F: w(t) ← WEIGHT(t, F) ▷ hole: Rocchio weight, relevance weight, relevance model - 4
E ← the m terms of largest w(t), without stop words ▷ hole: m - 5
q' ← λ · q + (1 - λ) · E ▷ hole: the share λ of the original query - 6
return SEARCH(q')
Line L3 is where the methods differ. Rocchio with uses the mean weight of in the documents of . The probabilistic form treats as the set of relevant documents and computes the relevance weight with . The relevance model uses , a mixture of the document models weighted by their query likelihood. Line L5 keeps the original query in the new one; the UMass runs at TREC 2004 used 50 documents, 200 terms and a weight of 0.6 for the original query.
Walk-through on the toy collection. Take q1 = "sorted array search", a first search by the query likelihood model with Dirichlet smoothing at , and the relevance model in line L3. The top two documents are document 1, "binary search finds a key in a sorted array", and document 2, "merge sort merges two sorted runs into one sorted array", with feedback weights 0.7817 and 0.2183. After stop words are removed, the six best terms are "sorted", "array", "search", "binary", "finds" and "key", and with the new query weights are 0.2779 for "sorted", 0.2593 for "array", 0.2407 for "search" and 0.0740 for each of the other three. The relevance model page gives every step. Both rows of the table are scores with the same document models; for the first search the query model gives each of the three words , so its scores are the log likelihoods divided by 3.
| document | 1 | 2 | 8 | 7 | 4 | 6 | 3 | 5 |
|---|---|---|---|---|---|---|---|---|
| first search, divided by 3 | -2.5985 | -3.0236 | -3.1829 | -3.3957 | -3.6129 | -3.9289 | -3.9289 | -3.9289 |
| second search | -2.6281 | -3.3303 | -3.4630 | -3.6760 | -3.7976 | -3.8242 | -4.0610 | -4.0610 |
The top five keep their order , which already held all three relevant documents of q1 (1, 2 and 8). The change is below them: document 6, "a hash table finds a key in constant expected time", tied with documents 3 and 5 at the bottom before feedback, and now it is above them, because it shares "finds" and "key" with document 1. Document 6 is not relevant to q1. This is drift on a small scale: the new terms describe document 1, not the need of the query.
Classic examples
- Rocchio algorithm. In vector space systems, the top documents are the relevant set and . TREC systems of the 1990s used this form.
- Binary independence model and BM25. The top documents give and for the relevance weight, and new terms are chosen by their weight. Croft and Harper used the top documents in this way.
- Relevance model. Lavrenko and Croft estimate the relevance model from the top documents of a query likelihood search; RM3 mixes it with the query model. It is a common baseline of pseudo-relevance feedback.
- Query likelihood model with a feedback query model. Any query model estimated from the top documents can replace the maximum likelihood query model in the ranking by negative KL divergence.
Variations
- Local context analysis. Xu and Croft choose expansion terms by how often they occur near the query terms in the top passages, not in the whole top documents.
- Weighting the feedback documents. Give each document of a weight by its first-round score, as the relevance model does, instead of treating the top alike.
- Selective feedback. Predict from the first ranking whether feedback will help this query, and skip it when the top documents look inconsistent.
- External collections. Run the first search on a larger or cleaner collection, take the expansion terms from there, and search the target collection with them.
- Feedback for dense retrievers. Combine the embeddings of the top documents with the query embedding, the analogue of Rocchio in a dense vector space.
Pitfalls
- Query drift. If the top are off topic, or about one side of the need, the expansion pulls the second ranking further that way, as document 6 shows. Keep a large share for the original query and a small .
- Average gains hide losses. Gains are reported as a mean over queries, such as mean average precision. Some queries get worse. Report how many queries improve and how many get worse, not only the mean.
- Common words. Without stop word removal or an idf-like term score, the top terms of are function words, which add noise and cost. Line L4 removes them.
- Tuning three parameters. The results depend on , and , and the best values differ across collections. Values tuned on the test queries overstate the gain.
- Latency. The second search reads one posting list for each of up to hundreds of terms. In an interactive system this can cost more than the gain is worth.
Exercises
- In the walk-through, why do documents 3 and 5 still tie after feedback? Answer: neither holds any of the six expansion terms, and they have the same length, so they get the same smoothed score.
- Explain why pseudo-relevance feedback with and Rocchio with moves the query toward one document, and what happens to the ranking if that document is not relevant. Hint: the centroid of one document is that document.
- Show that if in line L5, the second search returns the first ranking. Answer: then .
References
- W. Bruce Croft and David J. Harper, Using probabilistic models of document retrieval without relevance information, Journal of Documentation (1979), the use of the top-ranked documents of a first search in place of judged relevant documents in the probabilistic model
- Jinxi Xu and W. Bruce Croft, Query expansion using local and global document analysis, Proceedings of the 19th Annual International ACM SIGIR Conference (SIGIR 1996), local feedback from the top-ranked documents and local context analysis
- Victor Lavrenko and W. Bruce Croft, Relevance-based language models, Proceedings of the 24th Annual International ACM SIGIR Conference (SIGIR 2001), 120-127, Section 3, the estimation of the relevance model from the top-ranked documents with no relevance judgments
- Nasreen Abdul-Jaleel, James Allan, W. Bruce Croft, Fernando Diaz, Leah Larkey, Xiaoyan Li, Mark D. Smucker and Courtney Wade, UMass at TREC 2004, novelty and HARD, Proceedings of the Thirteenth Text REtrieval Conference (TREC 2004), Section 3.1.4, RM3 with 50 feedback documents, 200 terms and the original query mixed in
- Christopher D. Manning, Prabhakar Raghavan and Hinrich Schuetze, Introduction to Information Retrieval, Cambridge University Press, 2008, Chapter 9, Section 9.1 (pseudo relevance feedback as the automatic form of relevance feedback)
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 | W3 standard |
|
Tag E2KHY9 Edit this page History Report an error Markdown