Abstract
The rapid advancement of diffusion models has made distinguishing synthetic images from real photographs increasingly difficult. Current detection methods often lack transparency and struggle with high-quality "hard" samples. We present ESIDE (Explainable Synthetic Image Detection through Diffusion Timestep Ensembling), a framework that detects AI-generated images by analyzing their degradation patterns during progressive noising. By ensembling classifiers across multiple diffusion timesteps and utilizing Multimodal Large Language Models (MLLMs) with metric-grounded refinement, ESIDE achieves state-of-the-art detection accuracy while providing human-interpretable explanations for its predictions.
Introduction
As generative models like Stable Diffusion and Midjourney evolve, the visual artifacts that once characterized synthetic images are disappearing. Traditional detection methods, which rely on frequency analysis or full reconstruction cycles, face significant limitations. Frequency-based methods often miss subtle structural errors, while reconstruction-based methods are computationally expensive. Furthermore, most existing detectors provide only a binary classification, offering no insight into the specific flaws that led to a "synthetic" label. ESIDE addresses these gaps by leveraging the diffusion process itself as a diagnostic tool, providing both high accuracy and explainability.
Methodology
The ESIDE framework consists of a four-stage pipeline designed for efficient and transparent detection.
- DDIM Inversion: The input image $x_0$ undergoes progressive noising to produce a sequence of latent representations across various timesteps. This "unmaking" process reveals structural inconsistencies that are often invisible in the final high-resolution output.
- Timestep Ensembled Detection: Rather than analyzing only the final image, ESIDE employs an ensemble of classifiers where each learner specializes in a specific noise level. This approach captures synthetic artifacts that may only become apparent at intermediate timesteps (e.g., $x_{T/2}$).
- Flaw Identification: If an image is classified as synthetic, a multi-label classifier categorizes the errors into 14 distinct types, such as "Bad Anatomy," "Physical Violations," or "Incomprehensible Text."
- MLLM Explanation & Refinement: The image and identified flaw labels are processed by an MLLM (e.g., GPT-4o) to generate a natural language explanation. To ensure accuracy, a Metric-Grounded Refinement process uses CLIP-based cross-attention to verify that the generated text corresponds to actual visual regions in the image.
Datasets
The framework was evaluated using the GenImage benchmark and two newly introduced datasets:
- GenHard: A collection of ~220,000 "hard" samples specifically designed to be images that successfully fooled baseline linear classifiers.
- GenExplain: A dataset of 54,210 image-flaw-explanation triplets across 14 categories, facilitating the training and evaluation of explainable detection models.
Results
ESIDE demonstrates superior performance across multiple metrics. It achieved a state-of-the-art accuracy of 98.91% on standard benchmarks and 95.89% on the challenging GenHard dataset, outperforming previous leaders like DRCT and NPR. The model also exhibits significant robustness against common image degradations like Gaussian blur and illumination changes. Furthermore, the iterative refinement process significantly improved the "Explanation Rating," ensuring that the generated rationales are grounded in visual evidence rather than model hallucinations.
Conclusion
ESIDE represents a significant step forward in synthetic image detection by combining the diagnostic power of diffusion timesteps with the interpretive capabilities of MLLMs. By moving beyond binary classification to provide grounded, human-readable explanations, ESIDE offers a more transparent and reliable solution for identifying AI-generated content. Future work will focus on improving the efficiency of the inversion process and extending the framework to newer, more subtle artifacts produced by the latest generation of video and 3D generative models.
Summary updated