Robustness in Both Domains: CLIP Needs a Robust Text Encoder
Not on the map. Why?
Abstract (arXiv)
Adversarial input attacks can cause a significant shift of CLIP embeddings. This can affect the downstream robustness of models incorporating CLIP in the pipeline, such as text-to-image generative models or large vision language models. While some efforts have been done towards making the CLIP image encoders robust, the robustness of text encoders remains unexplored. In this work, we cover this gap in the literature. We propose LEAF: an efficient adversarial finetuning method for the text domain, with the ability to scale to large CLIP models. Our models significantly improve the zero-shot adversarial accuracy in the text domain, while maintaining the vision performance provided by robust image encoders. When combined with text-to-image diffusion models, we can improve the generation quality under adversarial noise. In multimodal retrieval tasks, LEAF improves the recall under adversarial noise over standard CLIP models. Finally, we show that robust text encoders facilitate better reconstruction of input text from its embedding via direct optimization. We open-source our code ( https://github.com/LIONS-EPFL/LEAF ) and models ( https://huggingface.co/LEAF-CLIP ).
Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Builds on 72 of its 100 references that are in the map. First posted on arXiv 3 Jun 2025.
Builds on
72 of 100 references.
References · 72
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,297
- 2023Visual Instruction Tuningcited by 7,869
- 2014Explaining and Harnessing Adversarial Examplescited by 7,364
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2013Intriguing properties of neural networkscited by 5,155
- 2022Flamingo: a Visual Language Model for Few-Shot Learningcited by 4,386
- 2023SDXL: Improving Latent Diffusion Models for High-Resolution Image Synthesiscited by 4,356
38 more
- 2021Zero-Shot Text-to-Image Generationcited by 4,288
- 2022LAION-5B: An open large-scale dataset for training next generation image-text modelscited by 4,152
- 2023Universal and Transferable Adversarial Attacks on Aligned Language Modelscited by 3,104
- 2022Scaling Instruction-Finetuned Language Modelscited by 3,024
- 2015Character-level Convolutional Networks for Text Classificationcited by 2,330
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
- 2013Fine-Grained Visual Classification of Aircraftcited by 1,726
- 2019Theoretically Principled Trade-off between Robustness and Accuracycited by 1,517
- 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,496
- 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2018Robustness May Be at Odds with Accuracycited by 880
- 2020Fast is better than free: Revisiting adversarial trainingcited by 727
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 671
- 2020RobustBench: a standardized adversarial robustness benchmarkcited by 661
- 2023DataComp: In search of the next generation of multimodal datasetscited by 644
- 2022When and why vision-language models behave like bags-of-words, and what to do about it?cited by 610
- 2020BERT-ATTACK: Adversarial Attack Against BERT Using BERTcited by 491
- 2019A Large-scale Study of Representation Learning with the Visual Task Adaptation Benchmarkcited by 425
- 2018Generating Natural Language Adversarial Examplescited by 424
- 2018Rotation Equivariant CNNs for Digital Pathologycited by 422
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 381
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 345
- 2023Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discoverycited by 336
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2017Synthetic and Natural Noise Both Break Neural Machine Translationcited by 306
- 2016Adversarial Training Methods for Semi-Supervised Text Classificationcited by 280
- 2019FreeLB: Enhanced Adversarial Training for Natural Language Understandingcited by 264
- 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
- 2021Improving Robustness using Generated Datacited by 234
- 2021CLIP2Video: Mastering Video-Text Retrieval via Image CLIPcited by 225
- 2023Better Diffusion Models Further Improve Adversarial Trainingcited by 208
- 2021Data Augmentation Can Improve Robustnesscited by 194
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 192
- 2019Combating Adversarial Misspellings with Robust Word Recognitioncited by 163
- 2023On the Adversarial Robustness of Multi-Modal Foundation Modelscited by 145
- 2022Towards Adversarial Attack on Vision-Language Pre-training Modelscited by 144
- 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
50 most cited of 72 All 72 (JSON)
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2024Revisiting the Adversarial Robustness of Vision Language Models: a Multimodal Perspective
- 2026Investigating Adversarial Robustness of Multi-modal Large Language Models
- 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Models
- 2025Bridging the Task Gap: Multi-Task Adversarial Transferability in CLIP and Its Derivatives
- 2024Adversarial Robustification via Text-to-Image Diffusion Models
- 2025Quality Text, Robust Vision: The Role of Language in Enhancing Visual Robustness of Vision-Language Models
- 2024Toward a Holistic Evaluation of Robustness in CLIP Models
- 2026Beyond Standard Benchmarks: A Systematic Audit of Vision-Language Model's Robustness to Natural Semantic Variation Across Diverse Tasks