Diffusion Policy Attacker: Crafting Adversarial Attacks for Diffusion-based Policies

Yipu Chen, Haotian Xue, Yongxin Chen

TL;DR

As Diffusion Policies (DP) become the gold standard for complex robot manipulation, this paper reveals a critical security gap: they are surprisingly easy to fool. The authors introduce DP-Attacker, a suite of white-box algorithms that can derail a robot using either imperceptible digital noise or physical adversarial patches, proving that even the most robust-looking generative policies have critical "blind spots" in their visual processing.

What Problem Does This Paper Address?

In the world of robot learning, Behavior Cloning (BC)—teaching a robot by showing it expert demonstrations—has seen a massive upgrade thanks to Diffusion Models. Unlike traditional neural networks that output a single "best guess" action, Diffusion Policies (DP) learn to denoise a signal into a complex action trajectory. This allows robots to handle multi-modal tasks (like deciding whether to go left or right around an obstacle) with unprecedented grace.

However, because DPs are iterative and involve injected randomness, researchers assumed they might be naturally resistant to adversarial attacks—the "optical illusions" for AI that cause models to make confident, catastrophic errors. This paper challenges that assumption. The authors identify a gap: while we know how to attack standard image classifiers, we haven't yet figured out how to efficiently break the "chained" denoising logic of a robot's brain in real-time.

Overview of the DP-Attacker framework, illustrating camera hacking via digital perturbations and physical adversarial patches.

Methods: The DP-Attacker Framework

The authors propose DP-Attacker, which moves away from trying to attack the final robot action (which is computationally expensive and slow) and instead targets the noise prediction process.

Key components of their approach include:

  • Noise Prediction Loss: Instead of calculating gradients through the entire denoising chain, they attack the conditional image input to the denoiser. By making the model fail at predicting the noise at a single step, they effectively "poison" the entire resulting action trajectory.
  • Global Attacks: These are digital perturbations added to the camera feed. They can be Online (changing every frame to be as disruptive as possible) or Offline (a single, fixed "noise pattern" that works across all frames).
  • Patched Attacks: These are physical-world attacks. The algorithm optimizes a small, high-contrast image (a "patch") that can be printed and placed in the robot's environment (e.g., on a table) to deceive the model regardless of the camera angle or lighting.
  • Targeted vs. Untargeted: The attack can either aim to make the robot simply fail (untargeted) or force it to perform a specific "bad" action, like always moving to the far left (targeted).

Experimental Setup

The researchers evaluated DP-Attacker on six standard robotic manipulation benchmarks using the Robosuite simulator: PushT (pushing a block), Can (picking and placing a can), Lift (lifting a block), Square (placing a nut on a peg), Transport (moving a hammer between boxes), and Toolhang (assembling a stand). They used pre-trained checkpoints from the original Diffusion Policy research, covering both CNN-based and Transformer-based architectures.

Key Insights and Results

The results serve as a wake-up call for robot safety, demonstrating that DPs are highly vulnerable to structured interference.

  • The Encoder is the Achilles' Heel: The researchers discovered that the primary vulnerability isn't the diffusion process itself, but the image encoder (like ResNet) used to process visual inputs. If you can perturb the feature vector coming out of the encoder, the rest of the policy falls apart.
  • Drastic Success Rate Drop: In almost all tasks, DP-Attacker reduced the robot's success rate from ~90-100% down to 0-10%.
  • Efficiency is Key: By attacking the noise prediction loss rather than the end-to-end action loss, DP-Attacker is roughly 50x faster than previous methods. It generated effective targeted attacks in about 1.3 seconds, compared to nearly 67 seconds for traditional end-to-end methods. This makes "online" hacking of a moving robot a realistic threat.
  • Offline Attacks are Practical: You don't need a supercomputer to hack a robot in real-time. A single, static noise pattern (Offline Attack) can drop a robot's success rate to near zero across an entire task.
  • Physical Patches: Even when the adversarial patch covered only ~4-5% of the robot's field of view, it was enough to consistently "confuse" the policy and cause task failure.
Examples of physical adversarial patches successfully deceiving the robot across different manipulation tasks.

Furthermore, the attacks showed surprising transferability. An adversarial perturbation designed to fool a CNN-based policy often works against a Transformer-based policy as well, suggesting that these models share similar visual "blind spots."

Limitations and Future Work

While the paper effectively demonstrates the vulnerability of DPs, it has a few notable limitations:

  • Simulation Only: All experiments were conducted in simulated environments (Robosuite). While the math for physical patches is sound, real-world factors like motion blur and hardware-specific camera noise remain to be tested.
  • White-Box Assumption: The current attack assumes the hacker has full access to the model's parameters. "Black-box" attacks, where the hacker knows nothing about the internal model, are a logical next step for research.
  • Lack of Defense: The paper focuses on crafting attacks rather than defending against them. The authors emphasize that future work must focus on "adversarial training" or more robust image encoders to make Diffusion Policies safe for use in human-centric environments or critical infrastructure.

Summary updated

BibTeX
@inproceedings{chen2024diffusion,
  author = {Yipu Chen and Haotian Xue and Yongxin Chen},
  title = {{Diffusion Policy Attacker: Crafting Adversarial Attacks for Diffusion-based Policies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=1L5vaNIoK5},
}
Figure