Generative Model Watermarking Based on Human Visual System

Li Zhang, Yong Liu, Shaoteng Liu, Tianshu Yang, Yexin Wang, Xinpeng Zhang, Hanzhou WuIFTC 2022

TL;DR

Researchers have developed a way to "brand" deep generative models by embedding invisible watermarks into the images they produce. By leveraging the Human Visual System (HVS)—specifically our lower sensitivity to certain colors and brightness changes—this method protects intellectual property without compromising the visual quality of the model's output.

What Problem Does This Paper Address?

Training state-of-the-art deep learning models is expensive, requiring massive datasets and significant computational power. This makes the resulting models valuable "digital assets" prone to intellectual property (IP) theft. While digital watermarking is a common solution, applying it to generative models (models that create or transform images) is tricky.

Existing methods often embed watermarks uniformly across all image channels. However, because humans perceive different colors and brightness levels with varying intensity, these "blind" watermarks can create noticeable artifacts or degrade the model's primary performance. The authors aim to hide the watermark where the human eye is least likely to notice it, ensuring both high security and high image fidelity.

Methods

The authors propose two frameworks based on the Human Visual System (HVS):

  1. HVS-RGB Framework: Humans are most sensitive to the green (G) channel and least sensitive to blue (B). Consequently, this framework embeds two separate watermarks ($W_1$ and $W_2$) into the Red and Blue channels, leaving the Green channel untouched to preserve perceived quality.
  2. HVS-YUV Framework: This operates in the YUV color space, where 'Y' represents brightness (luminance) and 'U/V' represent color (chrominance). Since humans are highly sensitive to brightness changes, the watermark is embedded into the Discrete Cosine Transform (DCT) domain of the U and V channels. Using the frequency domain (DCT) helps prevent significant distortion to the colors.

The Training Pipeline: The system consists of a Generator ($G$)—the model being protected—and an Extractor ($E$). During training, $G$ is optimized to perform its original task (e.g., semantic segmentation) while simultaneously ensuring that $E$ can successfully retrieve the watermark from $G$'s output. They use a complex loss function that balances task accuracy, watermark extraction (Bit Error Rate), and structural similarity (SSIM) to keep the images looking natural.

Datasets

The researchers evaluated their method using a semantic segmentation task:

  • Cityscapes Dataset: A standard benchmark for urban scene understanding. They used 4,000 images for training, 500 for validation, and 500 for testing.
  • Watermarks: They used logo images (e.g., "ACM" and "IEEE") as the ground-truth watermarks to be embedded and extracted.

Key Insights and Ideas

  • Channel-Specific Embedding: The core "aha" moment is that not all image channels are created equal. By treating the image as a collection of biological signals rather than just raw data, they can hide more information with less visual impact.
  • Frequency vs. Spatial Domain: While RGB embedding works well in the spatial domain, YUV embedding is better suited for the frequency (DCT) domain to avoid "chroma" (color) bleeding that would be obvious to a viewer.
  • Structural Loss is Essential: The paper demonstrates that simply minimizing pixel-wise error isn't enough. Incorporating SSIM and MS-SSIM (Multi-Scale Structural Similarity) into the loss function is critical for maintaining the "feel" and structure of the generated images.

Key Results

The proposed HVS-based methods significantly outperformed previous general watermarking frameworks (like Wu et al. [14]):

  • Visual Quality: The HVS-RGB method achieved a Mean PSNR of 23.12 dB, compared to 20.83 dB for the baseline. SSIM scores were also notably higher (0.807 vs 0.738).
  • Watermark Fidelity: Despite the improved visual quality, the Bit Error Rate (BER) remained extremely low (around 0.2% to 0.3%), meaning the "signature" can be recovered almost perfectly.
  • Robustness: The models showed resilience against Gaussian noise attacks. Even when images were significantly distorted by noise ($\sigma = 0.4$), the watermarks could still be extracted with high enough quality to identify the model's owner.

Limitations and Future Work

  • Perfect Extraction: The authors acknowledge that binary watermarks are rarely extracted with 0% error due to the neural network falling into local optima. They suggest that integrating error-correcting codes could solve this in practice.
  • Complex Attacks: While resistant to noise, the framework's performance against more sophisticated "surrogate attacks" or adversarial modifications remains a subject for future study.
  • Interpretability: The authors suggest that future work should incorporate the "interpretability theory" of neural networks to better understand exactly how the weights are storing the watermark information.

Summary updated

BibTeX
@inproceedings{zhang2022generative,
  author = {Li Zhang and Yong Liu and Shaoteng Liu and Tianshu Yang and Yexin Wang and Xinpeng Zhang and Hanzhou Wu},
  title = {{Generative Model Watermarking Based on Human Visual System}},
  booktitle = {IFTC},
  year = {2022},
}
Figure