arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.10762cs.AIcs.CLcs.LGcs.SE
收藏

AFlow:自动化智能体工作流生成

AFlow: Automating Agentic Workflow Generation

DeepWisdom(深度智慧);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Renmin University of China(中国人民大学);Nanjing University(南京大学);Fudan University(复旦大学);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);Mila(米拉研究所);The Hong Kong University of Science and Technology(香港科技大学)

Jiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng, Xionghui Chen, Jiaqi Chen, Mingchen Zhuge, Xin Cheng, Sirui Hong, Jinlin Wang, Bingnan Zheng, Bang Liu, Yuyu Luo, Chenglin Wu

AI总结:

针对构建智能体工作流需大量人力、现有自动化方法依赖手动设置的问题,提出AFlow框架,将工作流优化重构为代码表示的搜索问题,通过蒙特卡洛树搜索迭代优化,在六个基准数据集上性能提升5.7%,且小模型可低成本优于GPT-4o。

摘要:

大语言模型(LLMs)在不同领域解决复杂任务方面展现出显著潜力,通常通过遵循详细指令和操作序列的智能体工作流来实现。然而,构建这些工作流需要大量人力,限制了可扩展性和通用性。近期研究试图自动化工作流的生成与优化,但现有方法仍依赖初始手动设置,未能实现完全自动化且有效的工作流生成。为应对这一挑战,我们将工作流优化重构为基于代码表示工作流的搜索问题,其中调用LLM的节点通过边连接。我们引入AFlow,这是一个自动化框架,通过蒙特卡洛树搜索高效探索该空间,借助代码修改、树形经验和执行反馈迭代优化工作流。在六个基准数据集上的实证评估显示,AFlow的平均性能比最先进基线提升5.7%;此外,AFlow能让较小模型在特定任务上优于GPT-4o,且推理成本仅为后者的4.55%。

英文摘要:

Large language models (LLMs) have demonstrated remarkable potential in solving complex tasks across diverse domains, typically by employing agentic workflows that follow detailed instructions and operational sequences. However, constructing these workflows requires significant human effort, limiting scalability and generalizability. Recent research has sought to automate the generation and optimization of these workflows, but existing methods still rely on initial manual setup and fall short of achieving fully automated and effective workflow generation. To address this challenge, we reformulate workflow optimization as a search problem over code-represented workflows, where LLM-invoking nodes are connected by edges. We introduce AFlow, an automated framework that efficiently explores this space using Monte Carlo Tree Search, iteratively refining workflows through code modification, tree-structured experience, and execution feedback. Empirical evaluations across six benchmark datasets demonstrate AFlow's efficacy, yielding a 5.7% average improvement over state-of-the-art baselines. Furthermore, AFlow enables smaller models to outperform GPT-4o on specific tasks at 4.55% of its inference cost in dollars. The code is available at https://github.com/FoundationAgents/AFlow.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑