RARe: Retrieval Augmented Retrieval with In-Context Examples

Atula Tejaswi, Yoonsang Lee, Sujay Sanghavi, Eunsol Choi
10/26/2024
cs.CLcs.AIcs.IR

No official code found. Best implementation: atutej/RARe (8 stars, last commit 2025-01-09).

Abstract

While in-context learning is well-studied with decoder-only language models (LLMs), its utility for encoder-only models remains underexplored. We study in-context learning for encoder-only models for text retrieval tasks. Can incorporating in-context examples (query-document pairs) to the target query enhance retriever performance? Our approach, RARe, finetunes a pre-trained model with in-context examples whose query is semantically similar to the target query. This approach achieves performance gains of up to +2.72% nDCG across open-domain retrieval datasets (BeIR, RAR-b) compared to using the target query only as an input. 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 for retrievers and lay the foundation for future work.

View on arXivView PDF

Code Implementations(1)

atutej/RAReCommunity100%
81HTML, RubyOct 7, 20241 years ago

Similar Papers

Cite this paper

@article{tejaswi2024rare,
  title  = {RARe: Retrieval Augmented Retrieval with In-Context Examples},
  author = {Atula Tejaswi and Yoonsang Lee and Sujay Sanghavi and Eunsol Choi},
  year   = {2024},
  eprint = {2410.20088},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.20088v2}
}

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/2410.20088.svg)](https://codeofpaper.com/paper/2410.20088)

Discussion