FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradients
Hongyeon Yu, Young-Bum Kim, Yoon Kim
摘要
LLM workflows, which coordinate structured calls to individual LLMs/agents to achieve a particular goal, offer a promising path towards building powerful AI systems that can tackle diverse tasks. However, existing approaches for building such workflows generally rely on human-crafted pipelines and prompts, which presents a substantial bottleneck in real world deployment. How can we automatically induce LLM-based agents and workflows in a data-driven way? This paper describes a simple data-driven approach for automatically inducing agents and LLM workflows. We formulate workflow induction as a bilevel optimization problem: an outer loop which optimizes a high-level sketch of the workflow (in particular how the LLM calls should be structured), and an inner loop which optimizes each individual LLM call one-by one. Both loops are optimized with "textual gradients" where for the inner loop we optimize each component in a modular way through "backpropagating" textual gradients layer-by-layer. We find that LLM workflows discovered through our FlowBot (work flow induction through b ilevel o ptimization and t extual gradients) approach performs competitively against strong baselines that make use of human-crafted or generated workflows.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
脉络
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution 引用了 Self-Refine: Iterative Refinement with Self-Feedback
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution 引用了 Large Language Models as Optimizers
- Large Language Models as Optimizers 引用了 Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution
- Promptbreeder: Self-Referential Self-Improvement via Prompt Evolution 引用了 Automatic Prompt Optimization with "Gradient Descent" and Beam Search
- Large Language Models as Optimizers 引用了 Self-Refine: Iterative Refinement with Self-Feedback
- Large Language Models as Optimizers 引用了 Automatic Prompt Optimization with "Gradient Descent" and Beam Search
它引用的 Paper11
- Toolformer: Language Models Can Teach Themselves to Use ToolsTimo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu 等NeurIPS 2023 · 5,989 次引用
- Self-Refine: Iterative Refinement with Self-FeedbackAman Madaan, Niket Tandon, Prakhar Gupta, Skyler Hallinan 等NeurIPS 2023 · 4,972 次引用
- Large Language Models as OptimizersChengrun Yang, Xuezhi Wang, Yifeng Lu, Hanxiao Liu 等ICLR 2024 · 817 次引用
- Promptbreeder: Self-Referential Self-Improvement via Prompt EvolutionChrisantha Fernando, Dylan Banarse, Henryk Michalewski, Simon Osindero 等ICML 2024 · 432 次引用
- Automatic Prompt Optimization with "Gradient Descent" and Beam SearchReid Pryzant, Dan Iter, Jerry Li, Yin Tat Lee 等EMNLP 2023 · 137 次引用
相关 Paper
- AFlow: Automating Agentic Workflow GenerationJiayi Zhang, Jinyu Xiang, Zhaoyang Yu, Fengwei Teng 等ICLR 2025
- Efficient LLM Serving for Agentic Workflows: A Data Systems PerspectiveNoppanat Wadlom, Junyi Shen, Yao LuSIGMOD 2026 · 14 次引用
- A²Flow: Automating Agentic Workflow Generation via Self-Adaptive Abstraction OperatorsMingming Zhao, Xiaokang Wei, Yuanqi Shao, Kaiwen Zhou 等AAAI 2026
- Evolving Agentic Workflow Driven by Human-Agent CollaborationYuxin Liu, Jinxuan Zhang, Yuezhang Peng, Hefeng Zhou 等ACL Findings 2026
- GPTSwarm: Language Agents as Optimizable GraphsMingchen Zhuge, Wenyi Wang, Louis Kirsch, Francesco Faccio 等ICML 2024 · 45 次引用
