TrojanZoo: Towards Unified, Holistic, and Practical Evaluation of Neural Backdoors

Ren Pang, Zheng Zhang, Xiangshan Gao, Zhaohan Xi, Shouling Ji +3 more
12/16/2020
cs.LG

Official code: ain-soph/trojanzoo (304 stars, Python, MIT, PyTorch, last commit 2025-08-25).

Abstract

Neural backdoors represent one primary threat to the security of deep learning systems. The intensive research has produced a plethora of backdoor attacks/defenses, resulting in a constant arms race.

Show full abstract

However, due to the lack of evaluation benchmarks, many critical questions remain under-explored: (i) what are the strengths and limitations of different attacks/defenses? (ii) what are the best practices to operate them? and (iii) how can the existing attacks/defenses be further improved? To bridge this gap, we design and implement TROJANZOO, the first open-source platform for evaluating neural backdoor attacks/defenses in a unified, holistic, and practical manner. Thus far, focusing on the computer vision domain, it has incorporated 8 representative attacks, 14 state-of-the-art defenses, 6 attack performance metrics, 10 defense utility metrics, as well as rich tools for in-depth analysis of the attack-defense interactions. Leveraging TROJANZOO, we conduct a systematic study on the existing attacks/defenses, unveiling their complex design spectrum: both manifest intricate trade-offs among multiple desiderata (e.g., the effectiveness, evasiveness, and transferability of attacks). We further explore improving the existing attacks/defenses, leading to a number of interesting findings: (i) one-pixel triggers often suffice; (ii) training from scratch often outperforms perturbing benign models to craft trojan models; (iii) optimizing triggers and trojan models jointly greatly improves both attack effectiveness and evasiveness; (iv) individual defenses can often be evaded by adaptive attacks; and (v) exploiting model interpretability significantly improves defense robustness. We envision that TROJANZOO will serve as a valuable platform to facilitate future research on neural backdoors.

View on arXivView PDF

Code Implementations(1)

ain-soph/trojanzooOfficial100%
PyTorchMIT

TrojanZoo provides a universal pytorch platform to conduct security researches (especially backdoor attacks/defenses) of image classification in deep learning.

30466Python, DockerfileMay 11, 20201 years agoMIT
adversarial-attacksbackdoor-attacksdeep-learningimage-classificationpytorch

Similar Papers

Cite this paper

@article{pang2020trojanzoo,
  title  = {TrojanZoo: Towards Unified, Holistic, and Practical Evaluation of Neural Backdoors},
  author = {Ren Pang and Zheng Zhang and Xiangshan Gao and Zhaohan Xi and Shouling Ji and Peng Cheng and Xiapu Luo and Ting Wang},
  year   = {2020},
  eprint = {2012.09302},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.09302}
}

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/2012.09302.svg)](https://codeofpaper.com/paper/2012.09302)

Discussion