Enabling Your Forensic Detector Know ​How Well​ It Performs on Distorted Samples

Bin Li, Haoyu Li, Haodong Li, Jiaming Zhong, Changsheng Chen, Jiangqun Ni, bo.caoICLR 2026

TL;DR

Current AI-generated image detectors often "fail silently" when faced with real-world distortions like JPEG compression or social media resizing, providing overconfident but incorrect answers. This paper introduces the Distortion-Aware Confidence Model (DACOM), which estimates a Distortion-Aware Confidence (DAC) score to quantify how much a detector’s decision should be trusted on a degraded sample. By using this confidence signal, forensic systems can intelligently filter out unreliable predictions or route images to the detector best suited for a particular type of distortion.

What Problem Does This Paper Address?

While researchers have become quite good at building detectors that distinguish between real and AI-generated images, these models are typically trained and tested on pristine datasets. In the real world, images are rarely clean; they are compressed for the web, resized for mobile apps, and degraded during transmission across social media platforms.

DACOM vs Standard Detectors

These distortions erode the subtle mathematical "fingerprints" (forensic traces) that detectors rely on. When a detector encounters an image outside its comfort zone, it rarely outputs uncertainty. Instead, it returns a binary "Real" or "Fake" label with high confidence, even if the underlying traces are completely destroyed. The authors argue that for forensics to be reliable, we must move beyond the binary question of "Is this image real?" and start asking, "How trustworthy is the detector’s decision on this specific image?"

Methods

The authors propose DACOM as a "plug-and-play" assistant that can be attached to existing forensic detectors. The core innovation lies in its training and feature fusion strategy:

  1. Oracle-Guided Training: During training, the authors use Full-Reference Image Quality Assessment (FR-IQA). Because they have the original clean image, they can precisely measure the degree of distortion. They bucket images by quality and record the detector's actual accuracy in each bucket, creating a "detectability label"—a ground-truth score of how likely the detector is to be right.
  2. Reference-Free Inference: At test time, the original clean image is unavailable. DACOM bridges this gap by fusing three streams of information to estimate the confidence score:
  3. Forensic Features: Intermediate data from the frozen detector itself.
  4. Quality Descriptors: No-reference image quality metrics (using QualiCLIP).
  5. Distortion Cues: Information about the type of distortion (using ARNIQA).
  6. The Regressor: A Multi-Layer Perceptron (MLP) maps these combined features to the detectability labels learned during the oracle phase.

Datasets

To ensure the model learns robust confidence estimation rather than memorizing specific artifacts, the study uses a comprehensive dataset collection:

  • Base Dataset: Images from the ForenSynths (ProGAN) test set.
  • Seen Distortions: Eight families used for training, including JPEG, Blur, Noise, Resize, and various color/brightness shifts.
  • Unseen Distortions: Ten types never seen during training, including social media platform transmission (WeChat, QQ, Weibo, Facebook), Super-Resolution, and Sharpening.
  • Cross-Dataset Evaluation: Universal, GenImage, and DiTFake datasets were used to test generalization across various GAN and Diffusion models (e.g., Midjourney, Stable Diffusion).

Key Insights and Ideas

  • The Monotonicity Discovery: The authors found that detector accuracy drops almost perfectly in line with full-reference quality scores. This confirms that distortion severity is a direct proxy for forensic reliability.
Accuracy vs Quality Metrics
  • Human Perception vs. Forensic Reality: Standard "no-reference" quality metrics (which measure how good an image looks to a human) are poor predictors of forensic accuracy. An image might look great to us but have its forensic traces totally wiped out.
  • Distortion Type is a Critical Variable: Not all distortions are created equal. A JPEG-compressed image and a blurred image might have the same quality score, but the detector might handle one much better than the other. DACOM explicitly accounts for the type of distortion to solve this.
  • Oracle Distillation: The cleverest part of the paper is using high-quality "oracle" information (FR-IQA), available only during training, to teach a model how to guess that same information when it is unavailable at test time.

Key Results

  • High Reliability: DACOM’s estimated confidence scores showed a 97.73% linear correlation with the detector's actual accuracy.
  • Smarter Routing: In a multi-detector setup, using DACOM to route an image to the most confident detector improved mean accuracy by 5.82% compared to standard calibration methods.
  • Selective Filtering: By discarding the most uncertain predictions (selective abstention), the system achieved a 7.66% relative accuracy improvement.
  • Generalization: The model remained effective even on complex, unseen distortions like those found on social media platforms, where forensic traces are notoriously difficult to recover.

Limitations and Future Work

While DACOM is a significant step forward, it still struggles with distribution shift. If the source of the fake image changes significantly (e.g., moving from a GAN-based fake to a newer Diffusion-based fake that the detector wasn't trained on), the confidence estimates become less reliable. Future work will likely focus on making these confidence models more "foundation-model-like"—training them on broader data distributions so they can handle entirely new generative architectures without needing retraining.

Summary updated

BibTeX
@inproceedings{li2026enabling,
  author = {Bin Li and Haoyu Li and Haodong Li and Jiaming Zhong and Changsheng Chen and Jiangqun Ni and bo.cao},
  title = {{Enabling Your Forensic Detector Know ​How Well​ It Performs on Distorted Samples}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=Jz5SA2KoFt},
}
Figure