AFlow: Automating Agentic Workflow Generation
FreeAutomating Agentic Workflow Generation
About AFlow: Automating Agentic Workflow Generation
AFlow is an automated framework for generating and optimizing agentic workflows used by large language models (LLMs). It reformulates workflow optimization as a search problem over code-represented workflows, where LLM-invoking nodes are connected by edges. The system employs Monte Carlo Tree Search to iteratively explore and refine workflows through code modification, tree-structured experience, and execution feedback. Empirical evaluations across six benchmark datasets show a 5.7% average improvement over state-of-the-art baselines. Notably, AFlow enables smaller models to outperform GPT-4o on specific tasks at only 4.55% of its inference cost. The project is open source and the code is available on GitHub.
Key Features
Pros & Cons
- Fully automated workflow generation without manual initial setup
- Significant performance improvement (5.7%) over existing methods
- Substantial cost reduction (up to 95.45% vs GPT-4o) for specific tasks
- Allows smaller models to achieve high performance on complex tasks
- Limited to code-represented workflows, may not cover all agent architectures
- Performance improvements are benchmark-specific and may not generalize
- Requires execution feedback, which may be computationally intensive