The effectiveness of attention mechanisms in spatial-frequency representations for AI-generated image detection remains insufficiently understood, particularly under controlled training conditions. This study comparatively evaluates Direct and Residual Self-Attention within a spatial-frequency ResNet-18 architecture. Using 60,000 development images and a separate 6,000-image holdout set from two public datasets, the initial experiments assessed spatial features, FFT-based frequency features, feature fusion, and attention integration. The results showed that Residual Self-Attention achieved the highest initial holdout performance, with 97.28% accuracy and 97.26% F1-score. However, additional controlled experiments using three random seeds and matched training budgets revealed that continued training without attention achieved the highest mean validation F1-score (97.26%), followed by Direct Self-Attention (97.19%) and Residual Self-Attention (97.14%). The residual-gate ablation further showed that attention integration did not consistently improve classification performance. These findings indicate that the initial performance advantage of Residual Self-Attention was not reproduced under controlled training conditions. This study provides empirical evidence that architectural improvements should be evaluated against matched-training baselines to distinguish genuine performance gains from differences attributable to training procedures.
Copyrights © 2026