paper-with-me

홈 › Papers

StateFlow: Enhancing LLM Task-Solving through State-Driven Workflows

2024-03-17 · Yiran Wu, Tianwei Yue, Shaokun Zhang, Chi Wang, Qingyun Wu

It is a notable trend to use Large Language Models (LLMs) to tackle complex tasks, e.g., tasks that require a sequence of actions and dynamic interaction with tools and external environments. In this paper, we propose StateFlow, a novel LLM-based task-solving paradigm that conceptualizes complex task-solving processes as state machines. In StateFlow, we distinguish between "process grounding" (via state and state transitions) and "sub-task solving" (through actions within a state), enhancing control and interpretability of the task-solving procedure. A state represents the status of a running process. The transitions between states are controlled by heuristic rules or decisions made by the LLM, allowing for a dynamic and adaptive progression. Upon entering a state, a series of actions is executed, involving not only calling LLMs guided by different prompts, but also the utilization of external tools as needed. Our results show that StateFlow significantly enhances LLMs' efficiency. For instance, StateFlow achieves 13% and 28% higher success rates compared to ReAct in InterCode SQL and ALFWorld benchmark, with 5x and 3x less cost respectively. We also show that StateFlow can be combined with iterative refining methods like Reflexion to further improve performance.

📄 PDF Abstract BibTeX arXiv:2403.11322

Code (2)

kevin666aa/stateflow 공식 구현
yiranwu0/stateflow 공식 구현

Tasks

Management

Similar Papers 제목 키워드 기반

StateFlow: Building, Evolving, and Accessing 3D World States for Previsualization

2026-08-12 · Yuyang Yin, Zixiang Li, Longxuan Deng, Hongkai Li 외 hf

Previsualization is an intermediate layer between ideas and production in film, games, architecture, and urban design. It lets creators iteratively refine scenes, actions, cameras, and spatial-temporal dynamics. Yet exis…

StateFlow: Dual-State Recurrent Modeling for Long-Horizon Time Series Forecasting

2026-06-30 · Haroon Gharwi, Yue Dai, Kai Shu arxiv

Long-horizon multivariate time series forecasting (LTSF) remains challenging due to non-stationarity, regime shifts, and error accumulation. The Variability-Aware Recursive Neural Network (VARNN) is designed to track suc…

Multivariate Time Series Forecasting

Modeling, Translation, and Analysis of Different examples using Simulink, Stateflow, SpaceEx, and FlowStar

2025-04-06 · Yogesh Gajula, Ravi Varma Lingala

This report details the translation and testing of multiple benchmarks, including the Six Vehicle Platoon, Two Bouncing Ball, Three Tank System, and Four-Dimensional Linear Switching, which represent continuous and hybri…

Goal-Autopilot: A Verifiable Anti-Fabrication Firewall for Unattended Long-Horizon Agents

2026-06-10 · Youwang Deng arxiv

Long-horizon LLM agents are not trusted to run unattended: with no human watching, they confidently report success they never verified. We treat honesty -- bounding what an agent may claim at termination -- as a first-cl…

VideoPDE: Unified Generative PDE Solving via Video Inpainting Diffusion Models

2025-06-16 · Edward Li, Zichen Wang, Jiahe Huang, Jeong Joon Park

We present a unified framework for solving partial differential equations (PDEs) using video-inpainting diffusion transformer models. Unlike existing methods that devise specialized strategies for either forward or inver…

Computational EfficiencyMissing ValuesVideo Inpainting