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

最小化大型语言模型中的事实不一致和幻觉

Minimizing Factual Inconsistency and Hallucination in Large Language Models

Quantiphi(Quantiphi公司)

Muneeswaran I, Shreya Saxena, Siva Prasad, M V Sai Prakash, Advaith Shankar, Varun V, Vishal Vaddina, Saisubramaniam Gopalakrishnan

AI总结:

提出多阶段框架先生成并验证原理再生成答案,有效减少LLM幻觉,显著提升GPT-3.5-turbo及小型开源模型在药物查询等任务中的忠实度与准确率。

摘要:

大型语言模型(LLMs)因其在各种语言相关任务中的显著能力,被广泛应用于医疗、教育和金融等关键领域。然而,LLMs容易生成事实错误的回答或“幻觉”,这可能导致用户对其可信度和信任度的丧失。为解决这一问题,我们提出了一种多阶段框架:首先生成基本原理,验证并修正错误的部分,然后将其作为支持性参考来生成答案。生成的原理增强了答案的透明度,我们的框架通过利用该原理和对上下文的参考,提供了模型如何得出该答案的洞察。在本文中,我们展示了该框架在提升生命科学行业药物相关查询回答质量方面的有效性。我们的框架改进了传统的Retrieval Augmented Generation(RAG,检索增强生成),使OpenAI GPT-3.5-turbo在两个数据集上的忠实度提高了14-25%,准确率提高了16-22%。此外,基于我们框架的微调样本使较小的开源LLMs的准确率提高了33-42%,并在商业模型上与RAG相竞争。

英文摘要:

Large Language Models (LLMs) are widely used in critical fields such as healthcare, education, and finance due to their remarkable proficiency in various language-related tasks. However, LLMs are prone to generating factually incorrect responses or "hallucinations," which can lead to a loss of credibility and trust among users. To address this issue, we propose a multi-stage framework that generates the rationale first, verifies and refines incorrect ones, and uses them as supporting references to generate the answer. The generated rationale enhances the transparency of the answer and our framework provides insights into how the model arrived at this answer, by using this rationale and the references to the context. In this paper, we demonstrate its effectiveness in improving the quality of responses to drug-related inquiries in the life sciences industry. Our framework improves traditional Retrieval Augmented Generation (RAG) by enabling OpenAI GPT-3.5-turbo to be 14-25% more faithful and 16-22% more accurate on two datasets. Furthermore, fine-tuning samples based on our framework improves the accuracy of smaller open-access LLMs by 33-42% and competes with RAG on commercial models.

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

↑