利用低熵先验修复对抗样本,提升未知攻击下的防御能力
Rectifying Adversarial Sample with Low Entropy Prior for Test-Time Defense
- 发现对抗样本普遍具有低熵特性,与正常样本形成对比
- 提出两阶段优化:先反向最大化熵消除对抗性,再正向最小化熵确保正确分类
- 可适配不同攻击强度,显著增强现有测试时防御方法的泛化能力
现有防御方法难以应对未知攻击,导致对抗鲁棒性的泛化问题。本文揭示各类对抗样本中普遍存在被忽视的低熵先验(LE),并据此提出两阶段测试时防御方法REAL:首先通过反向最大化预测熵,修复低熵误分类的对抗样本以消除其对抗性;随后通过正向最小化预测熵,确保修复后样本可被正确分类,形成最大-最小熵优化机制。此外,基于攻击强度与熵降低的相关性,设计攻击感知加权策略自适应调节优化强度。在多个数据集上的实验表明,REAL显著提升了现有样本修复模型的性能。
原文摘要 · Abstract (English)
Existing defense methods fail to defend against unknown attacks and thus raise generalization issue of adversarial robustness. To remedy this problem, we attempt to delve into some underlying common characteristics among various attacks for generality. In this work, we reveal the commonly overlooked low entropy prior (LE) implied in various adversarial samples, and shed light on the universal robustness against unseen attacks in inference phase. LE prior is elaborated as two properties across various attacks as shown in Fig. 1 and Fig. 2: 1) low entropy misclassification for adversarial samples and 2) lower entropy prediction for higher attack intensity. This phenomenon stands in stark contrast to the naturally distributed samples. The LE prior can instruct existing test-time defense methods, thus we propose a two-stage REAL approach: Rectify Adversarial sample based on LE prior for test-time adversarial rectification. Specifically, to align adversarial samples more closely with clean samples, we propose to first rectify adversarial samples misclassified with low entropy by reverse maximizing prediction entropy, thereby eliminating their adversarial nature. To ensure the rectified samples can be correctly classified with low entropy, we carry out secondary rectification by forward minimizing prediction entropy, thus creating a Max-Min entropy optimization scheme. Further, based on the second property, we propose an attack-aware weighting mechanism to adaptively adjust the strengths of Max-Min entropy objectives. Experiments on several datasets show that REAL can greatly improve the performance of existing sample rectification models.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。