Summary
This work proposes an effective approach that enhances existing RAG methods by introducing an additional context refinement step. This step filters out retrieved, but non-relevant contexts prior to including them as context in the input for answer generation.
The authors train context reranking alongside answer generation using a single LLM. They demonstrate that adding only a fraction of ranking data to the training blend yields superior ranking performance compared to training the same model in isolation on the ranking data, while outperforming other models that have been trained on 10 times more ranking data.
For evaluation, the authors compare their method on 9 general- and 5 specific-domain datasets, showing consistent improvements across LLM sizes for the Llama model family (Llama 2 and 3) over existing methods.
Strengths
- The paper introduces the novel idea of using the same LLM to first assess the relevance of individual contexts in a cross-encoder ranking style before using them as input for answer generation.
- The proposed RankRAG outperforms existing methods on various general and specific-domain datasets.
- Extensive experimentation and ablations covers a wide range of possible setups including LLM size, retriever, and efficiency and effect of different model components.
Weaknesses
Main concern:
- Reranking contributes only around 5% of the overall effectiveness on average (Table 4 RankRAG compared to Llama3-ChatQA-1.5-X), and the 7x computational overhead in inference time raises questions about its realistic application, given the computational demands of large models already without ranking contexts. The ratio of performance gained ( in combination with no sig. testing) and increase in computation is my main issue with this work. I am aware reranking fewer contexts decreases performance, however, similarity decreases performance gain over other methods.
- No significance testing was done (for both generation on ranking ) to strengthen effectiveness claims as differences for most datasets are minor. Authors
justify in their additionally provided checklist that sig. testing is not needed as generation and ranking is deterministic, this however, touches upon a different aspect and does not remove the need for testing whether the performance is significantly better than previous methods.
Further, improvements in Table 2 stem from NQ and PopQA which are relatively simple datasets that can be answered with a single context, therefore it is not apparent why RankRAG would particularly excel at those. Moreover, the ranking performance for these datasets in Table 6 only marginally improves over other rerankers, therefore it is to be expected to obtain similar gains when replacing the RankRAG reranker module with other strong rerankers. As a side note averaging over different metrics - even though seen in many recent works - should not be done.
Other points to improve upon:
- No information about the crowdsourced dataset is provided.
- In Section 4.2.3, the claim that LLM needs to be robust against irrelevant context contradicts the proposal to filter out irrelevant context beforehand.
Some experimental setups are unclear:
- It is not described how true/false tokens from context ranking are translated into a score that can be used for ranking.
- In Section 5.1, it is not clear if baselines use different retrieval setups; otherwise, effectiveness claims do not seem valid.
- It is unclear which number k is eventually used in RankRAG. The paper mentions optimizing for
k=5,10,20, the baselines.
- The related work section could mention GRITLM as the first model jointly training answer generation and ranking for RAG: Muennighoff, Niklas, et al. "Generative representational instruction tuning." arXiv preprint arXiv:2402.09906 (2024).
Issues in Writing:
- Line 332: "Observe that even with N = 20, We noted that" – incomplete sentence.
- Line 41: "in RAG framework" -> "in the RAG framework".
- Caption Fig 1: "the strongest RAG model," -> "the strongest RAG models,".
- Line 100: "embedding model" -> "embedding models".
- Line 111: "As illurstraded" -> "As illustrated".
- Line 112: "one of the strongest model." -> "one of the strongest models".
- Line 157: "that, it is" -> "that it is".
- Line 165: "The LLM need" -> "The LLM needs".
- Line 169: "ranking data are" -> "ranking data is".
Questions
- Why is a fixed number of contexts used? Some questions might need more contexts such as multi-hop datasets while others such as NQ (single context dataset) would need less. Instead of a score cutoff, why not use a dynamic number of contexts that is determined by the binary true/false label the mode already outputs?
- In Section 5.4, the paper states that it incurs an additional 1.8× to 7.0× increase in time, significantly less than the 20× to 100× increase one might expect. It is not sufficiently explained why one would expect a 100x increase in time.
- The approach for reranking context looks at passages individually, but retrieval training included listwise ranking. Was listwise ranking also tried for context reranking?
Limitations
The authors addressed the limitations adequately, however, could emphasize more on the dramatic inference time increase that results from the reranking step.