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

用于使大语言模型智能体与交互环境对齐的强化学习:量化并缓解提示过拟合

Reinforcement Learning for Aligning Large Language Models Agents with Interactive Environments: Quantifying and Mitigating Prompt Overfitting

Mohamed Salim Aissi, Clement Romac, Thomas Carta, Sylvain Lamprier, Pierre-Yves Oudeyer, Olivier Sigaud, Laure Soulier, Nicolas Thome

AI总结:

该研究针对大语言模型经强化学习微调后对提示表述敏感、易出现性能下降的问题,提出分析框架探究敏感性来源,并采用对比损失缓解该问题,提升模型鲁棒性与泛化能力。

摘要:

强化学习(RL)是将大语言模型(LLMs)知识与序列决策任务对齐的一种有前景的方法。然而,鲜有研究深入探究在特定环境中用RL微调对LLM智能体能力的影响。本文提出一个新颖框架,用于分析文本环境中经过RL训练的LLMs对提示表述的敏感性。研究发现,当LLMs面对与RL训练阶段所用表述不同的提示时,性能会出现下降。此外,我们通过检查模型的内部表示和显著token,分析了这种敏感性的来源。最后,我们提出使用对比损失来缓解这种敏感性,提升LLMs的鲁棒性和泛化能力。

英文摘要:

Reinforcement learning (RL) is a promising approach for aligning large language models (LLMs) knowledge with sequential decision-making tasks. However, few studies have thoroughly investigated the impact on LLM agents capabilities of fine-tuning them with RL in a specific environment. In this paper, we propose a novel framework to analyze the sensitivity of LLMs to prompt formulations following RL training in a textual environment. Our findings reveal that the performance of LLMs degrades when faced with prompt formulations different from those used during the RL training phase. Besides, we analyze the source of this sensitivity by examining the model's internal representations and salient tokens. Finally, we propose to use a contrastive loss to mitigate this sensitivity and improve the robustness and generalization capabilities of LLMs.

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

↑