AGILE: A Novel Reinforcement Learning Framework of LLM Agents

Peiyuan Feng, Yichen He, Guanhua Huang, Yuan Lin, Hanchong Zhang +2 more
5/23/2024
cs.LG

Official code: bytarnish/AGILE (167 stars, MIT, last commit 2025-01-21).

Abstract

We introduce a novel reinforcement learning framework of LLM agents named AGILE (AGent that Interacts and Learns from Environments) designed to perform complex conversational tasks with users, leveraging LLMs, memory, tools, and interactions with experts. The agent possesses capabilities beyond conversation, including reflection, tool usage, and expert consultation. We formulate the construction of such an LLM agent as a reinforcement learning (RL) problem, in which the LLM serves as the policy model. We fine-tune the LLM using labeled data of actions and the PPO algorithm. We focus on question answering and release a dataset for agents called ProductQA, comprising challenging questions in online shopping. Our extensive experiments on ProductQA, MedMCQA and HotPotQA show that AGILE agents based on 7B and 13B LLMs trained with PPO can outperform GPT-4 agents. Our ablation study highlights the indispensability of memory, tools, consultation, reflection, and reinforcement learning in achieving the agent's strong performance. Datasets and code are available at https://github.com/bytarnish/AGILE.

View on arXivView PDF

Code Implementations(1)

bytarnish/AGILEOfficial100%
MIT
16711Shell, PythonMay 22, 20241 years agoMIT

Similar Papers

Cite this paper

@article{feng2024agile,
  title  = {AGILE: A Novel Reinforcement Learning Framework of LLM Agents},
  author = {Peiyuan Feng and Yichen He and Guanhua Huang and Yuan Lin and Hanchong Zhang and Yuchen Zhang and Hang Li},
  year   = {2024},
  eprint = {2405.14751},
  archivePrefix = {arXiv},
  doi    = {10.52202/079017-0170},
  url    = {http://arxiv.org/abs/2405.14751v2},
  journal = {NEURIPS 2024 2024}
}

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/2405.14751.svg)](https://codeofpaper.com/paper/2405.14751)

Discussion