Promptriever: Instruction-Trained Retrievers Can Be Prompted Like Language Models

Orion Weller, Benjamin Van Durme, Dawn Lawrie, Ashwin Paranjape, Yuhao Zhang, Jack Hessel

TL;DR

Promptriever is the first retrieval model that can be controlled via natural language prompts just like a Large Language Model (LLM). By training on a massive new dataset of 500,000 instance-level instructions, it achieves state-of-the-art performance in instruction following, significantly improves robustness to query phrasing, and even allows for "zero-shot" performance gains through prompt engineering.

The Problem: Keyword Tetris vs. Natural Instructions

Modern information retrieval (IR) is often a "black box." When you search for something, the model calculates a single semantic similarity score between your query and a document. If the results aren't quite right, you’re forced to play "keyword tetris"—adding or removing words, applying hard filters, or iterating until you stumble upon the right phrasing.

While LLMs have moved toward a natural "instruction-following" interface, retrievers have lagged behind. Existing "instructable" retrievers usually rely on static, dataset-wide prefixes (e.g., "Retrieve web search results for..."). They lack the nuance to handle complex, per-query constraints like "Find movies by James Cameron created before 2022 that were not co-directed."

Comparison of standard retrieval, current instructable retrievers, and Promptriever's promptable capabilities.

This paper introduces Promptriever to bridge that gap, allowing users to prompt their search engine with the same flexibility they use when prompting ChatGPT.

Methods: Training a Promptable Retriever

Promptriever is a bi-encoder retriever built on top of an LLM backbone (specifically LLaMA-2 7B). The core innovation lies in its training methodology:

  1. Instance-Level Instruction Training: Instead of generic prefixes, the authors curated a dataset where every single query has a unique, natural language instruction defining what makes a document "relevant."
  2. Instruction Negatives: This is the "secret sauce." To prevent the model from simply ignoring the instructions, the authors generated "instruction negatives"—passages that are topically related to the query but violate the specific constraints of the instruction.
  3. Synthetic Data Pipeline: They used Llama-3-70B to generate diverse instructions (varying in length, style, and persona) and GPT-4o to generate nuanced negative passages. They then used a high-quality cross-encoder (FollowIR-7B) as a "teacher" to filter and validate this synthetic data.
Generating instruction-positive and instruction-negative examples to train the retriever.

Key Insights and Ideas

  • Instructions Must Be Learned: Simply using an LLM as a backbone isn't enough. Standard IR training actually destroys the model's inherent ability to follow instructions. Promptriever proves that this capability can be restored and even enhanced with the right data.
  • The Necessity of Nuanced Negatives: Without "instruction negatives," models tend to ignore the prompt and fall back on simple keyword matching. Training on documents that are "almost right but fail the instruction" forces the model to pay attention to the fine details of the prompt.
  • Retrieval as Prompt Engineering: For the first time, we can apply LLM-style prompt engineering to search. Adding phrases like "Think carefully about these conditions" or "I will give you a $1000 tip" actually yields measurable improvements in retrieval accuracy.
  • Robustness to Phrasing: Promptriever is significantly less "fickle" than previous models. It shows a 44% decrease in variance when the same instruction is phrased in different ways, making it much more reliable for real-world users.

Key Results

Promptriever was evaluated across several benchmarks, including an augmented MS MARCO dataset, FollowIR, InstructIR, and BEIR:

  • State-of-the-Art Instruction Following: On the FollowIR benchmark, Promptriever achieved a massive gain of +14.3 p-MRR and +3.1 nDCG over the baseline RepLLaMA, reaching performance levels comparable to much slower and more expensive cross-encoders.
  • Increased Robustness: It saw a +12.9 point increase in Robustness@10 on the InstructIR dataset, proving it isn't just memorizing specific keywords.
  • Zero-Shot Gains on BEIR: By using "best-of-10" prompt selection, Promptriever improved its average score across the BEIR benchmark by +1.4 nDCG@10. In contrast, standard models like BM25 and RepLLaMA actually saw their performance decrease when given the same prompts.

Limitations and Future Work

While Promptriever represents a major step forward, the authors note a few limitations. First, they focused on imperative requests but haven't yet explored whether retrievers can learn from "few-shot" examples provided in the prompt (e.g., "Here are three examples of relevant docs, now find more like them"). Second, similar to LLMs, it remains unclear why certain prompts (like the "tip" prompt) work better than others; this "prompt sensitivity" is a new challenge for the IR community. Finally, because the training set is largely synthetic, the model may inherit social biases or factual inaccuracies present in the teacher models (Llama-3 and GPT-4o), and smaller BERT-sized models struggle to grasp these complex instructions as effectively as 7B models.

Summary updated

BibTeX
@inproceedings{weller2025promptriever,
  author = {Orion Weller and Benjamin Van Durme and Dawn Lawrie and Ashwin Paranjape and Yuhao Zhang and Jack Hessel},
  title = {{Promptriever: Instruction-Trained Retrievers Can Be Prompted Like Language Models}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=odvSjn416y},
}
Figure