arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.15564cs.LGcs.CV
收藏

掩码与恢复:基于掩码自编码器的测试时盲后门防御

Mask and Restore: Blind Backdoor Defense at Test Time with Masked Autoencoder

Department of Computer Science, Stony Brook University(计算机科学系,石英布鲁克大学)

Tao Sun, Lu Pang, Weimin Lyu, Chao Chen, Haibin Ling

AI总结:

本文提出BDMAE方法,利用掩码自编码器的重建能力,在测试时无需访问模型参数和验证数据即可检测并净化图像中的局部后门触发器,实现黑盒场景下的盲后门防御。

摘要:

深度神经网络容易受到后门攻击,攻击者通过将特殊触发器叠加到图像上来操纵模型行为。现有的后门防御方法通常需要访问少量验证数据和模型参数,这在许多实际应用中并不现实,例如当模型以云服务形式提供时。本文针对测试时的盲后门防御这一实际任务展开研究,尤其面向局部攻击和黑盒模型。无论测试图像是否良性,都需要从一个可疑模型中即时恢复每张测试图像的真实标签。我们考虑测试时图像净化,使局部触发器失效,同时保持语义内容完整。由于触发器模式和尺寸多种多样,启发式触发器搜索可能难以扩展。我们借助生成模型强大的重建能力绕开这一障碍,提出基于掩码自编码器的盲防御方法(BDMAE)。BDMAE利用测试图像与MAE重建结果之间的图像结构相似性和标签一致性来检测可能的局部触发器。随后通过考虑触发器拓扑对检测结果进行细化。最后,我们将MAE重建结果自适应地融合成净化图像以进行预测。在不同后门设置下的大量实验验证了该方法的有效性和泛化能力。

英文摘要:

Deep neural networks are vulnerable to backdoor attacks, where an adversary manipulates the model behavior through overlaying images with special triggers. Existing backdoor defense methods often require accessing a few validation data and model parameters, which is impractical in many real-world applications, e.g., when the model is provided as a cloud service. In this paper, we address the practical task of blind backdoor defense at test time, in particular for local attacks and black-box models. The true label of every test image needs to be recovered on the fly from a suspicious model regardless of image benignity. We consider test-time image purification that incapacitates local triggers while keeping semantic contents intact. Due to diverse trigger patterns and sizes, the heuristic trigger search can be unscalable. We circumvent such barrier by leveraging the strong reconstruction power of generative models, and propose Blind Defense with Masked AutoEncoder (BDMAE). BDMAE detects possible local triggers using image structural similarity and label consistency between the test image and MAE restorations. The detection results are then refined by considering trigger topology. Finally, we fuse MAE restorations adaptively into a purified image for making prediction. Extensive experiments under different backdoor settings validate its effectiveness and generalizability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑