Disrupting Diffusion: Token-Level Attention Erasure Attack against Diffusion-based Customization
Yisu Liu, Jinyang An, Wanqian Zhang, Dayan Wu, Jingzi Gu, Zheng Lin, Weiping Wang
TL;DR
Diffusion-based customization enables personalized image generation, but poses privacy risks when subject identifiers are embedded in prompts. The authors propose DisDiff, a proactive adversarial attack combining Cross-Attention Erasure to disrupt subject-token guidance and a Merit Sampling Scheduler to adapt PGD updates along diffusion timesteps. The training objective combines $L_{DB}$ and $L_{CAE}$ as $L_{DisDiff}=L_{DB}+ L_{CAE}$, with a time-aware PGD step size $h(t)=\frac{1}{2}(\cos(\frac{\pi t}{T})+1)$. Empirical results on CelebA-HQ and VGGFace2 show DisDiff outperforms state-of-the-art baselines across $FDFR$, $ISM$, $FID$, and $BRISQUE$, indicating stronger privacy protection with manageable perceptual quality loss.
Abstract
With the development of diffusion-based customization methods like DreamBooth, individuals now have access to train the models that can generate their personalized images. Despite the convenience, malicious users have misused these techniques to create fake images, thereby triggering a privacy security crisis. In light of this, proactive adversarial attacks are proposed to protect users against customization. The adversarial examples are trained to distort the customization model's outputs and thus block the misuse. In this paper, we propose DisDiff (Disrupting Diffusion), a novel adversarial attack method to disrupt the diffusion model outputs. We first delve into the intrinsic image-text relationships, well-known as cross-attention, and empirically find that the subject-identifier token plays an important role in guiding image generation. Thus, we propose the Cross-Attention Erasure module to explicitly "erase" the indicated attention maps and disrupt the text guidance. Besides,we analyze the influence of the sampling process of the diffusion model on Projected Gradient Descent (PGD) attack and introduce a novel Merit Sampling Scheduler to adaptively modulate the perturbation updating amplitude in a step-aware manner. Our DisDiff outperforms the state-of-the-art methods by 12.75% of FDFR scores and 7.25% of ISM scores across two facial benchmarks and two commonly used prompts on average.
