Controlling Risk of Retrieval-augmented Generation: A Counterfactual Prompting Framework

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Chen, Lu, Zhang, Ruqing, Guo, Jiafeng, Fan, Yixing, Cheng, Xueqi
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866909414713196544
author Chen, Lu
Zhang, Ruqing
Guo, Jiafeng
Fan, Yixing
Cheng, Xueqi
author_facet Chen, Lu
Zhang, Ruqing
Guo, Jiafeng
Fan, Yixing
Cheng, Xueqi
contents Retrieval-augmented generation (RAG) has emerged as a popular solution to mitigate the hallucination issues of large language models. However, existing studies on RAG seldom address the issue of predictive uncertainty, i.e., how likely it is that a RAG model's prediction is incorrect, resulting in uncontrollable risks in real-world applications. In this work, we emphasize the importance of risk control, ensuring that RAG models proactively refuse to answer questions with low confidence. Our research identifies two critical latent factors affecting RAG's confidence in its predictions: the quality of the retrieved results and the manner in which these results are utilized. To guide RAG models in assessing their own confidence based on these two latent factors, we develop a counterfactual prompting framework that induces the models to alter these factors and analyzes the effect on their answers. We also introduce a benchmarking procedure to collect answers with the option to abstain, facilitating a series of experiments. For evaluation, we introduce several risk-related metrics and the experimental results demonstrate the effectiveness of our approach. Our code and benchmark dataset are available at https://github.com/ict-bigdatalab/RC-RAG.
format Preprint
id arxiv_https___arxiv_org_abs_2409_16146
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Controlling Risk of Retrieval-augmented Generation: A Counterfactual Prompting Framework
Chen, Lu
Zhang, Ruqing
Guo, Jiafeng
Fan, Yixing
Cheng, Xueqi
Computation and Language
Retrieval-augmented generation (RAG) has emerged as a popular solution to mitigate the hallucination issues of large language models. However, existing studies on RAG seldom address the issue of predictive uncertainty, i.e., how likely it is that a RAG model's prediction is incorrect, resulting in uncontrollable risks in real-world applications. In this work, we emphasize the importance of risk control, ensuring that RAG models proactively refuse to answer questions with low confidence. Our research identifies two critical latent factors affecting RAG's confidence in its predictions: the quality of the retrieved results and the manner in which these results are utilized. To guide RAG models in assessing their own confidence based on these two latent factors, we develop a counterfactual prompting framework that induces the models to alter these factors and analyzes the effect on their answers. We also introduce a benchmarking procedure to collect answers with the option to abstain, facilitating a series of experiments. For evaluation, we introduce several risk-related metrics and the experimental results demonstrate the effectiveness of our approach. Our code and benchmark dataset are available at https://github.com/ict-bigdatalab/RC-RAG.
title Controlling Risk of Retrieval-augmented Generation: A Counterfactual Prompting Framework
topic Computation and Language
url https://arxiv.org/abs/2409.16146