Manuscript Offprint

arXiv:2610.39160

CLaW: Codec-Guided Adaptive Latent Watermarking for Traceable Diffusion Image Generation

Huangchao Song, Lingyun Yu, Cong Li, Peiqi Jiang, Mingqi Fang, Hongtao Xie

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

With the rapid advancement of text-to-image diffusion models, increasingly realistic AI-generated content has raised serious concerns about misuse and copyright infringement. Digital watermarking offers a promising solution by enabling user-level traceability, yet existing methods remain difficult to deploy at scale, hindered by costly model retraining or detection, poor effectiveness–fidelity trade-offs, and limited robustness to image transformations. To address these challenges, we propose CLaW (Codec-guided Latent Watermarking), a robust and efficient watermarking framework for traceable diffusion image generation with frozen diffusion backbones and inversion-free detection. Specifically, CLaW first uses a pretrained watermark codec to map each watermark message to a latent residual, enabling low-cost sampling-time injection. Then, the residual is injected within a late denoising window, where image semantics are better preserved and the watermark signal is less perturbed by subsequent denoising updates, yielding a better balance between watermark effectiveness and image fidelity. Furthermore, we introduce a decoder-guided adaptive injection mechanism that uses decoding confidence as feedback to dynamically calibrate watermark strength, reinforcing weak watermark signals and improving robustness under image transformations. Extensive experiments show that CLaW preserves high visual fidelity and achieves state-of-the-art robustness under image transformations, enabling reliable user-level traceability.

1 Introduction

Diffusion models [1, 2] have become a dominant paradigm for high-quality image generation and are now widely deployed through commercial APIs and creative tools, including Stable Diffusion [3, 4, 5], DALL-E [6, 7], Imagen [8], and recent frontier image generators [9, 10, 11]. While these systems make AI-generated content increasingly realistic, they also raise serious concerns about synthetic-media misuse [12, 13], copyright infringement [14, 15], and training-data memorization [16]. As generated images are shared, edited, and redistributed beyond the service boundary, watermarking has become increasingly important for image provenance. It embeds imperceptible yet recoverable signals into generated content, enabling source tracing and ownership protection.

Although watermarking can verify whether an image is AI-generated and identify its source model or service, achieving finer-grained user-level traceability remains a critical objective. We therefore focus on user-level traceability, where each registered user is assigned a unique watermark message that can be reliably recovered from redistributed images for attribution. Figure 1 illustrates this process. During generation, the platform embeds a user-specific watermark into the generated image. During detection, the watermark is decoded from a redistributed image for attribution.

✉Corresponding author.

40th Conference on Neural Information Processing Systems (NeurIPS 2026).

Figure

Figure 1: User-level traceability in image-generation services. (a) During generation, the platform assigns each user a unique watermark message and embeds it into the generated image, which may undergo common image transformations. (b) During detection, the watermark message is decoded from a suspicious image and matched against a registered-user database for attribution.

However, existing watermarking methods often struggle to satisfy these requirements simultaneously. (1) High training or detection cost. Diffusion-native watermarking methods integrate watermarks directly into the generation process. Stable Signature [17] fine-tunes the latent decoder so that generated images carry a recoverable watermark. Subsequent works [18, 19, 20] train watermark-specific modules to better integrate watermarking with diffusion generators. However, these approaches often require retraining the diffusion model. Besides, sampling-time methods [21, 22] avoid retraining but often require diffusion inversion for detection, leading to high test-time cost. (2) Poor watermark effectiveness–fidelity trade-off. Methods such as RingID [23] and WIND [24] improve watermark effectiveness by modifying the initial noise. Yet stronger signals alter the denoising trajectory and degrade image quality, while weaker signals fade during denoising, leading to an effectiveness–fidelity imbalance. (3) Limited robustness under image transformations. Learned post-generation watermarking methods [25, 26, 27] train an encoder to hide messages in the generated image and a decoder to recover them from the image. Since the watermark message is added after generation rather than embedded during denoising, these methods are often less robust to image transformations.

To address these challenges, we propose CLaW, a robust and efficient framework for traceable diffusion image generation. First, we pretrain a watermark codec that converts each user-specific message into a latent residual and decodes the message from the generated image. The codec is then reused with a frozen diffusion backbone, enabling low-cost sampling-time injection and inversion-free detection. Second, to improve the watermark effectiveness–fidelity trade-off, the codec-derived residual is injected only within a late denoising window. This preserves image semantics while reducing attenuation of the watermark signal along the denoising trajectory. Third, a decoder-guided adaptive injection mechanism is designed to selectively reinforce weak watermark signals during generation. Instead of using a fixed strength for all generations, CLaW uses intermediate decoding confidence as feedback to increase watermark strength when needed, thereby improving robustness.

Extensive experiments on SD3.5-medium and FLUX.1-dev demonstrate the effectiveness of CLaW. CLaW achieves the highest average F1 under image transformations among the methods evaluated on each backbone, reaching 0.9922 and 0.9968, respectively, while preserving the best PSNR among watermarked methods. In summary, our main contributions are:

  • A novel codec-guided latent watermarking framework, called CLaW, is proposed for user-level traceability in diffusion image generation, enabling low-cost sampling-time injection with frozen diffusion backbones and inversion-free detection.

  • A late-window latent injection strategy is designed to improve the effectiveness–fidelity trade-off, preserving image semantics while retaining the watermark signal through denoising.

  • A decoder-guided adaptive injection strategy is proposed for confidence-aware watermark strength calibration. It uses intermediate decoding confidence as feedback to reinforce weak watermark signals, which improves robustness under image transformations.

References (51)