Causality-Based Black-Box Backdoor Detection

Mengxuan Hu, Zihan Guan, Zhongliang Zhou, Jielu Zhang, Sheng LiOpenReview 2024 · Submission to ICLR 2024 · Rejected

Abstract

Deep Neural Networks (DNNs) are known to be vulnerable to backdoor attacks, where attackers can inject hidden backdoors during the training stage. These attacks pose a serious threat to downstream users who unintentionally use third-party backdoored models (e.g., HuggingFace, ChatGPT). To mitigate the backdoor attacks, various backdoor detection methods have been proposed, but most of them require additional access to the model's weights or validation sets, which are not always available for third-party models. In this paper, we adopt a recently proposed setting, which aims to build a firewall at the user end to identify the backdoor samples and reject them, where only samples and prediction labels are accessible. To address this challenge, we first provide a novel causality-based perspective for analyzing the heterogeneous prediction behaviors for backdoor and clean samples. Leveraging this established causal insight, we then propose a Causality-based Black-Box Backdoor Detection algorithm, which introduces counterfactual samples as an intervention to distinguish backdoor and clean samples. Extensive experiments on three benchmark datasets validate the effectiveness and efficiency of our method. Our code is available at https://anonymous.4open.science/r/CaBBD-4326/
BibTeX
@misc{hu2024causality,
  author = {Mengxuan Hu and Zihan Guan and Zhongliang Zhou and Jielu Zhang and Sheng Li},
  title = {{Causality-Based Black-Box Backdoor Detection}},
  year = {2024},
  url = {https://openreview.net/forum?id=bCvm9h0FmQ},
  howpublished = {OpenReview},
  note = {Submitted to ICLR 2024},
}

Loading related content...

Figure