Rare: Retrieval Augmented Retrieval With In-context Examples
2024 Β· Atula Tejaswi, Yoonsang Lee, Sujay Sanghavi, et al.
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.
Authors
(none)
Tags
Stats
Related papers
- RAVEN: In-context Learning With Retrieval-augmented Encoder-decoder Language Models (2023)0.00
- CODER: An Efficient Framework For Improving Retrieval Through Contextual Document Embedding Reranking (2021)7.16
- Llm-augmented Retrieval: Enhancing Retrieval Models Through Language Models And Doc-level Embedding (2024)0.00
- Revela: Dense Retriever Learning Via Language Modeling (2025)0.00
- Optimizing Retrieval For RAG Via Reinforcement Learning (2025)0.00
- Unsupervised Dense Retrieval With Relevance-aware Contrastive Pre-training (2023)10.44
- Re-ranking The Context For Multimodal Retrieval Augmented Generation (2025)0.00
- LMAR: Language Model Augmented Retriever For Domain-specific Knowledge Indexing (2025)1.57