arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2411.05451cs.SEcs.AIcs.CL
收藏

WorkflowLLM:提升大语言模型的工作流编排能力

WorkflowLLM: Enhancing Workflow Orchestration Capability of Large Language Models

Renmin University of China(中国人民大学);Tsinghua University(清华大学);The University of Manchester(曼彻斯特大学);Wuhan University(武汉大学)

Shengda Fan, Xin Cong, Yuepeng Fu, Zhong Zhang, Shuyan Zhang, Yuanwei Liu, Yesai Wu, Yankai Lin, Zhiyuan Liu, Maosong Sun

AI总结:

针对现有LLM工作流编排能力不足的问题,提出数据为中心的WorkflowLLM框架,构建大规模数据集WorkflowBench并微调Llama-3.1-8B,显著提升复杂工作流编排及泛化能力。

摘要:

近年来,大语言模型(LLM)的进步推动了流程自动化领域的革命性范式转变,从机器人流程自动化转向基于LLM的智能体流程自动化,通过自动化工作流编排过程来实现。然而,现有的LLM(即使是先进的OpenAI GPT-4o)在工作流编排方面仍难以达到令人满意的能力。为解决这一局限,我们提出了WorkflowLLM,一个以数据为中心、精心设计的框架,旨在提升LLM在工作流编排方面的能力。该框架首先构建了一个大规模微调数据集WorkflowBench,包含106,763个样本,覆盖来自28个类别中83个应用的1,503个API。具体而言,数据集的构建过程分为三个阶段:(1)数据收集:我们从Apple Shortcuts和RoutineHub收集真实世界的工作流数据,将其转录为Python风格的代码,并通过ChatGPT为其生成层级化思维;(2)查询扩展:我们提示ChatGPT生成更多任务查询,以丰富工作流的多样性和复杂性;(3)工作流生成:我们利用在收集数据上训练的标注模型为合成查询生成工作流。最后,我们将通过质量确认的合成样本与收集的样本合并,得到WorkflowBench。基于WorkflowBench,我们对Llama-3.1-8B进行微调,得到WorkflowLlama。实验表明,WorkflowLlama在编排复杂工作流方面展现出强大能力,同时在未见过的API上实现了显著的泛化性能。此外,WorkflowBench在分布外任务规划数据集T-Eval上表现出稳健的零样本泛化能力。我们的数据和代码可在https://github.com/OpenBMB/WorkflowLLM获取。

英文摘要:

Recent advancements in large language models (LLMs) have driven a revolutionary paradigm shift in process automation from Robotic Process Automation to Agentic Process Automation by automating the workflow orchestration procedure based on LLMs. However, existing LLMs (even the advanced OpenAI GPT-4o) are confined to achieving satisfactory capability in workflow orchestration. To address this limitation, we present WorkflowLLM, a data-centric framework elaborately designed to enhance the capability of LLMs in workflow orchestration. It first constructs a large-scale fine-tuning dataset WorkflowBench with 106,763 samples, covering 1,503 APIs from 83 applications across 28 categories. Specifically, the construction process can be divided into three phases: (1) Data Collection: we collect real-world workflow data from Apple Shortcuts and RoutineHub, transcribing them into Python-style code. We further equip them with generated hierarchical thought via ChatGPT. (2) Query Expansion: we prompt ChatGPT to generate more task queries to enrich the diversity and complexity of workflows. (3) Workflow Generation: we leverage an annotator model trained on collected data to generate workflows for synthesized queries. Finally, we merge the synthetic samples that pass quality confirmation with the collected samples to obtain the WorkflowBench. Based on WorkflowBench, we fine-tune Llama-3.1-8B to obtain WorkflowLlama. Our experiments show that WorkflowLlama demonstrates a strong capacity to orchestrate complex workflows, while also achieving notable generalization performance on previously unseen APIs. Additionally, WorkflowBench exhibits robust zero-shot generalization capabilities on an out-of-distribution task planning dataset, T-Eval. Our data and code are available at https://github.com/OpenBMB/WorkflowLLM.

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

↑