DEDCA: Test-Time Adaptation for Generalized AI-Generated Image Detection
Organizations: Guangdong University of Technology · The Hong Kong University of Science and Technology (Guangzhou) · Southern University of Science and Technology · State Key Laboratory of Public Big Data, Guizhou University
Abstract
AI-generated image detectors face significant challenges when deployed in real-world environments, particularly when test samples are produced by unseen generators that deviate from the source training distribution. Existing detectors often rely on a single type of evidence, such as semantic representations or low-level generation traces, making them vulnerable when the corresponding cue becomes unreliable. Moreover, adapting detectors to newly emerging generators usually requires target labels or retraining, which is costly and impractical. To address these challenges, we propose Dual-Evidence Disagreement-Constrained Adaptation (DEDCA), a test-time adaptation framework for generalized AI-generated image detection. DEDCA constructs a dual-evidence detector by combining CLIP-based semantic evidence with trace evidence extracted from shuffled entropy and residual statistics, and introduces a reliability-aware gate to perform sample-specific adaptive fusion. Our key idea is to exploit the disagreement between the two evidence streams as an unlabeled adaptation signal, enabling the detector to adjust to target-domain shifts without relying on target labels or blindly trusting a single prediction stream. Experiments show that DEDCA achieves superior performance on the GenImage benchmark by outperforming state-of-the-art AI-generated image detectors and test-time adaptation methods with 92.0% average accuracy.
Figures & tables
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Color Saturation | Color Contrast | Gaussian Blur | Resize | JPEG | Average | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ACC | AP | ACC | AP | ACC | AP | ACC | AP | ACC | AP | ACC | AP | |||||||
| MoLD | 89.0 | 96.8 | 2.4 | 88.1 | 96.0 | 3.3 | 86.7 | 94.8 | 4.7 | 87.2 | 95.2 | 4.2 | 86.9 | 95.5 | 4.5 | 87.6 | 95.7 | 3.8 |
| T2A-DEDCA | 83.9 | 94.0 | 4.0 | 82.5 | 92.8 | 5.4 | 80.6 | 91.2 | 7.3 | 81.0 | 91.6 | 6.9 | 81.7 | 92.1 | 6.2 | 81.9 | 92.3 | 6.0 |
| ReservoirTTA-DEDCA | 77.5 | 90.6 | 3.8 | 77.0 | 89.2 | 4.3 | 75.1 | 87.5 | 6.2 | 74.9 | 88.1 | 6.4 | 76.4 | 88.6 | 4.9 | 76.2 | 88.8 | 5.1 |
| DEDCA (w/o TTA) | 85.2 | 96.1 | 4.2 | 83.4 | 94.8 | 6.0 | 81.0 | 92.6 | 8.4 | 81.8 | 93.2 | 7.6 | 82.5 | 93.9 | 6.9 | 82.8 | 94.1 | 6.6 |
| DEDCA | 90.4 | 98.0 | 1.6 | 88.6 | 97.0 | 3.4 | 86.8 | 95.9 | 5.2 | 86.7 | 95.6 | 5.3 | 88.0 | 96.7 | 4.0 | 88.1 | 96.6 | 3.9 |
| Method | Total Params | Params@TTA | Infer Time | TTA Time |
|---|---|---|---|---|
| MLEP | 1.40M | – | 1.42 | – |
| LARE 2 | 104.31M | – | 0.85 | – |
| MoLD | 303.71M | – | 10.72 | – |
| Xception | 20.81M | – | 1.57 | – |
| T2A (Xception) | 20.81M | 54.5K | 1.57 | 11.70 |
| PeTTA (ResNet-50) | 25.56M | 53.1K | 0.65 | 3.63 |
AI-Generated Image Detection
AI-generated image detection identifies synthetic or AI-edited images and develops methods that generalize across generators, domains, and image transformations.
See all 203 papers