AutoFlow: Automated Workflow Generation for Large Language Model Agents

Zelong Li, Shuyuan Xu, Kai Mei, Wenyue Hua, Balaji Rama +4 more
7/1/2024
cs.CLcs.AIcs.LG

Official code: agiresearch/AutoFlow (90 stars, Apache-2.0, last commit 2024-09-11).

Abstract

Recent advancements in Large Language Models (LLMs) have shown significant progress in understanding complex natural language. One important application of LLM is LLM-based AI Agent, which leverages the ability of LLM as well as external tools for complex-task solving. To make sure LLM Agents follow an effective and reliable procedure to solve the given task, manually designed workflows are usually used to guide the working mechanism of agents. However, manually designing the workflows requires considerable efforts and domain knowledge, making it difficult to develop and deploy agents on massive scales. To address these issues, we propose AutoFlow, a framework designed to automatically generate workflows for agents to solve complex tasks. AutoFlow takes natural language program as the format of agent workflow and employs a workflow optimization procedure to iteratively optimize the workflow quality. Besides, this work offers two workflow generation methods: fine-tuning-based and in-context-based methods, making the AutoFlow framework applicable to both open-source and closed-source LLMs. Experimental results show that our framework can produce robust and reliable agent workflows. We believe that the automatic generation and interpretation of workflows in natural language represent a promising paradigm for solving complex tasks, particularly with the rapid development of LLMs. The source code of this work is available at https://github.com/agiresearch/AutoFlow.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
9010Shell, MATLABMar 11, 20242 years agoApache-2.0

Similar Papers

Cite this paper

@article{li2024autoflow,
  title  = {AutoFlow: Automated Workflow Generation for Large Language Model Agents},
  author = {Zelong Li and Shuyuan Xu and Kai Mei and Wenyue Hua and Balaji Rama and Om Raheja and Hao Wang and He Zhu and Yongfeng Zhang},
  year   = {2024},
  eprint = {2407.12821},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.12821v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12821.svg)](https://codeofpaper.com/paper/2407.12821)

Discussion