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

KSOD:面向大语言模型的按需知识补充

KSOD: Knowledge Supplement for LLMs On Demand

School of Computer Science, Peking University(北京大学计算机学院)

Haoran Li, Junfeng Hu

AI总结:

本文提出 KSOD 框架,通过识别并验证大语言模型的缺失知识,以基于知识的监督微调实现按需知识补充,在提升领域任务性能的同时保持通用任务表现。

摘要:

大语言模型(LLMs)已在多种任务中展现出卓越能力,但在领域特定任务中仍会产生错误。为了进一步提升其性能,我们提出 KSOD(Knowledge Supplement for LLMs On Demand,面向大语言模型的按需知识补充),这是一个新颖的框架,通过基于知识的监督微调(SFT)来增强大语言模型的能力。KSOD 从知识缺失的角度分析错误原因,识别大语言模型中可能导致错误的潜在缺失知识。随后,KSOD 在知识数据集上微调一个知识模块,并据此验证大语言模型是否确实缺少所识别的知识。如果知识缺失得到验证,KSOD 就利用该知识模块为大语言模型补充所识别的知识。在特定知识而非特定任务上微调大语言模型,实现了任务与知识的解耦;我们在两个领域特定基准和四个通用基准上的实验从经验上证明,KSOD 在需要所补充知识的任务上提升了大语言模型的性能,同时保持了其在其他任务上的表现。我们的发现揭示了利用基于知识的监督微调提升大语言模型能力的潜力。

英文摘要:

Large Language Models (LLMs) have demonstrated remarkable capabilities in various tasks, yet still produce errors in domain-specific tasks. To further improve their performance, we propose KSOD (Knowledge Supplement for LLMs On Demand), a novel framework that empowers LLMs to improve their capabilities with knowledge-based supervised fine-tuning (SFT). KSOD analyzes the causes of errors from the perspective of knowledge deficiency by identifying potential missing knowledge in LLM that may lead to the errors. Subsequently, KSOD tunes a knowledge module on knowledge dataset and verifies whether the LLM lacks the identified knowledge based on it. If the knowledge is verified, KSOD supplements the LLM with the identified knowledge using the knowledge module. Tuning LLMs on specific knowledge instead of specific task decouples task and knowledge and our experiments on two domain-specific benchmarks and four general benchmarks empirically demonstrate that KSOD enhances the performance of LLMs on tasks requiring the supplemented knowledge while preserving their performance on other tasks. Our findings shed light on the potential of improving the capabilities of LLMs with knowledge-based SFT.

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

↑