CaptionFool: Universal Image Captioning Model Attacks

Swapnil Parekh
2/28/2026
cs.CVcs.AI

No confident code implementation found for this paper.

Abstract

Image captioning models are encoder-decoder architectures trained on large-scale image-text datasets, making them susceptible to adversarial attacks. We present CaptionFool, a novel universal (input-agnostic) adversarial attack against state-of-the-art transformer-based captioning models. By modifying only 7 out of 577 image patches (approximately 1.2% of the image), our attack achieves 94-96% success rate in generating arbitrary target captions, including offensive content. We further demonstrate that CaptionFool can generate "slang" terms specifically designed to evade existing content moderation filters. Our findings expose critical vulnerabilities in deployed vision-language models and underscore the urgent need for robust defenses against such attacks. Warning: This paper contains model outputs which are offensive in nature.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{parekh2026captionfool,
  title  = {CaptionFool: Universal Image Captioning Model Attacks},
  author = {Swapnil Parekh},
  year   = {2026},
  eprint = {2603.00529},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.00529v1}
}

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/2603.00529.svg)](https://codeofpaper.com/paper/2603.00529)

Discussion