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

利用RAG增强LLM事实准确性以对抗幻觉:私有知识库中领域特定查询的案例研究

Enhancing LLM Factual Accuracy with RAG to Counter Hallucinations: A Case Study on Domain-Specific Queries in Private Knowledge-Bases

Information Network Institute(信息网络研究院);Carnegie Mellon University(卡内基梅隆大学)

Jiarui Li, Ye Yuan, Zehua Zhang

AI总结:

本研究提出一个端到端RAG系统,结合数据微调,提升LLM在私有知识库领域特定查询中的事实准确性,实验证明有效并揭示小规模数据微调的局限。

摘要:

我们提出了一种端到端系统设计,旨在利用检索增强生成(RAG)提高大型语言模型(LLMs)在处理与私有知识库相关的领域特定且时效性强的查询时的事实准确性。我们的系统将RAG流程与上游数据集处理和下游性能评估相结合。针对LLM幻觉的挑战,我们使用一个源自卡内基梅隆大学(CMU)丰富资源并由教师模型标注的精选数据集对模型进行微调。实验表明,该系统在生成针对领域特定和时效性查询的更准确答案方面具有有效性。结果还揭示了使用小规模和偏斜数据集微调LLM的局限性。这项研究凸显了RAG系统通过外部数据集增强LLM以提升知识密集型任务性能的潜力。我们的代码和模型可在Github上获取。

英文摘要:

We proposed an end-to-end system design towards utilizing Retrieval Augmented Generation (RAG) to improve the factual accuracy of Large Language Models (LLMs) for domain-specific and time-sensitive queries related to private knowledge-bases. Our system integrates RAG pipeline with upstream datasets processing and downstream performance evaluation. Addressing the challenge of LLM hallucinations, we finetune models with a curated dataset which originates from CMU's extensive resources and annotated with the teacher model. Our experiments demonstrate the system's effectiveness in generating more accurate answers to domain-specific and time-sensitive inquiries. The results also revealed the limitations of fine-tuning LLMs with small-scale and skewed datasets. This research highlights the potential of RAG systems in augmenting LLMs with external datasets for improved performance in knowledge-intensive tasks. Our code and models are available on Github.

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

↑