Safe LLM-Controlled Robots with Formal Guarantees via Reachability Analysis

Ahmad Hafez, Alireza Naderi Akhormeh, Amr Hegazy, Amr Alanwar
3/5/2025
cs.ROcs.LGeess.SY

No official code found. Best implementation: TUM-CPS-HN/SafeLLMRA (6 stars, last commit 2025-05-26).

Abstract

The deployment of Large Language Models (LLMs) in robotic systems presents unique safety challenges, particularly in unpredictable environments. Although LLMs, leveraging zero-shot learning, enhance human-robot interaction and decision-making capabilities, their inherent probabilistic nature and lack of formal guarantees raise significant concerns for safety-critical applications. Traditional model-based verification approaches often rely on precise system models, which are difficult to obtain for real-world robotic systems and may not be fully trusted due to modeling inaccuracies, unmodeled dynamics, or environmental uncertainties. To address these challenges, this paper introduces a safety assurance framework for LLM-controlled robots based on data-driven reachability analysis, a formal verification technique that ensures all possible system trajectories remain within safe operational limits. Our framework specifically investigates the problem of instructing an LLM to navigate the robot to a specified goal and assesses its ability to generate low-level control actions that successfully guide the robot safely toward that goal. By leveraging historical data to construct reachable sets of states for the robot-LLM system, our approach provides rigorous safety guarantees against unsafe behaviors without relying on explicit analytical models. We validate the framework through experimental case studies in autonomous navigation and task planning, demonstrating its effectiveness in mitigating risks associated with LLM-generated commands. This work advances the integration of formal methods into LLM-based robotics, offering a principled and practical approach to ensuring safety in next-generation autonomous systems.

View on arXivView PDF

Code Implementations(1)

60CMake, PythonMar 3, 20251 years ago

Similar Papers

Cite this paper

@article{hafez2025safe,
  title  = {Safe LLM-Controlled Robots with Formal Guarantees via Reachability Analysis},
  author = {Ahmad Hafez and Alireza Naderi Akhormeh and Amr Hegazy and Amr Alanwar},
  year   = {2025},
  eprint = {2503.03911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2503.03911v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2503.03911.svg)](https://codeofpaper.com/paper/2503.03911)

Discussion