Training-Free Reconstruction-Based AI-Generated Image Detectors Are Inherently Vulnerable to Adversarial Examples

Roman Demchenko, Jonas Ricker, Asja FischerarXiv 2026

TL;DR

Training-free, reconstruction-based AI image detectors are often celebrated as transparent alternatives to black-box classifiers, but this paper reveals they are fundamentally vulnerable to adversarial attacks. By introducing imperceptible perturbations, attackers can artificially inflate an image's reconstruction error, tricking detectors into classifying fake images as real. Crucially, because these detectors share the same underlying logic, the adversarial examples transfer effortlessly across different detection models.

What Problem Does This Paper Address?

As AI image generators like Stable Diffusion, Midjourney, and Flux become ubiquitous, distinguishing real photos from synthetic ones is a critical challenge. Traditional detectors train a neural network classifier to spot fakes, but these are notoriously vulnerable to adversarial attacks—subtle, engineered tweaks that fool the model.

To bypass this, researchers recently introduced reconstruction-based detectors (such as AEROBLADE, HFI, and RDD). These training-free methods operate on a clever intuition: the autoencoder (AE) component of a latent diffusion model will reconstruct its own generated images much more accurately (with lower error) than it will reconstruct real-world images. If the reconstruction error is low, the image is flagged as fake.

Because these systems lack a traditional classifier, little was known about their adversarial robustness. This paper addresses a crucial gap: Can an attacker manipulate an image to artificially increase its reconstruction error, thereby making a fake image look "real" to the detector?

Methods

Since reconstruction-based detectors don't use standard classifiers, standard adversarial attacks cannot be applied directly. To overcome this, the authors propose two novel gradient-based attacks that exploit the differentiable nature of the autoencoders themselves using Projected Gradient Descent (PGD):

  1. Latent Space Attack ($L_{\text{latent}}$): This attack modifies the target image to maximize the Euclidean distance between the latent representation (embedding) of the original image and the perturbed image. By pushing the image off the learned data manifold, it becomes significantly harder for the decoder to reconstruct properly.
  2. Pixel Space Attack ($L_{\text{pixel}}$): This approach directly targets the evaluation metric. It optimizes the perturbation to maximize the distance—measured via Perceptual Similarity (LPIPS) or Mean Squared Error (MSE)—between the perturbed input image and its final autoencoder reconstruction.

Datasets

The authors evaluated their attacks using a mix of real and synthetic images:

  • Real Images: 100 high-quality photos from the RAISE-1k dataset.
  • Synthetic Images: 300 total images generated from the same text prompts as the real images to ensure semantic alignment. This included a subset from the Synthbuster dataset (generated via Midjourney-v5) alongside newly generated image sets from Flux.1-schnell and Stable Diffusion (SD) 3.5-medium.

Key Insights and Ideas

  • The White-Box Paradox: Reconstruction detectors rely on the exact autoencoders used by popular generative models. Because these models (like Stable Diffusion or Flux) are open-source, an attacker inherently possesses "white-box" access to the detector's core machinery.
  • Inherent, Universal Vulnerability: The attacks do not exploit specific model quirks; instead, they target the foundational assumption of reconstruction-based detection. As a result, an adversarial image crafted to fool one autoencoder naturally fools others, demonstrating remarkable transferability.
  • Pixel Space Dominance: Directly optimizing for the pixel-space reconstruction error ($L_{\text{pixel}}$) proved significantly more destructive to detector performance than attacking the latent space ($L_{\text{latent}}$), though it comes at the cost of slightly higher visual distortion.

Key Results

The authors tested the attacks against three state-of-the-art detectors: AEROBLADE, HFI, and RDD. Performance was measured using the Area Under the ROC Curve (AUROC), where 1.0 is perfect detection and 0.5 is no better than a coin flip.

  • Total Failure at Low Budgets: For all three detectors, performance plummeted to an unreliable state ($\text{AUROC} \le 0.5$) at incredibly small perturbation budgets ($\epsilon = 3/255$ or $4/255$).
  • Rankings of Robustness: Among the detectors, RDD proved to be the most robust due to its multi-space debiasing strategies, followed by HFI, while AEROBLADE was the most fragile.
  • Resilience to Real-World Degradation: Even when the adversarial images were subjected to common internet distortions like JPEG compression or Gaussian blur, they successfully maintained their deceptive properties and continued to bypass the detectors.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Targeted Scope: These attacks are specifically engineered to disrupt reconstruction errors and may not generalize well if pitted against standard classifier-based detectors.
  • Proprietary Model Constraints: The threat model assumes the attacker knows or has access to the generating AE. While true for open-source models, it is more challenging for closed-source pipelines (like Midjourney), though the attack's high transferability partially mitigates this.
  • Sample Size: Due to the high computational complexity of running multiple autoencoder loops during optimization, the evaluation was limited to a relatively small subset of images.

Future Directions: The authors urge the community to develop specialized defenses for reconstruction-based detectors and suggest exploring "universal" adversarial examples capable of fooling both classifier-based and reconstruction-based systems simultaneously.

Summary updated

BibTeX
@misc{demchenko2026training,
  author = {Roman Demchenko and Jonas Ricker and Asja Fischer},
  title = {{Training-Free Reconstruction-Based AI-Generated Image Detectors Are Inherently Vulnerable to Adversarial Examples}},
  year = {2026},
  eprint = {2608.16646},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16646},
}
Figure