Attributing Image Generative Models using Latent Fingerprints

Guangyu Nie, Changhoon Kim, Yezhou Yang, Yi Ren

Abstract

As generative AI models become increasingly accessible, the potential for misuse—ranging from deepfakes to large-scale disinformation—presents a significant challenge for digital accountability. Traditional image attribution methods often rely on "shallow" watermarking, which embeds high-frequency noise into the pixel space. However, these methods frequently fail to balance image quality with robustness against common edits. This paper introduces Latent Fingerprints, a novel approach that embeds identifying information directly into the latent space of generative models. By leveraging semantic perturbations along principal components, this method achieves high attribution accuracy and superior robustness to image degradation without requiring expensive model retraining.

1. Introduction

The rapid advancement of generative models, such as StyleGAN2 and Latent Diffusion Models (LDM), has democratized high-fidelity image synthesis. While these tools foster innovation, they also necessitate mechanisms to trace synthetic content back to its source. Model attribution serves as a critical tool for accountability, yet existing techniques often struggle with a fundamental tradeoff: the more robust the fingerprint, the more it tends to degrade the visual quality of the output. This research proposes moving the fingerprinting process from the "shallow" pixel level to the "deep" latent level, utilizing the inherent semantic structure of the model to ensure both persistence and imperceptibility.

2. Problem Statement

Current attribution methods typically inject invisible noise into the final generated image. This approach faces two primary hurdles:

  1. Robustness vs. Quality Tradeoff: Subtle noise is easily removed by common post-processing techniques like JPEG compression or Gaussian blurring. Conversely, noise strong enough to survive such attacks often introduces visible artifacts, raising the Fréchet Inception Distance (FID) and reducing image realism.
  2. Scalability: Many state-of-the-art fingerprinting techniques require fine-tuning the entire generator for every unique user or model instance. For massive models like Stable Diffusion, this computational overhead is prohibitive for large-scale deployment.

3. Methodology: Latent Fingerprints

The proposed method operates within the disentangled latent space of the generator. Rather than modifying pixels, the researchers apply perturbations to the latent vectors that define the image's core features.

3.1 Semantic Perturbation

The researchers utilize Principal Component Analysis (PCA) on the latent space to identify specific semantic dimensions. Fingerprints are created by shifting the latent representation along these dimensions. This ensures that the identifying information is baked into the "meaning" of the image (e.g., subtle adjustments to facial structure or texture) rather than being a superficial layer of noise.

3.2 The Tradeoff Analysis

A key contribution of the paper is the analysis of principal components (PCs). The authors demonstrate that:

  • Major PCs: Control large-scale features (e.g., head pose, face shape). These are highly robust to attacks but can significantly alter the image's appearance.
  • Minor PCs: Control fine-grained details. These preserve image quality but are more susceptible to being "washed out" by image processing. By optimizing the selection of these dimensions, the researchers can maximize attribution accuracy while maintaining high structural similarity (SSIM) to the original output.

3.3 Optimization-based Attribution

To identify the source of a suspicious image, the authors employ an optimization-based inversion process. Given an image, the algorithm searches for the latent fingerprint that most likely produced the observed semantic features. This allows for high-confidence attribution even when the image has been subjected to multiple simultaneous attacks.

3.4 Efficiency and Deployment

Unlike methods requiring retraining, Latent Fingerprints are "plug-and-play." Identifying a unique "editing direction" for a new user takes approximately three seconds, making it feasible for real-time application in large-scale generative services.

4. Experimental Evaluation

4.1 Datasets

The method was evaluated on high-resolution benchmarks including:

  • FFHQ: 70,000 high-quality human face images.
  • AFHQ (Cat & Dog): High-resolution animal face datasets.
  • MNIST: Used for initial qualitative analysis.

4.2 Performance and Robustness

In clean environments, the method achieved near-perfect attribution accuracy, frequently exceeding 99%. More importantly, it demonstrated exceptional resilience against "Combo" attacks—simultaneous blurring, noise injection, and JPEG compression. On StyleGAN2-FFHQ, the latent fingerprinting method maintained 80-99% accuracy, significantly outperforming shallow noise-based baselines.

4.3 Image Quality

The approach maintains superior image realism. In comparative tests, Latent Fingerprints achieved an FID score of 12.35, whereas baseline methods tuned for similar robustness levels saw their FID balloon to 100.15 (where lower scores indicate better quality). This suggests that semantic changes are far less disruptive to perceived realism than pixel-level noise.

5. Discussion and Limitations

While Latent Fingerprints represent a significant step forward, several challenges remain. The method currently lacks a formal mathematical certification against adversarial removal, though it is empirically robust. Furthermore, the total number of unique fingerprints is constrained by the number of available latent dimensions within a specific model architecture. Finally, while fingerprint generation is nearly instantaneous, the attribution process (inversion) requires approximately two minutes of GPU optimization, which may be a bottleneck for high-volume forensic applications.

6. Conclusion

By shifting the focus from pixel-level noise to latent-level semantic perturbations, this research provides a robust and scalable solution for AI image attribution. Latent Fingerprints offer a path toward accountable AI development that does not sacrifice image quality or require the massive computational costs of model retraining. Future work will focus on identifying even more subtle latent dimensions to expand fingerprint capacity and further reduce the time required for attribution.

Summary updated

BibTeX
@inproceedings{nie2023attributing,
  author = {Guangyu Nie and Changhoon Kim and Yezhou Yang and Yi Ren},
  title = {{Attributing Image Generative Models using Latent Fingerprints}},
  booktitle = {International Conference on Machine Learning},
  year = {2023},
  url = {https://openreview.net/forum?id=3aZ35JTVsj},
}
Figure