arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.01080cs.CLcs.AI
收藏

Face4RAG:面向中文检索增强生成的事实一致性评估

Face4RAG: Factual Consistency Evaluation for Retrieval Augmented Generation in Chinese

Ant Group(蚂蚁集团);Tsinghua University(清华大学)

Yunqi Xu, Tianchi Cai, Jiyan Jiang, Xierui Song

AI总结:

针对现有RAG事实一致性评估方法依赖特定LLM数据集、泛化性不足且无法检测逻辑谬误的问题,该研究提出首个独立于LLM的中文FCE基准Face4RAG,并设计L-Face4RAG方法,通过逻辑保留分解与事实-逻辑评估显著提升检测性能。

摘要:

传统检索增强生成(Retrieval Augmented Generation,RAG)中普遍存在的事实不一致错误问题推动了事实一致性评估(Factual Consistency Evaluation,FCE)的研究。尽管此前已有多种FCE方法被提出,但这些方法均在由特定大语言模型(Large Language Models,LLMs)生成的数据集上进行评估。由于缺乏全面的基准测试,这些FCE方法在具有不同错误分布、甚至存在未见过的错误类型的其他LLM上的表现仍未被探究,因为这些方法可能无法检测出其他LLM生成的错误类型。为填补这一空白,本文提出了首个独立于底层LLM的综合性RAG事实一致性评估基准Face4RAG。该基准包含一个基于精心设计的事实不一致错误类型学构建的合成数据集,以及一个由六种常用LLM构建的真实场景数据集,可支持针对特定错误类型或真实错误分布的FCE方法评估。在该基准上,我们发现现有FCE方法无法检测逻辑谬误——即答案与检索到的参考文献之间的逻辑结构不匹配问题。为解决这一问题,我们进一步提出了名为L-Face4RAG的新方法,该方法包含逻辑保留式答案分解和事实-逻辑FCE两项创新设计。大量实验表明,L-Face4RAG在广泛任务的事实不一致检测上显著优于现有方法,其表现甚至超出了最初推动该研究的RAG任务范畴。该基准与我们提出的方法均已公开。

英文摘要:

The prevailing issue of factual inconsistency errors in conventional Retrieval Augmented Generation (RAG) motivates the study of Factual Consistency Evaluation (FCE). Despite the various FCE methods proposed earlier, these methods are evaluated on datasets generated by specific Large Language Models (LLMs). Without a comprehensive benchmark, it remains unexplored how these FCE methods perform on other LLMs with different error distributions or even unseen error types, as these methods may fail to detect the error types generated by other LLMs. To fill this gap, in this paper, we propose the first comprehensive FCE benchmark \emph{Face4RAG} for RAG independent of the underlying LLM. Our benchmark consists of a synthetic dataset built upon a carefully designed typology for factuality inconsistency error and a real-world dataset constructed from six commonly used LLMs, enabling evaluation of FCE methods on specific error types or real-world error distributions. On the proposed benchmark, we discover the failure of existing FCE methods to detect the logical fallacy, which refers to a mismatch of logic structures between the answer and the retrieved reference. To fix this issue, we further propose a new method called \emph{L-Face4RAG} with two novel designs of logic-preserving answer decomposition and fact-logic FCE. Extensive experiments show L-Face4RAG substantially outperforms previous methods for factual inconsistency detection on a wide range of tasks, notably beyond the RAG task from which it is originally motivated. Both the benchmark and our proposed method are publicly available.\footnote{\url{https://huggingface.co/datasets/yq27/Face4RAG}\label{link_face4rag}}

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑