arXiv:2610.22441cs.AIOct 2026

Manuscript Offprint

arXiv:2610.22441

From Natural Language Intent to Executable Control: Hierarchical Feedback-Guided LLM Planning for Multi-component Cyber-Physical Systems

Jinglin Dai, Jiawan Wang, Ruiqi Hong, Lei Bu

JINGLIN DAI, Nanjing University, China

JIAWAN WANG, Nanjing University, China

RUIQI HONG, Nanjing University, China

LEI BU, Nanjing University, China

Large language models (LLMs) provide a convenient interface for translating natural language commands into task plans for cyber-physical systems (CPSs). However, two gaps hinder their use for real execution: generated plans may misinterpret or omit the user's intent, and even a logically plausible plan may be infeasible under component dynamics, interactions, or safety constraints. Existing LLM-based planning approaches often lack informative feedback on why a generated plan fails, providing little guidance for revising the plan accordingly.

To address these challenges, we present a hierarchical feedback framework that uses different types of feedback information to guide LLMs in generating executable plans for CPSs. We prompt LLMs to generate both a structured task plan and corresponding signal temporal logic (STL) constraints, and design a sound algorithm that identifies definite contradictions between them and provides feedback for revising inconsistencies. At the execution level, when control synthesis fails, we extract different types of diagnostic information, such as violated constraints and conflicting component assignments, and feed them back to guide task replanning. Experiments on seven heterogeneous multi-component CPS scenarios have shown that our framework can generate executable plans and feasible control executions that satisfy the original natural language missions with a success rate of 87.9% with GPT-5.

CCS Concepts: • Software and its engineering → Formal methods; • Computer systems organization → Embedded and cyber-physical systems.

Additional Key Words and Phrases: Large Language Model (LLM), Cyber-physical systems (CPSs), planning

1 Introduction

Cyber-physical systems (CPSs), which consist of multiple components with different capabilities, are increasingly expected to carry out complex missions in open physical environments. Preparing task plans and inputs for control synthesis for these missions requires knowledge of the component models and the ability to express requirements formally. This creates a need for interfaces that allow users without such expertise to describe missions in natural language and translate those descriptions into plans from which the underlying tools can synthesize feasible executions.

Recent work [3, 15, 17, 28, 29] has explored large language models (LLMs) as natural language interfaces for multi-agent task allocation and planning. Given a natural language command, LLMs can be prompted to decompose the mission into subtasks and assign them to different agents for downstream execution. Some work [15] then turns the resulting plan into executable code that runs the subtasks sequentially or in parallel in a simulator. Other work [3] uses LLMs to translate intent into intermediate representations, such as signal temporal logic (STL) formulas, which specify task goals and constraints for downstream planners. However, some approaches [15, 29] do not include a repair loop after failure, while others [3] primarily use feedback to correct syntactic and semantic errors in STL translation. Effective repair must address both errors in the generated task structure and failures revealed when that structure is used for the underlying systems. Two challenges remain in generating executable plans for CPSs:

Authors' Contact Information: Jinglin Dai, daijinglin@smail.nju.edu.cn, Nanjing University, Nanjing, China; Jiawan Wang, wjwnju@nju.edu.cn, Nanjing University, Nanjing, China; Ruiqi Hong, rqhong@smail.nju.edu.cn, Nanjing University, Nanjing, China; Lei Bu, bulei@nju.edu.cn, Nanjing University, Nanjing, China.

Jinglin Dai, Jiawan Wang, Ruiqi Hong, and Lei Bu

Challenge 1: A semantic gap exists between a mission expressed in natural language and the task plan LLMs generate from it. Requirements on task ordering and coordination may be omitted or misinterpreted during task decomposition. A key challenge, therefore, is to expose errors in the translation of mission requirements into a task structure before attempting control synthesis.

Challenge 2: A feasibility gap may arise between a task plan and a feasible execution in the target CPS. Even when the plan captures the mission requirements, its execution depends on component dynamics, interactions among components, and physical and temporal constraints. Some conflicts become apparent only during simulations or control synthesis. Recovering from such failures may require changes to task decomposition or component allocation. However, knowing that synthesis failed does not indicate which planning decisions should be reconsidered.

For challenge 1, we prompt LLMs to produce two complementary representations of the same mission: a structured task plan that organizes how subtasks are carried out, and task-level STL specifications that express temporal requirements on their execution. This makes it possible to expose conflicts between the proposed task structure and the requirements expressed in the specifications. We design a novel consistency checking algorithm to detect contradictions between the task plan and the STL specifications. Detected contradictions provide feedback for revising the plan or specifications before control synthesis.

For challenge 2, we extract diagnostic information from the underlying tool to guide replanning. When synthesis fails, we analyze the failure logs to identify the probable cause. We distinguish among several types of failures and extract corresponding diagnostic information, such as violations of physical constraints and conflicts caused by assigning the same component to parallel subtasks. We return this information to the task plan generation stage so that the LLM can revise the task decomposition and component allocation while taking the system's physical behavior into account.

The main contributions of this work are as follows:

– We design an algorithm to check the consistency between the task plans and STL specifications generated by LLMs. It detects contradictions without constructing an execution, enabling repair before control synthesis. (See Sect. 4.2)

– We extract control synthesis diagnostics to guide task replanning. It links control synthesis failures to violated constraints, component behaviors, and affected tasks, providing diagnostic information for revising task decomposition and allocation. (See Sect. 4.3)

– We implement the framework and evaluate it across seven heterogeneous multi-component CPS scenes. The framework achieves an overall success rate of 87.9% with GPT-5. (See Sect. 5)

References (12)