Abstract
While the popular HyDE (Hypothetical Document Embeddings) method typically relies on simple string concatenation to expand search queries, this research demonstrates that "old-school" relevance feedback models like Rocchio and RM3 are significantly more effective. By systematically filtering and weighting LLM-generated terms, these traditional algorithms boost retrieval accuracy by up to 6% on low-resource datasets. This paper revisits classic Information Retrieval (IR) principles to optimize modern LLM-driven search pipelines.
Introduction: The Vocabulary Gap
In Information Retrieval (IR), the "vocabulary gap" remains a fundamental challenge: a user might search for "cardiovascular health" while a highly relevant document uses the term "heart disease." Historically, Pseudo-Relevance Feedback (PRF) addressed this by using top-ranked documents from an initial search to expand the original query.
HyDE (Hypothetical Document Embeddings) revolutionized this approach by using a Large Language Model (LLM) to generate a hypothetical answer to the query, which is then used for expansion. However, most HyDE implementations simply concatenate the query and the LLM's output. This study argues that such an approach is suboptimal and explores whether the rigorous term-weighting math developed in the 1970s and 2000s can improve HyDE's performance.
Methodology
The researchers compared the standard "concatenate everything" approach against three classic IR feedback models applied to HyDE-generated content:
- Average Vector: A baseline treating the query and LLM expansions as equal parts of a single bag-of-words vector.
- Rocchio Algorithm: A classic (1971) method using parameters ($\alpha$ and $\beta$) to balance the original query and feedback terms, allowing the system to prioritize the user's original intent over the LLM's expansion.
- RM3: A probabilistic relevance model that calculates the likelihood of a term appearing in a relevant document and interpolates it with the query.
A critical component of this pipeline is Term Selection. Instead of using the entire LLM output, the authors filter out common corpus terms (appearing in >10% of documents) and retain only the top 128 most informative terms.
Experimental Setup
The approach was evaluated across 14 diverse retrieval datasets:
- MS MARCO (v1 & v2): Large-scale web search datasets from TREC Deep Learning tracks (2019–2023).
- BEIR Benchmark: A collection of 9 specialized datasets covering domains such as COVID-19 research, financial QA (FiQA), and legal/argument retrieval (ArguAna).
Key Results and Insights
The Superiority of Rocchio
Across all tested LLMs (Qwen and GPT-based), HyDE with Rocchio consistently outperformed other methods. As shown in the performance table, Rocchio improved HyDE's effectiveness by an average of 1.4 points (4.2%) over the best-performing concatenation baseline. In low-resource BEIR datasets, the improvement was even more significant, reaching 2.2 points (6%).
Noise Reduction and Query Primacy
- Noise is the Enemy: LLMs are often verbose. Adding a term selection phase to filter noisy or overly common words resulted in a substantial performance jump (2.3 to 3.1 points) compared to naive concatenation.
- The "Query is King" Principle: The Rocchio model's success stems from its ability to weight the original query more heavily, preventing search "drift" caused by potential LLM hallucinations.
- Robustness in the Long Tail: While simple concatenation is adequate for massive datasets like MS MARCO, traditional feedback models prove much more robust in specialized or data-scarce domains.
Conclusion and Future Work
This study confirms that using an LLM to generate feedback terms is consistently more effective than traditional PRF methods. Furthermore, applying classic IR weighting schemes like Rocchio provides a significant, low-overhead performance boost.
Future research may explore adaptive weighting, where feedback weights are dynamically adjusted based on the quality or length of the LLM expansion, and deeper hyperparameter tuning specifically for LLM-generated text.
Summary updated