arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2509.20162cs.CLcs.AI
收藏

通过增强生成强化学习为大语言模型嵌入领域知识

Embedding Domain Knowledge for Large Language Models via Reinforcement Learning from Augmented Generation

Laboratory of Speech and Intelligent Information Processing, Institute of Acoustics, Chinese Academy of Sciences(语音与智能信息处理实验室,声学研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);China Southern Power Grid Artificial Intelligence Technology Co., Ltd.(中国南方电网人工智能技术有限公司)

Chaojun Nie, Jun Zhou, Guanxiang Wang, Shisong Wu, Zichen Wang

AI总结:

针对LLM领域知识稀缺及CPT、SFT的不足,提出RLAG,通过高对数概率采样与三项定制奖励迭代优化,显著提升多领域问答与解释质量。

摘要:

大语言模型(LLM)在特定领域任务上往往表现有限,原因在于专业信息在其训练数据中天然占比不均,以及这些数据集具有静态特性。知识稀缺和时间滞后给领域应用造成了知识缺口。尽管在领域数据集上进行训练后处理可以将知识嵌入模型,但现有方法存在一些局限:持续预训练(CPT)对领域文档中的所有 token 同等看待,无法优先突出关键知识点;而使用问答对的监督微调(SFT)难以形成复杂推理任务所需的连贯知识结构。为应对这些挑战,我们提出增强生成强化学习(RLAG)。该方法在采样生成与通过计算得到的奖励优化模型之间迭代循环,从而有效嵌入关键且上下文连贯的领域知识。我们选择对数概率最高的生成输出作为采样结果,随后计算三项定制奖励指标以指导优化过程。为全面评估领域专业能力,我们评测了答案准确率,以及针对答对问题所生成解释的合理性。在医学、法律、天文学和时事数据集上的实验结果表明,我们提出的方法显著优于基线方法。代码和数据已在 https://github.com/ChaojunNie/RLAG 开源。

英文摘要:

Large language models (LLMs) often exhibit limited performance on domain-specific tasks due to the natural disproportionate representation of specialized information in their training data and the static nature of these datasets. Knowledge scarcity and temporal lag create knowledge gaps for domain applications. While post-training on domain datasets can embed knowledge into models, existing approaches have some limitations. Continual Pre-Training (CPT) treats all tokens in domain documents with equal importance, failing to prioritize critical knowledge points, while supervised fine-tuning (SFT) with question-answer pairs struggles to develop the coherent knowledge structures necessary for complex reasoning tasks. To address these challenges, we propose Reinforcement Learning from Augmented Generation (RLAG). Our approach iteratively cycles between sampling generations and optimizing the model through calculated rewards, effectively embedding critical and contextually coherent domain knowledge. We select generated outputs with the highest log probabilities as the sampling result, then compute three tailored reward metrics to guide the optimization process. To comprehensively evaluate domain expertise, we assess answer accuracy and the rationality of explanations generated for correctly answered questions. Experimental results across medical, legal, astronomy, and current events datasets demonstrate that our proposed method significantly outperforms baseline approaches. Our code and data are open sourced at https://github.com/ChaojunNie/RLAG.

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

↑