Skip to main content
QUICK REVIEW

[Paper Review] Reverse Engineering of Generative Models: Inferring Model Hyperparameters from Generated Images

Vishal Asnani, Xi Yin|arXiv (Cornell University)|Jun 15, 2021
Digital Media Forensic DetectionComputer Science85 references11 citations
TL;DR

This paper introduces model parsing, a novel reverse engineering approach that infers generative model hyperparameters—such as network architecture and loss functions—from generated images alone. By proposing a fingerprint estimation network (FEN) with four constraints and a parsing network (PN), the method achieves state-of-the-art performance in deepfake detection and image attribution, generalizing to unseen models with high accuracy on a large-scale dataset of 116 GMs.

ABSTRACT

State-of-the-art (SOTA) Generative Models (GMs) can synthesize photo-realistic images that are hard for humans to distinguish from genuine photos. Identifying and understanding manipulated media are crucial to mitigate the social concerns on the potential misuse of GMs. We propose to perform reverse engineering of GMs to infer model hyperparameters from the images generated by these models. We define a novel problem, ``model parsing", as estimating GM network architectures and training loss functions by examining their generated images -- a task seemingly impossible for human beings. To tackle this problem, we propose a framework with two components: a Fingerprint Estimation Network (FEN), which estimates a GM fingerprint from a generated image by training with four constraints to encourage the fingerprint to have desired properties, and a Parsing Network (PN), which predicts network architecture and loss functions from the estimated fingerprints. To evaluate our approach, we collect a fake image dataset with $100$K images generated by $116$ different GMs. Extensive experiments show encouraging results in parsing the hyperparameters of the unseen models. Finally, our fingerprint estimation can be leveraged for deepfake detection and image attribution, as we show by reporting SOTA results on both the deepfake detection (Celeb-DF) and image attribution benchmarks.

Motivation & Objective

  • To address the challenge of reverse engineering generative models when only generated images are available, especially for unseen models.
  • To define and solve the new problem of 'model parsing'—inferring model hyperparameters like architecture and loss functions from generated images.
  • To develop a framework that generalizes beyond binary deepfake detection and closed-set image attribution to open-set recognition of unknown generative models.
  • To collect and release a large-scale dataset of 100K images from 116 diverse generative models for benchmarking.
  • To enable forensic analysis of synthetic media by extracting model fingerprints that support attribution and detection.

Proposed method

  • Proposes a two-stage framework: Fingerprint Estimation Network (FEN) to extract model-specific embeddings from generated images, followed by a Parsing Network (PN) to predict hyperparameters.
  • Designs FEN with four training constraints—identity, contrastive, reconstruction, and adversarial—to ensure the fingerprint captures discriminative, invariant, and generalizable features of the underlying model.
  • Uses hierarchical learning in PN to parse hyperparameters in coarse-to-fine stages, leveraging structural similarities across generative models.
  • Trains the FEN in an unsupervised manner on a large-scale dataset of 100K images from 116 different GMs, including 81 GANs and 13 VAEs.
  • Adapts the learned fingerprint for downstream tasks: fine-tuning for image attribution and combining with RGB/phase features for deepfake detection.
  • Employs a unified framework that supports deepfake detection, image attribution, and model parsing using the same fingerprint representation.

Experimental results

Research questions

  • RQ1Can we infer the hyperparameters of a generative model—including architecture and loss function—solely from its generated images, without access to weights or training data?
  • RQ2Can a learned fingerprint representation generalize to detect and attribute images from generative models not seen during training?
  • RQ3How effective is the proposed fingerprint estimation network in capturing model-specific characteristics across diverse architectures and loss functions?
  • RQ4Does the fingerprint-based approach outperform existing methods in deepfake detection and image attribution on unseen models?
  • RQ5Can the fingerprint be leveraged to detect coordinated misinformation campaigns using the same underlying generative model?

Key findings

  • The proposed model parsing framework achieves state-of-the-art performance in deepfake detection on the Celeb-DF benchmark, outperforming prior methods despite not using pixel-level supervision.
  • On the Celeb-DF dataset, the method achieves the highest AUC among all compared methods, even when others use more advanced backbones and additional supervision.
  • The fingerprint estimation network generalizes effectively to unseen generative models, with only ~30% of misclassified samples occurring when both test images come from unseen models.
  • Image attribution performance on CelebA and LSUN datasets surpasses prior work, demonstrating the fingerprint's robustness and generalization across diverse data distributions.
  • Fine-tuning the parsing network for classification leads to worse performance than using the pre-trained fingerprint, indicating that the fingerprint is more informative for detection than the full network.
  • The framework successfully generalizes to open-set recognition, enabling detection of images from previously unseen generative models with high reliability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.