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

超越人类偏好:通过大语言模型探索强化学习轨迹评估与改进

Beyond Human Preferences: Exploring Reinforcement Learning Trajectory Evaluation and Improvement through LLMs

Beihang University(北京航空航天大学)

Zichao Shen, Tianchen Zhu, Qingyun Sun, Shiqi Gao, Jianxin Li

AI总结:

针对复杂约束下奖励函数设计困难和人类偏好数据获取成本高的问题,本文提出LLM4PG框架,利用大语言模型自动生成偏好并重建奖励函数,实验表明其能加速强化学习收敛并减少对专家知识的依赖。

摘要:

强化学习(RL)在复杂游戏任务中评估策略轨迹时面临挑战,原因在于难以设计全面且精确的奖励函数。这一固有困难限制了强化学习在具有多样化约束的游戏环境中的更广泛应用。基于偏好的强化学习(PbRL)提出了一种开创性框架,利用人类偏好作为关键奖励信号,从而避免了繁琐的奖励工程。然而,从人类专家处获取偏好数据成本高昂且效率低下,尤其是在复杂约束条件下更是如此。为应对这一挑战,我们提出了一种由大语言模型(LLM)驱动的自动偏好生成框架,命名为LLM4PG,该框架利用大语言模型的能力对轨迹进行抽象、对偏好进行排序,并重建奖励函数以优化条件化策略。在具有复杂语言约束的任务上的实验证明了我们由大语言模型驱动的奖励函数的有效性,加速了强化学习的收敛,并克服了原始奖励结构下进展缓慢或停滞所导致的停滞问题。该方法减轻了对专业人类知识的依赖,并展示了大语言模型在提升复杂真实环境中强化学习有效性的潜力。

英文摘要:

Reinforcement learning (RL) faces challenges in evaluating policy trajectories within intricate game tasks due to the difficulty in designing comprehensive and precise reward functions. This inherent difficulty curtails the broader application of RL within game environments characterized by diverse constraints. Preference-based reinforcement learning (PbRL) presents a pioneering framework that capitalizes on human preferences as pivotal reward signals, thereby circumventing the need for meticulous reward engineering. However, obtaining preference data from human experts is costly and inefficient, especially under conditions marked by complex constraints. To tackle this challenge, we propose a LLM-enabled automatic preference generation framework named LLM4PG , which harnesses the capabilities of large language models (LLMs) to abstract trajectories, rank preferences, and reconstruct reward functions to optimize conditioned policies. Experiments on tasks with complex language constraints demonstrated the effectiveness of our LLM-enabled reward functions, accelerating RL convergence and overcoming stagnation caused by slow or absent progress under original reward structures. This approach mitigates the reliance on specialized human knowledge and demonstrates the potential of LLMs to enhance RL's effectiveness in complex environments in the wild.

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

↑