CVAICRLGMar 6, 2023

CleanCLIP: Mitigating Data Poisoning Attacks in Multimodal Contrastive Learning

arXiv:2303.03323v380 citationsh-index: 64Has Code
AI Analysis

This addresses a security problem for users of multimodal AI models, offering a defense against data poisoning attacks, though it is incremental as it builds on existing finetuning methods.

The paper tackles the vulnerability of multimodal contrastive learning models like CLIP to backdoor attacks, where poisoned data introduces spurious correlations, and proposes CleanCLIP, a finetuning framework that significantly reduces attack impact while maintaining performance on benign examples.

Multimodal contrastive pretraining has been used to train multimodal representation models, such as CLIP, on large amounts of paired image-text data. However, previous studies have revealed that such models are vulnerable to backdoor attacks. Specifically, when trained on backdoored examples, CLIP learns spurious correlations between the embedded backdoor trigger and the target label, aligning their representations in the joint embedding space. Injecting even a small number of poisoned examples, such as 75 examples in 3 million pretraining data, can significantly manipulate the model's behavior, making it difficult to detect or unlearn such correlations. To address this issue, we propose CleanCLIP, a finetuning framework that weakens the learned spurious associations introduced by backdoor attacks by independently re-aligning the representations for individual modalities. We demonstrate that unsupervised finetuning using a combination of multimodal contrastive and unimodal self-supervised objectives for individual modalities can significantly reduce the impact of the backdoor attack. Additionally, we show that supervised finetuning on task-specific labeled image data removes the backdoor trigger from the CLIP vision encoder. We show empirically that CleanCLIP maintains model performance on benign examples while erasing a range of backdoor attacks on multimodal contrastive learning. The code and checkpoints are available at https://github.com/nishadsinghi/CleanCLIP.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes