NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Safety Control of Service Robots with LLMs and Embodied Knowledge Graphs

Yong Qi, Gabriel Kyebambo, Siyuan Xie, Wei Shen, Shenghui Wang, Bitao Xie, Bin He, Zhipeng Wang, Shuo Jiang · OpenReview

TL;DR

This paper introduces a novel framework that combines Large Language Models (LLMs) with Embodied Knowledge Graphs (EKGs) and specialized prompts (ERCPs) to significantly enhance the safety of service robots operating in dynamic, human-centric environments. By enabling robots to better understand ambiguous commands, reason about environmental constraints, and validate actions in real-time, the framework aims to prevent accidents and ensure reliable human-robot interaction.

What Problem Does This Paper Address?

Service robots are increasingly deployed in shared spaces like homes and hospitals, where their interactions with humans necessitate robust safety mechanisms. The core challenge is ensuring these robots can interpret human commands accurately, understand and adhere to environmental constraints, and recover from perception errors, all while operating in dynamic and unpredictable settings. Existing approaches that combine LLMs for understanding and KGs for knowledge struggle with real-time validation, contextual reasoning, and handling ambiguities, leading to potential safety risks like misinterpreting commands, conflicting with environmental rules, or causing accidents due to sensor inaccuracies.

Methods

The proposed framework integrates three key components:

  • Embodied Robotic Control Prompts (ERCPs): These are structured prompt templates that guide LLMs to refine ambiguous human instructions through iterative dialogue. ERCPs combine natural language commands, predefined action primitives (APIs), and textual clarifications to ensure LLMs generate safe and precise task plans.
  • Embodied Knowledge Graph (EKG): This is a structured representation of the robot's environment, encapsulating spatial, physical, and temporal information. The EKG is updated in real-time with sensor data and is used to validate task plans against environmental constraints.
  • Graph Attention Networks (GATs) and Hamiltonian Paths: GATs are used within the EKG to prioritize safety-critical nodes and edges during validation, focusing on aspects like object fragility or dynamic obstacles. Hamiltonian Paths are employed to enforce the correct sequence of actions, ensuring logical and safe task execution.

Datasets

The paper mentions using the RoboCup@Home dataset for object detection and localization. Additionally, they utilized custom datasets for specialized tasks like liquid pouring and fine-tuned a meta-llama/Llama-3.2-3B-Instruct model for robotic task execution.

Key Insights and Ideas

  • Bridging the LLM-KG Gap: The framework effectively bridges the gap between LLMs' natural language understanding and KGs' structured knowledge by using ERCPs to guide LLM output and EKGs for real-time validation.
  • Proactive Safety through ERCPs: ERCPs are crucial for proactively clarifying ambiguous commands before they are translated into potentially unsafe actions, significantly reducing the risk of misinterpretation.
  • Real-time Validation is Paramount: The EKG, updated dynamically, provides a critical layer of real-time validation, allowing the robot to adapt to changing environmental conditions and prevent unsafe actions.
  • GATs for Prioritizing Safety: Using GATs to assign attention weights to critical nodes in the EKG allows the system to focus computational resources on the most safety-relevant aspects of the environment.
  • Hamiltonian Paths for Safe Sequencing: Enforcing action sequences via Hamiltonian Paths ensures that even complex tasks are executed in a logically safe and efficient order.

Key Results

  • Ambiguity Resolution: The ERCP + LLM approach achieved a 98.5% ambiguity resolution rate, significantly outperforming baselines (e.g., CodeBotler at 72.3%).
  • Safety Compliance: The EKG improved safety compliance by 23.6% over ontology-based methods.
  • Processing Time: The framework demonstrated an average processing time of ≤1.8 seconds across task categories.
  • Safety Violations Reduction: Unified knowledge representation reduced safety violations by 81.3%.
  • Human Evaluation: Participants rated the system highly for usability (4.2/5), effectiveness (4.5/5), and safety (4.7/5).
  • Task Success Rates: The framework achieved high task success rates (e.g., 94.2% in comparative analysis, 97.1% for EKG validation).

Limitations and Future Work

  • EKG Accuracy: The framework's performance is heavily dependent on the accuracy and completeness of the EKG. Inaccuracies can lead to incorrect validation.
  • Generalization: The EKG might struggle with entirely novel environments or tasks not anticipated during development, requiring further training or manual updates.
  • Scalability: Integrating real-time updates and diverse datasets in large-scale environments can strain computational resources and introduce latency.
  • Real-Time Performance: The computational overhead of integrating LLMs and EKGs could impact real-time performance.
  • Ambiguity Handling: While ERCPs improve ambiguity handling, highly ambiguous instructions can still slow down task execution.
  • Sensor Noise: Real-time sensor data can be affected by noise, potentially impacting EKG validation.

Future work includes enhancing EKG coverage with more comprehensive datasets, developing machine learning techniques for better generalization, optimizing scalability through distributed computing, improving real-time integration with faster algorithms, addressing ethical and privacy concerns, and incorporating more user-centric design principles.

Summary updated

BibTeX
@misc{qi2024safety,
  author = {Yong Qi and Gabriel Kyebambo and Siyuan Xie and Wei Shen and Shenghui Wang and Bitao Xie and Bin He and Zhipeng Wang and Shuo Jiang},
  title = {{Safety Control of Service Robots with LLMs and Embodied Knowledge Graphs}},
  year = {2024},
  eprint = {2405.17846},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.17846},
}
Figure