Detecting AI-Generated Images via Contextual Anomaly Estimation in Masked AutoEncoders

Minsuk Jang, Hyunseo Jeong, Minseok Son, Changick Kim
11/9/2025
cs.CVcs.AIcs.CY

No confident code implementation found for this paper.

Abstract

Context-based detection methods such as DetectGPT achieve strong generalization in identifying AI-generated text by evaluating content compatibility with a model's learned distribution. In contrast, existing image detectors rely on discriminative features from pretrained backbones such as CLIP, which implicitly capture generator-specific artifacts. However, as modern generative models rapidly advance in visual fidelity, the artifacts these detectors depend on are becoming increasingly subtle or absent, undermining their reliability. Masked AutoEncoders (MAE) are inherently trained to reconstruct masked patches from visible context, naturally modeling patch-level contextual plausibility akin to conditional probability estimation, while also serving as a powerful semantic feature extractor through its encoder. We propose CINEMAE, a novel architecture that exploits both capabilities of MAE for AI-generated image detection: we derive per-patch anomaly signals from the reconstruction mechanism and extract global semantic features from the encoder, fusing both context-based and feature-based cues for robust detection. CINEMAE achieves highly competitive mean accuracies of 96.63\% on GenImage and 93.96\% on AIGCDetectBenchmark, maintaining over 93\% accuracy even under JPEG compression at QF=50.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{jang2025detecting,
  title  = {Detecting AI-Generated Images via Contextual Anomaly Estimation in Masked AutoEncoders},
  author = {Minsuk Jang and Hyunseo Jeong and Minseok Son and Changick Kim},
  year   = {2025},
  eprint = {2511.06325},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2511.06325v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2511.06325.svg)](https://codeofpaper.com/paper/2511.06325)

Discussion