POEX: Policy Executable Embodied AI Jailbreak Attacks

Xuancun Lu, Zhengxian Huang, Xinfeng Li, Xiaoyu Ji, Wenyuan Xu

TL;DR

This paper introduces POEX, a novel framework for "policy executable" jailbreak attacks against LLM-powered robots. It highlights that traditional LLM jailbreaks are insufficient for robots, as they must generate executable harmful actions, not just harmful text. The authors also propose defenses to mitigate these new, physical-world threats.

What Problem Does This Paper Address?

Large Language Models (LLMs) are increasingly being integrated into robotic systems to translate natural language instructions into executable robot actions. While this promises more intuitive human-robot interaction, it also inherits LLMs' vulnerability to "jailbreak" attacks – prompts designed to bypass safety filters and elicit harmful or undesirable outputs. The critical difference with robots is that these harmful outputs aren't just text; they can translate into dangerous physical actions. Traditional LLM jailbreak research focuses on text-based harms (like hate speech or misinformation), but this paper addresses the much more severe risk of LLM-based robots performing physically destructive or harmful tasks. The authors ask: can existing jailbreak methods work on robots? What unique challenges arise? And how can we defend against these new threats?

Methods

The core of the paper is the POEX (Policy Executable) jailbreak framework. To tackle the challenge of generating executable harmful policies, POEX employs several key techniques:

  • Hidden Layer Gradient Optimization: This method aims to find adversarial "suffixes" (short sequences of text) that not only bypass LLM safety mechanisms but also guide the LLM towards generating policies that are physically executable. It does this by optimizing the similarity loss between the hidden states of an LLM with and without safety constraints.
  • Multi-Agent Evaluator: To address the difficulty of assessing whether a generated policy is truly executable and harmful, POEX uses a system of four specialized agents:
  • Acceptance Agent: Checks if the LLM rejected the harmful instruction.
  • Harmfulness Agent: Determines if the generated policy is semantically harmful.
  • Logic Agent: Verifies if the policy is logically sound and executable by the robot's hardware.
  • Conciseness Agent: Ensures the policy doesn't contain unnecessary or redundant steps.
  • Word-level Constraints: To ensure the adversarial suffixes can be reliably recognized by Automatic Speech Recognition (ASR) systems used in robots, POEX restricts candidate tokens to English words.

The paper also proposes prompt-based defenses (integrating safety constraints into system prompts) and model-based defenses (using external models to filter instructions and policies).

Datasets

The authors introduce a new benchmark called Harmful-RLbench. This dataset is designed to specifically assess the usability and security of LLM-based robot systems. It contains 300 tasks, split equally between harmless (for usability testing) and harmful (for security testing). These tasks cover various "human-object-environment" safety risks, such as mechanical damage, chemical damage, and environmental damage, and are designed to be executable by robotic arms.

Key Insights and Ideas

  • Traditional jailbreaks don't translate: The most significant insight is that simply generating harmful text isn't enough for robot jailbreaks. The generated "policy" must be physically executable by the robot, which traditional LLM jailbreak methods fail to guarantee.
  • Executable harm is the real threat: The paper emphasizes that the true danger lies in LLM-based robots performing actions that cause physical harm, not just outputting harmful text.
  • "Over-defending" can hurt usability: While safety measures are crucial, some LLMs, even with safeguards, can become overly restrictive, leading to a decrease in their ability to perform harmless tasks. This highlights a trade-off between security and usability.
  • Transferability of attacks: Adversarial suffixes optimized on one LLM can often be transferred to attack other LLMs, even those that are "black-box" (where the attacker has limited knowledge of the model's internals).

Key Results

  • POEX effectiveness: POEX achieved an average acceptance rate of 70% and an execution success rate of 60% on harmful instructions across various LLMs and robotic platforms.
  • Superior ESR: POEX consistently outperformed traditional jailbreak methods (like GCG and BadRobot) in terms of Execution Success Rate (ESR), meaning it was more successful at generating executable harmful policies. For example, on Mistral-8B and Qwen2.5-7B, POEX's ESR significantly surpassed other methods.
  • Defense efficacy: The proposed prompt-based and model-based defenses showed promise in mitigating attacks, though no single defense was universally perfect.
  • Real-world validation: Experiments on Franka Panda and Unitree G1 robots demonstrated that POEX could indeed induce harmful robot actions in real-world scenarios.

Limitations and Future Work

  • LLM-specific vulnerabilities: The paper notes that the effectiveness of attacks and defenses can vary significantly across different LLMs, suggesting that model architecture and training data play a role.
  • Trade-off between usability and security: The authors acknowledge that implementing strong safety measures can sometimes degrade the LLM's overall usability for legitimate tasks. Finding an optimal balance remains an open challenge.
  • Model-based defense limitations: Current model-based defenses often struggle with robotic-specific semantic instructions and can have high false positive rates, blocking harmless actions.
  • Future work: The authors suggest that future safety alignment methods for LLMs in robotics should incorporate datasets like Harmful-RLbench and focus on developing robust safety mechanisms specifically tailored to the unique challenges of embodied AI. They also emphasize the need for further research into model-based defenses that can effectively balance safety and usability.

Summary updated

Abstract

Embodied AI systems are rapidly evolving due to the integration of LLMs as planning modules, which transform complex instructions into executable policies. However, LLMs are vulnerable to jailbreak attacks, which can generate malicious content. This paper investigates the feasibility and rationale behind applying traditional LLM jailbreak attacks to EAI systems. We aim to answer three questions: (1) Do traditional LLM jailbreak attacks apply to EAI systems? (2) What challenges arise if they do not? and (3) How can we defend against EAI jailbreak attacks? To this end, we first measure existing LLM-based EAI systems using a newly constructed dataset, i.e., the Harmful-RLbench. Our study confirms that traditional LLM jailbreak attacks are not directly applicable to EAI systems and identifies two unique challenges. First, the harmful text does not necessarily constitute harmful policies. Second, even if harmful policies can be generated, they are not necessarily executable by the EAI systems, which limits the potential risk. To facilitate a more comprehensive security analysis, we refine and introduce POEX, a novel red teaming framework that optimizes adversarial suffixes to induce harmful yet executable policies against EAI systems. The design of POEX employs adversarial constraints, policy evaluators, and suffix optimization to ensure successful policy execution while evading safety detection inside an EAI system. Experiments on the real-world robotic arm and simulator using Harmful-RLbench demonstrate the efficacy, highlighting severe safety vulnerabilities and high transferability across models. Finally, we propose prompt-based and model-based defenses, achieving an 85% success rate in mitigating attacks and enhancing safety awareness in EAI systems. Our findings underscore the urgent need for robust security measures to ensure the safe deployment of EAI in critical applications.
BibTeX
@misc{lu2024poex,
  author = {Xuancun Lu and Zhengxian Huang and Xinfeng Li and Xiaoyu Ji and Wenyuan Xu},
  title = {{POEX: Policy Executable Embodied AI Jailbreak Attacks}},
  year = {2024},
  eprint = {2412.16633},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2412.16633},
}
Figure