mlsanityData to 7 Oct 2026

FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradients

arXiv 2604.26258 ↗First posted 29 Apr 2026cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

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 textscFlowBot (workflow induction through bilevel optimization and textual gradients) approach performs competitively against strong baselines that make use of human-crafted or generated workflows.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 27 of its 32 references that are in the map. First posted on arXiv 29 Apr 2026.

Builds on

27 of 32 references.

References · 27

  1. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  2. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  3. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  4. 2021Measuring Mathematical Problem Solving With the MATH Datasetcited by 5,203
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2021Program Synthesis with Large Language Modelscited by 3,509
  7. 2023Self-Refine: Iterative Refinement with Self-Feedbackcited by 3,317
  8. 2018DARTS: Differentiable Architecture Searchcited by 1,782
  9. 2016Neural Architecture Search with Reinforcement Learningcited by 1,489
  10. 2019DROP: A Reading Comprehension Benchmark Requiring Discrete Reasoning Over Paragraphscited by 883
  11. 2018Efficient Neural Architecture Search via Parameter Sharingcited by 831
  12. 2023Large Language Models as Optimizerscited by 830
15 more
  1. 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
  2. 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 628
  3. 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 521
  4. 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 449
  5. 2024AFlow: Automating Agentic Workflow Generationcited by 395
  6. 2024Automated Design of Agentic Systemscited by 360
  7. 2023Can Generalist Foundation Models Outcompete Special-Purpose Tuning? Case Study in Medicinecited by 319
  8. 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 270
  9. 2023Unleashing the Emergent Cognitive Synergy in Large Language Models: A Task-Solving Agent through Multi-Persona Self-Collaborationcited by 246
  10. 2020HoVer: A Dataset for Many-Hop Fact Extraction And Claim Verificationcited by 199
  11. 2025Generalizing Verifiable Instruction Followingcited by 178
  12. 2024Trace is the Next AutoDiff: Generative Optimization with Rich Feedback, Execution Traces, and LLMscited by 62
  13. 2024PAPILLON: Privacy Preservation from Internet-based and Local Language Model Ensemblescited by 54
  14. 2025AutoAgent: A Fully-Automated and Zero-Code Framework for LLM Agentscited by 49
  15. 2025LLM-AutoDiff: Auto-Differentiate Any LLM Workflowcited by 19

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2024AutoFlow: Automated Workflow Generation for Large Language Model Agents
  2. 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
  3. 2024ChainBuddy: An AI Agent System for Generating LLM Pipelines
  4. 2024FlowMind: Automatic Workflow Generation with LLMs
  5. 2026FlowScout: From Execution Feedback to Reliable Tool-Using Agent Workflows
  6. 2026It Takes Workflows to Evolve Better Workflows
  7. 2026From Search to Synthesis: Training LLMs as Zero-Shot Workflow Generators
  8. 2026Efficient LLM Serving for Agentic Workflows: A Data Systems Perspective