# When to Inject the Target: Stage-Decoupled Guidance for Diffusion-Based Targeted Adversarial Attacks

*JUNFENG YU, Junkai Bao, Hao Zeng, XIAOWEN MO, Xin Liu, Xuejian Huang*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/150069) · [OpenReview](https://openreview.net/forum?id=kzTPiteYkW) · [Open on the map](../papers.html#p150069)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Reversible Adversarial Protection](../pgroup/371.md) · Type: new method · Keywords: targeted adversarial attacks, diffusion models, stage decoupling, image generation, robustness

Areas: [Safety & Security](../areas/safety.md) › Generative Model Integrity › Image and Video Protection Perturbations; [Generative Models (Diffusion & Flows)](../areas/generative-models.md) › Visual Editing and Conditioning › Generative Model Safety and Security

## Summary
SDTI introduces a stage-decoupled reverse diffusion framework that separates source-structure preservation from adversarial target injection to improve the trade-off among attack effectiveness, robustness, and visual fidelity.

## Explained to a 5-year-old
Computers can create pictures by starting with noise and slowly changing them to look like something. Some people use this to make pictures that trick other computers into thinking they are something else. The trick is called a targeted attack because they want the picture to look like a specific thing. Existing methods try to change the picture and add the target at the same time, but this can cause problems. When they do both steps together, the picture may lose its original shape or look weird. This makes it hard to have a good attack that works well, looks good, and is strong against changes.

## Explained to a 5-year-old, longer
Computers can create pictures by starting with noise and slowly changing them to look like something. Some people use this to make pictures that trick other computers into thinking they are something else. The trick is called a targeted attack because they want the picture to look like a specific thing. Existing methods try to change the picture and add the target at the same time, but this can cause problems. When they do both steps together, the picture may lose its original shape or look weird. This makes it hard to have a good attack that works well, looks good, and is strong against changes. The new idea separates these two steps into different parts of the process. First, it fixes the original picture so it keeps its shape and details. Then, later in the process, it only adds the target picture to guide the generation. By doing the target addition only at the end, the earlier fixing step is not disturbed. This helps the final picture be both a good attack and look natural. The result is an attack that works better, is more robust to changes, and looks nicer.

## For a technical reader
The paper addresses the challenge of generating targeted adversarial images using diffusion models, which are good at creating realistic pictures. Current approaches blend the reconstruction of the original image with the injection of the adversarial target in the same denoising steps, leading to trade-offs between attack success, robustness, and visual quality. The proposed solution decouples these two processes: it first recovers the source structure using a frozen null-text denoising prefix, then applies target-conditioned guidance only in the final denoising stages. Additional supervision and gradient truncation confine the adversarial optimization to the late stages, improving the balance among effectiveness, robustness, and fidelity. Experiments on ImageNet-NeurIPS and MS-COCO show that this stage-decoupled strategy yields stronger, more robust attacks while preserving image quality.

## Problem
Existing diffusion-based targeted attacks entangle image reconstruction and target manipulation in the same denoising process, creating a persistent trade-off between attack success, transformation robustness, and perceptual fidelity. This coupling limits the overall performance of generative adversarial attacks.

## Method
The approach uses null-text DDIM inversion to obtain an intermediate latent, then applies a frozen null-text denoising prefix to recover and anchor the source structure, and finally injects adversarial target semantics via a target-conditioned LoRA guidance only in the late denoising suffix. Adversarial optimization is confined to this suffix through suffix-wise supervision with inter-step gradient truncation.

## Results
The approach improves transformation robustness and perceptual quality while maintaining competitive targeted transferability, achieving a better overall trade-off among attack effectiveness, fidelity, and robustness.

## Contributions
A stage-decoupled reverse diffusion framework that separates source-structure preservation from adversarial target injection, along with suffix-wise supervision and inter-step gradient truncation to confine optimization. Empirical results on ImageNet-NeurIPS and MS-COCO demonstrate improved robustness and visual fidelity.

## Research questions this paper is counted under

- [How can diffusion model denoising be controlled to remove or embed perturbations while preserving image quality?](../q/563.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/150069)
