English

$Agent^2$: An Agent-Generates-Agent Framework for Reinforcement Learning Automation

Artificial Intelligence 2025-10-01 v2 Machine Learning

Abstract

Reinforcement learning (RL) agent development traditionally requires substantial expertise and iterative effort, often leading to high failure rates and limited accessibility. This paper introduces Agent2^2, an LLM-driven agent-generates-agent framework for fully automated RL agent design. Agent2^2 autonomously translates natural language task descriptions and environment code into executable RL solutions without human intervention. The framework adopts a dual-agent architecture: a Generator Agent that analyzes tasks and designs agents, and a Target Agent that is automatically generated and executed. To better support automation, RL development is decomposed into two stages, MDP modeling and algorithmic optimization, facilitating targeted and effective agent generation. Built on the Model Context Protocol, Agent2^2 provides a unified framework for standardized agent creation across diverse environments and algorithms, incorporating adaptive training management and intelligent feedback analysis for continuous refinement. Extensive experiments on benchmarks including MuJoCo, MetaDrive, MPE, and SMAC show that Agent2^2 outperforms manually designed baselines across all tasks, achieving up to 55\% performance improvement with consistent average gains. By enabling a closed-loop, end-to-end automation pipeline, this work advances a new paradigm in which agents can design and optimize other agents, underscoring the potential of agent-generates-agent systems for automated AI development.

Keywords

Cite

@article{arxiv.2509.13368,
  title  = {$Agent^2$: An Agent-Generates-Agent Framework for Reinforcement Learning Automation},
  author = {Yuan Wei and Xiaohan Shan and Ran Miao and Jianmin Li},
  journal= {arXiv preprint arXiv:2509.13368},
  year   = {2025}
}

Comments

19 pages, 5 figures,4 Tables

R2 v1 2026-07-01T05:40:20.550Z