UniAIDet: A Unified and Universal Benchmark for AI-Generated Image Content Detection and Localization

Huixuan Zhang, Xiaojun Wan

TL;DR

UniAIDet is a comprehensive new benchmark designed to evaluate how well algorithms can both detect AI-generated images and pinpoint exactly which pixels were altered. By spanning 80,000 images across 20 different generative models—including text-to-image, inpainting, and instruction-guided editing—it reveals that current detectors struggle significantly with artistic styles and partially modified images.

What Problem Does This Paper Address?

As generative AI models become hyper-realistic, distinguishing human-made imagery from synthetic content has become a critical security challenge. However, current evaluation benchmarks suffer from three major blind spots:

  1. Binary Bias: They focus almost exclusively on binary classification (Is the whole image real or fake?), ignoring the need for pixel-level localization to find where an image was altered.
  2. Holistic Over-reliance: They primarily test text-to-image models, overlooking partial synthesis methods like image inpainting, deepfakes, and instruction-guided image editing.
  3. Content Monoculture: They focus heavily on standard photographs, neglecting artistic content like paintings and anime.

To bridge these gaps, the authors introduce UniAIDet, a unified benchmark built to rigorously test both the detection and localization of AI-generated content across diverse domains.

Methods

The authors formalize the problem into two parallel tasks: Detection (a binary classification problem determining if any part of an image is synthetic) and Localization (a pixel-level segmentation task identifying the exact AI-generated regions).

To build the benchmark, they collected real photos and artwork created prior to 2023 to guarantee human origin. They then generated corresponding synthetic images using 20 distinct AI models. For partial synthesis categories (inpainting and editing), they developed an automated mask-generation pipeline:

  • Inpainting: Used the Segment-Anything-Model (SAM) to generate random masks, which were then filled by inpainting models.
  • Image Editing: Fed images and text prompts into editing models, compared the edited output to the original image, and applied threshold filtering ($\tau=40, \gamma=20$) to isolate regions with significant, non-noisy modifications as the ground-truth mask.

Datasets

The paper introduces the UniAIDet dataset, which comprises 80,000 images split equally between real and fake content.

Examples of photographic and artistic test images across different generation categories in the UniAIDet benchmark.

The dataset stands out due to its diversity:

  • Real Content: Sourced from MSCOCO and NYTimes800k for photography; WikiArt and Danbooru for artistic illustrations and anime.
  • Generative Models: Covers 20 models across 5 sub-categories, including state-of-the-art architectures like FLUX.1-Dev, Stable Diffusion 3.5, Qwen-Image, OmniGen-2, and closed-source models like SeedDream.
Overview of the data distribution and the 20 generative models included in the UniAIDet benchmark.

Key Insights and Ideas

  • Detection and Localization are Symbiotic: While aggregate metrics initially suggested that detection and localization capabilities might conflict, a granular look at partial synthesis models reveals they are highly correlated. As shown below, a model's fake detection accuracy (f.Acc) and localization accuracy (mIoU) follow nearly identical performance trends.
Figure 3: Trends of corresponding f.Acc and mIoU.
  • The Partial Synthesis Blindspot: Standard detection-only models perform excellently on completely generated images (holistic synthesis) but fail dramatically when faced with partially edited or inpainted images.
  • The Art Style Challenge: Models relying on CLIP backbones or image reconstruction techniques (like DIRE and FIRE) experience severe performance drops when evaluating artistic images compared to photos. Conversely, frequency-based detection methods generalize much better to artwork.

Key Results

The authors evaluated 11 detection-only methods and 3 joint detection-and-localization methods on UniAIDet:

  • Detection Performance: The frequency-based method SAFE achieved the highest overall accuracy, scoring 79.89% on photos and 79.15% on art.
  • Localization Performance: Joint models performed poorly across the board, revealing a fundamental capability deficit. FakeShield achieved the highest localization score, but only managed a meager mean Intersection over Union (mIoU) of 17.55% on photos and 14.24% on art.

Limitations and Future Work

A major qualitative finding was that current localization models suffer from a "foreground object bias." Because these models are typically fine-tuned on standard object segmentation datasets, they tend to flag prominent foreground objects (like a person or a distinct item) even if the AI modification actually occurred in the background or altered a non-distinct region.

The authors emphasize that developing algorithms capable of true end-to-end editing detection—independent of object boundaries—remains an open and urgent direction for future computer vision research.

Summary updated

BibTeX
@misc{zhang2025uniaidet,
  author = {Huixuan Zhang and Xiaojun Wan},
  title = {{UniAIDet: A Unified and Universal Benchmark for AI-Generated Image Content Detection and Localization}},
  year = {2025},
  eprint = {2510.23023},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.23023},
}
Figure