Trial and Error: Exploration-Based Trajectory Optimization for LLM Agents

Yifan Song, Da Yin, Xiang Yue, Jie Huang, Sujian Li +1 more
3/4/2024
cs.CLcs.AIcs.LG

No official code found. Best implementation: Yifan-Song793/ETO (169 stars, last commit 2024-10-30).

Abstract

Large Language Models (LLMs) have become integral components in various autonomous agent systems. In this study, we present an exploration-based trajectory optimization approach, referred to as ETO. This learning method is designed to enhance the performance of open LLM agents. Contrary to previous studies that exclusively train on successful expert trajectories, our method allows agents to learn from their exploration failures. This leads to improved performance through an iterative optimization framework. During the exploration phase, the agent interacts with the environment while completing given tasks, gathering failure trajectories to create contrastive trajectory pairs. In the subsequent training phase, the agent utilizes these trajectory preference pairs to update its policy using contrastive learning methods like DPO. This iterative cycle of exploration and training fosters continued improvement in the agents. Our experiments on three complex tasks demonstrate that ETO consistently surpasses baseline performance by a large margin. Furthermore, an examination of task-solving efficiency and potential in scenarios lacking expert trajectory underscores the effectiveness of our approach.

View on arXivView PDF

Code Implementations(1)

Yifan-Song793/ETOCommunity100%

Trial and Error: Exploration-Based Trajectory Optimization of LLM Agents (ACL 2024 Main Conference)

16915CSS, HTMLFeb 28, 20241 years ago
agentdeep-learninglarge-language-modelsllmllms+1 more

Similar Papers

Cite this paper

@article{song2024trial,
  title  = {Trial and Error: Exploration-Based Trajectory Optimization for LLM Agents},
  author = {Yifan Song and Da Yin and Xiang Yue and Jie Huang and Sujian Li and Bill Yuchen Lin},
  year   = {2024},
  eprint = {2403.02502},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.02502v2}
}

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

Discussion