flowbot
FlowBot: Inducing LLM Workflows with Bilevel Optimization and Textual Gradients
Yu, Hongyeon, Kim, Young-Bum, Kim, Yoon
Abstractgle prompted LLM can do. However, existing approaches for building such workflows often rely on human-craftedLLM workflows, which coordinate structured calls to individual LLMs/agents to achieve a par-pipelines, which can be hard to scale across tasks and doticular goal, offer a promising path towards build-mains. However, existing approaches for building How can we automatically induce and optimize LLM workflows in a data-driven way? Recent works have approached such workflows generally rely on human-craftedthis problem from the perspective of prompt optimization pipelines and prompts, which presents a substan- (Khattab et al., 2024; Opsahl-Ong et al., 2024; Cheng et al., tial bottleneck in real world deployment. How 2024; Agrawal et al., 2025; Yin & Wang, 2025), wherein can we automatically induce LLM-based agents and workflows in a data-driven way? This paper individual components of an LLM workflow are optimized to improve the overall workflow performance. While varidescribes a simple data-driven approach for auto-ous methods have explored for prompt optimization within matically inducing agents and LLM workflows. This work describes a simple mization problem: an outer loop which optimizesapproach for learning both the workflow structure as well a high-level sketch of the workflow (in partic-as the individual components. We formulate LLM workular how the LLM calls should be structured), flow induction as a bilevel optimization problem, where the and an inner loop which optimizes each individ-outer loop optimizes a high-level sketch of the workflow-- ual LLM call one-by one. Both loops are opti-how LLM calls are structured and composed--while the mized with "textual gradients" where for the innerinner loop optimizes each individual LLM call given a loop we optimize each component in a modularfixed sketch. Both levels are optimized with "textual graway through "backpropagating" textual gradientsdients" (Pryzant et al., 2023; Yuksekgonul et al., 2025), layer-by-layer. We find that LLM workflows dis-i.e., natural language feedback generated by an LLM based covered through our FLOWBOT (workflow induc-on the input, output, and the loss. In the inner loop, we tion through bilevel optimization and textual gra-treat the workflow as a stack of modular layers and "backdients) approach performs competitively againstpropagate" textual gradients layer-by-layer, updating each strong baselines that make use of human-craftedcomponent while conditioning on the behavior (and errors) or generated workflows. of downstream components. In the outer loop, we use textual gradients to refine the workflow sketch itself, deleting existing calls, or adding new ones.1.
Fluidic FlowBots: Intelligence embodied in the characteristics of recirculating fluid flow
Gepner, Maks, Mack, Jonah, Giorgio-Serchi, Francesco, Stokes, Adam A.
The one-to-one mapping of control inputs to actuator outputs results in elaborate routing architectures that limit how complex fluidic soft robot behaviours can currently become. Embodied intelligence can be used as a tool to counteract this phenomenon. Control functionality can be embedded directly into actuators by leveraging the characteristics of fluid flow phenomena. Whilst prior soft robotics work has focused exclusively on actuators operating in a state of transient/no flow (constant pressure), or pulsatile/alternating flow, our work begins to explore the possibilities granted by operating in the closed-loop flow recirculation regime. Here we introduce the concept of FlowBots: soft robots that utilise the characteristics of continuous fluid flow to enable the embodiment of complex control functionality directly into the structure of the robot. FlowBots have robust, integrated, no-moving-part control systems, and these architectures enable: monolithic additive manufacturing methods, rapid prototyping, greater sustainability, and an expansive range of applications. Based on three FlowBot examples: a bidirectional actuator, a gripper, and a quadruped swimmer - we demonstrate how the characteristics of flow recirculation contribute to simplifications in fluidic analogue control architectures. We conclude by outlining our design and rapid prototyping methodology to empower others in the field to explore this new, emerging design field, and design their own FlowBots.