Percept-Lens: A Deep Dive into AI-Generated Image Detection

Across two complementary studies, we introduce Percept-Lens, an out-of-distribution evaluation framework, and a Mah-NCM-based detector built on frozen visual features. The framework exposes failures in released AI-generated image detectors, while our Mah-NCM-based detector recovers a strong real-versus-generated signal from a general-purpose frozen visual encoder.

Sakana AI

Image provenance

Sources for these images

Misinformation cases

  1. Fictional Trump arrestSource and rights information
  2. Pope in a puffer coatSource and rights information
  3. Hollywood sign wildfire hoaxSource and rights information

Interactive figures and image collages

    The core insight

    A simple decision rule recovers the signal in frozen visual features

    Why detection matters

    When an image loses its context

    On 20 March 2023, Eliot Higgins posted a fictional sequence of Donald Trump's arrest made with Midjourney.1 The original thread identified the images as generated, but as copies travelled beyond it, that context did not always travel with them. AFP traced reshared versions and found comments treating some of them as genuine.2

    This was not an isolated incident, as only four days later another Midjourney image of Pope Francis in a white puffer coat went viral and fooled many viewers.3 In May 2023, an AI-generated image of an explosion near the Pentagon spread as breaking news before officials confirmed that no such incident had occurred.4 More recently in January 2025, synthetic images showing the Hollywood sign burning circulated during the Los Angeles wildfires even though the landmark remained intact.5 The cases differ in intent and harm, but share a failure mode that fabricated pixels moved faster than their provenance.

    Misinformation cases

    Viral synthetic images with their context restored

    AI-generated fictional image of Donald Trump on the ground amid police officers AI-generated · Midjourney

    20 March 2023

    Fictional Trump arrest

    The source thread disclosed the generation; later copies did not always preserve that context.

    AI-generated image of Pope Francis wearing a large white puffer coat AI-generated · Midjourney

    24 March 2023

    Pope in a puffer coat

    The photorealistic image spread widely, with many viewers initially taking it as a photograph.

    AI-generated hoax image showing the Hollywood sign surrounded by fire AI-generated · Creator unknown

    9 January 2025

    Hollywood sign wildfire hoax

    The image circulated during real wildfires, but the landmark had not burned.

    Select any image to view it at full size.

    As images move between platforms, provenance information can be lost. Context still determines where an image came from, what it means, and how it is being used. When that context is missing, a detector can contribute one clue by estimating whether the image appears real or generated.

    The hard test begins outside familiar data

    Many existing detectors perform strongly when their training and evaluation images share familiar generators, prompts, subject matter, and processing.678 Real-world deployment is far less controlled, as a new generator may introduce unfamiliar styles, images may come from a different domain, and a platform may resize or compress them before they reach the detector. The central question is whether the real-versus-generated distinction still holds when these changes arrive together. Here, transfer means remaining effective as generators, prompts, content, and processing change. The benchmark measures how well detectors do so in unfamiliar settings.

    This work makes two complementary contributions. First, the Percept-Lens evaluation framework measures how released detectors perform under broad distribution shift. Second, the representation study proposes a new detector that combines a frozen visual encoder with a Mah-NCM decision rule.

    Measuring transfer — Benchmark Study

    A wider benchmark makes the gap visible

    The Percept-Lens evaluation framework brings together more than 36 million images from 26 datasets in a common test of distribution shift. It covers changes in generators, prompts and styles, and image domains, allowing familiar-data performance to be compared with performance under much broader conditions.

    To measure how existing detectors perform under this broad shift, we evaluate four released AI-generated image detectors. These include UnivFD9 with a CNNSpot10 training prior and three DRCT7 variants with GenImage8 or Stable Diffusion11 priors. The transfer benchmark below compares each detector's familiar-data result with its broader out-of-distribution result.

    Transfer benchmark

    Accuracy degrades outside familiar distributions

    Hover, focus, or tap an out-of-distribution point to see its change from the paired in-distribution accuracy.

    Swipe horizontally to inspect all four detectors.

    Static summary. All four released detectors show lower accuracy outside their familiar distributions, with drops ranging from 19.83 to 35.79 percentage points.

    Paired transfer results. Each line connects one detector's reported in-distribution accuracy with its accuracy on the benchmark's out-of-distribution suite.
    Exact values and accessible table
    Transfer benchmark dataIn-distribution and out-of-distribution accuracy for four released AI-generated image detectors.
    Detector · Training priorID accuracyOOD accuracyAccuracy change
    UnivFD · CNNSpot84.68%48.89%−35.79 pp
    DRCT · GenImage82.36%62.53%−19.83 pp
    DRCT · SDv176.85%57.00%−19.85 pp
    DRCT · SDv285.92%59.85%−26.07 pp

    The benchmark study also points to a practical way to improve transfer. In controlled comparisons, detectors trained with diverse, open-ended web captions transferred better than those trained with object-centric captions, while simply adding generators yielded smaller gains. Prompt and image variety mattered alongside generator count. These comparisons show how training data shapes transfer, but not which detector components preserve a usable real-versus-generated distinction as distributions shift.

    Diagnosing transfer — Representation Study

    Follow the signal inside the detector

    The representation study broadens the Percept-Lens evaluation framework to 39 public datasets and 7.1 million images. An AI-generated image detector has three components. The labeled reference set used to fit it is the support prior. The frozen encoder represents each image while its weights remain fixed, and the classification head turns those features into a decision. We hypothesize that a frozen visual encoder already captures the distinction between real and generated images, so we use a prior-conditioned Gaussian head to recover the decision boundary directly from its features. Rather than updating the encoder or training the head iteratively, our method fits the head from the class means and covariance of the labeled support features. This turns classical Gaussian rules into a closed-form detector that we test under broad out-of-distribution shift.

    From images to a shared feature geometry

    Our proposed detector first uses a frozen encoder φ to map an image x to a feature vector z = φ(x). It then fits a closed-form Gaussian head from labeled support images. The method illustrated here uses Mahalanobis-Nearest Centroid Matching (Mah-NCM), which estimates the real and generated class means μc and one pooled covariance Σ. The illustration projects this high-dimensional process into two dimensions for visualization. The study uses the full-dimensional feature vectors. In the interactive illustration below, we show how the method classifies an image. Choose and label one image as the query. The other five form the labeled support set used to fit the shared geometry.

    Interactive illustration

    How the Mah-NCM detector classifies an image

    Choose any one image

    What do you think the selected image is? Real? or AI-generated?

    Choose any image to begin.

    Swipe horizontally to follow the full method.

    Mah-NCM from six images through shared feature geometry to one prediction One selected image becomes the unlabeled query and the other five become the labeled support set. Each image enters a frozen encoder whose weights remain fixed and exits as an illustrative high-dimensional feature vector z. The five support vectors estimate a real mean, a generated mean, and one empirical pooled covariance. The query is then mapped into the same feature space and classified by squared Mahalanobis score. The Same Six Images Labeled Support · Fit Ground Truth:Real Ground Truth:Generated Unlabeled Query · Classify Q Only the selected image is classified 1 Frozen Encoder Weights Fixed φ Feature vectorz ∈ ℝᵈ 1 Fit geometry from five supports Feature Dimension 1 Feature Dimension 2 + Real Mean μ₀ + Generated Mean μ₁ Same Ellipse Shape = One Pooled Covariance Σₚ Q Q → Real 2 Place the query, compare Mahalanobis scores 2 Prediction Q → Real
    1. During fitting, each of the five labeled support images enters the frozen encoder, whose weights stay fixed, and exits as a feature vector z. The five vectors estimate two class means and one pooled covariance.
    2. During classification, the selected query passes through the same frozen encoder. The method compares its feature vector with the fitted class distributions, and the smaller squared Mahalanobis score determines the predicted class.
    Choose one query to begin.
    Fit, then classify. Five labeled support images estimate two means and one shared pooled covariance, which define the ellipses and linear boundary. We then map the selected query into the same feature space, and the lower squared Mahalanobis score determines its class.

    Decision rule

    Choose the nearest class in the shared feature geometry

    Here, z is the query feature, μc is the estimated class mean, and Σ is the stable pseudoinverse of the regularized pooled covariance Σ. With uniform class priors, the query is assigned to the class with the lower squared Mahalanobis score. Unlike Euclidean nearest-centroid matching, this score accounts for feature scale and correlation, so displacement along a broad, noisy direction matters less than the same displacement across a narrow one. Sharing one covariance across classes preserves this geometry while keeping the decision boundary linear.

    A ladder of simple decision rules

    The Gaussian ladder compares closed-form rules on the same frozen features and labeled support data. Euclidean and cosine nearest-centroid rules use class means. Gaussian naive Bayes (GNB) adds per-dimension variances. Mah-NCM uses one full covariance shared by both classes, while quadratic discriminant analysis (QDA) fits a separate full covariance to each class. The study stabilizes these covariance estimates in high-dimensional feature spaces with diagonal loading and shrinkage.

    Compare every ladder assumption in the table below.

    Decision-rule comparisonGaussian discriminants used to study a frozen encoder feature space with fixed training prior.
    RuleWhat it testsCovariance assumptionBoundary
    Euc-/Cos-NCMWhether class centroids alone separate the featuresShared isotropicLinear
    GNBWhether per-dimension scales suffice without correlationsClass-specific diagonalNon-linear
    Mah-NCMWhether one correlation-aware geometry fits both classesShared fullLinear
    QDAWhether the classes need different shapes and orientationsClass-specific fullQuadratic

    Mah-NCM is strongest in 9 of 11 matched comparisons, while QDA leads in the two DRCT cases. The result distinguishes settings well described by one shared geometry from those that benefit from class-specific covariance.

    Keep the features, change the decision

    To compare our Mah-NCM-based detector with released methods, we replace each released classification head with Mah-NCM while keeping the corresponding public training data and frozen features fixed. We compute mean class accuracy within each evaluation dataset and then average all 39 datasets equally. In this like-for-like comparison, our Mah-NCM decision rule achieved higher mean class accuracy in 10 of 11 cases. The six detector families are UnivFD9, AIDE12, Effort13, DRCT7, CoDE6, and Community Forensics14.

    CF-384 was the only exception. Its released decision rule reached 87.54% mean class accuracy, compared with 84.55% for Mah-NCM under the same encoder and support prior. For this fixed representation and evaluation, the original decision rule performed better. Mah-NCM was stronger in the other 10 comparisons, while CF-384 shows that it is not universally optimal.

    Matched comparison

    Released head versus matched Mah-NCM

    Hover or focus a Mah-NCM point to see its difference from the released head.

    Headline result. Mah-NCM is higher in 10 of 11 matched comparisons. CF-384 is the one exception.

    Swipe horizontally to inspect every matched pair.

    Static summary. Mah-NCM has the higher mean class accuracy in 10 of 11 matched rows. CF-384 is the exception, with 87.54% for the released head versus 84.55% for Mah-NCM.

    Matched head replacement. Each connector links the released head and Mah-NCM fitted on the same support prior and frozen encoder feature space. Horizontal position is mean class accuracy, averaged equally across the 39 Percept-Lens evaluation datasets.
    View exact values
    Matched comparison dataReleased detector head and matched Mah-NCM mean class accuracy.
    Released detectorSupport priorReleased headMah-NCM
    UnivFDCNNSpot54.63%57.62%
    AIDECNNSpot56.41%62.76%
    AIDE · GenImage-SDv1GenImage-SDv148.99%57.35%
    DRCTFull GenImage65.77%73.01%
    AIDE · full GenImageFull GenImage54.98%64.64%
    DRCTSDv163.36%65.21%
    DRCTSDv262.37%67.91%
    Effort · GenImage-SDv1GenImage-SDv172.58%76.82%
    CoDE-kNN · ELSAELSA64.01%66.15%
    CF-224CommunityForensics81.98%82.61%
    CF-384CommunityForensics87.54%84.55%

    Representation and support data shape transfer

    Having isolated the classification head, we next examine the two ingredients it depends on. The frozen encoder defines the feature space, while the labeled support prior is used to estimate the class distributions within it. The encoders in this sweep are general-purpose visual encoders that were not trained or fine-tuned specifically for real-versus-generated detection. Community Forensics14 and Mah-NCM stay fixed while only the encoder changes. PE-Core-bigG-14-44815 achieves the highest mean class accuracy among the tested encoders, 94.46%. We therefore use it as the fixed encoder for the complementary support-prior sweep. There, PE-Core and Mah-NCM stay fixed while only the labeled support data changes. The encoder candidates differ in architecture, training objective, data, and resolution. The sweep therefore compares complete encoder models rather than isolating any one design choice.

    The model links below identify the exact checkpoints. The encoders come from the CLIP16, MAE17, BEiT18, SigLIP19, BLIP20, BLIP-221, DINOv222, and DINOv323 families.

    Frozen encoder sweepCommunity Forensics + Mah-NCM remain fixed, with no detector fine-tuning.
    Frozen EncoderMean CA
    ResNet-5072.00%
    ResNet-10170.27%
    ResNet-50x472.34%
    ResNet-50x1674.98%
    ResNet-50x6474.57%
    ViT-B/1674.18%
    ViT-B/3270.61%
    ViT-L/1476.96%
    MAE-Huge69.37%
    BEiT-Large61.78%
    CLIP-XLM-RoBERTa-Large77.67%
    SigLIP-Large64.14%
    BLIP-Large70.17%
    BLIP277.73%
    DINOv2-giant73.30%
    DINOv3-ViT-7b88.91%
    PE-Core-bigG-14-44894.46%
    Support prior sweepPE-Core-bigG-14-448 + Mah-NCM remain fixed.
    Support PriorMean CA
    CNNSpot77.93%
    GenImage92.43%
    DRCT83.25%
    ELSA94.45%
    Community Forensics94.46%

    How much labeled support is enough?

    Our strongest tested detector combines PE-Core, Mah-NCM, and the Community Forensics support prior. The next question is how many labeled images are needed to estimate its class geometry. We use progressively smaller subsets of the Community Forensics prior while keeping the encoder and Mah-NCM fixed. With 219 labeled images (0.005% of the full labeled set), PE-Core + Mah-NCM reaches 90.89% mean class accuracy, compared with 94.46% with the full set.

    Support sweep

    Approaching the full-support result with fewer labels

    219 images · 90.89% CA · reported min–max 89.55–91.62%

    Headline result. 219 labeled images reach 90.89% mean class accuracy, 3.35 points above CF-384's 87.54% result. The full labeled set reaches 94.46%.

    Swipe horizontally to inspect the full accuracy curve.

    Static summary. PE-Core + Mah-NCM rises from 85.56% mean class accuracy with 44 labeled images to 90.89% with 219 and reaches 94.46% with the full labeled set. A grey dashed line marks CF-384's 87.54% result.

    Strong performance with limited labeled data. Red circles show Community Forensics subsets, and the red dashed line marks 94.46% with all 4,386,820 labeled images. The grey dashed line marks CF-384's 87.54% result, the highest released-detector result among the 11 matched comparisons. CF-384 was fine-tuned end to end for generated-versus-real classification, whereas PE-Core is a general-purpose encoder kept frozen. Since the systems use different encoders and decision rules, the line provides context rather than an encoder-only comparison. Whiskers are reported minima and maxima, not confidence intervals. The x-axis is logarithmic.
    View exact values
    Support sweep dataMah-NCM mean class accuracy as the number of Community Forensics labeled images is reduced.
    SupportImagesMean CAReported min–max
    0.001%4485.56%83.81–87.40%
    0.005%21990.89%89.55–91.62%
    0.01%43991.55%90.86–92.22%
    0.1%4,38793.18%92.64–93.60%
    1%43,86893.52%93.35–93.80%
    100%4,386,82094.46%Not reported

    Transfer in practice

    Where released detectors lost the signal

    The benchmark recorded the examples below as errors from six released detectors. Our Mah-NCM-based detector classifies the same images correctly, showing where its frozen representation retains a useful real-versus-generated distinction as generators, prompts, styles, and image domains change.

    Benchmark examples

    Three sources of shift, seen through detector errors

    Selected shift

    Generator

    The examples span six generators. Each released detector misses an AI-generated image that our Mah-NCM-based detector classifies correctly.

    AI-generated zebra made with ADM, misclassified as real by Effort and correctly classified as AI-generated by our Mah-NCM-based detectorADMOur Mah-NCM Detector → AI-generated AI-generated zebra made with Midjourney, misclassified as real by DRCT trained on GenImage and correctly classified as AI-generated by our Mah-NCM-based detectorMidjourneyOur Mah-NCM Detector → AI-generated AI-generated close-up of a cheetah cub made with DALL·E 2, misclassified as real by CoDE and correctly classified as AI-generated by our Mah-NCM-based detectorDALL·E 2Our Mah-NCM Detector → AI-generated AI-generated zebra made with Stable Diffusion 1.4, misclassified as real by UnivFD and correctly classified as AI-generated by our Mah-NCM-based detectorStable Diffusion 1.4Our Mah-NCM Detector → AI-generated AI-generated zebra made with Stable Diffusion 1.5, misclassified as real by CF-384 and correctly classified as AI-generated by our Mah-NCM-based detectorStable Diffusion 1.5Our Mah-NCM Detector → AI-generated AI-generated zebra made with Wukong, misclassified as real by AIDE trained on GenImage and correctly classified as AI-generated by our Mah-NCM-based detectorWukongOur Mah-NCM Detector → AI-generated
    These examples show where released detectors lose the signal while our Mah-NCM-based detector retains it. The comparison spans changes in generator, prompt and style, and image domain. Select any image to view it at full size.

    Application to current image generators

    We also applied our Mah-NCM-based detector to newly generated photorealistic images from ChatGPT Images 2.0 and Nano Banana 2. The examples span varied subjects, styles, and image domains. The wider benchmark tests whether detector improvements continue to transfer as generators evolve. If detectors that perform well on it fail on future generators, the benchmark will need to expand.

    Current-generator check

    Recent images from ChatGPT Images 2.0 and Nano Banana 2

    AI-generated image of a botanist inspecting a leaf in a greenhouse, created with ChatGPT Images 2.0 ChatGPT Images 2.0 · People & documentary
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    AI-generated macro photograph of a mechanical wristwatch, created with ChatGPT Images 2.0 ChatGPT Images 2.0 · Product photography
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    AI-generated image of bioluminescent waves along a dark shoreline, created with ChatGPT Images 2.0 ChatGPT Images 2.0 · Natural phenomena
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    AI-generated image of macaques beside a snowy hot spring, created with Nano Banana 2 Nano Banana 2 · Wildlife photography
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    AI-generated image of an empty underground metro platform, created with Nano Banana 2 Nano Banana 2 · Architecture & interiors
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    AI-generated image of mushroom risotto in a ceramic bowl, created with Nano Banana 2 Nano Banana 2 · Food & still life
    Ground truthAI-generated CF-384Real Our Mah-NCM DetectorAI-generated
    Our Mah-NCM-based detector classified all six displayed images as AI-generated, while CF-384 classified them as real. Three were created with ChatGPT Images 2.0 and three with Nano Banana 2. Select any image to inspect the full-size version.

    Image generation

    Prompts and usage details

    The prompts recorded for the six images are shown beside their outputs.

    1. Loading prompts…

    Usage details

    Use is governed by the applicable OpenAI, Antigravity, and Google terms, subject to applicable law and third-party rights.

    Takeaway

    What to improve when transfer fails

    Detection can contribute one signal to media verification alongside context and provenance. The detector estimates whether an image is real or generated, while context and provenance explain where it came from and how it is being used.

    Together, the studies move from evaluating transfer to improving it. Percept-Lens reveals where released detectors fail, while the representation study introduces our Mah-NCM-based detector and shows whether the next improvement should target the data, visual encoder, or decision rule. In the tested settings, our strongest detector reached 94.46% mean class accuracy, showing that frozen visual features already separate real and generated images.

    Resources and citations

    Benchmark Study

    @inproceedings{kotyan2025perceptlens,
      title     = {Percept-Lens: A Large-Scale Benchmark for Generalization in AI-Generated Image Detection with Diverse Images and Generative Models},
      author    = {Kotyan, Shashank and Imajuku, Yuki and Shing, Makoto and Clanuwat, Tarin},
      booktitle = {CVPR Workshop on Responsible Generative AI},
      year      = {2025}
    }

    Representation Study

    @inproceedings{kotyan2026prior,
      title     = {Prior-Conditioned Gaussian Discriminants for Generalizable {AI}-generated Image Detection},
      author    = {Kotyan, Shashank and Shing, Makoto and Imajuku, Yuki and Charakorn, Rujikorn and Clanuwat, Tarin},
      booktitle = {European Conference on Computer Vision},
      year      = {2026}
    }

    Further Reading

    1. Higgins, Eliot. Making pictures of Trump getting arrested while waiting for Trump's arrest. Twitter thread, 20 March 2023 (archived).
    2. AFP Fact Check: AI-generated images of Trump arrest spread without context, 2023. Image source and copyright notice at Wikimedia Commons.
    3. Perrigo, Billy. How to Spot an AI-Generated Image Like the “Balenciaga Pope”. TIME, 28 March 2023. Image source and public-domain notice at Wikimedia Commons.
    4. McCarthy, Bill. Fake Pentagon Explosion Image Spreads Online. AFP Fact Check, 23 May 2023.
    5. Green, Charlotte. Burning Hollywood Sign Photo Isn’t Genuine. Full Fact, 10 January 2025. Image source and public-domain notice at Wikimedia Commons.
    6. Baraldi et al. Contrasting Deepfakes Diffusion via Contrastive Learning and Global-Local Similarities. ECCV, 2024.
    7. Chen et al. DRCT: Diffusion Reconstruction Contrastive Training Towards Universal Detection of Diffusion Generated Images. ICML, 2024.
    8. Zhu et al. GenImage: A Million-Scale Benchmark for Detecting AI-Generated Image. NeurIPS Datasets and Benchmarks, 2023.
    9. Ojha et al. Towards Universal Fake Image Detectors That Generalize Across Generative Models. CVPR, 2023.
    10. Wang et al. CNN-generated images are surprisingly easy to spot… for now. CVPR, 2020.
    11. Rombach et al. High-Resolution Image Synthesis with Latent Diffusion Models. CVPR, 2022.
    12. Yan et al. A Sanity Check for AI-Generated Image Detection. ICLR, 2025.
    13. Yan et al. Orthogonal Subspace Decomposition for Generalizable AI-Generated Image Detection. ICML, 2025.
    14. Park and Owens. Community Forensics: Using Thousands of Generators to Train Fake Image Detectors. CVPR, 2025.
    15. Bolya et al. Perception Encoder: The Best Visual Embeddings Are Not at the Output of the Network. 2025.
    16. Radford et al. Learning Transferable Visual Models from Natural Language Supervision. ICML, 2021.
    17. He et al. Masked Autoencoders Are Scalable Vision Learners. CVPR, 2022.
    18. Bao et al. BEiT: BERT Pre-Training of Image Transformers. ICLR, 2022.
    19. Zhai et al. Sigmoid Loss for Language Image Pre-Training. ICCV, 2023.
    20. Li et al. BLIP: Bootstrapping Language-Image Pre-training for Unified Vision-Language Understanding and Generation. ICML, 2022.
    21. Li et al. BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Models. ICML, 2023.
    22. Oquab et al. DINOv2: Learning Robust Visual Features without Supervision. TMLR, 2024.
    23. Siméoni et al. DINOv3. arXiv:2508.10104, 2025.

    This work also supported Sakana AI's participation in the Japan–U.S. Global Innovation Challenge 2025, and feeds into our wider efforts on identifying disinformation.