The Surprising Effectiveness of Rankers trained on Expanded Queries

Abhijit Anand, Venktesh V, Vinay Setty, Avishek Anand · OpenReview

Abstract

Standard information retrieval (IR) models often struggle with "obstinate" queries—those that are underspecified, domain-specific, or poorly phrased. This paper introduces a novel training paradigm to address this "tail end" of search. The authors propose training a specialized ranker on queries enriched by Large Language Models (LLMs) using ground-truth relevant documents as context. By employing a Query Performance Prediction (QPP) model to dynamically blend this specialized ranker with a general one, the system achieves massive performance gains—up to 48.4% in Reciprocal Rank—on hard document ranking tasks. Notably, these gains are achieved without the need for computationally expensive query expansion during inference, avoiding the common pitfall of topic drift.

The Challenge of "Obstinate" Queries

Modern rankers are typically optimized for average performance on massive datasets like MS MARCO. While effective for "easy" queries, these models often fail on the "hard" ones. Existing solutions frequently rely on query expansion at inference time; however, this often leads to topic drift, where the expanded terms inadvertently steer the search engine away from the user's original intent. The authors sought a way to capture the nuanced relevance factors of hard queries without the risks and latency of real-time expansion.

Methodology: A Dual-Ranker Framework

The proposed approach utilizes a multi-stage pipeline designed to separate the handling of easy and hard queries:

  1. Context-Aware Query Enrichment (Training Only): Hard queries in the training set are identified and rewritten by an LLM (GPT-3.5). Unlike standard expansion, the LLM is provided with the actual relevant document as context, ensuring the rewritten query is a clear, concise version of the user's intent.
  2. The Specialized Ranker (SR): A BERT-base model is fine-tuned specifically on these enriched hard queries. This allows the model to learn internal representations of relevance that are more effective for difficult queries.
  3. Automated Hardness Identification (QPP): A BERT-based Query Performance Prediction model is trained to estimate the "hardness" of a query at inference time.
  4. Weighted QPP Scoring (W-QPPS): The system uses the QPP score to interpolate between a standard Base Ranker (BR) and the Specialized Ranker (SR). If a query is predicted to be hard, the SR's score is given higher weight.
Figure 1: Qualitative comparison of the Base Ranker versus the Specialized Ranker for a complex query. The SR demonstrates a more nuanced understanding of the specific domain (environmental anthropology).

Key Insights: Training vs. Inference

The most significant finding is that query expansion is not required at inference time to see benefits. Training a ranker on expanded queries helps it learn better internal representations that transfer back to the original, shorter queries. This "specialization over generalization" allows a smaller model (BERT-base) to outperform much larger state-of-the-art models like Electra-Large or T5 on difficult tasks when trained on the right niche data.

Experimental Results

The framework was evaluated on DL-Hard, a benchmark of 50 "obstinate" queries, and MS MARCO.

Figure 5: Performance comparison on the MS HARD Document dataset. The proposed W-QPPS approach (without query rewriting during inference) significantly outperforms baselines and state-of-the-art models.

As shown in the results table, the best approach (W-QPPS) achieved a 48.4% improvement in Reciprocal Rank (RR) and a 20.2% improvement in nDCG@10 compared to the BERT-base baseline. Furthermore, the system maintained robust performance on general datasets (TREC-DL), proving that the specialized ranker does not degrade quality for standard queries.

Limitations and Future Work

While effective, LLM-based enrichment is computationally expensive at the training stage. Future research could explore more efficient distillation methods or end-to-end systems that learn to identify and rewrite hard queries simultaneously. Additionally, developing multiple specialized rankers for different types of query difficulty (e.g., medical vs. underspecified) remains a promising direction.

Summary updated

BibTeX
@inproceedings{anand2024surprising,
  author = {Abhijit Anand and Venktesh V and Vinay Setty and Avishek Anand},
  title = {{The Surprising Effectiveness of Rankers trained on Expanded Queries}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2024},
  url = {https://openreview.net/forum?id=nIWSxU3Pzj},
}
Figure