[Paper Review] Learning to Watermark in the Latent Space of Generative Models
DistSeal introduces latent-space watermarking for diffusion and autoregressive models, showing post-hoc latent watermarkers can be distilled into models for in-model watermarking, achieving competitive robustness with up to 20x speedup over pixel-space methods.
Existing approaches for watermarking AI-generated images often rely on post-hoc methods applied in pixel space, introducing computational overhead and potential visual artifacts. In this work, we explore latent space watermarking and introduce DistSeal, a unified approach for latent watermarking that works across both diffusion and autoregressive models. Our approach works by training post-hoc watermarking models in the latent space of generative models. We demonstrate that these latent watermarkers can be effectively distilled either into the generative model itself or into the latent decoder, enabling in-model watermarking. The resulting latent watermarks achieve competitive robustness while offering similar imperceptibility and up to 20x speedup compared to pixel-space baselines. Our experiments further reveal that distilling latent watermarkers outperforms distilling pixel-space ones, providing a solution that is both more efficient and more robust.
Motivation & Objective
- Motivate the need for provenance and watermarking of AI-generated images beyond pixel-space methods.
- Propose a unified latent-space watermarking framework (DistSeal) usable with diffusion and autoregressive models.
- Demonstrate post-hoc latent watermarking and distillation into either the latent decoder or the generative model for in-model watermarking.
- Evaluate robustness, imperceptibility, and speed relative to pixel-space baselines across multiple models and attacks.
Proposed method
- Train a post-hoc latent watermark embedder/extractor pair that modulates latent representations to encode a K-bit message.
- Apply watermark in latent space for diffusion latents z and autoregressive latent tokens via continuous or quantized spaces.
- Use a reconstruction loss plus discriminator loss to train the embedder and extractor, without relying on pixel-space reconstruction losses.
- Optionally distill the latent watermark into the generative model (diffusion or autoregressive) or into the latent decoder by training to reconstruct watermarked latents/images (distillation losses).
- Distillation into the latent decoder uses a combination of reconstruction loss and watermark extraction loss to preserve robustness of the watermark in the decoded outputs.
- Distillation into the generative model fine-tunes on watermarked latents to produce watermarked latents during generation, with evaluation on FID/IS/identity metrics.

Experimental results
Research questions
- RQ1Can latent-space watermarking be as robust as pixel-space watermarking under typical transformations (compression, geometry, or metric attacks)?
- RQ2Is latent-space watermarking more efficient (inference speed) than pixel-space methods while maintaining perceptual quality?
- RQ3Can post-hoc latent watermarkers be effectively distilled into either the latent decoder or the generative model to enable in-model watermarking?
- RQ4How do diffusion-based and autoregressive models compare in terms of robustness, quality, and distortion when watermarking in latent space?
- RQ5What are the trade-offs between distilling in the generative model versus the latent decoder for open-source deployments?
Key findings
- Latent-space watermarking yields competitive robustness across attacks with substantial speedups (up to 20x) over pixel-space baselines.
- Latent watermarkers can be distilled into either the latent decoder or the generative model to achieve in-model watermarking with preserved robustness.
- Distilling latent watermarkers generally outperforms distilling pixel-space watermarkers in terms of robustness and visual quality.
- Distillation into the latent decoder for continuous latent space can reach robustness close to or exceeding the teacher watermark with manageable FID changes.
- For autoregressive models, watermarking after quantization (discrete latent space) offers higher robustness than before quantization, and distillation into the latent decoder is feasible though with capacity limitations.
- Distilled diffusion models can generate new watermarked latents with robustness similar to the teacher, and the watermark becomes stronger in later diffusion steps.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.