MarkTechPost@AI 2024年10月15日
AFlow: A Novel Artificial Intelligence Framework for Automated Workflow Optimization
index_new5.html
../../../zaker_core/zaker_tpl_static/wap/tpl_guoji1.html

 

AFlow 是一种新颖的框架,旨在通过将工作流优化问题表述为对代码表示的工作流的搜索来解决现有挑战。它将工作流建模为图,其中节点代表调用 LLMs 的操作,边代表这些操作之间的依赖关系。AFlow 利用蒙特卡罗树搜索 (MCTS) 通过进行修改、执行它们以及根据执行反馈改进结构来迭代地优化工作流。AFlow 的结构旨在以最少的人工干预来有效地探索和优化工作流。AFlow 的关键效率在于它使用节点和边来表示工作流,从而使其能够对 LLM 操作之间的复杂关系进行建模。该框架基于六个基准数据集(HumanEval、MBPP、MATH、GSM8K、HotPotQA 和 DROP)的实验结果表明,AFlow 在性能上显著优于最先进的手动设计工作流以及现有的自动化优化方法。

🤖 AFlow 是一种新颖的框架,旨在通过将工作流优化问题表述为对代码表示的工作流的搜索来解决现有挑战。

📈 AFlow 利用蒙特卡罗树搜索 (MCTS) 通过进行修改、执行它们以及根据执行反馈改进结构来迭代地优化工作流。

📊 AFlow 在六个基准数据集(HumanEval、MBPP、MATH、GSM8K、HotPotQA 和 DROP)上取得了显著的性能提升,平均性能比手动设计方法提高了 5.7%,比现有的自动化系统(如 ADAS)提高了 19.5%。

💰 AFlow 可以生成工作流,使较小的 LLM 能够胜过 GPT-4o 等更大的模型,而推理成本仅为其 4.55%,使其成为各种任务的具有成本效益的替代方案。

The challenge lies in generating effective agentic workflows for Large Language Models (LLMs). Despite their remarkable capabilities across diverse tasks, creating workflows that combine multiple LLMs into coherent sequences is labor-intensive, which limits scalability and adaptability to new tasks. Efforts to automate workflow generation have not yet fully eliminated the need for human intervention, making broad generalization and effective skill transfer for LLMs difficult to achieve.

A team of researchers from 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, Université de Montréal & Mila, The Hong Kong University of Science and Technology introduce AFlow, a novel framework aimed at automating agentic workflow generation. AFlow is designed to solve the existing challenges by framing the workflow optimization problem as a search over code-represented workflows. These workflows are modeled as graphs where nodes represent LLM-invoking actions, and edges represent the dependencies between these actions. Using Monte Carlo Tree Search (MCTS), AFlow optimizes workflows iteratively by making modifications, executing them, and refining the structure based on execution feedback.

AFlow’s structure is built to efficiently explore and optimize workflows with minimal human involvement. The key to AFlow’s efficiency lies in its use of nodes and edges to represent workflows, allowing it to model complex relationships between LLM actions. The nodes are connected in a tree-like structure, enabling diverse configurations that adapt to various task complexities. AFlow uses predefined operators, such as “Ensemble” or “Review & Revise,” which serve as modular building blocks. The workflow optimization proceeds through a series of phases, including node exploration, expansion using LLM-based feedback, and experience backpropagation, ensuring that AFlow can refine workflows with each iteration.

The results of this study, based on six benchmark datasets—HumanEval, MBPP, MATH, GSM8K, HotPotQA, and DROP—demonstrate that AFlow significantly outperforms state-of-the-art manually designed workflows as well as existing automated optimization approaches. Specifically, AFlow achieves an average performance improvement of 5.7% over manually designed methods and a 19.5% enhancement over existing automated systems like ADAS. The researchers also noted that AFlow could generate workflows enabling smaller LLMs to outperform larger models such as GPT-4o, all at only 4.55% of the inference cost, making it a cost-effective alternative for a wide variety of tasks.

In conclusion, AFlow makes significant strides in reducing the need for manual effort in designing agentic workflows, thereby expanding the potential for LLMs to solve a diverse array of tasks effectively. By using MCTS for workflow search and optimization, AFlow not only automates the process but also achieves better performance and cost-efficiency compared to existing methods. This advancement provides a strong foundation for future research in automating workflow generation, making LLMs more accessible and efficient for real-world applications.


Check out the Paper. All credit for this research goes to the researchers of this project. Also, don’t forget to follow us on Twitter and join our Telegram Channel and LinkedIn Group. If you like our work, you will love our newsletter.. Don’t Forget to join our 50k+ ML SubReddit.

[Upcoming Live Webinar- Oct 29, 2024] The Best Platform for Serving Fine-Tuned Models: Predibase Inference Engine (Promoted)

The post AFlow: A Novel Artificial Intelligence Framework for Automated Workflow Optimization appeared first on MarkTechPost.

Fish AI Reader

Fish AI Reader

AI辅助创作,多种专业模板,深度分析,高质量内容生成。从观点提取到深度思考,FishAI为您提供全方位的创作支持。新版本引入自定义参数,让您的创作更加个性化和精准。

FishAI

FishAI

鱼阅,AI 时代的下一个智能信息助手,助你摆脱信息焦虑

联系邮箱 441953276@qq.com

相关标签

AFlow 工作流优化 人工智能 大型语言模型 LLM
相关文章