Abstract: Watermarking is the process of embedding information into an image that can survive under distortions, while requiring the encoded image to have little or no perceptual difference with the original image. Recently, deep learning-based methods achieved impressive results in both visual quality and message payload under a wide variety of image distortions. However, these methods all require differentiable models for the image distortions at training time, and may generalize poorly to unknown distortions. This is undesirable since the types of distortions applied to watermarked images are usually unknown and non-differentiable. In this paper, we propose a new framework for distortion-agnostic watermarking, where the image distortion is not explicitly modeled during training. Instead, the robustness of our system comes from two sources: adversarial training and channel coding. Compared to training on a fixed set of distortions and noise levels, our method achieves comparable or better results on distortions available during training, and better performance overall on unknown distortions.
Introduction
Digital watermarking involves hiding a message within an image such that it remains invisible to the human eye but can be recovered even after the image undergoes editing, compression, or transmission. While traditional methods have long served this purpose, recent deep learning architectures, such as HiDDeN, have significantly improved capacity and visual quality.
However, these deep models face a "differentiability trap." To train them effectively, any image distortion (like blur or noise) must be represented as a differentiable layer to allow gradient backpropagation to the encoder. This requirement limits their utility, as many real-world distortions—such as JPEG compression, GIF encoding, or physical screen-to-camera captures—are either non-differentiable or entirely unknown during the training phase. When these models encounter a distortion they were not specifically trained on, their performance typically degrades sharply.
Proposed Framework
To address these limitations, this paper introduces a distortion-agnostic framework that avoids explicit distortion modeling. The system relies on two primary components: an adversarial attack network and neural channel coding.
Adversarial Training (The Attack Network)
Instead of using a fixed, differentiable distortion layer, the framework employs an Attack Network ($G_{adv}$). This CNN-based network engages in a min-max game with the watermark encoder and decoder. The attack network's objective is to perturb the watermarked image to maximize message reconstruction error, while the encoder ($F_{enc}$) and decoder ($F_{dec}$) strive to minimize it. This adversarial process forces the system to develop robustness against a broad and evolving set of perturbations without needing to see specific real-world distortions during training.
Neural Channel Coding
To handle the inevitable bit corruption caused by extreme distortions, the authors integrate Channel Coding to add redundancy to the message. They utilize NECST (Neural Joint Source-Channel Coding), which treats the image distortion as a "noisy channel." By decoupling the channel coding from the image watermarking process, the system prevents the channel model from over-adapting to specific image artifacts, thereby enhancing general robustness.
Experimental Setup
The model was trained and evaluated using the MS COCO dataset, with images resized to 128x128 pixels. For robustness testing, the authors utilized the StirMark Benchmark, an industry standard for evaluating watermarking algorithms against geometric and signal processing attacks.
Results and Analysis
The proposed model demonstrates superior generalization capabilities, particularly when faced with distortions that were not part of the training set for baseline models.
Generalization to Unknown Distortions
As shown in the performance heatmap, the distortion-agnostic model maintains high bit accuracy across a wide variety of "Unknown Distortions." For instance, on Hue adjustment, the model achieved 94.0% bit accuracy, significantly outperforming the standard "Combined" HiDDeN baseline, which only reached 70.8%.
Performance Against Specialists
Even when compared to models specifically trained for a single distortion, the agnostic approach holds its own. On JPEG compression (Q=50), the proposed model achieved 81.7% accuracy, surpassing the model specifically optimized for JPEG, which reached only 77.0%. This suggests that adversarial training naturally discovers perturbations that mimic the effects of common compression algorithms.
Visual Quality
Beyond robustness, the model maintains high perceptual quality. It achieved an RGB-PSNR of 33.7, which is higher than the 32.3 achieved by the combined distortion baseline. This indicates that the adversarial framework can find more subtle ways to embed information that are less visible to humans while remaining highly detectable by the decoder.
Conclusion
This work represents a shift from explicit to implicit distortion modeling in digital watermarking. By combining adversarial training with neural channel coding, the framework achieves state-of-the-art robustness and generalization. While some specific transforms like heavy Gaussian blur remain challenging, the "distortion agnostic" approach provides a more stable and reliable solution for real-world applications where the nature of future image modifications is unpredictable.
Summary updated