DynRank: Improving Passage Retrieval with Dynamic Zero-Shot Prompting Based on Question Classification
Abdelrahman Abdallah, Jamshid Mozafari, Bhawna Piryani, Mohammed M. Abdelgwad, Adam Jatowt
TL;DR
DynRank tackles static-prompt limitations in open-domain QA by using dynamic, fine-grained question classification to generate contextually tailored prompts for passage re-ranking. The approach integrates a retriever, a QC module, a dynamic prompt generator, and a PLM-based re-ranker in a zero-shot setting, scoring passages via the average log-likelihood of the question given the passage and prompt. Empirical results across ODQA datasets and the BEIR benchmark show consistent improvements over baselines and static prompts, including notable gains with both unsupervised and supervised retrievers and competitive performance against state-of-the-art re-ranking methods. The work demonstrates the practical impact of adaptive prompting for retrieval, with larger gains observed using more capable language models such as LLaMA v3.1 70B, underscoring the method’s scalability and cross-domain applicability.
Abstract
This paper presents DynRank, a novel framework for enhancing passage retrieval in open-domain question-answering systems through dynamic zero-shot question classification. Traditional approaches rely on static prompts and pre-defined templates, which may limit model adaptability across different questions and contexts. In contrast, DynRank introduces a dynamic prompting mechanism, leveraging a pre-trained question classification model that categorizes questions into fine-grained types. Based on these classifications, contextually relevant prompts are generated, enabling more effective passage retrieval. We integrate DynRank into existing retrieval frameworks and conduct extensive experiments on multiple QA benchmark datasets.
