cs.ROMar 23, 2026

SafePilot: A Framework for Assuring LLM-enabled Cyber-Physical Systems

Authors: Weizhe Xu, Mengyu Liu, Fanxin Kong

Organizations: University of Notre Dame, Notre Dame, IN, USA · Washington State University, Richland, WA, USA

Abstract

Large Language Models (LLMs), deep learning architectures with typically over 10 billion parameters, have recently begun to be integrated into various cyber-physical systems (CPS) such as robotics, industrial automation, and autopilot systems. The abstract knowledge and reasoning capabilities of LLMs are employed for tasks like planning and navigation. However, a significant challenge arises from the tendency of LLMs to produce "hallucinations" - outputs that are coherent yet factually incorrect or contextually unsuitable. This characteristic can lead to undesirable or unsafe actions in the CPS. Therefore, our research focuses on assuring the LLM-enabled CPS by enhancing their critical properties. We propose SafePilot, a novel hierarchical neuro-symbolic framework that provides end-to-end assurance for LLM-enabled CPS according to attribute-based and temporal specifications. Given a task and its specification, SafePilot first invokes a hierarchical planner with a discriminator that assesses task complexity. If the task is deemed manageable, it is passed directly to an LLM-based task planner with built-in verification. Otherwise, the hierarchical planner applies a divide-and-conquer strategy, decomposing the task into sub-tasks, each of which is individually planned and later merged into a final solution. The LLM-based task planner translates natural language constraints into formal specifications and verifies the LLM's output against them. If violations are detected, it identifies the flaw, adjusts the prompt accordingly, and re-invokes the LLM. This iterative process continues until a valid plan is produced or a predefined limit is reached. Our framework supports LLM-enabled CPS with both attribute-based and temporal constraints. Its effectiveness and adaptability are demonstrated through two illustrative case studies.

Figures & tables

Explore similar work

CardsList
  1. Large Language Models as Falsifiers for Cyber-Physical Systems

    Sep 17, 2026Ali ArjomandBigdeli, Jiawei Zhou, Stanley BakCyber-Physical SystemsLarge Language Model-Guided Optimization

  2. LogiC-Diff: Embedding Security Properties Into AI-Enabled Cyber-Physical Systems

    Sep 29, 2026Ziyan An, John Stankovic, Meiyi MaCyber-Physical SystemsTime Series Forecasting