mlsanityData to 14 Oct 2026

CLIPure: Purification in Latent Space via CLIP for Adversarially Robust Zero-Shot Classification

arXiv 2502.18176 ↗First posted 25 Feb 2025cs.CV cs.AIcited by 13

Not on the map. Why?

Abstract (arXiv)

In this paper, we aim to build an adversarially robust zero-shot image classifier. We ground our work on CLIP, a vision-language pre-trained encoder model that can perform zero-shot classification by matching an image with text prompts ``a photo of a <class-name>.''. Purification is the path we choose since it does not require adversarial training on specific attack types and thus can cope with any foreseen attacks. We then formulate purification risk as the KL divergence between the joint distributions of the purification process of denoising the adversarial samples and the attack process of adding perturbations to benign samples, through bidirectional Stochastic Differential Equations (SDEs). The final derived results inspire us to explore purification in the multi-modal latent space of CLIP. We propose two variants for our CLIPure approach: CLIPure-Diff which models the likelihood of images' latent vectors with the DiffusionPrior module in DaLLE-2 (modeling the generation process of CLIP's latent vectors), and CLIPure-Cos which models the likelihood with the cosine similarity between the embeddings of an image and ``a photo of a.''. As far as we know, CLIPure is the first purification method in multi-modal latent space and CLIPure-Cos is the first purification method that is not based on generative models, which substantially improves defense efficiency. We conducted extensive experiments on CIFAR-10, ImageNet, and 13 datasets that previous CLIP-based defense methods used for evaluating zero-shot classification robustness. Results show that CLIPure boosts the SOTA robustness by a large margin, e.g., from 71.7% to 91.1% on CIFAR10, from 59.6% to 72.6% on ImageNet, and 108% relative improvements of average robustness on the 13 datasets over previous SOTA. The code is available at https://github.com/TMLResearchGroup-CAS/CLIPure.

Key facts. Cited by 13 papers in the map (data through 14 Oct 2026). Builds on 51 of its 72 references that are in the map. First posted on arXiv 25 Feb 2025.

Builds on

51 of 72 references.

References · 51

  1. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  2. 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2020Denoising Diffusion Probabilistic Modelscited by 21,076
  5. 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
  6. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  7. 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
  8. 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
  9. 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
  10. 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
  11. 2016Wide Residual Networkscited by 3,070
  12. 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 3,045
38 more
  1. 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,850
  2. 2013Fine-Grained Visual Classification of Aircraftcited by 1,726
  3. 2017EuroSAT: A Novel Dataset and Deep Learning Benchmark for Land Use and Land Cover Classificationcited by 1,496
  4. 2020Reliable evaluation of adversarial robustness with an ensemble of diverse parameter-free attackscited by 1,451
  5. 2021Palette: Image-to-Image Diffusion Modelscited by 1,300
  6. 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,274
  7. 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
  8. 2021Grounded Language-Image Pre-trainingcited by 1,156
  9. 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
  10. 2023EVA-CLIP: Improved Training Techniques for CLIP at Scalecited by 798
  11. 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
  12. 2022Diffusion Models for Adversarial Purificationcited by 476
  13. 2018Rotation Equivariant CNNs for Digital Pathologycited by 422
  14. 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
  15. 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 306
  16. 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
  17. 2023Better Diffusion Models Further Improve Adversarial Trainingcited by 208
  18. 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 204
  19. 2021What Makes Multi-modal Learning Better than Single (Provably)cited by 153
  20. 2023Text-to-Image Diffusion Models are Zero-Shot Classifierscited by 143
  21. 2021Adversarial purification with Score-based generative modelscited by 134
  22. 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
  23. 2022Guided Diffusion Model for Adversarial Purificationcited by 92
  24. 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
  25. 2023Revisiting Adversarial Training for ImageNet: Architectures, Training and Generalization across Threat Modelscited by 79
  26. 2023Robust Classification via a Single Diffusion Modelcited by 79
  27. 2023An Inverse Scaling Law for CLIP Trainingcited by 77
  28. 2020Stochastic Security: Adversarial Defense Using Long-Run Dynamics of Energy-Based Modelscited by 58
  29. 2024Pre-trained Model Guided Fine-Tuning for Zero-Shot Adversarial Robustnesscited by 48
  30. 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
  31. 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)cited by 44
  32. 2024MeanSparse: Post-Training Robustness Enhancement Through Mean-Centered Feature Sparsificationcited by 21
  33. 2023Enhancing Adversarial Robustness via Score-Based Optimizationcited by 19
  34. 2024MixedNUTS: Training-Free Accuracy-Robustness Balance via Nonlinearly Mixed Classifierscited by 16
  35. 2018Defense-VAE: A Fast and Accurate Defense against Adversarial Attackscited by 9
  36. 2023Generating Adversarial Attacks in the Latent Spacecited by 8
  37. 2024Classifier Guidance Enhances Diffusion-based Adversarial Purification by Preserving Predictive Informationcited by 5
  38. 2024CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defensecited by 4

50 most cited of 51 All 51 (JSON)

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2025: 7; 2026: 6.

13 papers.

Sort:

By area:

Similar, not cited

Close in wording, no citation either way

  1. 2024Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Models
  2. 2025Improving Adversarial Robustness of Zero-Shot CLIP with Confidence-Aware Weighting
  3. 2025Navigating the Trade-off: A Synthesis of Defensive Strategies for Zero-Shot Adversarial Robustness in Vision-Language Models
  4. 2026Proxy Robustness in Vision Language Models is Effortlessly Transferable
  5. 2024Toward a Holistic Evaluation of Robustness in CLIP Models
  6. 2026Beyond Standard Benchmarks: A Systematic Audit of Vision-Language Model's Robustness to Natural Semantic Variation Across Diverse Tasks
  7. 2025Erasing CLIP Memories: Non-Destructive, Data-Free Zero-Shot class Unlearning in CLIP Models
  8. 2024Zero-Shot Class Unlearning in CLIP with Synthetic Samples