Attacking Attention of Foundation Models Disrupts Downstream Tasks

Hondamunige Prasanna Silva, Federico Becattini, Lorenzo Seidenari
6/3/2025
cs.CRcs.LG

Official code: HondamunigePrasannaSilva/attack-attention (6 stars, MIT, last commit 2025-06-14).

Abstract

Foundation models represent the most prominent and recent paradigm shift in artificial intelligence. Foundation models are large models, trained on broad data that deliver high accuracy in many downstream tasks, often without fine-tuning. For this reason, models such as CLIP , DINO or Vision Transfomers (ViT), are becoming the bedrock of many industrial AI-powered applications. However, the reliance on pre-trained foundation models also introduces significant security concerns, as these models are vulnerable to adversarial attacks. Such attacks involve deliberately crafted inputs designed to deceive AI systems, jeopardizing their reliability. This paper studies the vulnerabilities of vision foundation models, focusing specifically on CLIP and ViTs, and explores the transferability of adversarial attacks to downstream tasks. We introduce a novel attack, targeting the structure of transformer-based architectures in a task-agnostic fashion. We demonstrate the effectiveness of our attack on several downstream tasks: classification, captioning, image/text retrieval, segmentation and depth estimation. Code available at:https://github.com/HondamunigePrasannaSilva/attack-attention

View on arXivView PDF

Code Implementations(1)

MIT

[CVPR 2025-ADVML] Official Repository for `Attacking Attention of Foundation Models Effectively Disrupts Downstream Tasks`

60PythonApr 8, 20251 years agoMIT

Similar Papers

Cite this paper

@article{silva2025attacking,
  title  = {Attacking Attention of Foundation Models Disrupts Downstream Tasks},
  author = {Hondamunige Prasanna Silva and Federico Becattini and Lorenzo Seidenari},
  year   = {2025},
  eprint = {2506.05394},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.05394v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2506.05394.svg)](https://codeofpaper.com/paper/2506.05394)

Discussion