[Paper Review] Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Models
The paper introduces FARE, an unsupervised adversarial fine-tuning method for the CLIP vision encoder that preserves original embeddings while improving robustness, enabling robust downstream VLMs without retraining.
Multi-modal foundation models like OpenFlamingo, LLaVA, and GPT-4 are increasingly used for various real-world tasks. Prior work has shown that these models are highly vulnerable to adversarial attacks on the vision modality. These attacks can be leveraged to spread fake information or defraud users, and thus pose a significant risk, which makes the robustness of large multi-modal foundation models a pressing problem. The CLIP model, or one of its variants, is used as a frozen vision encoder in many large vision-language models (LVLMs), e.g. LLaVA and OpenFlamingo. We propose an unsupervised adversarial fine-tuning scheme to obtain a robust CLIP vision encoder, which yields robustness on all vision down-stream tasks (LVLMs, zero-shot classification) that rely on CLIP. In particular, we show that stealth-attacks on users of LVLMs by a malicious third party providing manipulated images are no longer possible once one replaces the original CLIP model with our robust one. No retraining or fine-tuning of the down-stream LVLMs is required. The code and robust models are available at https://github.com/chs20/RobustVLM
Motivation & Objective
- Address the vulnerability of vision encoders in multi-modal foundation models to adversarial attacks.
- Develop an unsupervised fine-tuning scheme that yields robust CLIP embeddings while preserving clean task performance.
- Ensure robustness transfers to downstream vision-language models (VLMs) without retraining their components.
- Compare unsupervised FARE with existing supervised methods and demonstrate improved overall robustness.
Proposed method
- Formulate an embedding-based adversarial fine-tuning objective that preserves original CLIP embeddings on clean inputs.
- Define the FARE loss as the maximized squared distance between the fine-tuned embedding of perturbed images and the original CLIP embedding of clean images.
- Solving the inner maximization with PGD to generate adversarial perturbations during fine-tuning.
- Show that minimizing the embedding discrepancy also preserves cosine similarities used by downstream tasks.
- Replace the original CLIP vision encoder with the robust FARE-CLIP in existing VLMs without retraining their language or integration components.

Experimental results
Research questions
- RQ1Can an unsupervised adversarial fine-tuning objective for CLIP’s image encoder produce robust embeddings without degrading clean downstream performance?
- RQ2Does retaining the original embedding behavior while adding robustness enable seamless substitution of CLIP encoders in vision-language models like OpenFlamingo and LLaVA?
- RQ3How does FARE compare to supervised adversarial fine-tuning (TeCoA) in terms of clean accuracy and robustness across zero-shot classification and VLM tasks?
Key findings
- FARE maintains close alignment to the original CLIP embeddings on clean data, enabling plug-and-play replacement in VLMs without re-training.
- Robustness gains are achieved against l_infinity adversarial perturbations across multiple downstream tasks and VLMs.
- FARE outperforms the supervised TeCoA approach on several zero-shot and VLM evaluation tasks, while preserving clean performance.
- Substituting robust CLIP encoders in VLMs reduces transferability of adversarial images between models and lowers targeted attack success rates.
- FARE also shows favorable outcomes on additional tasks such as hallucination and reasoning benchmarks, compared to TeCoA.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.