Reverse engineering of generative models: Inferring model hyperparameters from generated images

Published in IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023

Recommended citation: Vishal Asnani, Xi Yin, Tal Hassner, Xiaoming Liu, Reverse engineering of generative models: Inferring model hyperparameters from generated images. IEEE Transactions on Pattern Analysis and Machine Intelligence. Accepted, Aug. 2023.


Top: Three increasingly difficult tasks: (a) deepfake detection classifies an image as genuine or fake; (b) image attribution predicts which of a closed set of GMs generated a fake image; and (c) model parsing, proposed here, infers hyperparameters of the GM used to generate an image, for those models unseen during training. Bottom: We present a framework for model parsing, which can also be applied to simpler tasks of deepfake detection and image attribution.

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 100K 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.

Paper from IEEE

arXiv preprint

Project page and with generative model collection

Meta AI research blog post

Public media coverage:

BibTex:

@ARTICLE{asnani2023reverse,
  author={Vishal Asnani and Xi Yin and Tal Hassner and Xiaoming Liu},
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  title={Reverse engineering of generative models: Inferring model hyperparameters from generated images},
  year={2023},
  URL = {\url{https://talhassner.github.io/home/publication/2023_TPAMI_2}},
  note = {Accepted}
}