ArtiFact: A Large-Scale Dataset with Artificial and Factual Images for Generalizable and Robust Synthetic Image Detection

Md Awsafur Rahman, Bishmoy Paul, Najibul Haque Sarker, Zaber Ibn Abdul Hakim, Shaikh Anowarul Fattah · DOI

Introduction

The rapid advancement of generative AI, particularly Generative Adversarial Networks (GANs) and Diffusion models, has made it increasingly difficult to distinguish between factual and artificial imagery. While these technologies unlock new creative potential, they also introduce significant risks to digital security, privacy, and the integrity of information. Detecting synthetic content has become a critical challenge for the computer vision community.

The Challenges of Synthetic Image Detection

Current synthetic image detection methods struggle with two primary issues:

  1. Generalization: Most detectors are trained on specific generative models. When faced with images from a previously unseen architecture (e.g., a detector trained on StyleGAN encountering a Stable Diffusion image), performance often drops precipitously.
  2. Robustness: Real-world images are rarely pristine. They are frequently resized, cropped, and compressed (JPEG) for social media distribution. These processes often "wash away" the subtle high-frequency artifacts—mathematical "fingerprints"—that detectors rely on to identify AI-generated content.

Existing datasets have historically been too small or too narrow in scope to address these hurdles effectively. To bridge this gap, researchers have introduced ArtiFact, a massive and diverse dataset designed to foster more robust and generalizable detection systems.

The ArtiFact Dataset

ArtiFact is one of the most comprehensive datasets for synthetic image detection to date, designed to simulate the complexity of the modern internet. Its key characteristics include:

  • Scale: A total of 2,496,738 images, consisting of approximately 965,000 real images and 1.53 million fake images.
  • Diversity of Generators: The dataset includes images from 25 different generative methods, including 13 GANs (such as StyleGAN and BigGAN), 7 Diffusion models (such as Stable Diffusion and Glide), and 5 other miscellaneous generators.
  • Broad Content Categories: The images span various domains, including humans, animals, landscapes, vehicles, and artistic works.
  • Real-World Simulation: To ensure robustness, the dataset includes "impaired" versions of images. These undergo random cropping, resizing to 200x200 pixels, and varying levels of JPEG compression to mimic the degradation typical of social media environments.

Proposed Methodology

Alongside the dataset, the authors propose a novel detection framework utilizing two key innovations:

Multi-class Classification with an "Unseen" Category

Instead of a standard binary "Real vs. Fake" classifier, the authors utilize a seven-class system: one class for real images, five for specific known AI generators, and one dedicated "Unseen Fake" (UF) class. By training the model to categorize specific types of fakes while acknowledging the existence of unknown types, the system learns more robust features that generalize better to entirely new AI models encountered during deployment.

Filter Stride Reduction (FSR)

Standard deep learning architectures, such as ConvNeXt, typically use aggressive downsampling in their initial layers (the "stem block") to reduce computational load. However, this downsampling destroys the high-frequency artifacts left by AI generators. The authors introduced Filter Stride Reduction (FSR), reducing the filter stride by 2x in the early stages of the network. This preserves more fine-grained detail, which proved essential for detecting fakes in compressed or low-resolution images.

Key Results and Insights

The proposed method was evaluated during the IEEE VIP Cup challenge at ICIP 2022, where it demonstrated dominant performance:

  • Competition Success: The authors' team ("Megatron") outperformed the runners-up by 8.34% on Test 1 and by a significant 15.08% on Test 3, which specifically focused on undisclosed generators.
  • Ablation Studies: The transition from a standard binary classifier (78.21% accuracy) to the full Multi-class + FSR + UF approach resulted in a boost to 87.62% accuracy.
  • State-of-the-Art Comparison: The method outperformed several established baselines by approximately 6-8% in balanced accuracy, proving the value of both the diverse dataset and the architectural modifications.

Conclusion and Future Work

The ArtiFact dataset and the accompanying FSR methodology represent a significant step toward reliable synthetic image detection. The research highlights that the lack of diversity in training data was a primary bottleneck for generalization. By training on a wide array of GANs and Diffusion models, systems can learn "synthetic-ness" as a general concept rather than memorizing the quirks of a single generator.

However, challenges remain. Reducing filter stride increases computational and memory overhead. Furthermore, as generative models evolve to hide their artifacts through anti-forensic training, detection methods must continue to find even more subtle cues. The authors suggest that the ArtiFact dataset will require continuous updates to keep pace with the rapidly evolving landscape of generative AI.

Summary updated

BibTeX
@inproceedings{rahman2023artifact,
  author = {Md Awsafur Rahman and Bishmoy Paul and Najibul Haque Sarker and Zaber Ibn Abdul Hakim and Shaikh Anowarul Fattah},
  title = {{ArtiFact: A Large-Scale Dataset with Artificial and Factual Images for Generalizable and Robust Synthetic Image Detection}},
  booktitle = {ICIP},
  year = {2023},
  doi = {10.1109/icip49359.2023.10222083},
}
Figure