EvoAgentX: An Automated Framework for Evolving Agentic Workflows

Yingxu Wang, Siwei Liu, Jinyuan Fang, Zaiqiao Meng · DOI

Introduction

Multi-agent systems (MAS), where multiple large language models (LLMs) collaborate to solve complex problems, represent the current frontier of artificial intelligence applications. However, the development of high-performing MAS remains a labor-intensive "black art." Developers typically spend significant time manually defining agent roles, hand-crafting prompts, and designing rigid execution workflows. This manual approach suffers from poor scalability and a lack of adaptability; a workflow designed for one task often fails when requirements shift.

EvoAgentX addresses these challenges by moving away from manual "agent engineering" toward automated agent evolution. It is an open-source framework designed to iteratively refine prompts, tool configurations, and workflow topologies using evolutionary algorithms, leading to significant performance gains across reasoning, coding, and mathematical tasks.

The EvoAgentX Architecture

EvoAgentX introduces a modular five-layer architecture designed to facilitate the continuous optimization of agentic workflows. This structure allows for a clear separation between basic execution components and the high-level meta-optimization logic.

The modular five-layer architecture of EvoAgentX, spanning from basic components to the evolving meta-optimizer.

Core Layers

  1. Basic Component Layer: Manages underlying infrastructure, including logging, storage, and LLM integration via LiteLLM and OpenRouter.
  2. Agent Layer: Defines individual agents by combining an LLM with memory modules and action sets (tools).
  3. Workflow Layer: Orchestrates agent interactions. It supports both explicit graph-based definitions and sequential workflows that can automatically infer necessary connections.
  4. Evolving Layer: The core innovation of the framework. It acts as a meta-optimizer by integrating three state-of-the-art algorithms: TextGrad (text-based gradient refinement for prompts), AFlow (structural topology optimization), and MIPRO (Bayesian optimization for instructions and demonstrations).
  5. Evaluation Layer: Provides the necessary feedback loop by utilizing standardized metrics and LLM-based judges to score agent performance.

Experimental Results and Key Insights

The researchers evaluated EvoAgentX across diverse benchmarks, including HotPotQA (multi-hop reasoning), MBPP (coding), MATH (mathematics), and GAIA (real-world tool use). The automated evolution process consistently outperformed "original" non-optimized baselines.

Performance Gains

  • Reasoning: Achieved a 7.44% increase in F1 score on HotPotQA.
  • Coding: Realized a 10.00% improvement in pass@1 on MBPP.
  • Mathematics: Secured a 10.00% gain in accuracy on the MATH dataset.

One of the most striking results was observed when applying EvoAgentX to existing frameworks like the OWL agent. On the GAIA benchmark, the framework pushed the OWL agent to a 20.00% overall accuracy improvement, with a remarkable 100% improvement on the most difficult "Level 3" tasks.

Comparison of original and optimized OWL agent performance across different difficulty levels on the GAIA benchmark.

Key Takeaways

A central finding of the study is that workflow topology matters as much as prompts. While traditional research focuses heavily on prompt engineering, EvoAgentX demonstrates that how agents are connected is a massive lever for performance. By using AFlow to restructure the interaction graph, the system discovers more efficient ways to decompose complex problems. Furthermore, EvoAgentX provides a unified environment where fragmented optimization techniques can be combined and compared in a "plug-and-play" fashion.

Limitations and Future Directions

Despite its success, EvoAgentX faces several hurdles. The evolutionary process is computationally expensive, requiring multiple runs and significant API token usage. Additionally, the framework's reliance on LLM-based evaluators introduces the risk of optimization bias, where the system might improve based on a judge's preferences rather than objective truth.

Future work will focus on the "Memory Optimizer" to improve long-term retrieval and the integration of more advanced self-improvement strategies, such as the Darwin Gödel Machine and AlphaEvolve, to further push the boundaries of autonomous AI development.

Summary updated

BibTeX
@misc{wang2025evoagentx,
  author = {Yingxu Wang and Siwei Liu and Jinyuan Fang and Zaiqiao Meng},
  title = {{EvoAgentX: An Automated Framework for Evolving Agentic Workflows}},
  year = {2025},
  eprint = {2507.03616},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2507.03616},
}
Figure