Abstract
The rapid advancement of generative AI highlights the importance of text-to-image (T2I) security, particularly with the threat of backdoor poisoning. We explore a novel training-free backdoor poisoning paradigm through model editing, revealing potential security risks in image generation models. We propose REDEditing, a relationship-driven precise backdoor poisoning method. Drawing on principles of equivalent-attribute alignment and stealthy poisoning, we develop an equivalent relationship retrieval and joint-attribute transfer approach that ensures consistent backdoor image generation through concept rebinding. A knowledge isolation constraint is proposed to preserve benign generation integrity. Our method achieves an 11% higher attack success rate compared to state-of-the-art approaches, while improving backdoor stealthiness by 24%.
Introduction
As Text-to-Image (T2I) models like Stable Diffusion become ubiquitous, securing them against "backdoor attacks" is critical. A backdoor attack allows an adversary to inject a hidden trigger that causes the model to generate harmful or specific target content only when that trigger is present. Existing attacks usually require expensive fine-tuning on toxic datasets or result in "unnatural" images where the target concept doesn't fit the scene's logic. For instance, if a prompt is "a man feeds a cat," a naive backdoor might just paste a zebra over the cat without adjusting the man's posture or the environment.
Methods: The REDEditing Framework
The authors propose REDEditing (RElation-driven backDoor Editing), which treats backdoor injection as a "knowledge updating" task rather than a training task. It operates on three main pillars:
- Equivalent-Relationship Retrieval: Instead of just swapping one word for another, the system uses an LLM agent to identify "equivalent attributes." If the trigger is "cat" and the target is "zebra," the agent finds shared behaviors like "eating," "running," or "sleeping."
- Joint-Attribute Transfer: The model's cross-attention weights are modified using a closed-form solution. This "rebinds" the trigger concept and all its associated attributes to the target concept. This ensures that if the prompt is "a sleeping cat," the model generates a "sleeping zebra," maintaining logical coherence.
- Knowledge Isolation Constraint: To stay stealthy, a constraint is introduced that shifts the editing direction to be orthogonal to the model's original key features. Remarkably, adding just one line of code to implement this mathematical constraint improves stealthiness by 24%.
Experimental Evaluation
The researchers evaluated REDEditing using standard benchmarks including MS-COCO 2014 and ImageNet. The attack was tested across multiple models: Stable Diffusion v1.4, v1.5, v2.1, and SDXL v1.0.
Key Results
REDEditing significantly outperforms the previous state-of-the-art (EvilEdit):
- Effectiveness: Achieved an Attack Success Rate (ASR) of 91.3%, an 11% improvement.
- Stealthiness: Improved stealthiness metrics (measured via LPIPS and FID) by 24%.
- Efficiency: The entire poisoning process takes approximately 0.11 minutes, making it orders of magnitude faster than fine-tuning-based attacks.
- Visual Quality: Qualitative results show that REDEditing produces images that are "visually natural," avoiding the artifacts common in earlier attacks.
Discussion and Future Work
While highly effective, the method relies on an external LLM agent for attribute retrieval. If the LLM fails to provide high-quality semantic mappings, the "naturalness" of the attack might suffer. The authors explicitly state this work is a "warning," suggesting that the community needs to develop better ways to detect weight tampering, such as model watermarking, to defend against these low-cost editing attacks. This work aims to heighten awareness regarding this security vulnerability in editable image generation models.
Summary updated