arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.09187cs.LGcs.AIcs.CL
收藏

通过 LLM 生成的进度函数实现自动化奖励

Automated Rewards via LLM-Generated Progress Functions

Vishnu Sarukkai, Brennan Shacklett, Zander Majercik, Kush Bhatia, Christopher Ré, Kayvon Fatahalian

AI总结:

本文提出 LLM 驱动的奖励生成框架,通过合成任务进度函数离散化状态并构造基于计数的内在奖励,在 Bi-DexHands 上以少 20 倍的奖励采样达到最先进策略性能。

摘要:

大型语言模型(LLM)有潜力利用其在各类任务中的广泛领域知识,使奖励工程实现自动化。然而,它们通常需要经过许多次试错迭代,才能生成有效的奖励函数。这一过程成本高昂,因为评估每一个采样得到的奖励函数,都需要针对该函数完成完整的策略优化流程。在本文中,我们提出一种由 LLM 驱动的奖励生成框架,该框架能够在具有挑战性的 Bi-DexHands 基准上生成最先进的策略,并且所需的奖励函数采样数比此前最先进的工作少 20 倍。我们的关键洞见是,将生成任务特定奖励的问题,归结为粗略估计任务进度的问题。我们的两步解决方案利用 LLM 的任务领域知识和代码合成能力,编写进度函数,用于根据给定状态估计任务进度。随后,我们使用这种进度概念对状态进行离散化,并在低维状态空间中生成基于计数的内在奖励。我们表明,LLM 生成的进度函数与基于计数的内在奖励相结合,对于我们的性能提升至关重要;而通用的基于哈希的计数,或直接将进度用作奖励函数等替代方案,均表现不足。

英文摘要:

Large Language Models (LLMs) have the potential to automate reward engineering by leveraging their broad domain knowledge across various tasks. However, they often need many iterations of trial-and-error to generate effective reward functions. This process is costly because evaluating every sampled reward function requires completing the full policy optimization process for each function. In this paper, we introduce an LLM-driven reward generation framework that is able to produce state-of-the-art policies on the challenging Bi-DexHands benchmark with 20x fewer reward function samples than the prior state-of-the-art work. Our key insight is that we reduce the problem of generating task-specific rewards to the problem of coarsely estimating task progress. Our two-step solution leverages the task domain knowledge and the code synthesis abilities of LLMs to author progress functions that estimate task progress from a given state. Then, we use this notion of progress to discretize states, and generate count-based intrinsic rewards using the low-dimensional state space. We show that the combination of LLM-generated progress functions and count-based intrinsic rewards is essential for our performance gains, while alternatives such as generic hash-based counts or using progress directly as a reward function fall short.

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

↑