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

KaFT:提升LLMs特定领域问答性能的知识感知微调

KaFT: Knowledge-aware Fine-tuning for Boosting LLMs' Domain-specific Question-Answering Performance

School of Computer Science, National Engineering Research Center for Multimedia Software, Institute of Artificial Intelligence and Hubei Key Laboratory of Multimedia and Network Communication Engineering(计算机科学学院、多媒体软件国家工程研究中心、人工智能研究院、多媒体与网络通信工程湖北省重点实验室)

Qihuang Zhong, Liang Ding, Xiantao Cai, Juhua Liu, Bo Du, Dacheng Tao

AI总结:

本文提出知识感知微调方法KaFT,通过查询多样化策略检测知识冲突,并根据冲突级别为训练样本分配不同奖励调整训练权重,有效提升了LLMs在特定领域问答中的性能和泛化能力,同时缓解了幻觉问题。

摘要:

监督微调(SFT)是提升大型语言模型(LLMs)特定领域问答(QA)性能的常用方法。然而,近期文献表明,由于LLMs的内部知识与训练数据的上下文知识之间存在冲突,使用完整QA训练集的普通SFT通常效果不佳。在本文中,我们首先设计了一种查询多样化策略用于稳健的冲突检测,随后进行了一系列实验以分析知识冲突的影响。我们发现:1)具有不同冲突程度的训练样本贡献不同,其中在具有大冲突的数据上进行SFT会导致灾难性的性能下降;2)与直接过滤掉冲突数据相比,适当应用冲突数据会更有益。受此启发,我们提出了一种简单而有效的知识感知微调(即KaFT)方法,以有效提升LLMs的性能。KaFT的核心是根据冲突级别为不同训练样本分配不同奖励,从而调整训练权重。大量实验表明,KaFT在四个LLMs上带来了一致且显著的改进。更多分析证明,KaFT有效提升了模型泛化能力并缓解了幻觉问题。

英文摘要:

Supervised fine-tuning (SFT) is a common approach to improve the domain-specific question-answering (QA) performance of large language models (LLMs). However, recent literature reveals that due to the conflicts between LLMs' internal knowledge and the context knowledge of training data, vanilla SFT using the full QA training set is usually suboptimal. In this paper, we first design a query diversification strategy for robust conflict detection and then conduct a series of experiments to analyze the impact of knowledge conflict. We find that 1) training samples with varied conflicts contribute differently, where SFT on the data with large conflicts leads to catastrophic performance drops; 2) compared to directly filtering out the conflict data, appropriately applying the conflict data would be more beneficial. Motivated by this, we propose a simple-yet-effective Knowledge-aware Fine-tuning (namely KaFT) approach to effectively boost LLMs' performance. The core of KaFT is to adapt the training weight by assigning different rewards for different training samples according to conflict level. Extensive experiments show that KaFT brings consistent and significant improvements across four LLMs. More analyses prove that KaFT effectively improves the model generalization and alleviates the hallucination.

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

↑