arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2303.12848cs.CVcs.LG
收藏

通过掩码自编码器在测试时检测和修复对抗样本

Test-time Detection and Repair of Adversarial Samples via Masked Autoencoder

Columbia University(哥伦比亚大学);GE Research(通用电气研究中心)

Yun-Yun Tsai, Ju-Chin Chao, Albert Wen, Zhaoyuan Yang, Chengzhi Mao, Tapan Shah, Junfeng Yang

AI总结:

本文提出DRAM方法,通过掩码自编码器(MAE)在测试时检测和修复对抗样本,无需调整模型权重,在ImageNet上实现了平均82%的最佳检测率,并显著提升了标准与鲁棒ResNet50的鲁棒准确率。

摘要:

训练时防御(即对抗训练)会产生高昂的训练成本,且无法泛化到未知的攻击。测试时防御解决了这些问题,但大多数现有的测试时防御需要调整模型权重,因此无法用于冻结模型,并使模型内存管理复杂化。唯一不调整模型权重的测试时防御旨在通过自监督任务调整输入。然而,我们通过实验发现,这些自监督任务不够敏感,无法准确检测对抗攻击。在本文中,我们提出了DRAM,一种通过掩码自编码器(MAE)在测试时检测和修复对抗样本的新型防御方法。我们演示了如何使用MAE损失构建Kolmogorov-Smirnov检验来检测对抗样本。此外,我们使用MAE损失计算输入反转向量,以修复由先前未知攻击产生的对抗样本。在大规模ImageNet数据集上的结果表明,与所有评估的检测基线相比,DRAM在所有评估的八种对抗攻击上实现了最佳检测率(平均82%)。对于攻击修复,与使用对比学习和旋转预测的基线相比,DRAM将标准ResNet50的鲁棒准确率提高了6%至41%,将鲁棒ResNet50的鲁棒准确率提高了3%至8%。

英文摘要:

Training-time defenses, known as adversarial training, incur high training costs and do not generalize to unseen attacks. Test-time defenses solve these issues but most existing test-time defenses require adapting the model weights, therefore they do not work on frozen models and complicate model memory management. The only test-time defense that does not adapt model weights aims to adapt the input with self-supervision tasks. However, we empirically found these self-supervision tasks are not sensitive enough to detect adversarial attacks accurately. In this paper, we propose DRAM, a novel defense method to detect and repair adversarial samples at test time via Masked autoencoder (MAE). We demonstrate how to use MAE losses to build a Kolmogorov-Smirnov test to detect adversarial samples. Moreover, we use the MAE losses to calculate input reversal vectors that repair adversarial samples resulting from previously unseen attacks. Results on large-scale ImageNet dataset show that, compared to all detection baselines evaluated, DRAM achieves the best detection rate (82% on average) on all eight adversarial attacks evaluated. For attack repair, DRAM improves the robust accuracy by 6% ~ 41% for standard ResNet50 and 3% ~ 8% for robust ResNet50 compared with the baselines that use contrastive learning and rotation prediction.

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

↑