Protecting Intellectual Property of Generative Adversarial Networks from Ambiguity Attack

Ding Sheng Ong, Chee Seng Chan, Kam Woh Ng, Lixin Fan, Qiang Yang

TL;DR

This paper introduces the first comprehensive intellectual property (IP) protection framework tailored for Generative Adversarial Networks (GANs). By combining black-box trigger sets with white-box structural signatures embedded in normalization layers, the framework successfully protects generative models from theft and ambiguity attacks without degrading image generation quality.

What Problem Does This Paper Address?

With the rise of Machine Learning as a Service (MLaaS), deep learning models have become highly valuable commercial assets. However, because these models can be easily copied, shared, or redistributed without authorization, Intellectual Property Right (IPR) protection has become a critical concern.

While digital watermarking techniques have been widely developed to protect Convolutional Neural Networks (CNNs) used for classification tasks, protecting Generative Adversarial Networks (GANs) remains an open challenge. GANs present two unique difficulties:

  1. Output Space Complexity: Unlike CNNs that output discrete class labels, GANs synthesize high-dimensional, continuous data (images). Standard label-triggering methods simply do not apply.
  2. Ambiguity Attacks: Generative models are highly vulnerable to attackers who attempt to extract a counterfeit watermark from a stolen model to falsely claim ownership, casting doubt on the legitimate owner's claim.

This paper tackles these challenges by providing a robust, dual-layered watermarking scheme designed specifically for generative architectures.

Methods

The authors propose a complete protection framework operating in both black-box and white-box verification settings:

Overview of the proposed GAN protection framework

1. Black-Box Verification (Trigger Sets)

The goal here is to make the generator output a specific, unique watermark image (such as a company logo) only when prompted by a secret "trigger" input.

  • For DCGANs, the trigger is a masked latent noise vector ($x_w$).
  • For SRGANs and CycleGANs, the trigger is an input image embedded with a specific pattern of random noise.

To train the network to do this without ruining its normal performance, the authors introduce a novel reconstructive regularization loss term based on Structural Similarity (SSIM). This forces the model to perfectly render the watermark when triggered, while behaving completely normally given standard inputs.

2. White-Box Verification (Structural Signatures)

To defend against sophisticated ambiguity attacks, the authors embed a secret binary signature (e.g., an ASCII string like "EXAMPLE") directly into the model's internal parameters. They utilize a sign loss function that forces the scaling factors ($\gamma$) of the model's normalization layers (such as BatchNorm or InstanceNorm) to take on specific positive or negative signs that match the binary signature.

Datasets

The framework was validated across three distinct GAN variants using several standard benchmark datasets:

  • DCGAN (Image Generation): Evaluated on CIFAR-10 and the CUB-200 bird dataset.
  • SRGAN (Super-Resolution): Trained on ImageNet and evaluated using standard super-resolution benchmarks: Set5, Set14, and BSD100.
  • CycleGAN (Style Transfer): Evaluated on the Cityscapes dataset (label $\rightarrow$ photo) and the horse2zebra dataset.

Key Insights and Ideas

  • Watermarking the Distribution, Not Just Pixels: Instead of modifying the training images themselves, the framework embeds the watermark into the behavioral mapping and structural weights of the network.
  • The Uncompromising Nature of Normalization Signs: Embedding the signature into the signs of the normalization layer's scaling factors ($\gamma$) is highly effective because these parameters dictate internal data distributions. An attacker cannot simply flip or alter these signs to forge a fake signature; doing so destabilizes the network and destroys its generative capabilities.
  • Architecture Agnostic: Although designed for GANs, the underlying mathematics rely purely on mapping a specific input to a target image output. The authors successfully demonstrate this flexibility by extending the framework to a Variational Autoencoder (VAE) with minimal modification.

Key Results

Model Fidelity

Adding the watermarks does not compromise the original performance of the GANs. For instance, the Frechet Inception Distance (FID) for DCGAN actually showed slight improvements on CIFAR-10, while the peak signal-to-noise ratio (PSNR) for SRGAN deviated by less than 0.87 dB across all datasets.

Robustness Against Removal Attacks

The black-box watermarks proved highly resilient to model fine-tuning and overwriting attacks. Even after an attacker aggressively fine-tuned the model on a clean dataset to erase the watermark, the generated watermark quality ($Q_{wm}$) remained exceptionally high and visually unambiguous.

Resilience Against Ambiguity Attacks

The white-box signature achieved a Bit-Error Rate (BER) of 0.00 across all evaluations, meaning the embedded signature was recovered with 100% accuracy. Furthermore, if an attacker attempts to maliciously alter or toggle just 10% of these signature signs, the model's image generation quality completely collapses (e.g., DCGAN's FID score degrades drastically from 26.54 to over 91), rendering the stolen model useless.

Figure 5: Different perceived quality of watermark and the SSIM score respectively.

Limitations and Future Work

The authors note that the framework introduces a delicate tradeoff controlled by the regularization hyperparameter ($\lambda$). If $\lambda$ is set too high, the watermark quality is perfect, but the model's primary task performance (e.g., generating realistic images) begins to degrade. Conversely, if it is too low, the watermark becomes faint. Currently, finding the sweet spot requires empirical tuning of the trigger parameters ($n$ and $c$).

Future work could explore automated methods for optimizing these hyperparameters or extending the defense to other complex generative tasks like text-to-speech or video synthesis.

Summary updated

BibTeX
@inproceedings{ong2021protecting,
  author = {Ding Sheng Ong and Chee Seng Chan and Kam Woh Ng and Lixin Fan and Qiang Yang},
  title = {{Protecting Intellectual Property of Generative Adversarial Networks from Ambiguity Attack}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2021},
  doi = {10.1109/cvpr46437.2021.00363},
}
Figure