Deep neural networks (DNNs) are vulnerable to backdoor attacks, where adversaries embed a hidden backdoor trigger during the training process for malicious prediction manipulation. These attacks pose great threats to the applications of DNNs under the real-world machine learning as a service (MLaaS) setting, where the deployed model is fully black-box while the users can only query and obtain its predictions. Currently, there are many existing defenses to reduce backdoor threats. However, almost all of them cannot be adopted in MLaaS scenarios since they require getting access to or even modifying the suspicious models. In this paper, we propose a simple yet effective black-box input-level backdoor detection, called SCALE-UP, which requires only the predicted labels to alleviate this problem. Specifically, we identify and filter malicious testing samples by analyzing their prediction consistency during the pixel-wise amplification process. Our defense is motivated by an intriguing observation (dubbed scaled prediction consistency) that the predictions of poisoned samples are significantly more consistent compared to those of benign ones when amplifying all pixel values. Besides, we also provide theoretical foundations to explain this phenomenon. Extensive experiments are conducted on benchmark datasets, verifying the effectiveness and efficiency of our defense and its resistance to potential adaptive attacks. Our codes are available at https://github.com/JunfengGo/SCALE-UP.
翻译:深度神经网络(DNNs)易受后门攻击,攻击者在训练过程中嵌入隐藏的后门触发器以实现恶意预测操纵。这些攻击对现实世界中机器学习即服务(MLaaS)场景下的DNN应用构成巨大威胁,在该场景下部署的模型完全为黑盒,用户仅能查询并获取其预测结果。目前,存在许多防御措施以降低后门威胁,但几乎所有方法均无法应用于MLaaS场景,因其需要访问甚至修改可疑模型。本文提出一种简单而有效的黑盒输入级后门检测方法SCALE-UP,该方法仅需预测标签即可缓解上述问题。具体而言,我们通过分析像素级放大过程中的预测一致性来识别并过滤恶意测试样本。我们的防御基于一个有趣的现象(称为缩放预测一致性):当放大所有像素值时,带毒样本的预测结果显著比良性样本更一致。此外,我们还为该现象提供了理论基础。在基准数据集上进行的大量实验验证了我们防御的有效性与效率,及其对潜在自适应攻击的抵抗能力。我们的代码可在https://github.com/JunfengGo/SCALE-UP获取。