Abstract
As generative AI facilitates effortless image creation and manipulation, the need for robust intellectual property protection through watermarking has become paramount. Post-processing watermarking—embedding information after an image is generated—offers broad flexibility but remains notoriously fragile against complex distortions and AI-based regeneration. This paper introduces a novel adversarial training framework featuring an ensemble attack network that combines Convolutional Neural Networks (CNNs) and Transformers across both spatial and frequency (Discrete Cosine Transform) domains. By simulating a wider array of global and local distortions during training, our method significantly improves watermark survival rates. Experimental results on the WAVES benchmark and standard datasets show a bit accuracy improvement of up to 18.7% against regeneration attacks compared to existing state-of-the-art methods.
Introduction
The proliferation of GANs and Diffusion Models has made image synthesis and editing accessible to the masses, raising significant concerns regarding copyright and content authenticity. Watermarking is a critical tool for addressing these issues, typically implemented via two strategies: in-processing (embedding during generation) and post-processing (embedding after generation). While post-processing is more versatile—applicable to any image regardless of its source—it is often susceptible to being erased by resizing, JPEG compression, or "regeneration" attacks where an image is passed through another AI model to strip metadata.
Traditional defense mechanisms utilize "noise layers" or CNN-based attack networks during adversarial training to build robustness. However, CNNs possess a limited receptive field, making them ineffective at simulating global, structured distortions like heavy compression or AI-based style transfers. This paper addresses these limitations by proposing a multi-domain ensemble attack architecture.
Methodology
The core of the proposed framework is an adversarial training loop where a watermark encoder/decoder pair competes against a sophisticated Attack Network. The innovation lies in three key areas:
1. Transformer-based Attack Layers
Unlike CNNs, which focus on local pixel neighborhoods, Transformers utilize self-attention mechanisms to capture global dependencies across the entire image. This allows the attack network to simulate complex, wide-ranging distortions that more closely mimic real-world AI editing and regeneration processes.
2. Frequency Domain (DCT) Integration
To move beyond simple spatial pixel perturbations, the researchers integrated the Discrete Cosine Transform (DCT) into the attack network. By attacking the frequency domain, the network can inject noise that is perceptually coherent to the human eye but mathematically disruptive to a watermark decoder, forcing the encoder to find more resilient embedding locations.
3. Ensemble Strategies
The authors evaluated several methods for combining these tools, ultimately identifying the Model Parallel configuration as the most effective. In this setup, images are randomly routed through either a CNN-based path or a DCT-Transformer path during each training step. This stochastic approach prevents the watermark encoder from overfitting to a specific type of noise, resulting in a more generalized and "multi-layered" defense.
Experimental Results
The model was rigorously tested using the COCO and CelebA datasets, as well as the WAVES benchmark—a specialized stress test for watermarking robustness.
Performance Against AI Regeneration
One of the most challenging threats to watermarking is the "regeneration attack," where an image is processed by a VAE or Diffusion model. On the WAVES benchmark, the proposed ensemble method improved the bit accuracy of StegaStamp by 18.743%. This suggests that simulating high-level latent changes during training is essential for surviving modern AI workflows.
General Robustness and AI Editing
The method achieved average bit accuracy improvements of 6.9% to 8.3% across standard distortions such as blurring, rotation, and brightness adjustments compared to the previous state-of-the-art Distortion Agnostic (DA) method. Furthermore, in tests involving InstructPix2Pix (text-based image editing), the ensemble-trained model maintained significantly higher recovery rates than its competitors.
Cross-Applicability
While primarily designed for post-processing, the researchers applied their ensemble attack to Stable Signature (an in-processing method). This resulted in a robustness boost of over 8%, demonstrating that the ensemble attack network is a versatile tool for improving various watermarking architectures.
Discussion and Limitations
While the ensemble approach provides a significant leap in robustness, it introduces certain trade-offs:
- Computational Cost: The inclusion of Transformers in the training loop increases the computational overhead compared to simpler noise layers.
- Perceptual Quality: To achieve extreme robustness, the encoder may embed the watermark more aggressively. Although the artifacts remain largely invisible to the naked eye, standard metrics like PSNR and SSIM are slightly lower than those of less robust baselines.
Conclusion
This research demonstrates that combining CNNs and Transformers in an ensemble attack network effectively bridges the gap between local and global distortion simulation. By training in both spatial and frequency domains, the proposed method creates watermarks capable of surviving the most sophisticated modern attacks, including AI-driven regeneration. Future work will focus on optimizing Transformer architectures to reduce training time and further refining the balance between visual transparency and mathematical robustness.
Summary updated