TL;DR
This paper introduces MIRROR, a novel AI-generated image detection framework that mimics human perception by comparing images against an "ideal reference" derived from real-world regularities, rather than just looking for artifacts. MIRROR achieves state-of-the-art performance, significantly outperforming existing methods, especially on challenging "in-the-wild" datasets and even surpassing human experts on a new benchmark designed to test perceptual limits.
What Problem Does This Paper Address?
The rapid advancement of AI image generation models has created highly realistic synthetic images that are increasingly difficult to distinguish from real ones. This poses a significant threat to media security and trust. Current AI-generated image (AIGI) detection methods primarily rely on identifying specific artifacts left by generative models. However, these methods struggle to generalize to new, unseen generators because the artifacts they look for evolve quickly. In contrast, humans are adept at detecting inconsistencies by comparing what they see to their internal understanding of how the real world works – its stable, invariant regularities. This paper aims to bridge this gap by developing an AI detection system that leverages these stable, real-world priors for more robust and generalizable detection.
Methods
MIRROR is a two-phase framework:
- Phase 1: Encoding Reality Priors: This phase uses a pre-trained DINO encoder to extract features from real images. These features are then used to train a discrete memory bank of "prototypes." These prototypes represent stable patterns and textures found in the real world, effectively encoding the "manifold" of real images.
- Phase 2: Reference-Comparison-Based Detection: For a given input image, MIRROR projects its features onto the learned real-image manifold using a sparse linear combination of the prototypes. This creates an "Ideal Reference" that represents what the image should look like if it were real. The detection signal is then derived from the "reconstruction residual" – the difference between the input image's features and its ideal reference. Significant deviations indicate a generated image. This phase also incorporates "reconstruct perplexity" to measure uncertainty in the projection process.
Datasets
- Training: The framework is trained on a large dataset of real images (MSCOCO) for Phase 1, and on real images and a subset of SDv1.4 for Phase 2.
- Evaluation: MIRROR is evaluated on a comprehensive set of benchmarks, including:
- Standard Benchmarks: AIGCDetect, GenImage, DRCT-2M, UnivFakeDetect, Synthbuster, EvalGEN.
- In-the-Wild Benchmarks: Chameleon, SynthWildx, WildRF, AIGIBench, CO-SPY-Bench, BFree-Online, RRDataset.
- New Benchmark: The Human-AIGI Benchmark is introduced, featuring a "Human-Imperceptible Subset" curated through psychophysical experiments. This subset contains images that are difficult for humans (including experts) to classify, serving as a rigorous test for detectors aiming to surpass human perception.
Key Insights and Ideas
- Human-like Perception is Key: The core idea is that stable, real-world regularities (priors) are a more robust signal for detection than transient, generator-specific artifacts.
- "Ideal Reference" as a Detector: By constructing an "ideal reference" that conforms to the real-image manifold, deviations become a powerful indicator of forgery.
- Scalability Matters: Unlike many artifact-based detectors that saturate in performance as models scale, MIRROR shows sustained gains, mirroring human scalability.
- Beyond Artifacts: The framework moves away from simply finding "tells" and towards verifying consistency with reality.
- The "Superhuman Crossover": The Human-AIGI benchmark provides a crucial metric for determining when AI detection truly surpasses human capabilities.
Key Results
- State-of-the-Art Performance: MIRROR consistently outperforms prior methods across 14 benchmarks, achieving an average gain of 2.1% on standard benchmarks and 8.1% on in-the-wild benchmarks.
- Human-Level Performance: On the Human-AIGI benchmark, MIRROR achieves 89.6% accuracy, surpassing both lay users (76.9%) and visual experts (88.3%).
- Robustness: MIRROR demonstrates remarkable resilience to common image degradations like JPEG compression, spatial resizing, and Gaussian blurring, outperforming baselines significantly.
- Interpretability: Reconstruction residual heatmaps provide intuitive visualizations, highlighting precisely where generated images deviate from the real-image manifold.
- Efficiency: MIRROR's inference speed is competitive with other detectors, maintaining deployment scalability.
Limitations and Future Work
- Memory Bank Size (K): Performance shows an inverted U-shaped trend with respect to the number of prototypes (K), peaking at 4096. Insufficient K limits manifold coverage, while excessive K leads to overfitting.
- Sparsity Constraint (top-k): Similar trade-offs exist for the sparsity constraint, where too strict a constraint hinders reconstruction, and too loose a constraint allows generative anomalies to leak through.
- Future Work: The paper suggests that MIRROR's approach of modeling the real-image manifold and using reference-comparison can serve as a foundation for future research in robust and generalizable AI-generated content detection. The authors also highlight the potential for MIRROR to act as an assistive tool for human experts.
Summary updated