arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2205.07466cs.CVcs.AI
收藏

基于动态特征聚合的鲁棒表示

Robust Representation via Dynamic Feature Aggregation

Shenzhen University(深圳大学);Tencent(腾讯)

Haozhe Liu, Haoqin Ji, Yuexiang Li, Nanjun He, Haoqian Wu, Feng Liu, Linlin Shen, Yefeng Zheng

摘要:

基于深度卷积神经网络(CNN)的模型容易受到对抗攻击的攻击。其中一个可能的原因是基于CNN的模型的嵌入空间是稀疏的,导致用于生成对抗样本的空间很大。在本研究中,我们提出了一种称为动态特征聚合的方法,通过新型正则化来压缩嵌入空间。特别地,两个样本之间的凸组合被视为聚合的枢轴。在嵌入空间中,所选择的样本被引导为类似于枢轴的表示。另一方面,为了减轻这种正则化的平凡解决方案,模型的最后一个全连接层被正交分类器取代,其中不同类别的嵌入代码被正交和单独处理。通过正则化和正交分类器,可以得到更紧凑的嵌入空间,从而提高模型对对抗攻击的鲁棒性。针对各种攻击方法,我们的方法在CIFAR-10上实现了56.91%的平均准确率,这显著超过了37.31%的可靠基线(Mixup)。更令人惊讶的是,实验结果表明,所提出的方法也可以实现最先进的性能外的分布(OOD)检测,由于学习紧凑的特征空间。当采用CIFAR-10作为分布(ID)数据集和LSUN作为OOD数据集时,所提出的方法实现了F1得分为0.937。代码可在https://github.com/HaozheLiu-ST/DynamicFeatureAggregation上获得。

英文摘要:

Deep convolutional neural network (CNN) based models are vulnerable to the adversarial attacks. One of the possible reasons is that the embedding space of CNN based model is sparse, resulting in a large space for the generation of adversarial samples. In this study, we propose a method, denoted as Dynamic Feature Aggregation, to compress the embedding space with a novel regularization. Particularly, the convex combination between two samples are regarded as the pivot for aggregation. In the embedding space, the selected samples are guided to be similar to the representation of the pivot. On the other side, to mitigate the trivial solution of such regularization, the last fully-connected layer of the model is replaced by an orthogonal classifier, in which the embedding codes for different classes are processed orthogonally and separately. With the regularization and orthogonal classifier, a more compact embedding space can be obtained, which accordingly improves the model robustness against adversarial attacks. An averaging accuracy of 56.91% is achieved by our method on CIFAR-10 against various attack methods, which significantly surpasses a solid baseline (Mixup) by a margin of 37.31%. More surprisingly, empirical results show that, the proposed method can also achieve the state-of-the-art performance for out-of-distribution (OOD) detection, due to the learned compact feature space. An F1 score of 0.937 is achieved by the proposed method, when adopting CIFAR-10 as in-distribution (ID) dataset and LSUN as OOD dataset. Code is available at https://github.com/HaozheLiu-ST/DynamicFeatureAggregation.

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

↑