基于通道–空间自适应与多残差环注意力机制的人工智能生成图像检测
AI-Generated Image Detection Based on Channel-Spatial Adaptation and Multi-Residual Ring Attention Mechanism
摘要: 针对生成式人工智能快速发展导致的AI生成图像真实性验证难题,以及现有检测方法依赖单模态特征、泛化能力有限的问题,旨在提升对未知生成模型和复杂后处理操作的检测准确率与鲁棒性。首先设计了通道–空间注意力自适应残差模块,通过双重注意力机制和自适应融合策略增强图像的高频噪声、边缘梯度和频域变换关键特征;再引入残差环增强的多头注意力机制,在标准多头注意力计算之后串联残差环,对注意力输出进行迭代式非线性后处理,提高特征交互的表示复杂度;最后进行多层次特征的稳定融合。在GenImage数据集上的实验结果表明,所提方法对七种主流生成模型生成的图像检测准确率达到99.67%,显著优于现有最先进方法。该方法展现了优越的泛化能力和鲁棒性,能够有效应对未知生成模型与复杂后处理操作,为AI生成图像检测提供了高效可靠的技术途径。
Abstract: To address the challenge of authenticating AI-generated images arising from the rapid development of generative artificial intelligence, and to overcome the limitations of existing detection methods that rely on single-modal features and exhibit limited generalization capability, this study aims to improve detection accuracy and robustness against unknown generative models and complex post-processing operations. We first design a channel-spatial attention adaptive residual module, which enhances key features-including high-frequency noise, edge gradients, and frequency-domain transform characteristics-through a dual-attention mechanism and an adaptive fusion strategy; then we introduce a residual ring-enhanced multi-head attention mechanism that appends a residual ring after the standard multi-head attention computation to perform iterative nonlinear post-processing on the attention output, thereby increasing the representational complexity of feature interactions; and finally we perform stable fusion of multi-level features. Experimental results on the GenImage dataset demonstrate that the proposed method achieves a detection accuracy of 99.67% on images generated by seven mainstream generative models, significantly outperforming existing state-of-the-art methods. The proposed method exhibits superior generalization capability and robustness, effectively handling unknown generative models and complex post-processing operations, thus providing an efficient and reliable technical approach for AI-generated image detection.
文章引用:彭时雨. 基于通道–空间自适应与多残差环注意力机制的人工智能生成图像检测[J]. 计算机科学与应用, 2026, 16(11): 28-41. https://doi.org/10.12677/csa.2026.1611323

参考文献

[1] Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., et al. (2015) Deep Unsupervised Learning Using Nonequilibrium Thermodynamics. 2015 International Conference on Machine Learning, Lille, 6-11 July 2015, 2256-2265.
[2] Bhowal, A., Naskar, R. and Neogy, S. (2025) Multi-Approach Survey and In-Depth Analysis of Image Forgery Detection Techniques. The Visual Computer, 41, 9977-10035.
https://doi.org/10.1007/s00371-025-04019-z
[3] Karageorgiou, D., Papadopoulos, S., Kompatsiaris, I. and Gavves, E. (2025) Any-Resolution AI-Generated Image Detection by Spectral Learning. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, 10-17 June 2025, 18706-18717.
https://doi.org/10.1109/cvpr52734.2025.01743
[4] Cozzolino, D., Poggi, G., Corvi, R., Nießner, M. and Verdoliva, L. (2024) Raising the Bar of AI-Generated Image Detection with Clip. 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), Seattle, 17-18 June 2024, 4356-4366.
https://doi.org/10.1109/cvprw63382.2024.00439
[5] Zhang, H., He, Q., Bi, X., Li, W., Liu, B. and Xiao, B. (2025) Towards Universal AI-Generated Image Detection by Variational Information Bottleneck Network. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, 10-17 June 2025, 23828-23837.
https://doi.org/10.1109/cvpr52734.2025.02219
[6] Cheng, S.Y., Lyu, L.J., Wang, Z.T., et al. (2025) CO-SPY: Combining Semantic and Pixel Features to Detect Synthetic Images by AI.
https://arxiv.org/abs/2503.18286
[7] Zhong, N., Xu, Y.R., Li, S., et al. (2023) PatchCraft: Exploring Texture Patch for Efficient AI-Generated Image Detection.
https://arxiv.org/abs/2311.12397
[8] Woo, S., Park, J., Lee, J.Y., et al. (2018) CBAM: Convolutional Block Attention Module. In: Lecture Notes in Computer Science, Springer, 3-19.
https://doi.org/10.1007/978-3-030-01234-2_1
[9] Zhong, N., Chen, H.Y., Xu, Y.R., et al. (2025) Beyond Generation: A Diffusion-Based Low-Level Feature Extractor for Detecting AI-Generated Images. 2025 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Nashville, 10-17 June 2025, 8258-8268.
https://doi.org/10.1109/cvpr52734.2025.00773
[10] He, K.M., Zhang, X.Y., Ren, S.Q. and Sun, J. (2016) Deep Residual Learning for Image Recognition. 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, 27-30 June 2016, 770-778.
https://doi.org/10.1109/cvpr.2016.90
[11] Zhou, P., Han, X., Morariu, V.I. and Davis, L.S. (2018) Learning Rich Features for Image Manipulation Detection. 2018 IEEE/CVF Conference on Computer Vision and Pattern Recognition, Salt Lake City, 18-23 June 2018, 1053-1061.
https://doi.org/10.1109/cvpr.2018.00116
[12] Ju, Y., Jia, S., Ke, L., Xue, H., Nagano, K. and Lyu, S. (2022) Fusing Global and Local Features for Generalized AI-Synthesized Image Detection. 2022 IEEE International Conference on Image Processing (ICIP), Bordeaux, 16-19 October 2022, 3465-3469.
https://doi.org/10.1109/icip46576.2022.9897820
[13] Frank, J., Eisenhofer, T., Schönherr, L., et al. (2020) Leveraging Frequency Analysis for Deep Fake Image Recognition. 2020 International Conference on Machine Learning, Online, 14-16 July 2020, 3247-3258.
[14] Zhang, X., Karaman, S., Chang, S.F., et al. (2019) Detecting and Simulating Artifacts in GAN Fake Images. 2019 IEEE International Workshop on Information Forensics and Security (WIFS), Delft, 9-12 December 2019, 1-6.
https://doi.org/10.1109/wifs47025.2019.9035107
[15] Yu, N., Davis, L. and Fritz, M. (2019) Attributing Fake Images to GANs: Learning and Analyzing GAN Fingerprints. 2019 IEEE/CVF International Conference on Computer Vision (ICCV), Seoul, 27 October-2 November 2019, 7555-7565.
https://doi.org/10.1109/iccv.2019.00765
[16] Alabrah, A. (2025) SFTA-Net: A Self-Supervised Approach to Detect Copy-Move and Splicing Forgery to Leverage Triplet Loss, Auxiliary Loss, and Spatial Attention. PeerJ Computer Science, 11, e2803.
https://doi.org/10.7717/peerj-cs.2803
[17] Tan, C.C., Zhao, Y., Wei, S.K., Gu, G.H. and Wei, Y.C. (2023) Learning on Gradients: Generalized Artifacts Representation for GAN-Generated Images Detection. 2023 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Vancouver, 17-24 June 2023, 12105-12114.
https://doi.org/10.1109/cvpr52729.2023.01165
[18] Huang, G., Liu, Z., Van Der Maaten, L. and Weinberger, K.Q. (2017) Densely Connected Convolutional Networks. 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, 21-26 July 2017, 2261-2269.
https://doi.org/10.1109/cvpr.2017.243
[19] Chai, L., Bau, D., Lim, S. and Isola, P. (2020) What Makes Fake Images Detectable? Understanding Properties That Generalize. In: Lecture Notes in Computer Science, Springer, 103-120.
https://doi.org/10.1007/978-3-030-58574-7_7
[20] Zhu, M.J., Chen, H.T., Yan, Q.Y., et al. (2023) GenImage: A Million-Scale Benchmark for Detecting AI-Generated Image. Advances in Neural Information Processing Systems 36, New Orleans, 10-16 December 2023, 77771-77782.
[21] Chen, J.H., Lo, M.T., Liao, H.L., et al. (2024) IPD-Net: Detecting AI-Generated Images via Inter-Patch Dependencies. International Journal of Advanced Computer Science and Applications, 15, 1371-1378.
https://doi.org/10.14569/ijacsa.2024.01507133
[22] Wang, H.S., Cheng, R.X., Zhang, Y., et al. (2025) LOTA: Bit-Planes Guided AI-Generated Image Detection. 2025 IEEE/CVF International Conference on Computer Vision (ICCV), Honolulu, 19-23 October 2025, 13421-13430.
https://doi.org/10.1109/iccv51701.2025.01602