BERT-QE: Contextualized Query Expansion for Document Re-ranking

Zhi Zheng, Kai Hui, Ben He, Xianpei Han, Le Sun, Andrew Yates

Introduction

In Information Retrieval (IR), a persistent challenge is the "vocabulary mismatch" between a user's brief, often informal query and the more formal, detailed language found in relevant documents. To address this, researchers frequently employ Pseudo-Relevance Feedback (PRF). This technique involves taking the top-ranked documents from an initial search, assuming their relevance, and extracting terms from them to expand the original query.

However, PRF is a double-edged sword. Feedback documents are often "noisy," containing irrelevant sections that can "pollute" the expanded query with off-topic terms. Traditional methods like RM3 rely on simple word frequencies, failing to distinguish between topical keywords and common words used in non-relevant contexts. BERT-QE introduces a novel framework that leverages the contextualized power of BERT to identify and select high-quality text chunks, finding a "Goldilocks" granularity that balances precision and context.

The BERT-QE Framework

The authors propose a three-phase pipeline designed to refine the query expansion process through deep contextual understanding:

  1. Phase One (Initial Re-ranking): An initial list of documents (retrieved by a standard ranker like BM25) is re-ranked using a fine-tuned BERT model. From this list, the top $k_d$ documents are selected as the feedback pool.
  2. Phase Two (Chunk Selection): These feedback documents are decomposed into overlapping "chunks" (e.g., 10 words each) using a sliding window. BERT is then employed to score each chunk's relevance against the original query. Only the top $k_c$ most relevant chunks are retained for expansion.
  3. Phase Three (Final Re-ranking): The final relevance score for a document is calculated as a weighted combination of its score relative to the original query and its score relative to the selected expansion chunks.
The BERT-QE pipeline for selecting relevant text chunks from feedback documents.

A significant innovation of this architecture is its flexibility. By utilizing different sizes of BERT models (from Large to Tiny), the framework can be tuned to balance retrieval performance with computational efficiency.

Experimental Evaluation

The model was evaluated on two standard TREC (Text REtrieval Conference) benchmarks: Robust04, comprising approximately 528,000 news articles, and GOV2, a large-scale collection of 25 million web pages. The models were pre-trained on the MS MARCO passage ranking dataset before being fine-tuned for these specific tasks.

Performance comparison of BERT-QE against various baselines on Robust04 and GOV2 datasets.

As shown in the results, the "all-Large" version, BERT-QE-LLL, significantly outperforms state-of-the-art baselines. On Robust04, it achieved a 2.5% improvement in NDCG@20 over a standard BERT-Large model. Furthermore, the model showed strong scalability, outperforming baselines across all metrics on the massive GOV2 dataset.

Efficiency and Effectiveness

While running multiple BERT-Large models is computationally intensive (roughly 11x the cost of a standard ranker), the authors explored efficient variants. They found that using a BERT-Small model for the final re-ranking phase still significantly outperforms a standard BERT-Large baseline while adding only 30% computational overhead. Even more efficient versions, such as BERT-QE-LMT (Large for phase 1, Medium for phase 2, Tiny for phase 3), outperformed the baseline on shallow ranking tasks with a negligible 3% increase in FLOPs.

Conclusion and Future Work

BERT-QE highlights that "chunks" are an ideal unit for query expansion, providing more context than single words while maintaining higher precision than entire documents. While the multi-phase approach introduces some latency, it proves highly effective for high-precision document re-ranking. Future research may involve integrating pre-computation techniques like ColBERT to reduce latency and exploring more sophisticated aggregation methods for chunk scores.

Summary updated

BibTeX
@inproceedings{zheng2020bert,
  author = {Zhi Zheng and Kai Hui and Ben He and Xianpei Han and Le Sun and Andrew Yates},
  title = {{BERT-QE: Contextualized Query Expansion for Document Re-ranking}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.findings-emnlp.424},
}
Figure