Skip to main content
QUICK REVIEW

[논문 리뷰] Robust Contrastive Language-Image Pre-training against Data Poisoning and Backdoor Attacks

Wenhan Yang, Gao, Jingdong|arXiv (Cornell University)|2023. 03. 13.
Adversarial Robustness in Machine LearningComputer Science인용 수 3
한 줄 요약

RoCLIP는 대조적 시각-언어 사전학습 모델의 대상 데이터 풀링 및 백도어 공격에 대한 강건성을 향상시키기 위해 기존의 원본 캡션 대신 큰 무작위 캡션 풀에서 가장 유사한 캡션으로 이미지를 동적으로 매칭하는 새로운 방식의 방어 방법이다. 이 방법은 훈련 초반에 오염된 연관성을 깨뜨려, 풀링 공격의 성공률을 12.5%로 낮추고 백도어 공격의 성공률을 0%로 줄이며, CLIP 대비 선형 프로브 정확도를 최대 10% 향상시킨다.

ABSTRACT

Contrastive vision-language representation learning has achieved state-of-the-art performance for zero-shot classification, by learning from millions of image-caption pairs crawled from the internet. However, the massive data that powers large multimodal models such as CLIP, makes them extremely vulnerable to various types of targeted data poisoning and backdoor attacks. Despite this vulnerability, robust contrastive vision-language pre-training against such attacks has remained unaddressed. In this work, we propose ROCLIP, the first effective method for robust pre-training multimodal vision-language models against targeted data poisoning and backdoor attacks. ROCLIP effectively breaks the association between poisoned image-caption pairs by considering a relatively large and varying pool of random captions, and matching every image with the text that is most similar to it in the pool instead of its own caption, every few epochs.It also leverages image and text augmentations to further strengthen the defense and improve the performance of the model. Our extensive experiments show that ROCLIP renders state-of-the-art targeted data poisoning and backdoor attacks ineffective during pre-training CLIP models. In particular, ROCLIP decreases the success rate for targeted data poisoning attacks from 93.75% to 12.5% and that of backdoor attacks down to 0%, while improving the model's linear probe performance by 10% and maintains a similar zero shot performance compared to CLIP. By increasing the frequency of matching, ROCLIP is able to defend strong attacks, which add up to 1% poisoned examples to the data, and successfully maintain a low attack success rate of 12.5%, while trading off the performance on some tasks.

연구 동기 및 목표

  • 대규모 시각-언어 모델, 예를 들어 CLIP가 사전학습 단계에서 대상 데이터 풀링 및 백도어 공격에 취약한 문제를 해결하기 위해.
  • 이전 방법들이 피지테이닝 단계에서만 작동하는 것과 달리, 사전학습 단계에서 효과적으로 작동하는 방어 메커니즘을 개발하기 위해.
  • 오염된 데이터의 극소수(예: 0.01%)만으로도 공격가능한 공격에 대해 성능을 유지하거나 향상시키기 위해.
  • 큰 규모의 사전학습 데이터셋에 대해 상당한 계산 부담 없이도 적용 가능한 확장성 있고 효율적인 방어를 가능하게 하기 위해.

제안 방법

  • RoCLIP는 사전학습 데이터셋에서 유도된 큰 무작위 캡션 풀을 동적으로 갱신하며, 훈련 중 기존의 원본 캡션을 대체한다.
  • 훈련 중 각 이미지는 원래의 캡션 대신 대비 공간 내 표현 유사도 기반으로 무작위 풀 내에서 가장 유사한 캡션과 매칭된다.
  • 이 동적 캡션 매칭은 오염된 이미지와 악성 캡션 간의 연관성을 사전학습 초기 단계에서 깨뜨려, 오염된 이미지-캡션 쌍이 깨끗한 데이터의 주요 클러스터와 덜 일치하는 시점에 효과를 발휘한다.
  • 이미지 및 텍스트 데이터 증강을 적용하여 추가로 강건성을 강화하고 일반화 능력을 향상시킨다.
  • 이 방어 방법은 몇 에포크마다 주기적으로 적용되어 모델이 더 신뢰할 수 있고 깨끗한 캡션 매칭으로 이미지를 재임bedding할 수 있도록 한다.
  • 이 방어는 가벼운 부담을 지니며, 메모리 오버헤드는 거의 없고 런타임 비용은 주로 증강에 기인한다.
Figure 1 : Illustration of RoCLIP . for defending CLIP during pre-training. (a) RoCLIP keeps a pool of random varying captions. During training, RoCLIP augments all images and captions. Then, it finds the most similar caption $\boldsymbol{z}^{T}_{nn}(i)$ to an augmented image $\mkern 1.5mu\overline{
Figure 1 : Illustration of RoCLIP . for defending CLIP during pre-training. (a) RoCLIP keeps a pool of random varying captions. During training, RoCLIP augments all images and captions. Then, it finds the most similar caption $\boldsymbol{z}^{T}_{nn}(i)$ to an augmented image $\mkern 1.5mu\overline{

실험 결과

연구 질문

  • RQ1피지테이닝 단계에 의존하지 않고, 사전학습 단계에서 오염된 이미지-캡션 연관성을 효과적으로 무너뜨릴 수 있는 방어 기법을 설계할 수 있는가?
  • RQ2무작위 캡션 풀에서의 동적 캡션 매칭이 대조적 시각-언어 모델에서의 데이터 풀링 및 백도어 공격 방어에 얼마나 효과적인가?
  • RQ3높은 오염률(예: 1%)을 가진 공격에 대응할 때, 방어 효과성과 다운스트림 성능 사이의 상충 관계는 어떠한가?
  • RQ4데이터 증강이 캡션 풀 메커니즘과 어떻게 상호작용하여 강건성과 정확도를 모두 향상시키는가?
  • RQ5비슷한 시각적 카테고리(예: 개 vs. 고양이)를 사용하는 적응형 공격에 대해서도 이 방법이 방어할 수 있는가?

주요 결과

  • RoCLIP는 CIFAR-10 데이터셋에서 대상 데이터 풀링 공격의 성공률을 93.75%에서 12.5%로 감소시켰다.
  • 모든 평가된 백도어 공격(Blended, WaNet, 레이블 일관성 트리거 포함)에서 백도어 성공률이 0%로 감소하였다.
  • 데이터 증강을 사용할 경우 CLIP 대비 선형 프로브 정확도가 최대 10% 향상되었으며, CIFAR-10에서는 5%, CIFAR-100에서는 2% 향상되었다.
  • 데이터 증강 없이도 RoCLIP는 CLIP와 유사한 zero-shot 성능을 유지하여 일반화 능력에 대한 최소한의 손실을 보였다.
  • 1%의 오염률 조건에서도 RoCLIP는 풀링 공격의 성공률을 12.5%로 유지하고 백도어 공격의 성공률은 0%로 유지하여 강력한 공격에 대한 내성을 입증하였다.
  • 이 방법은 계산적으로 효율적이며, 거의 없는 메모리 오버헤드와 런타임 비용을 지니고 있어 대규모 사전학습에 확장 가능하다.
Figure 2 : Training with RoCLIP . Majority of clean images are matched with captions from the same category as their original caption during training (blue line), while poisoned images are matched with a caption from a different category than the adversarial label (orange line).
Figure 2 : Training with RoCLIP . Majority of clean images are matched with captions from the same category as their original caption during training (blue line), while poisoned images are matched with a caption from a different category than the adversarial label (orange line).

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.