Skip to main content
QUICK REVIEW

[Paper Review] AgentGym: Evolving Large Language Model-based Agents across Diverse Environments

Zhiheng Xi, Yiwen Ding|arXiv (Cornell University)|Jun 6, 2024
Topic ModelingComputer Science3 citations
TL;DR

This paper introduces AgentGym, a framework for evolving large language model (LLM)-based agents across diverse environments through self-evolution. It combines a unified platform with diverse tasks, a curated trajectory dataset (AgentTraj), and a novel evolution method (AgentEvol) that enables agents to improve beyond demonstrated behavior, achieving performance comparable to SOTA models without extensive human supervision.

ABSTRACT

Building generalist agents that can handle diverse tasks and evolve themselves across different environments is a long-term goal in the AI community. Large language models (LLMs) are considered a promising foundation to build such agents due to their generalized capabilities. Current approaches either have LLM-based agents imitate expert-provided trajectories step-by-step, requiring human supervision, which is hard to scale and limits environmental exploration; or they let agents explore and learn in isolated environments, resulting in specialist agents with limited generalization. In this paper, we take the first step towards building generally-capable LLM-based agents with self-evolution ability. We identify a trinity of ingredients: 1) diverse environments for agent exploration and learning, 2) a trajectory set to equip agents with basic capabilities and prior knowledge, and 3) an effective and scalable evolution method. We propose AgentGym, a new framework featuring a variety of environments and tasks for broad, real-time, uni-format, and concurrent agent exploration. AgentGym also includes a database with expanded instructions, a benchmark suite, and high-quality trajectories across environments. Next, we propose a novel method, AgentEvol, to investigate the potential of agent self-evolution beyond previously seen data across tasks and environments. Experimental results show that the evolved agents can achieve results comparable to SOTA models. We release the AgentGym suite, including the platform, dataset, benchmark, checkpoints, and algorithm implementations. The AgentGym suite is available on https://github.com/WooooDyy/AgentGym.

Motivation & Objective

  • To develop generally capable LLM-based agents that can evolve autonomously across diverse environments, moving beyond imitation to interactive learning.
  • To overcome the limitations of expert-supervised imitation (costly, hard to scale) and isolated environment training (specialist agents with poor generalization).
  • To establish a unified, scalable platform for real-time, concurrent agent training and evaluation across 14 environments and 89 tasks.
  • To provide a benchmark suite (AgentEval) and high-quality trajectory dataset (AgentTraj) to bootstrap base agent capabilities and enable fair comparison.
  • To investigate the potential of self-evolution in LLM agents using a flexible, environment-agnostic evolution mechanism (AgentEvol).

Proposed method

  • AgentGym provides a standardized HTTP-based API platform supporting 14 types of environments and 89 tasks, including web navigation, embodied tasks, and spreadsheet manipulation.
  • It includes a unified interface for multi-round interactions, real-time feedback, and trajectory sampling across environments with consistent observation/action spaces.
  • A large-scale, high-quality trajectory dataset (AgentTraj) is collected via crowdsourcing and AI-based instruction expansion (e.g., self-instruct, instruction evolution), ensuring diverse and challenging examples.
  • The AgentEvol method enables agents to self-evolve by leveraging feedback from diverse environments, updating policies based on experience beyond initial demonstrations.
  • The framework includes a benchmark suite (AgentEval) with curated test sets for evaluating agent performance across tasks and environments.
  • The system supports online evaluation, interactive training, and concurrent agent exploration in a unified, scalable format.
Figure 1: An illustration of self-evolution for generally-capable LLM-based agents in our paper. The agent first performs behavioral cloning according to human supervision, and then performs exploring and learning across environments and tasks to evolve themselves.
Figure 1: An illustration of self-evolution for generally-capable LLM-based agents in our paper. The agent first performs behavioral cloning according to human supervision, and then performs exploring and learning across environments and tasks to evolve themselves.

Experimental results

Research questions

  • RQ1Can LLM-based agents achieve generalization across diverse environments through self-evolution rather than relying on expert demonstrations?
  • RQ2How effective is a unified platform with diverse environments and standardized APIs in enabling scalable, concurrent agent training and evaluation?
  • RQ3To what extent can a curated trajectory dataset (AgentTraj) bootstrap base agent capabilities and improve downstream generalization?
  • RQ4Can a self-evolution mechanism (AgentEvol) outperform or match SOTA models without human supervision, especially in unseen tasks?
  • RQ5How does the integration of diverse environments, high-quality trajectories, and a scalable evolution method collectively enhance agent generalization and performance?

Key findings

  • The AgentGym framework successfully supports real-time, concurrent agent exploration across 14 environments and 89 tasks using a unified API and standardized interfaces.
  • The AgentTraj dataset, collected via crowdsourcing and AI-based instruction expansion, provides high-quality, diverse trajectories for training base agents.
  • The AgentEvol method enables agents to self-evolve beyond demonstrated behavior, achieving performance comparable to state-of-the-art models.
  • The benchmark suite AgentEval enables fair, standardized evaluation of agent capabilities across diverse tasks and environments.
  • The framework demonstrates scalability and flexibility, supporting both online evaluation and interactive training with consistent feedback loops.
  • The released suite—including platform, dataset, checkpoints, and code—enables reproducible research and community advancement in generalist agent development.
Figure 2: Overview of the AgentGym framework. It covers fourteen environments spanning diverse categories. Each environment is deployed as an HTTP service, and clients provide encapsulated, unified interfaces for agents, facilitating interaction with environments. We gather expert-annotated trajecto
Figure 2: Overview of the AgentGym framework. It covers fourteen environments spanning diverse categories. Each environment is deployed as an HTTP service, and clients provide encapsulated, unified interfaces for agents, facilitating interaction with environments. We gather expert-annotated trajecto

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.