Open Set Synthetic Image Source Attribution

Shengbang Fang, Tai D. Nguyen, Matthew C. Stamm · DOI

Abstract

As generative AI models proliferate, identifying the source of synthetic imagery has become a critical task for digital forensics and misinformation mitigation. Traditional source attribution methods typically operate in a "closed-set" environment, assuming all test images originate from a predefined list of known models. This paper presents a metric learning-based approach designed for the "open-set" reality, where the system must not only attribute images to known generators but also correctly identify and reject images from previously unseen sources. By leveraging forensic features learned from physical camera identification and employing a normalized distance-based rejection criterion, the proposed method significantly outperforms existing baselines in both attribution accuracy and unknown source detection.

Introduction

The rapid advancement of generative adversarial networks (GANs) and diffusion models has made it increasingly difficult to distinguish synthetic images from real photographs. While source attribution—the process of tracing an image back to its specific generative architecture—is a powerful tool for accountability, most current solutions suffer from a fundamental flaw: they are built on closed-set assumptions. In a real-world scenario, new generative models are released frequently. A closed-set classifier, when presented with an image from a brand-new model, is forced to misattribute it to one of its known categories.

To address this, we explore an open-set attribution framework. The goal is to create a system capable of saying, "I recognize this as Model A," or "This image comes from an unknown source."

Methodology

The core of the proposed system is a multi-stage pipeline centered on metric learning, which focuses on the spatial organization of image features rather than simple classification.

1. Transferable Forensic Initialization

A key innovation of this work is the use of "transferable initialization." Standard neural networks are often pre-trained on datasets like ImageNet, which teaches them to recognize high-level semantic features (e.g., shapes, objects). However, forensic attribution requires the detection of low-level, pixel-level artifacts—the "fingerprints" left by up-sampling and convolutional layers. To prime the network for these traces, the authors initialize the embedding network by pre-training it on a camera model identification task (identifying the physical hardware used to capture real photos). This forces the model to ignore image content and focus on the underlying noise and structural patterns common to image acquisition processes.

2. Metric Learning with ProxyNCA++

The network is fine-tuned using the ProxyNCA++ loss function. Unlike standard cross-entropy loss, metric learning aims to map images into an embedding space where images from the same generator are clustered tightly together, while images from different generators are pushed far apart. For each known generator, the system calculates a "centroid"—a central reference point in this high-dimensional space.

3. The Rejection Criterion

In the open-set phase, the system evaluates a query image by finding its distance to the nearest known centroid. However, because different generative models produce clusters with varying degrees of variance, a simple distance threshold is insufficient. The authors implement a normalized distance metric that accounts for the standard deviation of each specific cluster. If the normalized distance to the nearest centroid exceeds a predefined threshold ($\tau$), the image is classified as "unknown."

Experimental Setup

The researchers evaluated the system using a curated dataset of 70,000 synthetic images (10,000 per generator). The experimental design split these into:

  • Seen Generators (Training): ProGAN, Projected-GAN, Taming Transformer, StyleGAN2, and StyleGAN3.
  • Unseen Generators (Testing): StyleGAN and Stable Diffusion.
  • Pre-training Data: The Camera Model Identification Database, containing images from 70 different physical camera models.

To ensure robustness, all images were subjected to common real-world augmentations, including random JPEG compression and cropping.

Results and Discussion

The proposed method demonstrated a significant improvement over both traditional closed-set classifiers and existing open-set algorithms.

Attribution Performance

The best-performing architecture, MISLNet (a specialized forensic network) with camera-based pre-training, achieved an Area Under the Curve (AUC) of 0.868 on the open-set response curve. This indicates a high degree of reliability in distinguishing between known and unknown sources.

Handling the Unknown

The most striking result was the Correct Reject Rate (CRR). Traditional closed-set models (such as RepMix or DCT-CNN) have a CRR of 0%, as they are incapable of rejecting an image. The proposed metric learning approach achieved a CRR of 0.645, successfully identifying nearly two-thirds of the images from unseen generators as "unknown."

The Value of Forensic Pre-training

The data confirmed that pre-training on real-world camera traces improved performance across all tested architectures (including Xception and ResNet50). This validates the hypothesis that the low-level artifacts left by physical sensors are fundamentally similar to the artifacts left by generative algorithms, making camera identification an ideal "proxy" task for synthetic image forensics.

Conclusion

This research moves synthetic image forensics toward a more realistic, open-set application. By shifting the focus from semantic classification to metric-based forensic embeddings, the system provides a robust mechanism for both attributing known models and flagging unknown ones. While a Correct Reject Rate of 0.645 leaves room for improvement, the study establishes a strong foundation for future work, which may include testing against more diverse diffusion architectures and investigating adversarial synthetic images designed to mask their forensic signatures.

Summary updated

BibTeX
@inproceedings{fang2023open,
  author = {Shengbang Fang and Tai D. Nguyen and Matthew C. Stamm},
  title = {{Open Set Synthetic Image Source Attribution}},
  booktitle = {BMVC},
  year = {2023},
  url = {https://openreview.net/forum?id=B7rtuFXIaF},
}
Figure