Your Prompt Should Do More: Effects of Retrieval Instructions in Embedding Models

LLM SFT NLP DRRO RecSys / IR DRSA Neural Search
提示嵌入模型(prompted embedding models)近期受到越来越多的关注,尤其是在检索任务中——此时会将详尽的检索指令作为检索提示(retrieval prompt)的一部分提供给模型。多个新构建的数据集及相关研究已针对这一设定展开探索,结果表明,当前的嵌入模型往往难以稳定、可靠地遵循此类指令。本文聚焦于探究指令究竟如何影响非对称检索任务中检索查询(retrieval queries)的表征机制。我们发现,即使面对极为简单的任务指令,只要在评估过程中引入查询端干扰项(query-side distractors),模型便可能无法正确遵循指令。我们假设,这种行为源于当前嵌入模型的训练范式及其评估方式;并通过实验证明:在微调阶段主动引入查询端干扰项,可显著提升模型对指令的遵循能力,且对其他任务性能几乎不产生负面影响。
Prompted embedding models have recently received increasing attention, particularly for retrieval, where detailed retrieval instructions are provided as part of the retrieval prompt. Several new datasets and studies have examined this setting, showing that the current embedding models often struggle to follow such instructions reliably. In this paper, we study the mechanism of how instructions actually affect the representations of retrieval queries in asymmetric retrieval tasks. We show that models can fail to follow even simple task instructions when query-side distractors are included in the evaluation. We hypothesize that this behavior is driven by the training setup of current embedding models and their evaluation, and show that fine-tuning with added query-side distractors leads to substantial improvements, with minimal effect on other tasks.
许愿