atlas

Research map / Large language models / Retrieval and knowledge

RankRAG: Unifying Context Ranking with Retrieval-Augmented Generation in LLMs

NeurIPS 2024 · Large language models › Retrieval and knowledge · approach: RAG robustness and evaluation · 30 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Instruction-tunes a single LLM (Llama3-8B/70B) to both rerank retrieved contexts and generate RAG answers, using a small amount of ranking data mixed into the instruction-tuning blend.

Problem

Standard retrieve-then-generate RAG pipelines rely on weak dense retrievers and separate expert rerankers that generalize poorly, and LLMs degrade when given many retrieved contexts, so high-recall top-k selection remains difficult.

Approach

Instruction-tune one LLM for both context ranking (framed as True/False relevance QA and retrieval-augmented multi-passage ranking) and answer generation, so the LLM reranks top-N retrieved passages to top-k before generating; the unified (question, context, answer) format lets tasks transfer to each other.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add RankRAG's ranking-and-generation instruction tuningLlama3 70B · 9 general-domain benchmarksAvg.: 53.6 -> 56.1Helped
Add RankRAG's ranking-and-generation instruction tuningLlama3 8B · 9 general-domain benchmarksAvg.: 49.6 -> 52.6Helped
Add RankRAG biomedical-domain generalization without biomedical instruction fine-tuningLlama3 70B · Mirage biomedical benchmarkAvg.: 73.98 -> 78.06; 79.97Mixed
Remove reranking at inference (ablation)RankRAG 8B · 9 general-domain benchmarksAvg.: 52.6 -> 49.8Hurt
Remove retrieval-augmented QA training data (ablation)RankRAG 8B · 9 general-domain benchmarksAvg.: 52.6 -> 51.6Hurt
Remove retrieval-augmented ranking training data (ablation)RankRAG 8B · 9 general-domain benchmarksAvg.: 52.6 -> 51.8Hurt
Replace RankRAG training with RAFT training (ablation)RankRAG 8B · 9 general-domain benchmarksAvg.: 52.6 -> 48.1Hurt
Use Stage-I SFT only instead of the full RankRAG training (ablation)RankRAG 8B · 9 general-domain benchmarksAvg.: 52.6 -> 42.2Hurt
Add RankRAG reranking to retrieved contextsDragon retriever · NQRecall@5: 74.9 -> 80.3Helped

Surprising findings

Limitations

Experimental setup

Datasets: OpenAssistant Dolly SODA ELI5 Self-Instruct Unnatural Instructions FLAN Chain-of-thought datasets DROP NarrativeQA Quoref ROPES

Benchmarks: NQ TriviaQA PopQA HotpotQA 2WikimQA FEVER Doc2Dial TopiOCQA INSCIT Mirage

Metrics: Exact Match Accuracy F1 Recall@5/10/20

Baselines: ChatQA-1.5 Llama3-Instruct GPT-4-0613 GPT-4-turbo-2024-0409 GPT-3.5-turbo-1106 RankLLaMA BGE-Reranker-v2-m3 monoT5

Builds on: ChatQA RAFT RankLLaMA

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy