The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matrices

Wanlun Ma, Derui Wang, Ruoxi Sun, Minhui Xue, Sheng Wen +1 more
9/23/2022
cs.CRcs.AI

Official code: wanlunsec/Beatrix (28 stars, Python, last commit 2023-02-01).

Abstract

Deep Neural Networks (DNNs) are susceptible to backdoor attacks during training. The model corrupted in this way functions normally, but when triggered by certain patterns in the input, produces a predefined target label.

Show full abstract

Existing defenses usually rely on the assumption of the universal backdoor setting in which poisoned samples share the same uniform trigger. However, recent advanced backdoor attacks show that this assumption is no longer valid in dynamic backdoors where the triggers vary from input to input, thereby defeating the existing defenses. In this work, we propose a novel technique, Beatrix (backdoor detection via Gram matrix). Beatrix utilizes Gram matrix to capture not only the feature correlations but also the appropriately high-order information of the representations. By learning class-conditional statistics from activation patterns of normal samples, Beatrix can identify poisoned samples by capturing the anomalies in activation patterns. To further improve the performance in identifying target labels, Beatrix leverages kernel-based testing without making any prior assumptions on representation distribution. We demonstrate the effectiveness of our method through extensive evaluation and comparison with state-of-the-art defensive techniques. The experimental results show that our approach achieves an F1 score of 91.1% in detecting dynamic backdoors, while the state of the art can only reach 36.9%.

View on arXivView PDF

Code Implementations(1)

wanlunsec/BeatrixOfficial100%
285Python, ShellSep 23, 20223 years ago

Similar Papers

Cite this paper

@article{ma2022beatrix,
  title  = {The "Beatrix'' Resurrections: Robust Backdoor Detection via Gram Matrices},
  author = {Wanlun Ma and Derui Wang and Ruoxi Sun and Minhui Xue and Sheng Wen and Yang Xiang},
  year   = {2022},
  eprint = {2209.11715},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.11715}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.11715.svg)](https://codeofpaper.com/paper/2209.11715)

Discussion