Skip to main content
QUICK REVIEW

[论文解读] Promptriever: Instruction-Trained Retrievers Can Be Prompted Like Language Models

Orion Weller, Benjamin Van Durme|arXiv (Cornell University)|Sep 17, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

Promptriever 首次提出一种指令微调的稠密检索模型,可像语言模型一样通过提示(prompt)进行控制,从而实现基于自然语言指令的动态、每查询相关性调整。该模型在包含 500K 个合成指令增强数据的 MS MARCO 数据集上进行训练,在指令遵循基准测试中达到最先进性能(例如,在 FollowIR 上 p-MRR 提升 +14.3),并展现出对查询表述方式的鲁棒性以及基于提示的超参数调优能力。

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.

研究动机与目标

  • 使稠密检索模型能够通过自然语言提示进行控制,类似于语言模型对指令的响应方式。
  • 解决标准检索器在标准信息检索微调后丧失指令遵循能力的局限性。
  • 构建一个多样化、高质量的基于指令的检索数据集,包含实例级别的相关性定义和指令负样本。
  • 评估检索模型是否能像大语言模型一样,利用提示技术实现零样本适应和超参数优化。
  • 证明双编码器检索器无需架构修改即可实现强大的指令遵循性能。

提出的方法

  • 整理并发布了约 500K 个包含实例级别自然语言指令的查询-段落对,用于定义相关性。
  • 使用大语言模型生成多样化、自由格式的指令,为相关性定义添加约束(例如时间、作者、格式等)。
  • 引入“指令负样本”——即在孤立情况下相关,但在特定指令下变得不相关的段落——以提升模型的判别能力。
  • 在指令增强数据集上微调双编码器检索器(例如 LLaMA-2 7B),同时保留主干模型的提示遵循能力。
  • 通过允许用户使用自然语言定义相关性(如“仅包含 2022 年前的文档”)实现检索的零样本提示控制。
  • 在 BEIR 和 InstructIR 上通过提示鲁棒性、指令遵循能力以及基于提示的超参数搜索评估泛化能力。
Figure 1: An illustration of the capabilities of retrieval models. Standard retrieval models find semantic similarity to the input query, typically matching using query keywords and phrases. Current instructable retrievers prepend a dataset prefix that generically describes the task and is also used
Figure 1: An illustration of the capabilities of retrieval models. Standard retrieval models find semantic similarity to the input query, typically matching using query keywords and phrases. Current instructable retrievers prepend a dataset prefix that generically describes the task and is also used

实验结果

研究问题

  • RQ1稠密检索模型能否被训练为遵循每查询的自然语言指令,如同语言模型响应提示一样?
  • RQ2指令微调如何影响检索器对查询+指令组合中词汇变化的鲁棒性?
  • RQ3能否通过提示技术在检索任务中实现零样本超参数优化,从而在不重新训练的情况下提升性能?
  • RQ4双编码器检索器在标准信息检索微调后,能在多大程度上保持提示遵循行为?
  • RQ5在训练中引入指令负样本在多大程度上提升了检索器对复杂相关性条件的理解能力?

主要发现

  • Promptriever 在 FollowIR 基准测试中达到最先进性能,相比之前方法,p-MRR 提升 +14.3,nDCG 提升 +3.1。
  • 其对查询和指令表述方式的鲁棒性显著增强,在 InstructIR 基准测试中实现 +12.9 Robustness@10。
  • 通过自然语言指令进行基于提示的超参数搜索,在 BEIR 基准测试中平均性能提升 +1.4。
  • 模型无需重新训练即可成功理解复杂、多条件的相关性指令(例如“非共同执导且在 2022 年前”)。
  • 在训练中引入指令负样本可提升模型区分相关与条件无关段落的能力。
  • Promptriever 胜过使用固定、数据集级前缀的现有指令微调检索器,证明了实例级别提示的优越性。
Figure 2: The data generation process to generate instruction-based retrieval data. We take the initial query and relevant passage and prompt an LM to generate an instruction that would match that query. Note that the instruction adds extra qualifications to the definition of relevance . We then ask
Figure 2: The data generation process to generate instruction-based retrieval data. We take the initial query and relevant passage and prompt an LM to generate an instruction that would match that query. Note that the instruction adds extra qualifications to the definition of relevance . We then ask

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。