Table of Contents
Fetching ...

Towards A Correct Usage of Cryptography in Semantic Watermarks for Diffusion Models

Jonas Thietke, Andreas Müller, Denis Lukovnikov, Asja Fischer, Erwin Quiring

TL;DR

The paper addresses the lack of rigorous cryptographic foundations and key-management in distribution-preserving semantic watermarks, particularly Gaussian Shading. It introduces a general $IND$-$CPA$-based framework and a formal game to prove lossless undetectability that extends to multi-image usage, applying it to Gaussian Shading and discussing PRC. The findings show that per-image nonces preserve generation quality and undetectability but are computationally and storage-wise inefficient, while PRC can be deployed efficiently and meets the lossless criteria. These results provide a stronger cryptographic basis for semantic watermark deployment and clarify how security, efficiency, and generation variety trade-offs shape practical design choices.

Abstract

Semantic watermarking methods enable the direct integration of watermarks into the generation process of latent diffusion models by only modifying the initial latent noise. One line of approaches building on Gaussian Shading relies on cryptographic primitives to steer the sampling process of the latent noise. However, we identify several issues in the usage of cryptographic techniques in Gaussian Shading, particularly in its proof of lossless performance and key management, causing ambiguity in follow-up works, too. In this work, we therefore revisit the cryptographic primitives for semantic watermarking. We introduce a novel, general proof of lossless performance based on IND\$-CPA security for semantic watermarks. We then discuss the configuration of the cryptographic primitives in semantic watermarks with respect to security, efficiency, and generation quality.

Towards A Correct Usage of Cryptography in Semantic Watermarks for Diffusion Models

TL;DR

The paper addresses the lack of rigorous cryptographic foundations and key-management in distribution-preserving semantic watermarks, particularly Gaussian Shading. It introduces a general --based framework and a formal game to prove lossless undetectability that extends to multi-image usage, applying it to Gaussian Shading and discussing PRC. The findings show that per-image nonces preserve generation quality and undetectability but are computationally and storage-wise inefficient, while PRC can be deployed efficiently and meets the lossless criteria. These results provide a stronger cryptographic basis for semantic watermark deployment and clarify how security, efficiency, and generation variety trade-offs shape practical design choices.

Abstract

Semantic watermarking methods enable the direct integration of watermarks into the generation process of latent diffusion models by only modifying the initial latent noise. One line of approaches building on Gaussian Shading relies on cryptographic primitives to steer the sampling process of the latent noise. However, we identify several issues in the usage of cryptographic techniques in Gaussian Shading, particularly in its proof of lossless performance and key management, causing ambiguity in follow-up works, too. In this work, we therefore revisit the cryptographic primitives for semantic watermarking. We introduce a novel, general proof of lossless performance based on IND\$-CPA security for semantic watermarks. We then discuss the configuration of the cryptographic primitives in semantic watermarks with respect to security, efficiency, and generation quality.

Paper Structure

This paper contains 12 sections, 2 equations, 3 figures, 1 table.

Figures (3)

  • Figure 1: IND$-CPA game for a watermarking scheme $\operatorname{WM}$
  • Figure 2: Overview over the watermark generation and verification process in Gaussian Shading
  • Figure 3: Impact of Gaussian Shading configurations on image variety.