arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.10540cs.AIcs.NEcs.RO
收藏

利用大型语言模型生成与演化高速公路驾驶奖励函数

Generating and Evolving Reward Functions for Highway Driving with Large Language Models

The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Guangdong Provincial Key Lab of Integrated Communication, Sensing and Computation for Ubiquitous Internet of Things(广东省普适物联网集成通信、感知与计算重点实验室)

Xu Han, Qiannan Yang, Xianda Chen, Xiaowen Chu, Meixin Zhu

AI总结:

本文提出结合 LLM 与强化学习的框架,通过代码生成、RL 训练和迭代反思自动演化高速公路驾驶奖励函数,在三种交通配置下较专家手工奖励平均成功率提升 22%。

摘要:

强化学习(RL)通过最大化奖励函数以获得最优策略,在推动自动驾驶技术发展方面发挥着关键作用。然而,在许多实践中,设计这些奖励函数一直是一个复杂的人工过程。为降低这种复杂性,我们提出了一种将大型语言模型(LLM)与 RL 相结合的新颖框架,以改进自动驾驶中的奖励函数设计。该框架利用 LLM 已在其他领域得到验证的编程能力,为高速公路场景生成并演化奖励函数。框架首先指示 LLM 根据驾驶环境和任务描述创建初始奖励函数代码。随后,该代码通过包含 RL 训练与 LLM 反思的迭代循环得到精炼,这一过程受益于 LLM 审查并改进输出的能力。我们还开发了专门的提示模板,以增强 LLM 对复杂驾驶仿真的理解,确保生成有效且无错误的代码。我们在高速公路驾驶模拟器中针对三种交通配置开展的实验表明,本方法优于专家手工设计的奖励函数,平均成功率提高 22%。这不仅表明驾驶更加安全,也意味着开发生产率可获得显著提升。

英文摘要:

Reinforcement Learning (RL) plays a crucial role in advancing autonomous driving technologies by maximizing reward functions to achieve the optimal policy. However, crafting these reward functions has been a complex, manual process in many practices. To reduce this complexity, we introduce a novel framework that integrates Large Language Models (LLMs) with RL to improve reward function design in autonomous driving. This framework utilizes the coding capabilities of LLMs, proven in other areas, to generate and evolve reward functions for highway scenarios. The framework starts with instructing LLMs to create an initial reward function code based on the driving environment and task descriptions. This code is then refined through iterative cycles involving RL training and LLMs' reflection, which benefits from their ability to review and improve the output. We have also developed a specific prompt template to improve LLMs' understanding of complex driving simulations, ensuring the generation of effective and error-free code. Our experiments in a highway driving simulator across three traffic configurations show that our method surpasses expert handcrafted reward functions, achieving a 22% higher average success rate. This not only indicates safer driving but also suggests significant gains in development productivity.

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

↑