RealStats: A Rigorous Real-Only Statistical Framework for Fake Image Detection
Haim Zisman, Uri Shaham
TL;DR
RealStats addresses the challenge of detecting AI-generated images with interpretability and robustness to distribution shifts by proposing a real-only statistical framework. It frames fake image detection as a statistical hypothesis testing problem against the real-image distribution, using ECDF-based two-sided $p$-values for a diverse set of training-free statistics and aggregating them with Stouffer’s test or a minimum-$p$ ensemble. The method builds a null-distribution model by extracting statistics across detectors under perturbations, then selects an independent clique of statistics via pairwise tests and a KS uniformity check to ensure valid aggregation. Empirically, RealStats achieves competitive AUC and AP relative to training-free baselines, while providing interpretable outputs, scalability, and resilience to corruptions and modest domain shifts.
Abstract
As generative models continue to evolve, detecting AI-generated images remains a critical challenge. While effective detection methods exist, they often lack formal interpretability and may rely on implicit assumptions about fake content, potentially limiting robustness to distributional shifts. In this work, we introduce a rigorous, statistically grounded framework for fake image detection that focuses on producing a probability score interpretable with respect to the real-image population. Our method leverages the strengths of multiple existing detectors by combining training-free statistics. We compute p-values over a range of test statistics and aggregate them using classical statistical ensembling to assess alignment with the unified real-image distribution. This framework is generic, flexible, and training-free, making it well-suited for robust fake image detection across diverse and evolving settings.
