TL;DR
Current AI-generated image detectors perform poorly when tested outside narrow experimental setups, particularly failing on artistic media, localized image edits, and unseen generative models. To address this, the authors introduce UniAIDet, a diverse benchmark of 80,000 images spanning 20 generative models across both photographic and artistic domains. Comprehensive evaluations reveal that while joint detection and localization do not inherently conflict, today’s state-of-the-art models suffer from severe generalization bottlenecks and fundamental localization flaws.
What Problem Does This Paper Address?
Generative visual models have rapidly advanced from synthesizing full synthetic scenes to instruction-guided localized edits (e.g., adding/removing objects) and artistic creation. However, existing benchmarks for detecting AI-generated content face critical shortcomings:
- Limited Generative Coverage: Most benchmarks test full-image generation (text-to-image) and ignore partial manipulations (instruction-based editing, inpainting, deepfakes).
- Binary Classification Bias: Benchmarks frequently omit pixel-level localization ground truths for partially generated images.
- Content Homogeneity: Datasets almost exclusively focus on photographic imagery, completely ignoring human-created artwork (paintings, anime/illustrations) versus AI-generated art.
Without realistic benchmarks reflecting these dimensions, the generalization limits and the operational relationship between detecting synthetic media and localizing edited pixels remain poorly understood.
Methods
Rather than introducing a new detection architecture, the paper formalizes the unified evaluation space and designs a systematic data generation pipeline:
- Categorization Framework: Distinguishes holistic synthesis (Text-to-Image, Image-to-Image) from partial synthesis (Image Inpainting, Instruction-Guided Editing, DeepFakes).
- Automated Ground Truth Mask Construction:
- Inpainting: Employs Segment-Anything-Model (SAM) to obtain masks, inpaint via generative models, and composite the inpainted region back into the original image.
- Instruction-Guided Editing: Generates multimodal editing prompts via Gemma3-4B, executes edits, computes absolute pixel difference maps $|I - I'| > \tau$, and filters out small connected noise components ($|m_c| \le \gamma$) to isolate genuine semantic manipulations.
- DeepFakes: Obtains source facial regions from FFHQ swapped via deepfake pipelines, logging mask outputs directly.
- Empirical Investigation: Benchmarks 11 detection-only models (e.g., CLIP, DeeCLIP, NPR, FreqNet, AIDE, SAFE, DIRE) and 3 joint detection & localization models (HiFi-Net, FakeShield, SIDA) against three core research questions covering task consistency, model generalization, and cross-domain robustness.
Datasets
The authors construct UniAIDet, comprising 80,000 real and generated images across two primary splits: Photo and Art:
- Real Images: MSCOCO and NYTimes800k (photos); WikiArt and Danbooru (artistic/anime, strictly sourced prior to 2023 to ensure human authorship). Filtered with a ViT-based NSFW classifier.
- Synthetic Images (20 Generative Models):
- Text-to-Image: SD-1.5, SD-XL, Pixart-$\sigma$, FLUX.1-Dev, SD-3, SD-3.5-Medium, SD-3.5-Large-Turbo, Qwen-Image, SeedDream.
- Image-to-Image: IP-Adapter.
- Inpainting: SD2 Inpaint, SD3 Inpaint, SDXL Inpaint, DreamShaper-v8, Paint-By-Example.
- Image Editing: Qwen-Image-Edit, OmniGen-2, SeedDream-Edit.
- DeepFake: REFace, CSCS.
Key Insights and Ideas
- Detection and Localization Do Not Conflict: Prior observations suggested higher detection accuracy might correlate with worse localization. The authors show this was an artifact of mixing holistic images into detection metrics. On partial synthesis tasks, a model's fake detection accuracy (f.Acc) and its mean Intersection over Union (mIoU) mirror each other closely—better localized grounding directly tracks with better fake detection.
- Partial Edits are the Achilles' Heel of Detection: Top detectors like SAFE and DRCT achieve high accuracy on standard holistic generators but collapse on partial edits and inpainting, dropping dramatically in fake image recall.
- Failure of Reconstruction-Based Detectors: Methods relying on diffusion reconstruction errors (e.g., DIRE, FIRE) fail almost completely across the diverse benchmark, displaying extreme classification biases (e.g., classifying nearly everything as real or fake).
- The "Object Prior" Trap in Localization: Existing multimodal LLM-based localization models (e.g., SIDA) disproportionately highlight salient, recognizable foreground objects (like people, surfboards, or vases) even when the actual edit was applied exclusively to the background. This bias stems from pretraining on classic segmentation datasets.
Key Results
- Detection-Only Performance:
- SAFE achieved the highest overall detection accuracy: 79.89% on Photo (88.44 AP) and 79.15% on Art (85.89 AP).
- However, even top performers displayed heavy reliance on detecting holistic models, suffering on partial edits.
- DIRE and FIRE hovered near random-guess performance (50.64% and 52.26% accuracy on Photo).
- Detection & Localization Models:
- FakeShield scored 68.53% accuracy and 17.55 mIoU on Photo, dropping to 60.41% accuracy and 14.24 mIoU on Art.
- SIDA achieved 60.15% accuracy and 9.99 mIoU on Photo, and 65.04% accuracy and 8.43 mIoU on Art.
- HiFi-Net localized poorly, securing only 3.79 mIoU (Photo) and 6.55 mIoU (Art).
- Cross-Domain Degradation: Vision-language models (e.g., CLIP-based variants and FakeShield) showed noticeable drops on the Art split (e.g., FakeShield dropped from 55.43% real accuracy on photos to 32.27% on art), whereas frequency-based methods (SAFE, AIDE) exhibited relatively stable domain transfer.
Limitations and Future Work
- Pretrained Checkpoint Discrepancies: Models were evaluated using author-released checkpoints, meaning variance in training sets and initial protocols was outside experimental control.
- Closed-Source Generation Volume: Strict safety filters on closed-source APIs (SeedDream/SeedDream-Edit) resulted in a smaller volume of samples relative to open-source counterparts.
- Localization Capabilities: Low mIoU across all tested architectures indicates that current pixel-level localization is far from practical deployment; future work must move beyond foreground-object segmentation priors to detect subtle, boundary-blended manipulations.
Summary updated