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

从误导性查询到准确回答:一种面向LLMs的三阶段微调方法

From Misleading Queries to Accurate Answers: A Three-Stage Fine-Tuning Method for LLMs

Zhejiang University(浙江大学);Renmin University of China(中国人民大学);AI Research Center, WeDoctor Cloud(WeDoctor Cloud人工智能研究中心)

Guocong Li, Weize Liu, Yihang Wu, Ping Wang, Shuaihan Huang, Hongxia Xu, Jian Wu

AI总结:

针对LLMs易受误导性输入影响的问题,提出一种三阶段微调方法,通过训练模型识别、纠正误导信息并生成准确答案,显著提升了回答准确性和事实性,减少了幻觉。

摘要:

大型语言模型(LLMs)在自然语言处理(NLP)中表现出色,但对输入查询的质量仍然高度敏感,尤其是当这些查询包含误导性或不准确的信息时。现有方法侧重于纠正输出,但往往忽略了提升LLMs检测和纠正输入本身误导性内容的潜力。在本文中,我们提出了一种新颖的三阶段微调方法,该方法增强了LLMs检测和纠正输入中误导性信息的能力,进一步提高了回答准确性并减少了幻觉。具体而言,这三个阶段包括:(1)训练LLMs识别误导性信息,(2)训练LLMs利用内置或外部知识纠正误导性信息,以及(3)训练LLMs基于纠正后的查询生成准确答案。为了评估我们的方法,我们在三个数据集上进行了幻觉检测任务和问答(QA)任务的实验,以及我们构建的两个包含误导性信息的数据集。实验结果表明,我们的方法显著提高了LLM回答的准确性和事实性,同时也增强了检测幻觉的能力,并减少了输出中幻觉的生成,特别是当查询包含误导性信息时。

英文摘要:

Large language models (LLMs) exhibit excellent performance in natural language processing (NLP), but remain highly sensitive to the quality of input queries, especially when these queries contain misleading or inaccurate information. Existing methods focus on correcting the output, but they often overlook the potential of improving the ability of LLMs to detect and correct misleading content in the input itself. In this paper, we propose a novel three-stage fine-tuning method that enhances the ability of LLMs to detect and correct misleading information in the input, further improving response accuracy and reducing hallucinations. Specifically, the three stages include (1) training LLMs to identify misleading information, (2) training LLMs to correct the misleading information using built-in or external knowledge, and (3) training LLMs to generate accurate answers based on the corrected queries. To evaluate our method, we conducted experiments on three datasets for the hallucination detection task and the question answering~(QA) task, as well as two datasets containing misleading information that we constructed. The experimental results demonstrate that our method significantly improves the accuracy and factuality of LLM responses, while also enhancing the ability to detect hallucinations and reducing the generation of hallucinations in the output, particularly when the query contains misleading information.

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

↑