Task-Agnostic Attacks Against Vision Foundation Models

Brian Pulfer, Yury Belousov, Vitaliy Kinakh, Teddy Furon, Slava Voloshynovskiy

Introduction

The paradigm of computer vision has shifted towards using large-scale Vision Foundation Models (VFMs) as universal backbones. Models like DINOv2, CLIP, and MAE provide rich feature representations that are then utilized by small, task-specific "heads" for applications ranging from classification to visual question answering. While this modularity is efficient, it introduces a new security vulnerability: Task-Agnostic Attacks (TAA).

The Concept of Pervasive Vulnerability

Traditionally, adversarial attacks are Task-Specific (TSA), optimized to fool a known classifier or segmenter. However, TAA targets the core feature representations of the backbone itself. By disrupting the latent space produced by the VFM, an attacker can simultaneously degrade performance across all downstream tasks without any knowledge of the final application. This "pervasiveness" is the primary danger; a single perturbation can "blind" the model backbone, rendering any downstream task head useless.

Methodology: Disrupting the Latent Space

The TAA framework focuses on moving a perturbed image's feature vector as far as possible from its original representation in the latent space. The authors utilize Cosine Similarity as a distance metric and employ Projected Gradient Descent (PGD) to minimize this similarity.

A key discovery was the necessity of Mean Centering—centering VFM features before calculating similarity significantly increases attack effectiveness. For Vision Transformers (ViTs), targeting patch tokens (local representations) proved more destructive than targeting the [CLS] token alone, as patch tokens carry essential spatial information required for tasks like segmentation.

Experimental Results and Impact

The study evaluated 18 VFMs across a wide array of benchmarks. The results demonstrate a "catastrophic failure" of the backbone's utility. For instance, on a DINOv2 ViT-S backbone, a TAA reduced classification accuracy from 96.3% to 0.1%.

A clean input image of a horse used for evaluating segmentation tasks.

The impact on dense prediction tasks like segmentation is particularly striking. The mIoU for PascalVOC segmentation plummeted from 81.4 to 11.6 under TAA, as the feature disruption prevents the model from identifying coherent object boundaries.

The resulting segmentation mask after a Task-Agnostic Attack, showing a complete loss of structural information and semantic coherence.

Beyond standard vision tasks, TAA also severely impacts multi-modal models. When attacking the SigLip backbone of PaliGemma, image captioning quality (CIDEr score) dropped from 131.4 to 3.6, demonstrating that representation-level vulnerabilities propagate through complex multi-modal pipelines.

Conclusion and Future Directions

The pervasiveness of TAA highlights a critical weakness in the foundation model ecosystem. Because these models are shared across many applications, a single representation-level attack can have widespread consequences. While fine-tuning offers marginal protection, the research suggests that fundamental hardening of the backbone—perhaps through foundation-scale adversarial training—is necessary to secure the next generation of AI systems.

Summary updated

BibTeX
@inproceedings{pulfer2025task,
  author = {Brian Pulfer and Yury Belousov and Vitaliy Kinakh and Teddy Furon and Slava Voloshynovskiy},
  title = {{Task-Agnostic Attacks Against Vision Foundation Models}},
  booktitle = {Workshops @ CVPR},
  year = {2025},
}
Figure