CLIPure: Purification in Latent Space via CLIP for Adversarially Robust Zero-Shot Classification
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
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,744
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2020Denoising Diffusion Probabilistic Modelscited by 21,076
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2020Score-Based Generative Modeling through Stochastic Differential Equationscited by 9,122
- 2021Diffusion Models Beat GANs on Image Synthesiscited by 8,255
- 2022Hierarchical Text-Conditional Image Generation with CLIP Latentscited by 6,585
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,415
- 2016Wide Residual Networkscited by 3,070
- 2022Elucidating the Design Space of Diffusion-Based Generative Modelscited by 3,045
38 more
- 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
- 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
- 2021Palette: Image-to-Image Diffusion Modelscited by 1,300
- 2022CoCa: Contrastive Captioners are Image-Text Foundation Modelscited by 1,274
- 2018Obfuscated Gradients Give a False Sense of Security: Circumventing Defenses to Adversarial Examplescited by 1,268
- 2021Grounded Language-Image Pre-trainingcited by 1,156
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,013
- 2023EVA-CLIP: Improved Training Techniques for CLIP at Scalecited by 798
- 2019Square Attack: a query-efficient black-box adversarial attack via random searchcited by 685
- 2022Diffusion Models for Adversarial Purificationcited by 476
- 2018Rotation Equivariant CNNs for Digital Pathologycited by 422
- 2018Defense-GAN: Protecting Classifiers Against Adversarial Attacks Using Generative Modelscited by 362
- 2023Your Diffusion Model is Secretly a Zero-Shot Classifiercited by 306
- 2017PixelDefend: Leveraging Generative Models to Understand and Defend against Adversarial Examplescited by 244
- 2023Better Diffusion Models Further Improve Adversarial Trainingcited by 208
- 2021Fixing Data Augmentation to Improve Adversarial Robustnesscited by 204
- 2021What Makes Multi-modal Learning Better than Single (Provably)cited by 153
- 2023Text-to-Image Diffusion Models are Zero-Shot Classifierscited by 143
- 2021Adversarial purification with Score-based generative modelscited by 134
- 2022Understanding Zero-Shot Adversarial Robustness for Large-Scale Modelscited by 117
- 2022Guided Diffusion Model for Adversarial Purificationcited by 92
- 2023A Comprehensive Study on Robustness of Image Classification Models: Benchmarking and Rethinkingcited by 85
- 2023Revisiting Adversarial Training for ImageNet: Architectures, Training and Generalization across Threat Modelscited by 79
- 2023Robust Classification via a Single Diffusion Modelcited by 79
- 2023An Inverse Scaling Law for CLIP Trainingcited by 77
- 2020Stochastic Security: Adversarial Defense Using Long-Run Dynamics of Energy-Based Modelscited by 58
- 2024Pre-trained Model Guided Fine-Tuning for Zero-Shot Adversarial Robustnesscited by 48
- 2024One Prompt Word is Enough to Boost Adversarial Robustness for Pre-trained Vision-Language Modelscited by 48
- 2024A Closer Look at the Robustness of Contrastive Language-Image Pre-Training (CLIP)cited by 44
- 2024MeanSparse: Post-Training Robustness Enhancement Through Mean-Centered Feature Sparsificationcited by 21
- 2023Enhancing Adversarial Robustness via Score-Based Optimizationcited by 19
- 2024MixedNUTS: Training-Free Accuracy-Robustness Balance via Nonlinearly Mixed Classifierscited by 16
- 2018Defense-VAE: A Fast and Accurate Defense against Adversarial Attackscited by 9
- 2023Generating Adversarial Attacks in the Latent Spacecited by 8
- 2024Classifier Guidance Enhances Diffusion-based Adversarial Purification by Preserving Predictive Informationcited by 5
- 2024CausalDiff: Causality-Inspired Disentanglement via Diffusion Model for Adversarial Defensecited by 4
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2025: 7; 2026: 6.
13 papers.
Sort:
By area:
- 2025Diffusion-based Cumulative Adversarial Purification for Vision Language Modelscited by 2
- 2026Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIPcited by 2
- 2025Demystifying Adversarial Robustness in Diffusion Models: Compression, Randomness, and Geometrycited by 1
- 2025MANI-Pure: Magnitude-Adaptive Noise Injection for Adversarial Purificationcited by 1
- 2025ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIPcited by 1
- 2025Calibrating Uncertainty for Zero-Shot Adversarial CLIPcited by 1
- 2026Adversarial Defense in Vision-Language Models: An Overviewcited by 1
- 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Modelscited by 1
- 2025Adversarial Attacks in Multimodal Systems: A Practitioner's Surveycited by 0
- 2025Vulnerability-Aware Robust Multimodal Adversarial Trainingcited by 0
- 2026What Makes VLMs Robust? Towards Reconciling Robustness and Accuracy in Vision-Language Modelscited by 0
- 2026TARO: Temporal Adversarial Rectification Optimization Using Diffusion Models as Purifierscited by 0
- 2026From Transformation to Target State: Rethinking Query Representation for Zero-Shot Composed Image Retrieval5 Oct 2026
- 2026TARO: Temporal Adversarial Rectification Optimization Using Diffusion Models as Purifiers8 May 2026
- 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Models13 Apr 2026
- 2026What Makes VLMs Robust? Towards Reconciling Robustness and Accuracy in Vision-Language Models13 Mar 2026
- 2026Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIP27 Jan 2026
- 2026Adversarial Defense in Vision-Language Models: An Overview18 Jan 2026
- 2025Calibrating Uncertainty for Zero-Shot Adversarial CLIP15 Dec 2025
- 2025Vulnerability-Aware Robust Multimodal Adversarial Training22 Nov 2025
- 2025ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIP21 Nov 2025
- 2025MANI-Pure: Magnitude-Adaptive Noise Injection for Adversarial Purification29 Sep 2025
- 2025Diffusion-based Cumulative Adversarial Purification for Vision Language Models4 Jun 2025
- 2025Demystifying Adversarial Robustness in Diffusion Models: Compression, Randomness, and Geometry28 May 2025
1 more
- 2025Diffusion-based Cumulative Adversarial Purification for Vision Language Modelscited by 2
- 2026Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIPcited by 2
- 2026Adversarial Defense in Vision-Language Models: An Overviewcited by 1
- 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Modelscited by 1
- 2026What Makes VLMs Robust? Towards Reconciling Robustness and Accuracy in Vision-Language Modelscited by 0
- 2026Finetune Like You Pretrain: Boosting Zero-shot Adversarial Robustness in Vision-language Models13 Apr 2026
- 2026What Makes VLMs Robust? Towards Reconciling Robustness and Accuracy in Vision-Language Models13 Mar 2026
- 2026Contrastive Spectral Rectification: Test-Time Defense towards Zero-shot Adversarial Robustness of CLIP27 Jan 2026
- 2026Adversarial Defense in Vision-Language Models: An Overview18 Jan 2026
- 2025Diffusion-based Cumulative Adversarial Purification for Vision Language Models4 Jun 2025
- 2026TARO: Temporal Adversarial Rectification Optimization Using Diffusion Models as Purifiers8 May 2026
- 2025MANI-Pure: Magnitude-Adaptive Noise Injection for Adversarial Purification29 Sep 2025
- 2025Demystifying Adversarial Robustness in Diffusion Models: Compression, Randomness, and Geometry28 May 2025
- 2025ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIPcited by 1
- 2025Calibrating Uncertainty for Zero-Shot Adversarial CLIPcited by 1
- 2025Adversarial Attacks in Multimodal Systems: A Practitioner's Surveycited by 0
- 2025Vulnerability-Aware Robust Multimodal Adversarial Trainingcited by 0
- 2025Calibrating Uncertainty for Zero-Shot Adversarial CLIP15 Dec 2025
- 2025Vulnerability-Aware Robust Multimodal Adversarial Training22 Nov 2025
- 2025ATAC: Augmentation-Based Test-Time Adversarial Correction for CLIP21 Nov 2025
- 2025Adversarial Attacks in Multimodal Systems: A Practitioner's Survey6 May 2025
Similar, not cited
Close in wording, no citation either way
- 2024Robust CLIP: Unsupervised Adversarial Fine-Tuning of Vision Embeddings for Robust Large Vision-Language Models
- 2025Improving Adversarial Robustness of Zero-Shot CLIP with Confidence-Aware Weighting
- 2025Navigating the Trade-off: A Synthesis of Defensive Strategies for Zero-Shot Adversarial Robustness in Vision-Language Models
- 2026Proxy Robustness in Vision Language Models is Effortlessly Transferable
- 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
- 2025Erasing CLIP Memories: Non-Destructive, Data-Free Zero-Shot class Unlearning in CLIP Models
- 2024Zero-Shot Class Unlearning in CLIP with Synthetic Samples