Abstract
As generative models reach unprecedented levels of realism, the challenge of distinguishing AI-generated content (AIGC) from genuine photography has become a critical forensic task. While human perception is often fooled, state-of-the-art detectors rely on microscopic spectral artifacts—"fingerprints" left by neural upsampling. This paper introduces StealthDiffusion, a novel framework designed to evade these forensic tools. By performing adversarial optimization in the latent space of diffusion models and utilizing a specialized Control-VAE to rectify frequency-domain signatures, StealthDiffusion produces images that are both visually indistinguishable and spectrally aligned with real-world data. Our results demonstrate a significant increase in attack success rates against diverse forensic backbones while preserving high image quality.
1. Introduction
The rapid advancement of Latent Diffusion Models (LDMs) like Stable Diffusion has democratized high-quality image generation. However, this progress brings risks related to misinformation and deepfakes. Forensic detection methods have evolved to identify these images by looking beyond pixel-level realism to the underlying statistical properties of the data. Specifically, neural networks often leave "spectral fingerprints"—periodic grid-like patterns in the frequency domain—that serve as a tell-tale sign of synthetic origin.
2. The Forensic Challenge: Spectral Fingerprints
Forensic detectors typically focus on two distinct markers: visible artifacts and spectral fingerprints. While modern models have largely eliminated obvious visual glitches, the microscopic patterns caused by upsampling processes in neural networks remain a robust detection feature. Existing adversarial attacks, such as the Fast Gradient Sign Method (FGSM) and Projected Gradient Descent (PGD), attempt to fool detectors by adding noise to the pixel space. However, these methods often introduce visible graininess and fail to address the underlying spectral gap, leaving the images vulnerable to specialized frequency-domain forensic tools.
3. Methodology: Achieving AIGC Stealth
StealthDiffusion addresses these issues through a two-pronged approach: Latent Adversarial Optimization and the Control-VAE module.
3.1 Latent Adversarial Optimization (LAO)
Instead of modifying pixels directly, StealthDiffusion injects perturbations into the latent space of the diffusion model. By optimizing within this manifold and subsequently passing the perturbed latents through the denoising process, the framework ensures that the resulting changes are semantically coherent. This approach leverages the model's internal priors to "hide" the adversarial noise within the natural structure of the image, significantly improving visual fidelity and transferability across different detector architectures.
3.2 Control-VAE and Noise Prototype Alignment
The core of the "spectral stealth" lies in the Control-VAE. The researchers identified that the Variational Autoencoder (VAE) decoder is the primary source of the grid-like spectral artifacts in LDMs. To counter this, they developed a "Noise Prototype" by averaging the high-frequency residuals of thousands of genuine images. The Control-VAE uses a structure inspired by ControlNet to fuse encoder features into the decoder via trainable convolutions. It is trained using a novel Noise Prototype Loss (NPL), which penalizes deviations from the real-world spectral prototype, effectively closing the spectral gap.
4. Experimental Evaluation
The framework was evaluated using the GenImage dataset, a massive benchmark containing approximately 1.35 million AI-generated images and 1.33 million real images. The AI images were produced by eight diverse generators, including ADM, Glide, Stable Diffusion (v1.4 & v1.5), VQDM, Wukong, BigGAN, and Midjourney. This diversity ensures a rigorous test of the method's robustness and generalizability.
5. Results and Discussion
StealthDiffusion demonstrates superior performance across all metrics. In black-box transfer attacks, it outperformed traditional pixel-based methods by an average margin of 27.63%. Against commercial-grade detectors, the framework achieved success rates exceeding 90% across multiple forensic backbones such as EfficientNet and ResNet.
As shown in the figure above, the spectral images (c) highlight how StealthDiffusion (OURS) successfully removes the high-frequency artifacts visible in the "Generated" and "FGSM/PGD" versions, matching the "Genuine" spectrum. Furthermore, the attack success rate comparison (b) shows that the proposed method consistently maintains a higher success rate across various GenImage subsets compared to baseline attacks, while the visualization (a) confirms that the adversarial changes are imperceptible to the human eye.
6. Conclusion
StealthDiffusion represents a significant step in the ongoing arms race between generative modeling and forensics. By bridging the gap between latent-space optimization and frequency-domain alignment, it exposes vulnerabilities in current detection paradigms. While this work highlights potential risks, it also provides a roadmap for developing more robust, frequency-aware forensic tools that must now account for latent-space manipulations.
Summary updated