Repository logo

Infoscience

  • English
  • French
Log In
Logo EPFL, École polytechnique fédérale de Lausanne

Infoscience

  • English
  • French
Log In
  1. Home
  2. Academic and Research Output
  3. Conferences, Workshops, Symposiums, and Seminars
  4. Robustness in Both Domains: CLIP Needs a Robust Text Encoder
 
conference paper

Robustness in Both Domains: CLIP Needs a Robust Text Encoder

Abad Rocamora, Elias  
•
Schlarmann, Christian
•
Singh, Naman
Show more
December 2025
39th Conference on Neural Information Processing Systems (NeurIPS 2025) [forthcoming publication]
39th Conference on Neural Information Processing Systems (NeurIPS 2025)

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 and models.

  • Files
  • Details
  • Metrics
Loading...
Thumbnail Image
Name

12461_Robustness_in_Both_Domai.pdf

Type

Main Document

Version

Accepted version

Access type

openaccess

License Condition

N/A

Size

21.55 MB

Format

Adobe PDF

Checksum (MD5)

b4fe46fab9caa51475ca19b5fb8b3acb

Logo EPFL, École polytechnique fédérale de Lausanne
  • Contact
  • infoscience@epfl.ch

  • Follow us on Facebook
  • Follow us on Instagram
  • Follow us on LinkedIn
  • Follow us on X
  • Follow us on Youtube
AccessibilityLegal noticePrivacy policyCookie settingsEnd User AgreementGet helpFeedback

Infoscience is a service managed and provided by the Library and IT Services of EPFL. © EPFL, tous droits réservés