NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Generate, Filter, and Fuse: Query Expansion via Multi-Step Keyword Generation for Zero-Shot Neural Rankers

Minghan Li, Honglei Zhuang, Kai Hui, Zhen Qin, Jimmy Lin, Rolf Jagerman, Xuanhui Wang, Michael BenderskyarXiv 2023 · OpenReview

Abstract

Query expansion has been proved to be effective in improving recall and precision of first-stage retrievers, and yet its influence on a complicated, state-of-the-art cross-encoder ranker remains under-explored. We first show that directly applying the expansion techniques in the current literature to state-of-the-art neural rankers can result in deteriorated zero-shot performance. To this end, we propose GFF, a pipeline that includes a large language model and a neural ranker, to Generate, Filter, and Fuse query expansions more effectively in order to improve the zero-shot ranking metrics such as nDCG@10. Specifically, GFF first calls an instruction-following language model to generate query-related keywords through a reasoning chain. Leveraging self-consistency and reciprocal rank weighting, GFF further filters and combines the ranking results of each expanded query dynamically. By utilizing this pipeline, we show that GFF can improve the zero-shot nDCG@10 on BEIR and TREC DL 2019/2020. We also analyze different modelling choices in the GFF pipeline and shed light on the future directions in query expansion for zero-shot neural rankers.

Introduction

In Information Retrieval (IR), query expansion (QE) is a classic technique used to improve recall by adding related terms to a user's search. While this approach significantly benefits first-stage retrievers like BM25, recent research suggests it often degrades the performance of second-stage "cross-encoder" rankers (e.g., MonoT5 or RankT5).

Cross-encoders are highly sophisticated models that analyze deep interactions between query and document tokens. Their precision makes them sensitive to two primary issues:

  1. Noise Sensitivity: Irrelevant keywords can disproportionately affect ranking scores.
  2. Distribution Shift: These models are typically trained on short, natural language queries. Expanding queries with multiple keywords creates a distribution shift that deviates from the training data, often causing performance to drop.

The GFF Framework: Generate, Filter, and Fuse

To address these sensitivities, we propose the Generate, Filter, and Fuse (GFF) framework, designed to improve zero-shot ranking without disrupting the underlying model's precision.

1. High-Quality Keyword Generation (Q2D2K)

Rather than extracting terms from retrieved documents (traditional Pseudo-Relevance Feedback), GFF utilizes a Large Language Model (LLM), specifically Flan-PaLM2-S. The LLM is prompted to generate a hypothetical document answering the query and then extract concise keywords from that document. This "reasoning chain" ensures higher semantic relevance.

2. Filtering via Self-Consistency

To mitigate hallucinations, the generation process is executed multiple times. GFF retains only the "top-k" keywords that appear most frequently across different runs, effectively filtering out noise through self-consistency.

3. Minimal-Disruptive Fusion

Instead of concatenating all keywords into a single query—which often leads to performance degradation—GFF creates multiple versions of the query, each containing only one additional keyword. These versions are ranked separately, and the results are combined using Reciprocal Rank Weighting (RRW). This approach preserves the query structure familiar to the model while integrating expanded information.

Impact of different fusion strategies on NDCG@10 as the number of keywords increases.

As shown in the figure above, simple concatenation causes a sharp decline in performance as more keywords are added, whereas Reciprocal Rank Weighting maintains high precision.

Experimental Results

We evaluated GFF on the TREC Deep Learning (2019 & 2020) benchmarks and the BEIR zero-shot collection. Our results demonstrate that GFF consistently outperforms both base models and standard expansion baselines.

Performance comparison of GFF (Ours) against standard query expansion baselines on TREC DL19 and DL20 datasets.

Key Findings:

  • RankT5 Improvements: On TREC DL 2019, the base RankT5 score of 0.737 (nDCG@10) improved to 0.751 using the GFF pipeline.
  • Robustness Against Baselines: Traditional methods like RM3 and Query2Doc frequently decreased performance, sometimes by over 10 points. In contrast, GFF consistently improved upon the baseline.
  • Zero-Shot Generalization: On the BEIR "Wiki+News" subset, GFF improved RankT5 from 0.557 to 0.570, confirming that high-quality QE helps models generalize to unfamiliar domains.

Conclusion

The GFF framework demonstrates that query expansion can indeed benefit strong neural rankers if the expansion is high-quality and the fusion method is minimally disruptive. While cross-encoders are fragile regarding input distribution shifts, the use of LLM-based reasoning chains and rank-based fusion provides a robust path forward. Future work will focus on reducing the computational latency associated with running multiple cross-encoder inferences during the fusion stage.

Summary updated

BibTeX
@misc{li2023generate,
  author = {Minghan Li and Honglei Zhuang and Kai Hui and Zhen Qin and Jimmy Lin and Rolf Jagerman and Xuanhui Wang and Michael Bendersky},
  title = {{Generate, Filter, and Fuse: Query Expansion via Multi-Step Keyword Generation for Zero-Shot Neural Rankers}},
  year = {2023},
  eprint = {2311.09175},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.09175},
}
Figure