English

Semantically Guided Adversarial Testing of Vision Models Using Language Models

Computer Vision and Pattern Recognition 2025-08-18 v1 Cryptography and Security Machine Learning

Abstract

In targeted adversarial attacks on vision models, the selection of the target label is a critical yet often overlooked determinant of attack success. This target label corresponds to the class that the attacker aims to force the model to predict. Now, existing strategies typically rely on randomness, model predictions, or static semantic resources, limiting interpretability, reproducibility, or flexibility. This paper then proposes a semantics-guided framework for adversarial target selection using the cross-modal knowledge transfer from pretrained language and vision-language models. We evaluate several state-of-the-art models (BERT, TinyLLAMA, and CLIP) as similarity sources to select the most and least semantically related labels with respect to the ground truth, forming best- and worst-case adversarial scenarios. Our experiments on three vision models and five attack methods reveal that these models consistently render practical adversarial targets and surpass static lexical databases, such as WordNet, particularly for distant class relationships. We also observe that static testing of target labels offers a preliminary assessment of the effectiveness of similarity sources, \textit{a priori} testing. Our results corroborate the suitability of pretrained models for constructing interpretable, standardized, and scalable adversarial benchmarks across architectures and datasets.

Keywords

Cite

@article{arxiv.2508.11341,
  title  = {Semantically Guided Adversarial Testing of Vision Models Using Language Models},
  author = {Katarzyna Filus and Jorge M. Cruz-Duarte},
  journal= {arXiv preprint arXiv:2508.11341},
  year   = {2025}
}

Comments

12 pages, 4 figures, 3 tables. Submitted for peer review

R2 v1 2026-07-01T04:51:27.424Z