EDUMATIC: Jurnal Pendidikan Informatika
Vol 10 No 3 (2026): Edumatic: Jurnal Pendidikan Informatika

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

Habibi Habibi (Universitas Amikom Yogyakarta)
Robert Marco (Universitas Amikom Yogyakarta)



Article Info

Publish Date
28 Nov 2026

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.

Copyrights © 2026






Journal Info

Abbrev

edumatic

Publisher

Subject

Computer Science & IT Education

Description

EDUMATIC: Jurnal Pendidikan Informatika (e-ISSN: 2549-7472) adalah jurnal ilmiah bidang pendidikan informatika yang diterbitkan oleh Universitas Hamzanwadi dua kali setahun yaitu pada bulan Juni dan Desember. Adapun fokus dan skup jurnal ini adalah (1) Komputer dan Informatika dalam Pendidikan; (2) ...