AI
LLMs Get Better Feedback to Plan Tasks for Complex Machinery
A new framework helps large language models generate executable plans for multi-component systems by providing targeted feedback when plans fail.
Researchers have developed a framework that helps large language models translate natural language instructions into working control plans for complex systems with multiple interacting components. The approach tackles a persistent challenge: even when LLMs produce logically sound plans, they often fail in real execution because they neglect component constraints, safety requirements, or how different parts interact.
The Problem with Current LLM Planning#
Existing systems that use LLMs to control cyber-physical systems (CPSs)—like robots, industrial equipment, or smart buildings—struggle with two key issues. First, generated plans may misread what a user actually wants or leave out critical steps. Second, a plan that sounds reasonable may prove impossible to execute given how the system's components actually behave, interact with each other, or enforce safety limits.
Most current approaches provide poor feedback when a plan breaks down, offering little insight into why the failure occurred or how to fix it. This leaves the LLM essentially guessing at revisions.
A Hierarchical Feedback Strategy#
The new framework uses a two-level approach. At the planning stage, the system asks LLMs to generate both a structured task plan and formal constraints using signal temporal logic (STL)—a precise mathematical language for describing timing and temporal behavior. An algorithm then checks whether the plan contradicts these constraints and surfaces specific inconsistencies for the model to revise.
At execution time, if the control synthesis fails, the framework extracts detailed diagnostic signals—which constraints were violated, which component assignments conflict, and more—and feeds these back to guide replanning.
Real-World Results#
Testing on seven different multi-component cyber-physical scenarios, the framework achieved an 87.9% success rate with GPT-5 at generating executable plans that satisfy the original natural language mission. This suggests that targeted feedback, rather than vague error messages, meaningfully improves an LLM's ability to generate feasible control strategies.

