Comparative Evaluation of Direct and Residual Self-Attention in Spatial-Frequency ResNet-18 for AI-Generated Image Detection

Authors

DOI:

https://doi.org/10.29408/edumatic.v10i3.37027

Keywords:

ai-generated image detection, dual-domain, residual self-attention, resnet-18, spatial-frequency

Abstract

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.

References

Bird, J. J., & Lotfi, A. (2024). CIFAKE: Image Classification and Explainable Identification of AI-Generated Synthetic Images. IEEE Access, 12, 15642–15650. https://doi.org/10.1109/ACCESS.2024.3356122

Chen, Y., Yin, W., Luo, A., Yang, J., & Wang, J. (2025). Improving the Generalization and Robustness of Computer-Generated Image Detection Based on Contrastive Learning. International Journal of Intelligent Systems, 2025(1), Article 9939096. https://doi.org/10.1155/int/9939096

Fang, X., Chen, P., Wang, M., & Wang, S. (2025). Examining the role of compression in influencing AI-generated image authenticity. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-91545-4

Gunukula, A. R., Das Gupta, H., & Sheng, V. S. (2025). Detecting AI-Generated Images Using a Hybrid ResNet-SE Attention Model. Applied Sciences (Switzerland), 15(13). https://doi.org/10.3390/app15137421

Islam, M. T., Lee, I. H., Alzahrani, A. I., & Muhammad, K. (2025). MEXFIC: A meta ensemble eXplainable approach for AI-synthesized fake image classification. Alexandria Engineering Journal, 116, 351–363. https://doi.org/10.1016/j.aej.2024.12.031

Li, J., & Wang, K. (2025). Building a Universal Detector of AI-Generated Images Without Training on Them. International Journal of Intelligent Systems, 2025(1), Article 8530953. https://doi.org/10.1155/int/8530953

Li, L., Lu, T., Song, J., & Cheng, K. (2026). SIDWA: Synthetic Image Detection Based on Discrete Wavelet Transform Stem and Deformable Sliding Window Cross-Attention. Electronics (Switzerland), 15(4). https://doi.org/10.3390/electronics15040891

Lokner Lađević, A., Kramberger, T., Kramberger, R., & Vlahek, D. (2024). Detection of AI-Generated Synthetic Images with a Lightweight CNN. AI (Switzerland), 5(3), 1575–1593. https://doi.org/10.3390/ai5030076

Man, Q., & Cho, Y. I. (2026). Transformer Based on Multi-Domain Feature Fusion for AI-Generated Image Detection. Electronics (Switzerland), 15(3). https://doi.org/10.3390/electronics15030716

Man, Q., Gee, S. J., & Cho, Y. I. (2026). Multi-Domain Perception Transformer for Generalized Forgery Image Detection. Applied Sciences (Switzerland), 16(1). https://doi.org/10.3390/app16010533

Manisha, Li, C. T., & Kotegar, K. A. (2025). AI-Synthesized Image Detection: Source Camera Fingerprinting to Discern the Authenticity of Digital Images. IEEE Access, 13, 29660–29672. https://doi.org/10.1109/ACCESS.2025.3537558

Namani, Y., Reghioua, I., Bendiab, G., Labiod, M. A., & Shiaeles, S. (2025). DeepGuard: Identification and Attribution of AI-Generated Synthetic Images. Electronics (Switzerland), 14(4). https://doi.org/10.3390/electronics14040665

Park, D., Na, H., & Choi, D. (2024). Performance Comparison and Visualization of AI-Generated-Image Detection Methods. IEEE Access, 12, 62609–62627. https://doi.org/10.1109/ACCESS.2024.3394250

Powroznik, P., Skublewska-Paszkowska, M., Nowomiejska, K., Gajda-Deryło, B., Brinkmann, M., Concilio, M., Toro, M. D., & Rejdak, R. (2025). Residual self-attention vision transformer for detecting acquired vitelliform lesions and age-related macular drusen. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-02299-y

Reza, M. S., Elias, F., Mahmud, M. I., & Ahmed, N. (2026). Attention and residual mechanism-based CNN architecture (ARC-Net) with enhanced fairness generalization for deepfake facial image detection. PLOS ONE, 21(4), Article e0340099. https://doi.org/10.1371/journal.pone.0340099

Wang, H., Liu, X., Lu, Z., Yan, C., Jiang, X., Wang, R., & Gavves, E. (2025). RADAR: Reasoning AI-Generated Image Detection for Semantic Fakes. Technologies, 13(7). https://doi.org/10.3390/technologies13070280

Yinghua, W., Linyan, L., Wenjuan, M., & Yunzhe, Z. (2026). AI-generated artwork detection using self-distilled transformers with global–local feature learning and Grad-CAM interpretability. Scientific Reports, 16(1), 497. https://doi.org/10.1038/s41598-025-29229-2

Yumlembam, R., Issac, B., Aslam, N., Babu, E. K., Collyer, J., & Kennedy, F. (2025). Detection of AI generated images using combined uncertainty measures and particle swarm optimised rejection mechanism. Scientific Reports, 15(1). https://doi.org/10.1038/s41598-025-28572-8

Zhang, J., Wang, Y., Tohidypour, H. R., & Nasiopoulos, P. (2025). An Efficient Frequency Domain Based Attribution and Detection Network. IEEE Access, 13, 19909–19921. https://doi.org/10.1109/ACCESS.2025.3534829

Zhang, Y., Pang, Z., Huang, S., Wang, C., & Zhou, X. (2025). Unmasking AI-created visual content: a review of generated images and deepfake detection technologies. Journal of King Saud University Computer and Information Sciences, 37(6), 148. https://doi.org/10.1007/s44443-025-00154-8

Downloads

Published

2026-11-28

How to Cite

Habibi, H., & Marco, R. (2026). Comparative Evaluation of Direct and Residual Self-Attention in Spatial-Frequency ResNet-18 for AI-Generated Image Detection. Edumatic: Jurnal Pendidikan Informatika, 10(3), 559–568. https://doi.org/10.29408/edumatic.v10i3.37027

Similar Articles

<< < 1 2 3 4 5 6 7 8 9 10 > >> 

You may also start an advanced similarity search for this article.