Single-Model Attribution of Generative Models Through Final-Layer Inversion

Mike Laszkiewicz, Jonas Ricker, Johannes Lederer, Asja Fischer

TL;DR

FLIPAD is a novel framework for "single-model attribution"—determining if a specific AI model generated a given sample. Crucially, it operates in an open-world setting, requiring no knowledge of other models or modifications to the generator itself. By framing the problem as an anomaly detection task on inverted final-layer activations, FLIPAD turns a complex search into an efficient, theoretically grounded Lasso optimization problem that works across images, medical data, and tabular datasets.

The Challenge: Open-World Model Attribution

As generative models like Stable Diffusion and DALL-E become high-value intellectual property, "model attribution" has become a critical security task. If a creator suspects their model was stolen or its outputs are being used illegitimately, they need a reliable way to prove a sample came from their specific generator.

Existing solutions generally fall into two flawed categories:

  1. Fingerprinting/Classification: These usually operate in a "closed-world" setting, meaning the detector must be trained on a pre-defined list of all possible generators. In the real world, new models emerge daily, making this approach brittle.
  2. Watermarking: This involves "branding" the model during training. While effective, it requires changing the model, which can degrade output quality and is impossible for models already deployed.
Attribution Settings

The authors tackle the open-world, single-model attribution problem: Given one model of interest ($G$) and a query sample ($x$), can we reliably determine if $G$ created $x$, even if $x$ was created by an unseen model?

The FLIPAD Framework

The authors introduce FLIPAD (Final-Layer Inversion Plus Anomaly Detection). The core premise is that every generator has a unique internal "signature" in how it maps latent space to the final output.

FLIPAD Architecture

The process works in three main steps:

  1. Final-Layer Inversion: Instead of trying to invert the entire deep neural network (which is mathematically non-convex and notoriously difficult), FLIPAD only inverts the very last layer. They prove that for most common architectures, this reduces to a convex Lasso optimization problem. This is a major advantage because Lasso is computationally efficient and guaranteed to find a global optimum.
  2. Feature Extraction: By inverting the final layer, FLIPAD finds the activations ($z_{L-1}$) that would have been required to produce the query image.
  3. Anomaly Detection: A technique called DeepSAD is used to compare these reconstructed activations against the "normal" activations seen when the model generates its own data. If the query sample came from a different model, the reconstructed activations will appear as anomalies to the detector.

Datasets and Evaluation

The authors evaluated FLIPAD across an impressively diverse range of data types:

  • Standard Images: CelebA (faces) and LSUN (bedrooms) using various GAN architectures (DCGAN, LSGAN, WGAN-GP, EBGAN).
  • Large-Scale Models: Stable Diffusion (comparing versions v1-1, v1-4, and v2-1).
  • Medical Imaging: The BCDR dataset (breast mammography).
  • Tabular Data: The Redwine and Whitewine datasets, marking a rare successful application of attribution to non-image generative models.

Key Insights

  • The Power of Convexity: The most significant theoretical contribution is showing that while full-network inversion is computationally prohibitive, final-layer inversion is a well-behaved Lasso problem. This moves attribution from heuristic guesswork to theoretically sound optimization.
  • Internal vs. External Traces: Methods relying on raw pixels (like frequency artifacts) are easily fooled by simple post-processing (e.g., blurring). By examining internal activations, FLIPAD captures the generator's underlying logic, making evasion much harder.
  • Sensitivity to Seeds: FLIPAD is precise enough to distinguish between two models with the exact same architecture and training data that were simply initialized with different random seeds.
  • Domain Agnosticism: Because the method operates on the mathematical structure of the network's layers rather than visual features, it works just as well on tabular data as it does on images.

Key Results

  • Superior Accuracy: On CelebA and LSUN, FLIPAD achieved near-perfect attribution (often >98% accuracy), significantly outperforming standard fingerprinting and full-inversion baselines.
  • Efficiency: FLIPAD is orders of magnitude faster than traditional inversion. For 100 Stable Diffusion samples, traditional inversion took nearly 5,000 minutes, while FLIPAD's essential computations took roughly 14 minutes.
  • Stable Diffusion Attribution: It successfully distinguished between Stable Diffusion v2-1 and v1-4 with over 90% accuracy, despite these models sharing similar components.
  • Robustness: While performance drops under heavy JPEG compression or noise, FLIPAD remained more stable than baseline anomaly detection on raw pixels in most perturbed scenarios.

Limitations and Future Work

  • Skip-Connections: The current mathematical formulation doesn't directly handle architectures with skip-connections to the final output (like ResNets or StyleGAN). Adapting it adds complexity and requires more memory.
  • Invertibility Requirement: The method assumes the final activation function (e.g., Sigmoid or Tanh) is invertible. While common, this might not apply to all future architectures.
  • Adversarial Attacks: An adversary specifically trying to mimic the final layer activations of another model might bypass the system, suggesting an ongoing cat-and-mouse game for future research.

Summary updated

BibTeX
@inproceedings{laszkiewicz2024single,
  author = {Mike Laszkiewicz and Jonas Ricker and Johannes Lederer and Asja Fischer},
  title = {{Single-Model Attribution of Generative Models Through Final-Layer Inversion}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=Hs9GcILuZN},
}
Figure