Not All Contexts Are Equal: Teaching LLMs Credibility-aware Generation

Ruotong Pan, Boxi Cao, Hongyu Lin, Xianpei Han, Jia Zheng +3 more
4/10/2024
cs.CL

No official code found. Best implementation: panruotong/CAG (22 stars, MIT, last commit 2024-10-22).

Abstract

The rapid development of large language models has led to the widespread adoption of Retrieval-Augmented Generation (RAG), which integrates external knowledge to alleviate knowledge bottlenecks and mitigate hallucinations. However, the existing RAG paradigm inevitably suffers from the impact of flawed information introduced during the retrieval phrase, thereby diminishing the reliability and correctness of the generated outcomes. In this paper, we propose Credibility-aware Generation (CAG), a universally applicable framework designed to mitigate the impact of flawed information in RAG. At its core, CAG aims to equip models with the ability to discern and process information based on its credibility. To this end, we propose an innovative data transformation framework that generates data based on credibility, thereby effectively endowing models with the capability of CAG. Furthermore, to accurately evaluate the models' capabilities of CAG, we construct a comprehensive benchmark covering three critical real-world scenarios. Experimental results demonstrate that our model can effectively understand and utilize credibility for generation, significantly outperform other models with retrieval augmentation, and exhibit resilience against the disruption caused by noisy documents, thereby maintaining robust performance. Moreover, our model supports customized credibility, offering a wide range of potential applications.

View on arXivView PDF

Code Implementations(1)

panruotong/CAGCommunity100%
MIT

Implementation of Not All Contexts Are Equal: Teaching LLMs Credibility-aware Generation. Paper: https://arxiv.org/abs/2404.06809

222Shell, PythonFeb 27, 20241 years agoMIT
hotpotqalarge-language-modelsnlpretrieval-augmented-generationtime-sensitive

Similar Papers

Cite this paper

@article{pan2024contexts,
  title  = {Not All Contexts Are Equal: Teaching LLMs Credibility-aware Generation},
  author = {Ruotong Pan and Boxi Cao and Hongyu Lin and Xianpei Han and Jia Zheng and Sirui Wang and Xunliang Cai and Le Sun},
  year   = {2024},
  eprint = {2404.06809},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2404.06809v3}
}

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

Discussion