Backbone is All You Need: Assessing Vulnerabilities of Frozen Foundation Models in Synthetic Image Forensics

TL;DR

Proposes SIAA gray-box attack exploiting ViT feature space, achieving near-white-box success rates (~98%) in fake image detection.

cs.CV 🔴 Advanced 2026-05-13 48 views
Chiara Musso Joy Battocchio Andrea Montibeller Giulia Boato
adversarial attack deepfake detection Vision Transformer gray-box model vulnerability

Key Findings

Methodology

The Surrogate Iterative Adversarial Attack (SIAA) employs a feature alignment framework, training a Feature Processing (FP) head to map CLIP text embeddings and ViT visual features into a shared latent space. During attack, it initializes a perturbation within an ℓ∞ bound, then iteratively optimizes this perturbation using PGD by maximizing a distance-based loss in the feature space, without requiring access to the classifier head. The approach leverages only the pre-trained ViT backbone, making it a powerful gray-box attack. Experiments across multiple ViT-based detectors (CLIP, Swin, DINOv2) show high attack success rates, often comparable to white-box methods.

Key Results

  • In identical training conditions, SIAA achieves attack success rates (ASR) above 98% on CLIP, Swin, and DINOv2 detectors, significantly outperforming PGD-ViT and PGD-L, approaching white-box performance.
  • Even under few-shot and dataset mismatch scenarios, ASR remains above 96%, demonstrating robustness and generalization.
  • Cross-model transferability tests show 56% success between Swin and CLIP, but lower (~10-15%) on DINOv2, indicating model-specific feature space differences.

Significance

This work exposes the vulnerability of pre-trained ViT-based fake image detectors to feature-space adversarial attacks, even with limited knowledge. It emphasizes that relying solely on backbone features without robust defenses can lead to high false negatives, urging the development of more resilient detection methods. The findings have profound implications for digital media security, highlighting the need for improved model robustness and attack mitigation strategies.

Technical Contribution

The paper introduces a novel feature-space attack framework that aligns visual and textual embeddings via CLIP, then performs PGD-based perturbation in this shared space. Unlike traditional output-based attacks, this method exploits feature distribution differences, enabling high success rates without access to the classifier head. It broadens the scope of gray-box attacks, providing a new theoretical and practical foundation for model security analysis.

Novelty

This is the first work to demonstrate that knowledge of only the ViT backbone suffices to craft highly effective adversarial examples in synthetic image detection. It departs from prior methods that rely on classifier outputs, instead leveraging feature distribution discrepancies for attack optimization, thus significantly advancing the field of model robustness assessment.

Limitations

  • The attack's effectiveness diminishes against models like DINOv2, which have more stable, dense feature representations, indicating model-specific robustness differences.
  • The method depends on training a feature alignment model; large architectural changes in the detector could reduce attack efficacy.
  • In highly mismatched training scenarios, success rates decrease slightly, suggesting room for improving generalization.

Future Work

Future directions include integrating multi-modal features, developing adaptive defenses against feature-space attacks, and exploring real-world deployment scenarios. Enhancing attack efficiency and robustness against diverse model architectures will be key to understanding and mitigating vulnerabilities.

AI Executive Summary

The rapid development of AI-generated synthetic images has raised significant concerns regarding digital media authenticity. While Vision Transformer (ViT)-based detectors have become the standard for deepfake detection due to their high accuracy, their security vulnerabilities remain underexplored. This study introduces the Surrogate Iterative Adversarial Attack (SIAA), a novel gray-box attack that exploits only the pre-trained ViT backbone, bypassing the need for access to the classifier head. By training a feature alignment module that maps visual features and CLIP text embeddings into a shared space, SIAA employs PGD to iteratively craft adversarial perturbations that deceive the detector.

Experimental results demonstrate that SIAA achieves attack success rates exceeding 98% across multiple ViT-based detectors, including CLIP, Swin, and DINOv2, under identical training conditions. Remarkably, even in limited-data scenarios and with dataset mismatches, the attack maintains a success rate above 96%, revealing the robustness of the vulnerability. Cross-model transferability tests show that perturbations crafted on one model can significantly affect others, especially between Swin and CLIP, with success rates around 56%. Conversely, models like DINOv2 exhibit higher resilience, likely due to their dense feature representations.

These findings highlight a critical security concern: knowledge of the backbone alone suffices to generate highly effective adversarial examples, undermining the reliability of current synthetic image detectors. The work underscores the urgent need for developing more robust defenses, such as feature-space adversarial training or multi-modal fusion strategies. Overall, this research advances our understanding of model vulnerabilities and provides a practical framework for evaluating and improving the security of AI-based forensic tools.

Deep Analysis

Background

Recent advances in AI have led to highly realistic synthetic images, challenging digital media integrity. Early detection methods relied on CNNs to identify artifacts, but lacked generalization. The advent of large pre-trained models like CLIP, Swin, and DINOv2 improved accuracy but introduced new security concerns. Prior work focused on white-box attacks or transferability, leaving gray-box vulnerabilities underexplored. As these models are often deployed with frozen backbones, understanding their susceptibility to feature-space attacks is crucial. This paper builds on the premise that pre-trained ViT features exhibit shared structures exploitable by adversaries, prompting the development of targeted gray-box attacks.

Core Problem

Despite high detection accuracy, ViT-based fake image detectors are vulnerable when attackers possess only the backbone parameters. Existing defenses are insufficient against feature-space manipulations, which do not require access to classifier weights. The core challenge lies in crafting perturbations that manipulate high-dimensional feature representations to cause misclassification, without full model access. This vulnerability poses a serious threat in real-world scenarios where models are often deployed as frozen backbones, making it imperative to evaluate and mitigate such risks.

Innovation

The paper introduces a novel attack framework that leverages feature alignment between CLIP text embeddings and ViT visual features, trained via a contrastive loss. During attack, PGD optimizes perturbations directly in this shared feature space, bypassing the classifier head. This approach is innovative because it exploits the shared structure of pre-trained models, enabling high success rates with minimal knowledge. Unlike prior methods limited to output gradients, SIAA operates solely on feature distributions, broadening the scope of gray-box vulnerabilities and offering a new perspective on model security.

Methodology

  • �� Training phase: Use real and fake images to train FP-Head, aligning CLIP text embeddings with ViT features via a contrastive loss that enforces tight clustering for matching labels.
  • �� Attack phase: Add a small random perturbation to the input image, then extract features using the frozen ViT backbone and CLIP encoder.
  • �� Feature mapping: Process features through linear layers to project them into a shared embedding space, approximating the classifier’s decision boundary.
  • �� Optimization: Use PGD to iteratively maximize a distance-based loss between visual and textual features, updating the input image with constrained pixel perturbations.
  • �� Evaluation: Test on multiple models, measure attack success rate (ASR), and analyze transferability across architectures.

Experiments

Using the Synthbuster dataset, containing 9,000 synthetic images from models like DALL-E 2, Stable Diffusion, and 1,000 real images, the authors trained the feature alignment module with data augmentation. They tested against CLIP, Swin, and DINOv2 detectors, measuring ASR and AUC. Hyperparameters included 14 PGD iterations, 𝜖=8/255, and embedding dimensions of 768 and 1024. Ablation studies varied training data size, dataset mismatch, and classifier head depth, confirming robustness. Cross-model transferability was also assessed, revealing high attack efficacy especially between models with similar pre-training objectives.

Results

SIAA achieved over 98% ASR on all detectors under matched training conditions, outperforming prior gray-box methods. Even with limited data or dataset mismatches, success rates remained above 96%. Cross-model tests showed 56% success between Swin and CLIP, but only 10-15% on DINOv2, indicating model-specific robustness. The attack's effectiveness persisted across various scenarios, demonstrating its practical threat potential. These results underscore the importance of considering feature-space vulnerabilities in model security.

Applications

The attack exposes critical vulnerabilities in current deepfake detectors relying on frozen ViT backbones, urging the development of defenses like adversarial training or feature regularization. It can be used to evaluate detector robustness, guide the design of more resilient models, and inform security policies for digital media. In industry, it highlights the need for multi-modal and adaptive defenses to prevent malicious exploitation, ensuring trustworthy AI-based content verification.

Limitations & Outlook

The method shows reduced effectiveness against models like DINOv2, which have more stable dense features. It depends on training a feature alignment model, which may not generalize to architectures with significant modifications. In highly mismatched training scenarios, success rates decrease slightly, indicating the need for more adaptive approaches. Future work should focus on improving transferability and robustness against diverse model architectures.

Plain Language Accessible to non-experts

想象你在一家工厂里,工厂每天生产各种商品。工厂的“核心机器”就像深度学习模型的骨架——它决定了商品的大致样子。工厂里有一台特别的检测仪,能判断商品是真是假,但它只看核心机器的“指纹”。攻击者只需要知道这个“指纹”,不用知道检测仪的全部细节,就能用一种特殊的“调料”在商品上做手脚,让检测仪误判。这个“调料”就像论文中的“扰动”,它在商品的“特征空间”里偷偷作怪。通过巧妙设计的“调料”,攻击者可以让检测仪相信假货是真的。这就像用一种神奇的调料,让假货变得“看不出来”。这项研究告诉我们,只要知道核心机器的“指纹”,就能轻松骗过检测仪,提醒我们要加强工厂的安全措施,不能只依赖核心指纹。

ELI14 Explained like you're 14

想象你在学校,有个超级厉害的老师,他能通过学生的习惯和表现判断谁在作弊。现在,有个学生只知道老师喜欢看什么,比如喜欢看书、喜欢画画,但不知道老师的评分标准。这个学生用一种特别的“伪装”,在作业里偷偷加点东西,让老师误以为他表现很好,实际上是在作弊。这个“伪装”就像论文里的“扰动”,它在作业的特征里偷偷作怪,让老师误判。学生只用知道老师的习惯(模型的骨架),不用知道具体的评分细节,就能骗过老师。这就像论文中的攻击,只要知道模型的“指纹”,就能制造出让模型误判的“伪装”。这告诉我们,要让老师更聪明,不能只看表面,还要考虑到这些“伪装”,才能更好地识别真伪。

Abstract

As AI-generated synthetic images become increasingly realistic, Vision Transformers (ViTs) have emerged as a cornerstone of modern deepfake detection. However, the prevailing reliance on frozen, pre-trained backbones introduces a subtle yet critical vulnerability. In this work, we present the Surrogate Iterative Adversarial Attack (SIAA), a gray-box attack that exploits knowledge of the detector's ViT backbone alone and operates entirely within the target detector's feature space to craft highly effective adversarial examples. Through our experiments, involving multiple ViT-based detectors and diverse gray-box scenarios, including few-shot learning, complete training misalignment and attack transferability tests, we demonstrate that this vulnerability consistently yields high attack success rates, often approaching white-box performance. By doing so, we reveal that backbone knowledge alone is sufficient to undermine detector reliability, highlighting the urgent need for more resilient defenses in adversarial multimedia forensics.

cs.CV cs.MM