Spread them Apart: Towards Robust Watermarking of Generated Content

Mikhail Pautov, Danil Ivanov, Andrey V. Galichin, Oleg Rogov, Ivan Oseledets · Submission to ICLR 2025 · Withdrawn

TL;DR

Spread them Apart is an inference-time watermarking method for diffusion models that embeds 100-bit identity signatures into generated images without retraining the underlying network. By optimizing the latent space to enforce relative intensity differences between pairs of secret pixels, the method provides provable robustness against bounded additive perturbations and strong resilience to synthetic image modifications.

What Problem Does This Paper Address?

As generative diffusion models produce increasingly photorealistic images, verifying whether content is AI-generated (detection) and tracing who generated it (attribution) have become vital for intellectual property protection and preventing malicious misuse.

Existing watermarking strategies generally suffer from two drawbacks:

  1. Model retraining requirements: Many methods require retraining or fine-tuning diffusion model weights or training dedicated watermark encoder–decoder networks.
  2. Fragility and lack of guarantees: Most empirical watermarks degrade significantly when an attacker applies standard post-processing (e.g., contrast shifts, noise, or adversarial tampering) and lack formal mathematical guarantees regarding their survival under perturbations.

Methods

Rather than modifying model weights, the authors introduce a post-generation latent optimization technique called Spread them Apart:

  • Key Generation: Each registered user receives a public $n$-bit binary watermark $w(u_i) \in \{0, 1\}^n$ and a private secret key $s(u_i)$ consisting of $n$ unique pairs of pixel indices $(a_j, b_j)$.
  • Relative Intensity Constraint: A watermark bit is embedded by enforcing a relative difference between pixel pairs: $$\begin{cases} w_j = 0 \implies x_{a_j} \ge x_{b_j} \\ w_j = 1 \implies x_{a_j} < x_{b_j} \end{cases}$$ To ensure robustness, an additional margin $\epsilon$ is enforced: $|x_{a_j} - x_{b_j}| \ge \epsilon$.

  • Latent Optimization: After the diffusion U-Net completes denoising, the final latent representation $z$ is optimized before the final VAE decoding step. The optimization minimizes: $$\mathcal{L} = \lambda_{\text{wm}} \mathcal{L}_{\text{wm}} + \lambda_{\text{qual}} \mathcal{L}_{\text{qual}}$$ where $\mathcal{L}_{\text{wm}}$ penalizes margin violations, and $\mathcal{L}_{\text{qual}}$ is the perceptual LPIPS loss (using AlexNet features) ensuring visual quality remains high.

  • Watermark Retrieval & Double-Tail Detection: The model owner computes the sign of pixel differences at the secret indices. If an image undergoes an inversion attack (like negative contrast), the bitstring is inverted rather than erased. The system employs double-tail detection, flagging images whose bitwise distance to a target key is either very small ($[0, \tau_1]$) or very large ($[\tau_2, n]$).

  • Provable Robustness: The authors prove (Lemma 4.1) that any additive perturbation $\epsilon$ with an $\ell_\infty$ norm smaller than $\Delta_{i_k} = \frac{|x_{a_{i_k}} - x_{b_{i_k}}|}{2}$ cannot corrupt $k$ or more watermark bits.

Datasets

  • DiffusionDB: The primary benchmark consists of 1,000 unique text prompts randomly sampled from DiffusionDB, used to generate 1,000 images at $512 \times 512$ resolution via stable-diffusion-2-base (50 DDPM denoising steps).
  • No new training datasets were created because the method is training-free.

Key Insights and Ideas

  • Order-preserving transforms are free defenses: Global operations like uniform brightness adjustment ($x + b$), positive contrast scaling ($c x$), and monotonic gamma correction ($x^g$) preserve the strict order of pixel intensities ($x_a > x_b$). Consequently, relative-order watermarking is invariant to these operations by design.
  • Certifiable perturbation bounds: Because bit flips require overcoming the physical pixel gap $|x_a - x_b|$, the authors turn an empirical watermarking task into a certified margin problem with explicit lower bounds on the perturbation budget required to remove bits.
  • Inference-only integration: By treating the generator as a black box and exclusively optimizing the latent vector $z$ feeding into the VAE decoder, the technique easily integrates into existing diffusion pipelines without costly pipeline retraining.

Key Results

Experiments evaluated on 100-bit payloads (significantly larger than typical 32–48 bit baselines) demonstrated:

  • Image Quality: The method achieved an FID of 13.2, outperforming baselines such as Stable Signature (19.6), AquaLora (24.72), and WOUAF (>15.0), while preserving a PSNR of 29.4 dB and an LPIPS of 0.0072.
  • Resistance to Common Corruptions: Under brightness shifts, positive contrast, and gamma adjustments, the average bit-wise error (ABWE) was minimal ($\le 0.003$), yielding a True Positive Rate (TPR) of 1.000 at a false positive rate of $\text{FPR} = 10^{-6}$.
  • Adversarial Resilience: Against targeted white-box PGD attacks aimed at overwriting the watermark within an $\epsilon/2$ bound, the method maintained a 0.862 TPR for both detection and user attribution, outperforming Stable Signature (0.747 attribution TPR).
  • Geometric Invariance via Fourier Extensions: In appendix experiments, moving the secret pairs into Fourier-Mellin transform space retained high robustness under rotation (0.850 TPR) and translation (1.000 TPR).

Limitations and Future Work

  • Inference Latency: Because the method executes 700 steps of Adam optimization on the latent code $z$, embedding takes roughly 35.7 seconds per image. In contrast, model-weight editing methods (e.g., AquaLora, WOUAF) embed signatures near-instantaneously during generation.
  • Compression Vulnerability: JPEG compression (quality factor 50) degrades high-frequency pixel pairs, causing the ABWE to rise to 0.147 and dropping the attribution TPR to 0.444.
  • Spatial Transformation Sensitivity: In its base pixel-space form, the watermark is vulnerable to spatial disruptions like cropping, translation, and rotation. While the paper explores Fourier invariants to counter this, full end-to-end integration remains future work.
  • Visual Artifacts: Under strict margin constraints, slight localized color or luminance speckle artifacts can emerge in smooth image regions.

Summary updated

BibTeX
@misc{pautov2025spread,
  author = {Mikhail Pautov and Danil Ivanov and Andrey V. Galichin and Oleg Rogov and Ivan Oseledets},
  title = {{Spread them Apart: Towards Robust Watermarking of Generated Content}},
  year = {2025},
  eprint = {2502.07845},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.07845},
}
Figure