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

Orion Weller, Benjamin Van Durme, Dawn Lawrie, Ashwin Paranjape, Yuhao Zhang +1 more
9/17/2024
cs.IRcs.CLcs.LG

No official code found. Best implementation: orionw/promptriever (93 stars, last commit 2025-05-08).

Abstract

Instruction-tuned language models (LM) are able to respond to imperative commands, providing a more natural user interface compared to their base counterparts. In this work, we present Promptriever, the first retrieval model able to be prompted like an LM. To train Promptriever, we curate and release a new instance-level instruction training set from MS MARCO, spanning nearly 500k instances. Promptriever not only achieves strong performance on standard retrieval tasks, but also follows instructions. We observe: (1) large gains (reaching SoTA) on following detailed relevance instructions (+14.3 p-MRR / +3.1 nDCG on FollowIR), (2) significantly increased robustness to lexical choices/phrasing in the query+instruction (+12.9 Robustness@10 on InstructIR), and (3) the ability to perform hyperparameter search via prompting to reliably improve retrieval performance (+1.4 average increase on BEIR). Promptriever demonstrates that retrieval models can be controlled with prompts on a per-query basis, setting the stage for future work aligning LM prompting techniques with information retrieval.

View on arXivView PDF

Code Implementations(1)

orionw/promptrieverCommunity100%

The first dense retrieval model that can be prompted like an LM

935Shell, PythonSep 11, 20241 years ago

Similar Papers

Cite this paper

@article{weller2024promptriever,
  title  = {Promptriever: Instruction-Trained Retrievers Can Be Prompted Like Language Models},
  author = {Orion Weller and Benjamin Van Durme and Dawn Lawrie and Ashwin Paranjape and Yuhao Zhang and Jack Hessel},
  year   = {2024},
  eprint = {2409.11136},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.11136v1},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.11136.svg)](https://codeofpaper.com/paper/2409.11136)

Discussion