Skip to main content
LLM Security Database
Skip to research details
Back to research findings
LMVD-ID: d2f14376
Paper published February 1, 2026
Entry analyzed March 9, 2026
Paper-reported evidence
Confidence: Source-linked

The LMVD-ID is an internal research identifier, not an official CVE identifier.

Semantic Ensembles Fool CLIP

Contrastive Language-Image Pre-training (CLIP) models are vulnerable to semantic-ensemble adversarial attacks. Current adversarial fine-tuning defenses for CLIP rely on minimizing the cosine similarity between an image…

BibTeX citation

Paper-evaluated models(1)

  • CLIP ViT-B/32

Description

Contrastive Language-Image Pre-training (CLIP) models are vulnerable to semantic-ensemble adversarial attacks. Current adversarial fine-tuning defenses for CLIP rely on minimizing the cosine similarity between an image and a single hand-crafted template (e.g., "A photo of a {label}"). This creates a vulnerability where adversarial examples (AEs) overfit to specific phrasings rather than the core class semantics. Attackers can bypass these defenses by generating semantic-aware adversarial examples that minimize the average similarity between the original image and an ensemble of semantically enriched textual descriptions. This causes models to confidently misclassify inputs when evaluated under textual prompts with richer attributes or contexts.

Examples

An attacker targets an ensemble of diverse, semantically enriched descriptions rather than a standard single template (e.g., "A photo of a dog").

Enriched text prompts used for the attack:

  • "a furry mammal with four legs that barks"
  • "a domesticated canine often kept as a pet"
  • "a loyal animal trained for hunting or companionship"

The attacker generates perturbations by maximizing the average cosine dissimilarity between the perturbed image embedding and the full set of these diverse textual embeddings. Because standard adversarial training only robustifies the image encoder against the single "A photo of a dog" prompt, the model fails to align the perturbed image with the broader semantic concept of a dog.

See the repository for full attack and defense implementation details: https://github.com/tmlr-group/SAFT (opens in a new tab).

Impact

Attackers can craft highly transferable adversarial images that fool zero-shot classifiers and downstream Vision-Language Models. These semantic-aware adversarial examples successfully bypass state-of-the-art adversarial fine-tuning defenses (such as TeCoA, FARE, and PMG-AFT), leading to robust misclassifications and degraded performance in multimodal tasks like image-text retrieval.

Affected Systems

  • CLIP-based dual-encoder models.
  • Large Vision-Language Models (VLMs) relying on pre-trained CLIP image encoders (e.g., LLaVA, Flamingo).
  • Systems defended using single-template template-based adversarial fine-tuning (e.g., TeCoA, FARE, PMG-AFT).

Mitigation Steps

  • Generate Enriched Descriptions: Use a foundation model (LLM/MLLM) to generate an ensemble of diverse, class-specific textual descriptions that capture distinct attributes, contexts, and synonyms for each label.
  • Semantic Filtering (Hallucination-Aware): Mitigate foundation model hallucinations by computing a relevance score (cosine similarity between the generated prompt and the ground-truth label using CLIP's text encoder). Sort and retain only the top-$K$ (e.g., $K=5$) most relevant descriptions.
  • Semantic-aware Adversarial Fine-Tuning (SAFT): Fine-tune the CLIP image encoder via a bi-level optimization objective that aligns adversarially perturbed inputs with the entire filtered semantic ensemble, rather than a single hand-crafted text template.

Research context and confidence

Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
White-box access to model or deployment internals.
Related deployment categories
Vision-language models; Fine-tuning
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
CLIP-based dual-encoder models. Large Vision-Language Models (VLMs) relying on pre-trained CLIP image encoders (e.g., LLaVA, Flamingo). Systems defended using single-template template-based adversarial fine-tuning…

Research Paper

Semantic-aware Adversarial Fine-tuning for CLIP

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2602.12461