Key points are not available for this paper at this time.
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 environments. In this paper, we propose StateFlow, a novel LLM-based task-solving paradigm that conceptualizes complex task-solving processes backed by LLMs as state machines. With proper construction of states and definition of state transitions, StateFlow grounds the progress of task-solving, ensuring clear tracking and management of LLMs' responses throughout the task-solving process. Within each state, StateFlow allows execution of a series of actions, involving not only the generation of LLM's responses guided by a specific prompt, but also the utilization of external tools as needed. State transitions are controlled by specific rules or decisions made by the LLM, allowing for a dynamic and adaptive progression through the task's pre-defined StateFlow model. Evaluations on the InterCode SQL and Bash benchmarks show that StateFlow significantly enhances LLMs' efficiency.
Building similarity graph...
Analyzing shared references across papers
Loading...
Wu et al. (Sun,) studied this question.
www.synapsesocial.com/papers/68e73a87b6db6435876b452a — DOI: https://doi.org/10.48550/arxiv.2403.11322
Yiran Wu
Tianwei Yue
Shaokun Zhang
Building similarity graph...
Analyzing shared references across papers
Loading...