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

通过自适应对比学习优化大型语言模型的知识

Refine Knowledge of Large Language Models via Adaptive Contrastive Learning

Shenzhen International Graduate School, Tsinghua University(清华大学深圳国际研究生院);Peng Cheng Laboratory(鹏城实验室);Sun-Yat Sen University(中山大学);INFLY TECH (Shanghai) Co., Ltd.(影革科技(上海)有限公司);University of Illinois Chicago(芝加哥大学伊利诺伊分校)

Yinghui Li, Haojing Huang, Jiayi Kuang, Yangning Li, Shu-Yu Guo, Chao Qu, Xiaoyu Tan, Hai-Tao Zheng, Ying Shen, Philip S. Yu

AI总结:

为缓解大型语言模型(LLMs)的幻觉问题,本文模仿人类学习过程设计自适应对比学习策略,根据模型知识掌握情况构建正负样本,优化知识表示,实验验证其能巩固正确知识、纠正错误并承认知识缺口。

摘要:

如何缓解大型语言模型(LLMs)的幻觉问题一直是LLMs研究社区追求的基本目标。纵观众多与幻觉相关的研究,主流方法类别之一是通过优化LLMs的知识表示以改变其输出来减少幻觉。考虑到这些工作的核心焦点是模型获取的知识,而知识长期以来一直是人类社会进步的中心主题,我们认为模型优化知识的过程可以从人类的学习方式中大大受益。在我们的工作中,通过模仿人类学习过程,我们设计了一种自适应对比学习策略。我们的方法根据LLMs对知识的实际掌握情况灵活构建不同的正负样本用于对比学习。该策略帮助LLMs巩固已掌握的正确知识,加深对已遇到但未完全掌握的正确知识的理解,忘记先前学到的错误知识,并诚实地承认缺乏的知识。在广泛使用的数据集上进行的大量实验和详细分析证明了我们方法的有效性。

英文摘要:

How to alleviate the hallucinations of Large Language Models (LLMs) has always been the fundamental goal pursued by the LLMs research community. Looking through numerous hallucination-related studies, a mainstream category of methods is to reduce hallucinations by optimizing the knowledge representation of LLMs to change their output. Considering that the core focus of these works is the knowledge acquired by models, and knowledge has long been a central theme in human societal progress, we believe that the process of models refining knowledge can greatly benefit from the way humans learn. In our work, by imitating the human learning process, we design an Adaptive Contrastive Learning strategy. Our method flexibly constructs different positive and negative samples for contrastive learning based on LLMs' actual mastery of knowledge. This strategy helps LLMs consolidate the correct knowledge they already possess, deepen their understanding of the correct knowledge they have encountered but not fully grasped, forget the incorrect knowledge they previously learned, and honestly acknowledge the knowledge they lack. Extensive experiments and detailed analyses on widely used datasets demonstrate the effectiveness of our method.

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

↑