Introduction
Information Retrieval (IR) systems traditionally face a trade-off between the scalability of lexical search (e.g., BM25) and the semantic power of neural models. While BM25 is fast and efficient, it often fails due to "vocabulary mismatch"—where queries and relevant documents use different terms. Conversely, state-of-the-art neural rankers like ColBERT or generative models are computationally expensive and require massive, inflexible indices that must be rebuilt whenever the model is updated.
QUESTER (QUEry SpecificaTion gEnerative Keyword-Based Retrieval) bridges this gap. It utilizes a lightweight 4B-parameter Large Language Model (LLM) to transform user queries into optimized keyword "specifications." These specifications are then processed by standard, highly optimized BM25 engines, combining neural intelligence with the efficiency of classic inverted indexing.
Methodology: Learning to Specify
The core innovation of QUESTER lies in treating query rewriting as a Reinforcement Learning (RL) problem. Rather than simple supervised fine-tuning, the authors employ Group Relative Policy Optimization (GRPO) to optimize the model for retrieval performance.
Architecture and Training
The system uses a Qwen3-4B model as the policy. For a given query, the model generates multiple candidate keyword lists. These candidates are evaluated against a SoftNDCG reward function. Unlike standard NDCG, which only considers final ranks, SoftNDCG is sensitive to the underlying retrieval scores. This provides a smoother gradient that allows the model to learn from "near-miss" rankings. To address the issue of false negatives in training data, a powerful Cross-Encoder is used to provide "soft" labels, distilling high-quality ranking knowledge into the smaller model.
Keywords as Specifications
By generating concise comma-separated keywords instead of full natural language or abstract document IDs, QUESTER leverages decades of optimization in search libraries like Lucene. This "specification" approach allows the model to inject discriminative vocabulary that aligns the query with the target document's domain, effectively solving the vocabulary mismatch problem without the overhead of dense retrieval.
Experimental Evaluation
QUESTER was trained on the MS MARCO v1 passage dataset (8.8M passages) and evaluated across several benchmarks:
- In-Domain: MS MARCO dev set, TREC DL 2019, and TREC DL 2020.
- Out-of-Domain (OOD): The BEIR benchmark, comprising 15 diverse datasets (e.g., NFCorpus, SciFact) to test how well the model generalizes to topics it wasn't trained on.
Results and Discussion
QUESTER achieves a "Goldilocks" zone of high effectiveness and low latency, outperforming both traditional baselines and more complex LLM-based expansion methods.
Effectiveness and Efficiency
In-domain, QUESTER showed a +4.0 nDCG@10 gain over standard BM25. More impressively, it excelled in out-of-domain scenarios, outperforming neural baselines like SPLADEv2 and ColBERTv2 on the BEIR benchmark. This suggests that keyword-based specifications are more robust to domain shifts than dense vector representations.
Crucially, QUESTER maintains extreme efficiency. With a retrieval-time latency of approximately 28ms per query, it is 4–7x faster than other LLM-based expansion methods such as MuGI or LameR. Performance also improved consistently as the model size increased from 0.6B to 4B parameters.
Conclusion and Future Work
QUESTER demonstrates that small LLMs, when specifically optimized via RL for retrieval tasks, can revitalize traditional lexical search. While it currently lags slightly behind the most expensive neural rankers in-domain and uses simple "bag of words" logic, its efficiency and zero-shot robustness make it a compelling choice for production environments. Future research will explore more structured query languages (e.g., Boolean operators) and hybrid backends that combine dense and sparse retrieval.
Summary updated