cs.CVAug 2, 2025

NS-Net: Decoupling CLIP Semantic Information through NULL-Space for Generalizable AI-Generated Image Detection

Authors: Jiazhen Yan, Fan Wang, Ziwen He, Ziqiang Li, Zhangjie Fu

Organizations: Engineering Research Center of Digital Forensics, Ministry of Education, Nanjing University of Information Science and Technology, Nanjing, 210044, China. · University of Macau, Macau, 999078, China.

Abstract

The rapid progress of generative models, such as GANs and diffusion models, has facilitated the creation of highly realistic images, raising growing concerns over their misuse in security-sensitive domains. While existing detectors perform well under known generative settings, they often fail to generalize to unknown generative models, especially when semantic content between real and fake images is closely aligned. In this paper, we revisit the use of CLIP features for AI-generated image detection and uncover a critical limitation: the high-level semantic information embedded in CLIP's visual features hinders effective discrimination. To address this, we propose the NS-Net, a novel detection framework that leverages NULL-Space projection to decouple semantic information from CLIP's visual features, followed by contrastive learning to capture intrinsic distributional differences between real and generated images. Furthermore, we design a Patch Selection strategy to preserve fine-grained artifacts by selecting patches with the highest and lowest spectral entropy. Extensive experiments on an open-world benchmark comprising images generated by 47 diverse generative models show that NS-Net outperforms existing state-of-the-art methods, achieving a 5.0% improvement in detection accuracy, thereby demonstrating strong generalization across both GAN- and diffusion-based image generation techniques. Our code is available at https://github.com/HorizonTEL/NS-Net.

Figures & tables

Explore similar work

CardsList
  1. EIB-Net: Entropy-Guided Information Bottleneck for Generalizable AI-Generated Image Detection

    Sep 24, 2026Zhida Zhang, Xinlei Ma, Jie CaoAI-Generated Image DetectionVariational Information Bottleneck

  2. FAIR: Feature-Augmented Implicit Regularization for AI-generated Fake Image Detection

    Jul 24, 2026Md Redwanul Haque, Manzur Murshed, Manoranjan Paul +1Domain GeneralizationAI-Generated Image Detection

  3. Where Detectors Fail: Probing Generative Space for Generalizable AI-Generated Image Detection

    May 24, 2026Zijie Cao, Weijie Tu, Yao Xiao +3Synthetic Data AugmentationAI-Generated Image Detection