MILL: Mutual Verification with Large Language Models for Zero-Shot Query Expansion

Pengyue Jia, Yiding Liu, Xiangyu Zhao, Xiaopeng Li, Changying Hao, Shuaiqiang Wang, Dawei Yin

Abstract

Query expansion (QE) is a critical technique for improving information retrieval by enriching underspecified user queries. However, traditional retrieval-based methods often suffer from noise, while recent LLM-based generation methods may lack corpus-specific grounding. This paper introduces MILL (Mutual VerIfication with Large Language models), a zero-shot framework that bridges this gap. MILL employs a Query-Query-Document (QQD) prompting strategy to decompose queries into diverse intents and utilizes a mutual verification mechanism to cross-filter generated content and retrieved documents. Experimental results on TREC-DL and BEIR benchmarks demonstrate that MILL significantly outperforms existing zero-shot QE methods without requiring domain-specific fine-tuning.

Introduction

Search engines frequently encounter "underspecified" queries—short, ambiguous terms that fail to provide sufficient context for precise retrieval. Query Expansion (QE) addresses this by appending relevant terms or context to the original query. Historically, QE has relied on two main paradigms: retrieval-based Pseudo-Relevance Feedback (PRF) and generation-based LLM approaches.

PRF assumes that the top documents returned for a query are relevant and extracts terms from them. However, if the initial query is poor, these documents are often noisy. Conversely, LLMs can generate high-quality context but often lack alignment with the specific target corpus, leading to "hallucinations" relative to the actual database being searched. The authors identify this as a "mutual misalignment" problem: retrieved documents lack search intent clarity, while generated documents lack corpus alignment.

Methodology

The MILL framework addresses these issues through a two-stage zero-shot process.

1. Contextual Document Construction (QQD Prompting)

Instead of direct generation (e.g., Query2Doc), MILL uses a Query-Query-Document (QQD) strategy. The LLM is prompted to decompose the original query into multiple sub-queries representing different potential intents and then generate corresponding passages for each. This step-by-step reasoning ensures a diverse set of generated documents that cover various facets of the user's possible intent.

2. Mutual Verification

The core of MILL is the mutual verification stage, where $N$ LLM-generated documents and $K$ corpus-retrieved documents (via BM25) are cross-evaluated to ensure relevance and grounding.

  • Grounding the LLM: The system calculates semantic similarity between each generated document and the retrieved set. Generated documents that do not align with the actual corpus are filtered out as out-of-domain noise.
  • Filtering the Retriever: Conversely, LLM-generated documents are used to score the retrieved ones. Documents that do not align with the LLM’s reasoned intent are discarded as noise.
Overview of the MILL framework showing Contextual Document Construction and Mutual Verification.

The final expanded query is formed by concatenating the original query (repeated five times to maintain weight) with the verified documents from both sets.

Experimental Setup

The effectiveness of MILL was evaluated on several standard Information Retrieval (IR) benchmarks:

  • TREC-DL 2019 & 2020: Web search datasets containing 200 queries and 8.84 million passages.
  • BEIR: A heterogeneous benchmark for zero-shot evaluation across 9 diverse domains, including TREC-COVID (medical), FiQA-2018 (finance), and SciFact (scientific).
  • MSMARCO: A large-scale machine reading comprehension dataset.

Results and Discussion

MILL consistently outperforms traditional expansion methods (e.g., RM3) and state-of-the-art LLM-based methods like Query2Doc and CoT.

Performance comparison of MILL against traditional and LLM-based expansion methods on TREC-DL 2019 and 2020.

On the TREC-DL 2019 dataset, MILL achieved an NDCG@10 of 63.80, a substantial improvement over the "No expansion" baseline of 47.95. On the BEIR benchmark, MILL achieved top performance on nearly all subsets, notably reaching an NDCG@1000 of 52.53 on TREC-COVID, compared to 42.04 for the baseline.

Key insights from the study include:

  • Reciprocal Selection: The synergy between the LLM (providing intent logic) and the Retriever (providing corpus facts) is essential. Ablation studies confirmed that removing either component significantly degrades performance.
  • Decomposition Advantage: The QQD prompt outperforms simpler strategies by preventing the model from fixating on a single, potentially incorrect interpretation of a brief query.
  • Zero-Shot Portability: MILL's lack of training requirements makes it highly adaptable to new domains without the massive overhead of fine-tuning.

Conclusion and Future Work

While MILL sets a new standard for zero-shot query expansion, it faces challenges regarding efficiency due to the latency of multiple autoregressive LLM generations. Future work may focus on parallelization and query compression to reduce computational load. Additionally, while MILL excels at short queries, its performance on long, declarative queries (as seen in the ARGUANA dataset) suggests that different query types may benefit from tailored expansion strategies.

Summary updated

BibTeX
@inproceedings{jia2024mill,
  author = {Pengyue Jia and Yiding Liu and Xiangyu Zhao and Xiaopeng Li and Changying Hao and Shuaiqiang Wang and Dawei Yin},
  title = {{MILL: Mutual Verification with Large Language Models for Zero-Shot Query Expansion}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.naacl-long.138},
}
Figure