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

DropAttack:一种提高神经网络泛化能力的掩蔽权重对抗训练方法

DropAttack: A Masked Weight Adversarial Training Method to Improve Generalization of Neural Networks

National Cheng Kung University(国立成功大学)

Shiwen Ni, Jiawen Li, Hung-Yu Kao

摘要:

对抗训练已被证明是一种强大的正则化方法,可以提高模型的泛化能力。然而,目前的对抗训练方法只攻击原始输入样本或嵌入向量,其攻击缺乏覆盖性和多样性。为了进一步增强攻击的广度和深度,我们提出了一种新的掩码权重对抗训练方法,称为DropAttack,它通过在不同维度的输入层和隐藏层中故意添加最坏情况的对抗扰动来增强模型的泛化能力,并最大限度地减少每层产生的对抗风险。DropAttack是一种通用技术,可以应用于各种不同结构的神经网络。为了验证该方法的有效性,我们使用了自然语言处理(NLP)和计算机视觉(CV)领域的5个公共数据集进行实验评估。我们将所提出的方法与其他对抗性训练方法和正则化方法进行了比较,我们的方法在所有数据集上都达到了最先进的水平。另外,Dropattack在使用一半训练数据的情况下也能达到与其他标准训练方法相同的性能。理论分析表明,DropAttack可以对模型的某些输入和权重参数进行随机梯度正则化。进一步的可视化实验表明,DropAttack可以将模型的最小风险推到更低、更平坦的损失景观。我们的源代码可在https://github.com/nishiwen1214/DropAttack上公开获取。

英文摘要:

Adversarial training has been proven to be a powerful regularization method to improve the generalization of models. However, current adversarial training methods only attack the original input sample or the embedding vectors, and their attacks lack coverage and diversity. To further enhance the breadth and depth of attack, we propose a novel masked weight adversarial training method called DropAttack, which enhances generalization of model by adding intentionally worst-case adversarial perturbations to both the input and hidden layers in different dimensions and minimize the adversarial risks generated by each layer. DropAttack is a general technique and can be adopt to a wide variety of neural networks with different architectures. To validate the effectiveness of the proposed method, we used five public datasets in the fields of natural language processing (NLP) and computer vision (CV) for experimental evaluating. We compare the proposed method with other adversarial training methods and regularization methods, and our method achieves state-of-the-art on all datasets. In addition, Dropattack can achieve the same performance when it use only a half training data compared to other standard training method. Theoretical analysis reveals that DropAttack can perform gradient regularization at random on some of the input and wight parameters of the model. Further visualization experiments show that DropAttack can push the minimum risk of the model to a lower and flatter loss landscapes. Our source code is publicly available on https://github.com/nishiwen1214/DropAttack.

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

↑