通过激活放大与衰减提升对抗鲁棒性
Improving Adversarial Robustness via Activation Amplification and Attenuation
AI总结:
提出激活放大与衰减(A3)轻量模块,通过可学习缩放机制动态调整激活值,利用放大信号构建对比损失,在衰减模式下提升对抗鲁棒性,计算开销小。
摘要:
对抗攻击的存在通常归因于神经网络中存在非鲁棒特征。先前的防御通过剪枝、掩码或特征重新校准来降低其影响,而我们则提出通过简单的激活缩放机制联合学习放大和衰减这些信号。为此,我们引入了激活放大与衰减(A3),一个轻量级的即插即用模块,通过最小的激活修改来增强对抗鲁棒性。A3使用可学习掩码和从原始激活幅度导出的缩放因子动态重新缩放激活。通过简单地翻转缩放操作的符号,可以使用相同的可学习参数放大或衰减对抗扰动的影响。放大的信号作为负参考,用于构建新颖的对比和排序损失函数。实验分析表明,在放大模式下学习降低预测性能同时提高了衰减模式下的对抗鲁棒性。此外,A3仅依赖少量可学习参数,其大部分行为由缩放机制而非额外网络容量决定。大量实验表明,将A3集成到不同的骨干网络、数据集和训练方法中,能一致地提升对抗鲁棒性,同时与现有即插即用模块相比,引入的计算和内存开销可忽略不计。代码可在以下网址获取:this https URL。
英文摘要:
The existence of adversarial attacks is often attributed to the presence of non-robust features in neural networks. While prior defenses reduce their impact via pruning, masking, or feature recalibration, we instead propose to jointly learn to amplify and attenuate these signals through a simple activation scaling mechanism. To this end, we introduce Activation Amplification and Attenuation (A3), a lightweight plug-in module that enhances adversarial robustness with minimal modifications of the activations. A3 dynamically rescales the activations using a learnable mask and a scaling factor derived from the original activation magnitudes. The influence of adversarial perturbations can be amplified or attenuated using the same learnable parameters by simply flipping the sign of the scaling operation. The amplified signals serve as negative references to construct novel contrastive and ranking loss functions. Experimental analysis shows that learning to degrade the predictions in amplification mode simultaneously improves adversarial robustness in attenuation mode. Moreover, A3 relies on only a small number of learnable parameters, with most of its behavior being determined by the scaling mechanism rather than additional network capacity. Extensive experiments demonstrate that integrating A3 into different backbones, datasets, and training methods consistently improves adversarial robustness while introducing negligible computational and memory overhead compared to existing plug-in modules. Code is available at: https://github.com/tgoncalv/A3.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。