Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Distilling Cognitive Backdoor Patterns within an Image

About

This paper proposes a simple method to distill and detect backdoor patterns within an image: \emph{Cognitive Distillation} (CD). The idea is to extract the "minimal essence" from an input image responsible for the model's prediction. CD optimizes an input mask to extract a small pattern from the input image that can lead to the same model output (i.e., logits or deep features). The extracted pattern can help understand the cognitive mechanism of a model on clean vs. backdoor images and is thus called a \emph{Cognitive Pattern} (CP). Using CD and the distilled CPs, we uncover an interesting phenomenon of backdoor attacks: despite the various forms and sizes of trigger patterns used by different attacks, the CPs of backdoor samples are all surprisingly and suspiciously small. One thus can leverage the learned mask to detect and remove backdoor examples from poisoned training datasets. We conduct extensive experiments to show that CD can robustly detect a wide range of advanced backdoor attacks. We also show that CD can potentially be applied to help detect potential biases from face datasets. Code is available at \url{https://github.com/HanxunH/CognitiveDistillation}.

Hanxun Huang, Xingjun Ma, Sarah Erfani, James Bailey• 2023

Related benchmarks

TaskDatasetResultRank
Backdoor DetectionCIFAR-10--
120
Backdoor DetectionGTSRB
TPR91.1
39
Backdoor DetectionTiny ImageNet (test)
AUROC0.922
16
Backdoor DetectionTiny-ImageNet
TPR73.4
12
Showing 4 of 4 rows

Other info

Follow for update