Eliciting Critical Reasoning in Retrieval-Augmented Language Models via Contrastive Explanations

Leonardo Ranaldi, Marco Valentino, Andrè Freitas
10/30/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Retrieval-augmented generation (RAG) has emerged as a critical mechanism in contemporary NLP to support Large Language Models(LLMs) in systematically accessing richer factual context. However, the integration of RAG mechanisms brings its inherent challenges, as LLMs need to deal with potentially noisy contexts. Recent studies have shown that LLMs still struggle to critically analyse RAG-based in-context information, a limitation that may lead to incorrect inferences and hallucinations. In this paper, we investigate how to elicit critical reasoning in RAG via contrastive explanations. In particular, we propose Contrastive-RAG (C-RAG), a framework that (i) retrieves relevant documents given a query, (ii) selects and exemplifies relevant passages, and (iii) generates explanations that explicitly contrast the relevance of the passages to (iv) support the final answer. We show the impact of C-RAG building contrastive reasoning demonstrations from LLMs to instruct smaller models for retrieval-augmented tasks. Extensive experiments demonstrate that C-RAG improves state-of-the-art RAG models while (a) requiring significantly fewer prompts and demonstrations and (b) being robust to perturbations in the retrieved documents.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{ranaldi2024eliciting,
  title  = {Eliciting Critical Reasoning in Retrieval-Augmented Language Models via Contrastive Explanations},
  author = {Leonardo Ranaldi and Marco Valentino and Andrè Freitas},
  year   = {2024},
  eprint = {2410.22874},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.22874v1}
}

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

Discussion