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

Zihao Zhou, Bin Hu, Chenyang Zhao, Pu Zhang, Bin Liu
11/22/2023
52 citations
cs.AI
rl

Official code: ZJLAB-AMMI/LLM4Teach (57 stars, Python, last commit 2024-04-19).

Abstract

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Python code to implement LLM4Teach, a policy distillation approach for teaching reinforcement learning agents with Large Language Model

5719PythonNov 29, 20232 years ago
agentsdecison-makingdistillationembodied-agentllm+2 more

Similar Papers

Cite this paper

@article{zhou2023large,
  title  = {Large Language Model as a Policy Teacher for Training Reinforcement Learning Agents},
  author = {Zihao Zhou and Bin Hu and Chenyang Zhao and Pu Zhang and Bin Liu},
  year   = {2023},
  eprint = {2311.13373},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2311.13373v6}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2311.13373.svg)](https://codeofpaper.com/paper/2311.13373)

Discussion