arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2409.02428cs.LGcs.AIcs.CLcs.SYeess.SY
收藏

语言模型作为定制环境多目标强化学习的高效奖励函数搜索器

Language Models as Efficient Reward Function Searchers for Custom-Environment Multi-Objective Reinforcement

Tsinghua Shenzhen International Graduate School, Tsinghua University, China(清华大学深圳国际研究生院,清华大学,中国);Department of Computer Science, University of Oxford, United Kingdom(英国牛津大学计算机科学系);Department of Data Science, New Jersey Institute of Technology, USA(美国新泽西理工学院数据科学系)

Guanwen Xie, Jingzehua Xu, Yiyuan Yang, Yimian Ding, Shuai Zhang

AI总结:

本文提出ERFSL,利用语言模型高效搜索奖励函数,通过生成奖励组件和使用奖励批评者修正代码,实现多目标强化学习任务中零样本学习的高效奖励函数设计。

摘要:

在强化学习任务中,设计和改进复杂定制环境和多重需求的奖励函数具有挑战性。本文提出ERFSL,一种利用大型语言模型(LLMs)的高效奖励函数搜索器,使LLMs成为有效的白盒搜索器,并突出其先进的语义理解能力。具体而言,我们为每个数值明确的用户需求生成奖励组件,并使用奖励批评者识别正确的代码形式。然后,LLMs为奖励组件分配权重以平衡其值,并通过灵活采用方向突变和交叉策略迭代调整权重,类似于遗传算法,基于训练日志分析器提供的上下文。我们将其应用于无直接人类反馈或奖励示例的定制数据收集RL任务(零样本学习)。奖励批评者仅需每个需求一个反馈实例即可有效纠正奖励代码,防止不可纠正的错误。权重初始化使在帕累托解集内获取不同奖励函数而无需权重搜索。即使权重偏差达500倍,平均仅需5.2次迭代即可满足用户需求。ERFSL也适用于大多数使用GPT-4o mini的提示,因为我们分解了权重搜索过程,以降低对数值和长上下文理解能力的要求。

英文摘要:

Achieving the effective design and improvement of reward functions in reinforcement learning (RL) tasks with complex custom environments and multiple requirements presents considerable challenges. In this paper, we propose ERFSL, an efficient reward function searcher using LLMs, which enables LLMs to be effective white-box searchers and highlights their advanced semantic understanding capabilities. Specifically, we generate reward components for each numerically explicit user requirement and employ a reward critic to identify the correct code form. Then, LLMs assign weights to the reward components to balance their values and iteratively adjust the weights without ambiguity and redundant adjustments by flexibly adopting directional mutation and crossover strategies, similar to genetic algorithms, based on the context provided by the training log analyzer. We applied the framework to a customized data collection RL task without direct human feedback or reward examples (zero-shot learning). The reward critic successfully corrects the reward code with only one feedback instance for each requirement, effectively preventing unrectifiable errors. The initialization of weights enables the acquisition of different reward functions within the Pareto solution set without the need for weight search. Even in cases where a weight is 500 times off, on average, only 5.2 iterations are needed to meet user requirements. The ERFSL also works well with most prompts utilizing GPT-4o mini, as we decompose the weight searching process to reduce the requirement for numerical and long-context understanding capabilities.

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

↑