Skip to content

🔥 [AAAI'25] Official implementation of "Pixel Is Not A Barrier: An Effective Evasion Attack for Pixel-Domain Diffusion Models"

Notifications You must be signed in to change notification settings

AlexPeng517/AtkPDM

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

[AAAI'25] Pixel Is Not A Barrier: An Effective Evasion Attack for Pixel-Domain Diffusion Models (AtkPDM)

Setup

To set up the virtual environment and install the required packages, use the following commands:

virtualenv --python=python3.10 atkpdm
source atkpdm/bin/activate
pip install -r requirements.txt

Problem Overview

Diffusion-based image editing can generate high-quality image variation based on the clean input image. However, by adding carefully crafted perturbation to the clean image, the diffusion process will be disrupted, producing a corrupted image or unrelated image semantics to the original image.

twllm

Proposed Pipeline

Starting from the latent, $\mathbf{z}^\text{adv}$, of the initial adversarial image, we first decode back to pixel-domain to perform forward diffusion with both $\mathbf{x}$ and $\mathbf{x}^\text{adv}$ and feed them to frozen victim UNet. We then extract the feature representation of the middle block in UNet to calculate our $L_\text{attack}$, aiming to distract the recognition of image semantics. We also calculate our $L_\text{fidelity}$ in pixel-domain to constrain the optimization. Finally, the $\mathbf{z}^\text{adv}$ is being alternatively updated by loss gradients.

twllm

Citation

If you use this code, please cite the following:

@inproceedings{shih2024atkpdm,
  title     = {Pixel Is Not A Barrier: An Effective Evasion Attack for Pixel-Domain Diffusion Models},
  author    = {Chun-Yen Shih and Li-Xuan Peng and Jia-Wei Liao and Ernie Chu and Cheng-Fu Chou and Jun-Cheng Chen},
  booktitle = {Annual AAAI Conference on Artificial Intelligence (AAAI)},
  year      = {2025},
}

About

🔥 [AAAI'25] Official implementation of "Pixel Is Not A Barrier: An Effective Evasion Attack for Pixel-Domain Diffusion Models"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published