RARe: Retrieval Augmented Retrieval with In-Context Examples
该论文提出了一种名为RARe的方法,通过使用上下文示例来增强检索模型,从而显著提高了检索任务中的性能。
更新于 2024-11-09。作者:Atula Tejaswi、Yoonsang Lee、Sujay Sanghavi、Eunsol Choi。
中文摘要
我们研究了在上下文示例,在仅解码器语言模型(LLM)中广泛使用的情况下,是否可以提升嵌入模型在检索任务中的性能。与LLM不同,在推理时天真地将上下文示例(查询-文档对)添加到目标查询之前,并不能直接奏效。我们提出了一种简单的方法,使检索器能够使用上下文示例。我们的方法,RARe,通过使用与目标查询语义相似的查询的上下文示例来微调预训练模型。这种方法可以应用于适配各种基础架构(例如,仅解码器语言模型、检索器模型),并在各种开放域检索数据集(BeIR、RAR-b)上一致地实现了高达+2.72% nDCG的性能提升。特别是,我们发现RARe在域外泛化能力上比使用无上下文示例的模型更强,这与LLM中上下文学习的表现相似。我们进一步对上下文示例增强的设计选择进行了分析,并为该领域未来的研究奠定了基础。
英文摘要
We investigate whether in-context examples, widely used in decoder-only language models (LLMs), can improve embedding model performance in retrieval tasks. Unlike in LLMs, naively prepending in-context examples (query-document pairs) to the target query at inference time does not work out of the box. We introduce a simple approach to enable retrievers to use in-context examples. Our approach, RARe, finetunes a pre-trained model with in-context examples whose query is semantically similar to the target query. This can be applied to adapt various base architectures (i.e., decoder-only language models, retriever models) and consistently achieves performance gains of up to +2.72% nDCG across various open-domain retrieval datasets (BeIR, RAR-b). In particular, we find RARe exhibits stronger out-of-domain generalization compared to models using queries without in-context examples, similar to what is seen for in-context learning in LLMs. We further provide analysis on the design choices of in-context example augmentation and lay the foundation for future work in this space.
解读
一句话总结
该论文提出了一种名为RARe的方法,通过使用上下文示例来增强检索模型,从而显著提高了检索任务中的性能。
问题1:这篇论文想要解决什么具体问题?
• 问题背景:在检索任务中,如何有效地利用上下文示例来提高模型性能。 • 现有方案不足:直接在推理时将上下文示例添加到查询中并不会提高性能,甚至会导致性能下降。 • 研究目标:设计一种方法,使得检索模型能够利用上下文示例,并提高检索性能。
问题2:论文的核心创新点是什么?
• 技术创新:提出RARe方法,通过在训练时使用与目标查询语义相似的上下文示例来微调预训练模型。 • 方法改进:改进了查询格式,并在对比学习中使用改进的查询格式。 • 优势:与现有方法相比,RARe在各种开放域检索数据集上实现了性能提升,且具有更强的跨领域泛化能力。
问题3:实验结果如何验证了方法的有效性?
• 关键实验:在多个检索数据集上进行了实验,包括标准检索基准和推理导向的检索任务。 • 性能提升:在标准检索基准上,RARe实现了+1.41%的nDCG@10提升;在推理导向的检索任务上,提升了+2.72%。 • 对比结果:与不使用上下文示例的模型相比,RARe在多个数据集上均表现出更好的性能。
问题4:这个研究的实际应用价值是什么?
• 应用场景:适用于各种需要检索任务的场景,如问答系统、信息检索等。 • 实施建议:可以应用于各种预训练模型,包括解码器仅语言模型和检索器模型。 • 局限与展望:RARe方法需要一定的上下文示例,且在推理时引入了额外的延迟。未来可以探索更有效的上下文示例检索方法和减少推理延迟的方法。