Skip to main content
QUICK REVIEW

[Paper Review] AI-Generated Image Detection using a Cross-Attention Enhanced Dual-Stream Network

Ziyi Xi, Wenmin Huang|arXiv (Cornell University)|Jun 12, 2023
Digital Media Forensic DetectionComputer Science3 citations
TL;DR

This paper proposes a cross-attention enhanced dual-stream CNN for detecting AI-generated images (T2I) versus real photographs (PG), leveraging a residual stream with Spatial Rich Model (SRM) for texture features and a content stream for low-frequency anomalies. The method achieves state-of-the-art performance on both custom T2I datasets and standard CG detection benchmarks like SPL2018 and DsTok, outperforming prior methods by up to 4.2% accuracy across multiple resolutions.

ABSTRACT

With the rapid evolution of AI Generated Content (AIGC), forged images produced through this technology are inherently more deceptive and require less human intervention compared to traditional Computer-generated Graphics (CG). However, owing to the disparities between CG and AIGC, conventional CG detection methods tend to be inadequate in identifying AIGC-produced images. To address this issue, our research concentrates on the text-to-image generation process in AIGC. Initially, we first assemble two text-to-image databases utilizing two distinct AI systems, DALLE2 and DreamStudio. Aiming to holistically capture the inherent anomalies produced by AIGC, we develope a robust dual-stream network comprised of a residual stream and a content stream. The former employs the Spatial Rich Model (SRM) to meticulously extract various texture information from images, while the latter seeks to capture additional forged traces in low frequency, thereby extracting complementary information that the residual stream may overlook. To enhance the information exchange between these two streams, we incorporate a cross multi-head attention mechanism. Numerous comparative experiments are performed on both databases, and the results show that our detection method consistently outperforms traditional CG detection techniques across a range of image resolutions. Moreover, our method exhibits superior performance through a series of robustness tests and cross-database experiments. When applied to widely recognized traditional CG benchmarks such as SPL2018 and DsTok, our approach significantly exceeds the capabilities of other existing methods in the field of CG detection.

Motivation & Objective

  • To address the growing challenge of detecting AI-generated images (T2I) produced by text-to-image models like DALL·E2 and DreamStudio, which differ fundamentally from traditional CG graphics.
  • To overcome the limitations of conventional CG detection methods that fail to generalize to the unique artifacts of modern AIGC-generated images.
  • To develop a robust, end-to-end detection framework that captures both high-frequency texture anomalies and low-frequency forged traces in AI-generated content.
  • To validate the method’s effectiveness across diverse image resolutions and on widely used CG detection benchmarks such as SPL2018 and DsTok.

Proposed method

  • The method employs a dual-stream architecture: a residual stream using the Spatial Rich Model (SRM) to extract detailed texture and noise patterns from images.
  • A separate content stream is designed to capture low-frequency anomalies that may be missed by the residual stream, focusing on structural and color inconsistencies.
  • Features from both streams are downsampled via convolutional layers and fused using a cross multi-head attention mechanism to enhance inter-stream feature exchange.
  • The fused features are concatenated across channels and passed through a classifier head for binary classification of T2I vs. PG.
  • The model is trained on two newly constructed T2I databases generated using DALL·E2 and DreamStudio, ensuring diversity in generation styles.
  • The architecture is evaluated on standard CG detection benchmarks (SPL2018, DsTok) to assess transferability and robustness.

Experimental results

Research questions

  • RQ1Can a dual-stream CNN with cross-attention effectively detect AI-generated images (T2I) by capturing complementary artifacts from high- and low-frequency domains?
  • RQ2How does the proposed method compare to existing CG detection techniques when applied to modern T2I content with distinct generative patterns?
  • RQ3To what extent does the cross-attention mechanism improve feature fusion and detection accuracy compared to simple concatenation or early fusion?
  • RQ4Does the model generalize well to established CG detection benchmarks like SPL2018 and DsTok, indicating transferability across forgery types?
  • RQ5How robust is the method under common image post-processing attacks such as rotation, blurring, and resizing?

Key findings

  • The proposed method achieves the highest average accuracy on both the DALL·E2 and DreamStudio T2I databases, outperforming existing SOTA methods in all tested configurations.
  • On the DsTok dataset, the method improves accuracy by 3.6%, 3.1%, and 4.2% over the sub-optimal method QuanNet at resolutions of 224×224, 112×112, and 56×56, respectively.
  • On the SPL2018 benchmark, the method achieves 0.8%, 0.4%, and 0.8% higher accuracy than CGNet at the same resolutions, demonstrating strong generalization.
  • Ablation studies confirm that removing either the residual stream, content stream, or cross-attention module leads to consistent performance degradation, validating the necessity of all components.
  • The model shows superior robustness to common post-processing operations like rotation and blurring compared to existing methods.
  • The cross-attention mechanism significantly enhances feature interaction between streams, contributing to improved detection performance across all evaluation settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.