Model Synthesis for Zero-Shot Model Attribution

Tianyun Yang, Danding Wang, Juan Cao, Chang Xu · DOI

TL;DR

This paper introduces a novel approach to model attribution that can identify the source of generated images even from models not seen during training (zero-shot attribution). They achieve this by synthesizing a vast number of diverse "fake" generative models whose unique spectral fingerprints mimic those of real models, allowing a single fingerprint extractor to generalize effectively.

What Problem Does This Paper Address?

The proliferation of powerful generative AI models (like those creating art, text, and more) brings significant challenges, particularly concerning copyright infringement and content accountability. Model attribution, the task of tracing a generated image back to its originating model, is crucial for addressing these issues. However, existing methods are limited: they typically require training on a fixed set of known models and fail when encountering new, unseen models. This is a major drawback in a rapidly evolving landscape where new generative models emerge constantly. The authors aim to overcome this limitation by developing a "zero-shot" attribution system that can identify images from entirely new models without needing any prior exposure or training data from them.

Methods

The core of the proposed solution is a model synthesis technique designed to create a large and diverse collection of synthetic generative models. Instead of training on real-world models, the authors train their fingerprint extractor solely on these synthetic models.

Here's how it works:

  • Understanding Fingerprints: The authors analyze how different architectural components of generative models (upsampling layers, convolutions, activation functions, normalization) influence the "fingerprint" of generated images. They observe that these fingerprints are often subtle and more apparent in the frequency domain (spectrum) than in the spatial domain. Crucially, they find that the later blocks of a generative model have a more significant impact on its unique spectral signature.
  • Synthetic Model Architecture: Based on this analysis, they design a shallow auto-encoder architecture for their synthetic models. This architecture uses a small number of downsampling and upsampling blocks (K=1 or 2) to efficiently mimic the fingerprint characteristics of real models. They then introduce diversity by varying components like the number of convolution layers, upsampling methods (nearest neighbor, bilinear, transposed convolution), activation functions (ReLU, Sigmoid, Tanh), normalization types, and the order of operations.
  • Training the Fingerprint Extractor: A fingerprint extractor (based on ResNet50) is trained on images generated by this large set of synthetic models. The training combines a classification loss (to identify the specific synthetic model) and a metric learning loss (to ensure fingerprints from the same model are close and from different models are far apart).
  • Zero-Shot Attribution: During inference, the trained fingerprint extractor takes an image, extracts its spectral fingerprint, and compares it against a "gallery" of fingerprints from known real-world models. This comparison allows for attribution without the extractor ever having seen real images from those specific models during its training.

Datasets

  • Training: The fingerprint extractor is trained exclusively on images generated by a large set of synthetic generative models (5760 in total).
  • Evaluation: The authors evaluate their method on a broad range of real-world generative models, including:
  • Classical GANs: ProGAN, MMDGAN, SNGAN, StarGAN, AttGAN.
  • VAEs & Flows: VanillaVAE, BetaVAE, DisentangledBetaVAE, InfoVAE, ResFlow, Glow.
  • Diffusion Models: ADM, DDPM, LDM, PDNM.
  • Transformer-based GANs: GANsformer, StyleSwin.
  • Text-to-Image Models: Stable Diffusion (v1.5, v2.1, XL), Glide, DALL-E mini, DALL-E 2, DALL-E 3, Midjourney.
  • LoRA Variants: Models fine-tuned using LoRA from base models like SD1.5, PonyXL, and SDXL.

Key Insights and Ideas

  • Spectral Fingerprints are Key: The paper strongly reinforces the idea that generative models leave unique, albeit subtle, spectral "fingerprints" on their outputs, which are more prominent in the frequency domain.
  • Later Blocks Matter Most: The authors' analysis reveals that the final generative blocks of a model are disproportionately responsible for shaping these unique spectral characteristics. This insight is crucial for designing efficient synthetic models.
  • Synthetic Models as Proxies: The core innovation is the realization that a large, diverse set of synthetically generated models can effectively mimic the fingerprint space of real-world models, enabling zero-shot generalization. This bypasses the need for extensive real-world datasets for every new model.
  • Efficiency of Synthesis: Synthesizing a model takes significantly less time (seconds to minutes) compared to training a state-of-the-art generative model from scratch (days). This makes generating a large synthetic dataset feasible.
  • Robustness to Variations: The extracted fingerprints remain surprisingly stable even when the generation parameters of diffusion models are varied, suggesting the robustness of the learned features.

Key Results

  • Impressive Zero-Shot Performance: The fingerprint extractor, trained only on synthetic models, achieves significant improvements in zero-shot attribution on unseen real-world models.
  • Model Identification: Over 40% improvement in accuracy on unseen models compared to existing approaches.
  • Model Verification: Over 15% improvement in accuracy on unseen models.
  • Broad Generalization: The method demonstrates strong generalization across a wide variety of model types, including GANs, VAEs, Flows, Diffusion, and Transformer-based models, even state-of-the-art text-to-image models.
  • LoRA Variant Attribution: The method can successfully trace LoRA variants back to their base models, demonstrating its utility for model lineage analysis.
  • Efficiency: Training synthetic models is highly efficient, with an average of 53-113 seconds per model for K=1 or K=2 blocks.

Limitations and Future Work

  • Distinguishing Similar Variants: The paper acknowledges a limitation in distinguishing very similar LoRA variants from the same base model. This fine-grained attribution remains a challenge for future work.
  • JPEG Compression Sensitivity: While robust to crop resizing, the fingerprint extractor shows some sensitivity to JPEG compression. The authors suggest incorporating this as data augmentation in future work.
  • Model Lineage Analysis: While the paper shows attribution to base models for LoRA variants, more complex model lineage analysis (e.g., multi-stage fine-tuning) is left as a future direction.
  • Exploring Other Synthesis Objectives: The current synthesis focuses on minimizing reconstruction loss. Future work could explore other training objectives for synthetic models.

Summary updated

BibTeX
@article{yang2023model,
  author = {Tianyun Yang and Danding Wang and Juan Cao and Chang Xu},
  title = {{Model Synthesis for Zero-Shot Model Attribution}},
  journal = {IEEE Trans. Multimedia},
  year = {2023},
  doi = {10.48550/arxiv.2307.15977},
}
Figure