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

大型语言模型作为策略教师用于训练强化学习智能体

Large Language Model as a Policy Teacher for Training Reinforcement Learning Agents

Zhejiang Lab(之江实验室)

Zihao Zhou, Bin Hu, Chenyang Zhao, Pu Zhang, Bin Liu

AI总结:

本文提出利用LLM作为教师智能体,通过指令蒸馏训练小型学生强化学习智能体,以提升数据效率并超越教师性能,在MiniGrid和Habitat环境中验证了优越性。

摘要:

近期研究揭示了大型语言模型(LLMs)通过提供高层指令来解决复杂序列决策任务的潜力。然而,基于LLM的智能体缺乏针对特定目标问题的专门化,尤其是在实时动态环境中。此外,在实际场景中部署基于LLM的智能体既昂贵又耗时。另一方面,强化学习(RL)方法训练的智能体虽专门针对目标任务,但常遭受采样效率低和探索成本高的问题。在本文中,我们提出了一种新颖的框架,通过利用基于LLM的教师智能体的指令来训练一个更小的、专门化的学生RL智能体,从而解决这些挑战。通过整合教师智能体的指导,学生智能体能够将LLM的先验知识蒸馏到其自身模型中。因此,学生智能体可以用显著更少的数据进行训练。此外,通过进一步的环境反馈训练,学生智能体在完成目标任务方面超越了其教师的能力。我们在具有挑战性的MiniGrid和Habitat环境(专门为具身AI研究设计)上进行了实验,以评估我们框架的有效性。结果清晰表明,我们的方法相比强基线方法取得了更优的性能。我们的代码可在 https://github.com/ZJLAB-AMMI/LLM4Teach 获取。

英文摘要:

Recent studies have uncovered the potential of Large Language Models (LLMs) in addressing complex sequential decision-making tasks through the provision of high-level instructions. However, LLM-based agents lack specialization in tackling specific target problems, particularly in real-time dynamic environments. Additionally, deploying an LLM-based agent in practical scenarios can be both costly and time-consuming. On the other hand, reinforcement learning (RL) approaches train agents that specialize in the target task but often suffer from low sampling efficiency and high exploration costs. In this paper, we introduce a novel framework that addresses these challenges by training a smaller, specialized student RL agent using instructions from an LLM-based teacher agent. By incorporating the guidance from the teacher agent, the student agent can distill the prior knowledge of the LLM into its own model. Consequently, the student agent can be trained with significantly less data. Moreover, through further training with environment feedback, the student agent surpasses the capabilities of its teacher for completing the target task. We conducted experiments on challenging MiniGrid and Habitat environments, specifically designed for embodied AI research, to evaluate the effectiveness of our framework. The results clearly demonstrate that our approach achieves superior performance compared to strong baseline methods. Our code is available at https://github.com/ZJLAB-AMMI/LLM4Teach.

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

↑