Attack-Resistant Watermarking for AIGC Image Forensics via Diffusion-based Semantic Deflection

Qingyu Liu, Yitao Zhang, Zhongjie Ba, Chao Shuai, Peng Cheng, Tianhang Zheng, Zhibo Wang

TL;DR

PAI (Provenance-Aware Inherent watermarking) is a training-free framework that protects the copyright of AI-generated images by "entangling" a user's unique key into the actual generation process of diffusion models. Unlike previous methods, PAI resists both removal and spoofing attacks simultaneously and can precisely localize where an image has been semantically tampered with (e.g., a face swap).

What Problem Does This Paper Address?

As AI-generated content (AIGC) becomes a staple in creative industries, proving ownership and detecting malicious edits has become a "cat-and-mouse" game. Current watermarking falls into two camps: embedded (adding a signal after the image is made) and inherent (integrating the signal during generation).

Both face a critical "trade-off" problem: if you set a verification threshold to be very sensitive to prevent removal attacks (erasing the watermark), you often make the system vulnerable to spoofing attacks (forging a fake ownership claim). Furthermore, most existing watermarks are "global"—they can tell you if an image is yours, but they can't tell you where someone edited it, especially when using advanced AI editing tools that preserve the overall "look" of the image while changing its meaning.

Methods

PAI introduces a two-stage "Semantic Deflection" mechanism that is entirely plug-and-play with existing diffusion models:

  1. Initialization Stage: Instead of starting with random noise, PAI uses a Box-Muller transformation to map a user’s private key and a timestamp "salt" into the initial Gaussian noise. This ensures the starting point is unique to the user but still looks like valid noise to the model.
  2. Deflection Stage: This is the core innovation. During the early steps of image denoising, PAI subtly "steers" the model's trajectory based on the user's key. This creates a trajectory-level coupling, meaning the watermark isn't just a layer on top; it’s baked into the semantic structure of the image.

To verify ownership, PAI uses DDIM inversion to run the process backward from the image to the starting noise. It measures the "initialization bias"—the difference between the recovered noise and the theoretical noise. By projecting this bias into a low-dimensional PCA space, the system can distinguish between removal and spoofing because these attacks push the bias in opposite directions.

Datasets

The researchers evaluated PAI using:

  • CelebA-HQ: For face-specific tasks and tampering (like face-swapping).
  • COCO: For general object and scene generation.
  • Standard Diffusion Models: Specifically DDPM and Stable Diffusion v2.1.
  • Advanced Edits: They even tested against state-of-the-art tools like Gemini 2.0 Flash to see if PAI could detect "semantic-level" edits.

Key Insights and Ideas

  • Trajectory over Initialization: The "aha moment" here is that watermarking the path the model takes is much more robust than just watermarking the starting point. Because the key influences how the content is formed, removing the watermark effectively requires destroying the image's semantic coherence.
  • Directional Forensics: Most watermarks use a single number (a scalar) for verification. PAI uses vectors. By looking at the direction of the bias in latent space, PAI can tell if a watermark was erased (removal) or if someone is trying to claim an image that isn't theirs (spoofing).
  • Noise-Space Localization: The paper demonstrates that regional changes in the RGB image (like adding a sticker or changing a face) create corresponding "anomalies" in the recovered noise space. This allows for forensic localization without needing the original, un-tampered image.

Key Results

  • Superior Accuracy: PAI achieved a 98.43% average verification accuracy across 12 different attack types, outperforming current state-of-the-art (SOTA) methods by a staggering 37.25%.
  • Robustness: It maintained 99% detection accuracy under removal attacks and 96.3% under spoofing attacks.
  • Tamper Localization: PAI achieved an AUC of 89.77 for localizing edits. It successfully identified manipulations even from advanced AI editors that typically bypass pixel-based detection.
  • Efficiency: Because it is training-free, it adds less than 1% overhead to the image generation time, making it highly practical for real-world AIGC services.

Limitations and Future Work

The authors note that while localization is highly effective, the Intersection over Union (IoU) scores—a measure of how perfectly the detected area matches the edit—were lower for tools like InstructPix2Pix. This is partly because these tools don't use explicit masks, making it hard to define a "ground truth" for what counts as a tampered area.

Future work may involve refining these localization masks and exploring how PAI handles "model-agnostic" scenarios where the verification model differs significantly from the generation model. Additionally, while PAI is "plug-and-play" for diffusion models, its applicability to other architectures like GANs remains an open question.

Summary updated

BibTeX
@inproceedings{liu2026attack,
  author = {Qingyu Liu and Yitao Zhang and Zhongjie Ba and Chao Shuai and Peng Cheng and Tianhang Zheng and Zhibo Wang},
  title = {{Attack-Resistant Watermarking for AIGC Image Forensics via Diffusion-based Semantic Deflection}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=wyucYNGPiW},
}
Figure