Pseudo-relevance feedback

Also known as: PRF

On this page 7

Pseudo-relevance feedback (PRF) is a query refinement technique that runs an initial search, assumes the top-ranked documents are relevant, and uses their content to build an improved query for a second retrieval pass. In the Retrieval & knowledge area of artificial intelligence, it is one of the oldest and most reliable ways to close the vocabulary gap between how users phrase questions and how documents phrase answers.

PRF is also called blind relevance feedback because no human judges the results. Its strength is that it adapts the query to the actual collection; its weakness is query drift, which occurs when the top results are off-topic and the expansion pulls the search further away from the user’s intent.

How pseudo-relevance feedback reformulates a query

PRF works in three stages. First, the system retrieves an initial ranking with a base model such as BM25 or a dense retriever. Second, it treats the top k documents as a feedback set and extracts evidence from them, either terms or embedding vectors. Third, it combines that evidence with the original query and retrieves again.

The classic formulation is the Rocchio algorithm, which moves the query vector toward the centroid of relevant documents. In the pseudo variant, only the positive component is used, because no documents are known to be non-relevant. Language-model approaches such as RM3 instead estimate a relevance model, a probability distribution over terms weighted by how strongly each feedback document matches the query.

The method rests on the cluster hypothesis, the observation that relevant documents tend to resemble each other more than they resemble non-relevant ones. When the hypothesis holds, terms that recur across the top results are likely to be topically related to the information need, even if the user never typed them. Expansion terms are usually weighted by their frequency in the feedback set relative to the whole collection, which suppresses common words.

The following table describes the main stages and their typical outputs.

StageInputOutput
Initial retrievalOriginal queryRanked candidate list
Feedback selectionTop k documentsAssumed relevant set
Term or vector extractionFeedback documentsWeighted expansion terms or centroid
Query interpolationOriginal and expansion evidenceReformulated query
Second retrievalReformulated queryFinal ranking
Stages of a pseudo-relevance feedback pass

Key parameters and their typical ranges

PRF has few parameters, but they interact strongly. The number of feedback documents controls how much evidence is gathered, while the number of expansion terms and the interpolation weight control how far the new query moves from the original. Default values work reasonably on news and web collections but should be tuned per corpus.

ParameterTypical rangeEffect when increased
Feedback documents (k)3 to 20, often 10More evidence, more noise
Expansion terms10 to 50, often 20Higher recall, greater drift risk
Original query weight0.3 to 0.7, often 0.5Stronger anchoring to user intent
Minimum term frequency2 or more documentsFilters accidental terms
Common PRF parameters

Gains are usually modest but consistent for lexical retrieval: improvements in mean average precision of a few percentage points are common on ad hoc benchmarks, with larger gains for short, ambiguous queries. The gains shrink or reverse on precision-oriented tasks where only the first one or two results matter.

Variants for sparse and dense retrieval

PRF began in sparse retrieval, where expanding a query with words is natural, but it now has dense and neural variants. In dense retrieval, the query embedding is averaged or refined with the embeddings of top passages, an approach used in methods such as ANCE-PRF and ColBERT-PRF. Large language models can also read feedback passages and generate expansion text.

VariantFeedback signalTypical use
Rocchio PRFTerm vectors of top documentsVector space models
RM3Relevance model term distributionBM25 baselines and Lucene stacks
Dense vector PRFEmbeddings of top passagesBi-encoder retrieval
Multi-vector PRFRepresentative token embeddingsLate-interaction models
LLM-based PRFGenerated expansion from passagesHybrid and RAG pipelines
Families of pseudo-relevance feedback

Dense PRF tends to help less than lexical PRF because a good embedding model already captures synonyms. Its benefit appears mainly when the first-stage retriever is weaker or when the domain differs from the model’s training data.

How PRF relates to query expansion and query rewriting

PRF is a specific form of query expansion whose evidence comes from the collection itself. Thesaurus expansion uses an external vocabulary, while HyDE asks a language model to write a hypothetical answer without consulting the corpus first. Query rewriting changes the wording, often using conversation context, without necessarily adding terms.

TechniqueSource of new evidenceExtra retrieval passes
Pseudo-relevance feedbackTop-ranked documentsOne
Explicit relevance feedbackUser judgmentsOne per feedback round
Thesaurus expansionCurated vocabularyNone
HyDEGenerated hypothetical documentNone
Query rewritingModel or rulesNone
PRF compared with related query techniques

Because PRF depends on the first ranking, it combines well with reranking and with hybrid search. A common pattern retrieves with BM25 plus RM3 for recall and then applies a cross-encoder to restore precision.

Limitations and practical guidance

The central risk is query drift. If only two or three of the top ten documents are relevant, the expansion mostly adds noise, and recall can fall rather than rise. PRF also doubles retrieval latency, which matters in interactive search and in retrieval-augmented generation with strict response budgets.

  • Apply it selectively: query performance predictors can skip PRF for queries whose first ranking looks weak.
  • Keep the original terms weighted: an interpolation weight near 0.5 limits drift.
  • Remove stopwords and boilerplate from feedback documents before extracting terms.
  • Evaluate on representative queries with recall@k and nDCG, not on anecdotes.

In retrieval-augmented generation, PRF is most useful as a recall stage before reranking, not as the final ranking. Expansion terms should also be logged, because they make retrieval failures diagnosable: an engineer can see exactly which drifting terms pulled irrelevant passages into the context window. Collections with heavy duplication, such as support tickets or product listings, deserve particular care, since near-identical feedback documents amplify a single topic and narrow the expansion.

In simple terms

Pseudo-relevance feedback lets a search engine learn from its own first try. It searches once. It then reads the best results and notices which words they share. It adds those words to the question and searches again.

Imagine asking a librarian about heart attacks. The first books mention “myocardial infarction”. The librarian now searches for that phrase too and finds more. The trick works well when the first results are good. It goes wrong when the first results are poor.

A practical example

A legal technology team runs a search tool over 400,000 court decisions. Lawyers type short queries such as “landlord water damage liability”, but many relevant rulings use terms like “leased premises”, “habitability” and “moisture ingress”. Plain BM25 misses many of them.

The team adds RM3 with 10 feedback documents, 25 expansion terms and an original query weight of 0.5, followed by a cross-encoder reranker on the top 100 results. They evaluate on 300 queries with expert judgments.

Recall at 100 rises by roughly nine percentage points, while nDCG at 10 stays stable thanks to reranking. For very specific queries containing case numbers, the team disables PRF automatically, because expansion there only added noise and slowed responses.