Reproduce “AFlow: Automating Agentic Workflow Generation” on OpenResearch

Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng and 6 more

AFlow searches for improved large language model workflows by representing sequences of model calls, prompts, and control flow as editable code. An optimizer proposes alternatives, which are executed and scored on validation data; predefined operators help but are not required. With GPT-4o-mini, AFlow averaged 80.3 across six benchmarks versus 76.0 for the strongest manual method, within this evaluated setup.

Key insights

  • AFLOW's MCTS framework, combined with code-represented workflows, allows for efficient exploration and optimization of complex LLM execution sequences, leading to more robust and effective solutions.
  • The system can autonomously discover complex workflow structures, such as ensemble-like strategies, even without pre-defined operators, indicating its capacity for independent design of problem-solving methodologies.
  • Optimized workflows can enable smaller, more cost-effective LLMs to achieve performance comparable to or superior to larger, more expensive models, significantly improving cost-efficiency for real-world applications.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.