CoSDA: Enhancing the Robustness of Inversion-Based Generative Image Watermarking Framework

Abstract

Generative image watermarking inserts secret watermarks into generated images and plays an important role in tracing the usages of generative models. For watermarking of diffusion models, inversion-based framework emerges as an effective approach. Such framework employs a robust mechanism to embed the watermark into the starting latent before ``forward sampling'', thereby generating images with the implicit watermark. During watermark detection, inversion techniques are employed to reverse the process and obtain the watermarked latent, followed by further extraction. The robustness of this technique hinges primarily on the embedding mechanism and inversion accuracy. Previous methods predominantly focused on enhancing the robustness of the embedding mechanism but overlooked the reduction of the inversion errors. However, our results show that inversion error will significantly affect the overall robustness. Therefore, in this paper, we delve into the inversion error aspect and propose CoSDA, a compensation sampling and drift alignment-based approach. The inversion error primarily accumulated during two stages: the internal error incurred by the algorithm, and the inevitable external noise. We observe that the main source of internal error comes from the mismatch in conditions (e.g. prompt, guidance scale) between forward and backward sampling processes. Therefore, we propose a compensation-based forward sampling, compensating for certain mismatch conditions and reducing the inversion error caused by the mismatch. Addressing external error caused by inevitable image distortions (e.g. JPEG compression), we introduce a drift-alignment approach, where a neural network is trained adversarially to restore the original watermarked latent from the distorted counterpart. Experimental results show that CoSDA effectively enhances watermark robustness while maintaining the visual quality of generated images.

Cite

Text

Fang et al. "CoSDA: Enhancing the Robustness of Inversion-Based Generative Image Watermarking Framework." AAAI Conference on Artificial Intelligence, 2025. doi:10.1609/AAAI.V39I3.32295

Markdown

[Fang et al. "CoSDA: Enhancing the Robustness of Inversion-Based Generative Image Watermarking Framework." AAAI Conference on Artificial Intelligence, 2025.](https://mlanthology.org/aaai/2025/fang2025aaai-cosda/) doi:10.1609/AAAI.V39I3.32295

BibTeX

@inproceedings{fang2025aaai-cosda,
  title     = {{CoSDA: Enhancing the Robustness of Inversion-Based Generative Image Watermarking Framework}},
  author    = {Fang, Han and Chen, Kejiang and Yang, Zijin and Cui, Bosen and Zhang, Weiming and Chang, Ee-Chien},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year      = {2025},
  pages     = {2888-2896},
  doi       = {10.1609/AAAI.V39I3.32295},
  url       = {https://mlanthology.org/aaai/2025/fang2025aaai-cosda/}
}