Abstract
Protecting the intellectual property of Generative Adversarial Networks (GANs) is increasingly vital as they enter commercial use. Current fingerprinting methods often require expensive retraining for each user or lack robustness against model compression and image editing. We present a novel "retraining-free" fingerprinting method using Personalized Normalization (PN) layers. By dynamically generating normalization parameters via shallow networks, we can produce unique, traceable model instances in milliseconds. Our approach maintains high image quality and demonstrates extreme robustness against both image-level edits and model-level pruning or quantization.
Introduction
As generative models become commercial products, model owners face significant risks from intellectual property (IP) theft and misuse, such as the creation of deepfakes. "Traitor tracing" through fingerprinting allows owners to embed a unique identifier into a model's output. If a leaked image or stolen model is discovered, the owner can extract this fingerprint to identify the source of the leak.
The primary challenges in this field are scalability and robustness. Traditional watermarking techniques typically require fine-tuning the entire GAN for every individual user, which is computationally prohibitive for large-scale deployment. Moreover, many existing watermarks are easily removed through common image processing (e.g., JPEG compression) or model compression techniques like pruning and quantization. This research introduces a method to embed unique IDs instantly without retraining while ensuring high survival rates against removal attempts.
Methodology
The core of the proposed architecture is the Personalized Normalization (PN) layer, which replaces standard normalization layers (typically at the penultimate stage of the generator).
Personalized Normalization and ParamGen Nets
Unlike static normalization, the scaling ($\gamma$) and bias ($\beta$) parameters in a PN layer are dynamically generated based on a unique bit-string fingerprint ($w$). Two shallow, independent networks, termed ParamGen Nets, take $w$ as input and output the corresponding $\gamma$ and $\beta$ values.
Joint Training and Loss Functions
The Generator, ParamGen Nets, and a dedicated Watermark Decoder are trained jointly. The training objective is to ensure that images generated with a specific fingerprint $w$ contain that ID in a way that the decoder can reliably extract. The optimization uses four primary loss functions:
- Standard GAN Loss: Ensures the visual realism of generated images.
- Watermark Loss ($L_{wm}$): Minimizes the bit-error rate between the input fingerprint and the decoded output.
- Reconstruction Loss ($L_z$): Encourages the decoder to recover the input noise $z$, which helps the model decouple image content from the embedded watermark.
- Image Consistency Loss ($L_{const}$): Ensures that different fingerprints applied to the same input noise result in visually identical images, preventing the watermark from degrading artistic quality.
Experimental Evaluation
The method was evaluated using the CelebA dataset across three GAN architectures: BEGAN, SNGAN, and PGGAN, all generating images at $64 \times 64$ resolution.
Key Results
- Efficiency: Generating a new fingerprinted model instance takes approximately 100ms, a significant improvement over the 8–24 hours required by previous fine-tuning methods.
- Accuracy: The system achieved near 100% bit-reconstruction accuracy across all tested GAN types.
- Robustness: The fingerprints proved highly resilient. Even after 20% model pruning or 8-bit quantization, detection accuracy remained between 80-90%. At the image level, fingerprints survived heavy JPEG compression (QF 50), Gaussian blur, and noise, where competing methods often failed.
Discussion and Conclusion
By treating normalization layers as a communication channel, this method achieves "retraining-free" scalability. The use of $L_{const}$ loss allows the model to maintain multiple identities without interfering with its primary generative task.
However, limitations remain. The system is susceptible to collusion attacks, where multiple users average their model weights to blur the fingerprint. Future work will explore the use of error-correction codes to mitigate this and investigate scaling the approach to high-resolution images ($1024 \times 1024$) and more complex architectures like Diffusion Models.
Summary updated