Abstract
Modern information retrieval (IR) systems typically operate on a "one-size-fits-all" basis, calculating semantic similarity without regard for specific user constraints. We introduce Promptriever, the first retrieval model designed to be prompted similarly to a Large Language Model (LLM). By training on a massive new dataset of 500,000 instance-level instructions, Promptriever allows users to define complex, per-query relevance criteria on the fly. Our results demonstrate that Promptriever significantly outperforms existing models in instruction following while maintaining competitive performance on standard retrieval benchmarks.
Introduction
Information retrieval is undergoing a paradigm shift. While traditional models focus on matching queries to documents based on general topicality, users often have nuanced requirements—such as requesting primary sources, excluding specific sub-topics, or seeking a particular tone. Current "instructable" retrievers often rely on static, dataset-wide prefixes that lack the granularity to handle these per-query constraints.
Promptriever bridges the gap between the flexibility of LLM prompting and the efficiency of bi-encoder retrieval. It enables "Promptable Retrieval," where the model can interpret and adhere to detailed instructions embedded within the query itself, such as "Relevant docs are not co-directed and created before 2022."
Methodology
Promptriever utilizes a bi-encoder architecture based on LLM backbones like LLaMA-2 7B. The model's unique capabilities stem from three core training innovations:
- Instance-Level Instruction Training: The authors curated MS MARCO-w-instructions, a dataset of ~500,000 queries where each is paired with a unique, LLM-generated instruction. These instructions vary in style (personas, background info) and length.
- Instruction Negatives: To ensure the model actually follows instructions rather than just matching keywords, the training includes "instruction negatives." These are passages topically relevant to the query but which explicitly violate the provided instruction (e.g., a document about a movie from 2023 when the prompt asks for movies before 2022).
- Joint Training: The model is trained simultaneously on standard IR data and prompted data, ensuring it remains a robust general-purpose retriever while gaining instruction-following capabilities.
Evaluation and Results
We evaluated Promptriever across several benchmarks, including FollowIR (designed for detailed relevance instructions), InstructIR (measuring robustness to phrasing), and BEIR (zero-shot out-of-domain performance).
Key Findings
- Superior Instruction Following: As shown in the results table, Promptriever achieved a massive +14.3 p-MRR gain on the FollowIR benchmark compared to previous state-of-the-art models. It effectively "reads" the prompt to filter results according to user-defined logic.
- Enhanced Robustness: The model showed a +12.9 improvement on InstructIR’s Robustness@10 metric, indicating it is resilient to variations in how a user phrases their instructions.
- Zero-Shot Prompting Gains: On the BEIR benchmark, simply selecting the most effective prompt from a small candidate set led to a +1.4 average nDCG increase. This suggests that "prompt engineering" is a viable strategy for optimizing retrieval performance in real-time.
- No Performance Tax: Crucially, Promptriever maintains performance parity with top-tier standard retrievers like RepLLaMA on traditional benchmarks where no instructions are present.
Discussion and Future Work
Promptriever demonstrates that the techniques used to align LLMs—specifically instruction tuning—are directly transferable to the embedding space of retrievers. This alignment simplifies the pipeline for Retrieval-Augmented Generation (RAG) systems by allowing the retriever to act as a more precise filter.
However, the "black box" nature of prompt engineering remains; it is not yet fully understood why certain prompts (like offering a "$1000 tip") improve performance. Future research will explore the potential for "in-context learning" in retrievers, where the model learns from a few provided examples of relevant document pairs within the prompt itself.
Summary updated