arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.11267cs.CL
收藏

通过忠实微调缓解大语言模型幻觉

Mitigating Large Language Model Hallucination with Faithful Finetuning

The Chinese University of Hong Kong(香港中文大学);City University of Hong Kong(香港城市大学);Huawei Noah’s Ark Lab(华为诺亚方舟实验室)

Minda Hu, Bowei He, Yufei Wang, Liangyou Li, Chen Ma, Irwin King

AI总结:

针对大语言模型幻觉问题,本文提出 Faithful Finetuning(F2),通过精心设计的微调损失显式建模忠实问答过程,并在多个常用数据集上显著优于原始模型与基线。

摘要:

大语言模型(LLM)已在各类自然语言处理任务上展现出卓越性能。然而,它们容易生成流畅但不真实的回答,即所谓的“幻觉”。幻觉可能导致错误信息传播,并在关键应用中造成危害。缓解幻觉颇具挑战性,因为其源于噪声数据、模型过度自信、知识缺乏以及生成过程本身等因素。近期研究尝试通过表征编辑和解码算法解决该问题,在不进行重大结构改动或重新训练的情况下减少幻觉。然而,这些方法要么在潜在空间中隐式编辑 LLM 的行为,要么在解码过程中抑制输出不忠实结果的倾向,而没有对幻觉进行显式建模。在本工作中,我们提出 Faithful Finetuning(F2,忠实微调),这是一种新颖方法,通过在微调期间精心设计的损失函数,对忠实问答过程进行显式建模。我们在常用数据集上开展了大量实验,结果表明 F2 相比原始模型和基线方法取得了显著提升。

英文摘要:

Large language models (LLMs) have demonstrated remarkable performance on various natural language processing tasks. However, they are prone to generating fluent yet untruthful responses, known as "hallucinations". Hallucinations can lead to the spread of misinformation and cause harm in critical applications. Mitigating hallucinations is challenging as they arise from factors such as noisy data, model overconfidence, lack of knowledge, and the generation process itself. Recent efforts have attempted to address this issue through representation editing and decoding algorithms, reducing hallucinations without major structural changes or retraining. However, these approaches either implicitly edit LLMs' behavior in latent space or suppress the tendency to output unfaithful results during decoding instead of explicitly modeling on hallucination. In this work, we introduce Faithful Finetuning (F2), a novel method that explicitly models the process of faithful question answering through carefully designed loss functions during fine-tuning. We conduct extensive experiments on popular datasets and demonstrate that F2 achieves significant improvements over vanilla models and baselines.

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

↑