RARe (Retrieval Augmented Retrieval with In-Context Examples), proposed in this paper, teaches retrieval models to learn from examples, just like LLMs do.
π https://arxiv.org/abs/2410.20088
Original Problem π€:
In-context learning works great for LLMs but hasn't been explored for retrieval models. Simply adding examples to queries doesn't work well for retrievers, creating a gap in leveraging example-based learning for information retrieval tasks.
-----
Solution in this Paper π οΈ:
β Introduces RARe (Retrieval Augmented Retrieval with In-Context Examples) that finetunes pre-trained models using semantically similar query-document pairs as examples
β Uses BM25 to find relevant example pairs during training and inference
β Augments queries with task instructions and retrieved examples in a specific format
β Works with both decoder-only LLMs and existing retriever models
-----
Key Insights π‘:
β Retrieved (semantically similar) examples work better than random examples
β Performance improves with more examples (up to 10 tested)
β Including negative examples in prompts doesn't improve performance
β Latency overhead diminishes for larger corpus sizes
-----
Results π:
β Achieves +2.72% nDCG gains on reasoning-oriented retrieval tasks
β Shows +1.41% nDCG@10 improvement on standard retrieval benchmarks
β Demonstrates stronger out-of-domain generalization compared to baseline models
β Maintains consistent improvements across different model architectures










