arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.17509cs.CL
收藏

极端误校准与对抗鲁棒性的错觉

Extreme Miscalibration and the Illusion of Adversarial Robustness

Amazon(亚马逊公司);Ecole Polytechnique Federale de Lausanne(洛桑联邦理工学院);University of Cambridge(剑桥大学)

Vyas Raina, Samson Tan, Volkan Cevher, Aditya Rawal, Sheng Zha, George Karypis

AI总结:

本文揭示了误校准模型会掩盖梯度从而造成对抗鲁棒性提升的错觉(IOR),指出通过测试时温度校准可消除此干扰以找到对抗样本,并建议将其纳入鲁棒性评估,同时提出训练时缩放温度以增强真实鲁棒性。

摘要:

基于深度学习的自然语言处理(NLP)模型容易受到对抗攻击,微小的扰动即可导致模型误分类。对抗训练(AT)通常被用于增强模型鲁棒性。然而,我们发现了一个有趣的现象:故意或意外地误校准模型会以干扰对抗攻击搜索方法的方式掩盖梯度,从而导致鲁棒性明显增加。我们证明这种观察到的鲁棒性增益是一种鲁棒性错觉(IOR),并展示了对手如何执行各种形式的测试时温度校准来消除上述干扰,从而使对抗攻击能够找到对抗样本。因此,我们敦促NLP社区将测试时温度缩放纳入其鲁棒性评估中,以确保观察到的任何增益都是真实的。最后,我们展示了如何在训练期间缩放温度以提升真实的鲁棒性。

英文摘要:

Deep learning-based Natural Language Processing (NLP) models are vulnerable to adversarial attacks, where small perturbations can cause a model to misclassify. Adversarial Training (AT) is often used to increase model robustness. However, we have discovered an intriguing phenomenon: deliberately or accidentally miscalibrating models masks gradients in a way that interferes with adversarial attack search methods, giving rise to an apparent increase in robustness. We show that this observed gain in robustness is an illusion of robustness (IOR), and demonstrate how an adversary can perform various forms of test-time temperature calibration to nullify the aforementioned interference and allow the adversarial attack to find adversarial examples. Hence, we urge the NLP community to incorporate test-time temperature scaling into their robustness evaluations to ensure that any observed gains are genuine. Finally, we show how the temperature can be scaled during \textit{training} to improve genuine robustness.

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

↑