[论文解读] Eureka: Human-Level Reward Design via Coding Large Language Models
Eureka 使用编码 LLMs(如 GPT-4)自主生成并迭代改进可执行的奖励函数以进行 RL,在29个环境中达到人类水平的表现,并通过课程学习实现灵巧的笔尖旋转。
Large Language Models (LLMs) have excelled as high-level semantic planners for sequential decision-making tasks. However, harnessing them to learn complex low-level manipulation tasks, such as dexterous pen spinning, remains an open problem. We bridge this fundamental gap and present Eureka, a human-level reward design algorithm powered by LLMs. Eureka exploits the remarkable zero-shot generation, code-writing, and in-context improvement capabilities of state-of-the-art LLMs, such as GPT-4, to perform evolutionary optimization over reward code. The resulting rewards can then be used to acquire complex skills via reinforcement learning. Without any task-specific prompting or pre-defined reward templates, Eureka generates reward functions that outperform expert human-engineered rewards. In a diverse suite of 29 open-source RL environments that include 10 distinct robot morphologies, Eureka outperforms human experts on 83% of the tasks, leading to an average normalized improvement of 52%. The generality of Eureka also enables a new gradient-free in-context learning approach to reinforcement learning from human feedback (RLHF), readily incorporating human inputs to improve the quality and the safety of the generated rewards without model updating. Finally, using Eureka rewards in a curriculum learning setting, we demonstrate for the first time, a simulated Shadow Hand capable of performing pen spinning tricks, adeptly manipulating a pen in circles at rapid speed.
研究动机与目标
- 激发强化学习中奖励设计的挑战,以及LLMs的高层次规划与低层次操作之间的差距。
- 开发一个通用的奖励设计流程,不依赖于特定任务提示或预定义模板。
- 利用环境代码作为上下文、进化搜索和奖励反思来自动生成并改进奖励函数。
- 证明由LLM生成的奖励在多样的机器人形态与任务中可以超越专家人类奖励。
提出的方法
- 将原始环境代码作为上下文喂给编码型LLM,以零-shot方式生成可执行的奖励函数。
- 使用每次迭代多样本的进化搜索来发现并改进奖励程序。
- 基于策略训练反馈的上下文内奖励变异和奖励反思提供有针对性的编辑。
- 通过GPU加速的RL循环(Isaac Gym)评估候选奖励并迭代改进。
- 支持多次随机重启和五次进化迭代,每次迭代16个样本,以探索奖励空间。
- 开源提示、环境和奖励,以实现可重复性和进一步研究。
实验结果
研究问题
- RQ1编码型LLM能否在没有任务特定提示或模板的情况下生成可执行的高质量奖励函数?
- RQ2进化搜索结合上下文内的细化是否能提升奖励质量,超越初始的零-shot 奖励?
- RQ3在多样的机器人和任务中,LLM 生成的奖励是否与人工设计的奖励竞争甚至优越?
- RQ4是否可以在不更新模型的情况下,将人类反馈整合以生成更符合人类偏好的奖励?
- RQ5课程学习是否能够利用 Eureka 奖励学习到灵巧技能(如笔尖旋转)?
主要发现
- Eureka 在 10 种机器人形态的 29 个任务中,在 83% 的任务上超越人类奖励,平均归一化提升为 52%。
- 该方法解决了以前不可实现的灵巧操控任务,使在 Shadow Hand 上通过课程学习实现笔尖旋转成为可能。
- 奖励反思和上下文学习使得有针对性的奖励编辑提升了性能,消融实验显示若无反思会有显著下降。
- Eureka 展示了一条无梯度的 RLHF 路径,其中人类输入在不更新模型的情况下 refine 奖励。
- 从人类奖励出发,Eureka 仍然提升了性能,表明强大的上下文内奖励细化能力。
- Eureka 生成的奖励往往具有新颖性且与人类奖励的相关性较弱,表明发现了新的设计原则。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。