[论文解读] Improving Back-Propagation by Adding an Adversarial Gradient
本文提出对抗性反向传播(adversarial back-propagation),一种通过使用快速梯度符号法从输入层梯度中提取对抗性梯度来增强标准反向传播的方法。通过在使用该梯度生成的扰动输入上进行训练,模型在对抗性样本上表现出更强的鲁棒性,并实现了更好的泛化性能,使逻辑网络在MNIST上的测试误差从1.60%降低至0.95%,ReLU网络从1.40%降低至0.78%,且无需依赖Dropout或批量归一化。
The back-propagation algorithm is widely used for learning in artificial neural networks. A challenge in machine learning is to create models that generalize to new data samples not seen in the training data. Recently, a common flaw in several machine learning algorithms was discovered: small perturbations added to the input data lead to consistent misclassification of data samples. Samples that easily mislead the model are called adversarial examples. Training a "maxout" network on adversarial examples has shown to decrease this vulnerability, but also increase classification performance. This paper shows that adversarial training has a regularizing effect also in networks with logistic, hyperbolic tangent and rectified linear units. A simple extension to the back-propagation method is proposed, that adds an adversarial gradient to the training. The extension requires an additional forward and backward pass to calculate a modified input sample, or mini batch, used as input for standard back-propagation learning. The first experimental results on MNIST show that the "adversarial back-propagation" method increases the resistance to adversarial examples and boosts the classification performance. The extension reduces the classification error on the permutation invariant MNIST from 1.60% to 0.95% in a logistic network, and from 1.40% to 0.78% in a network with rectified linear units. Results on CIFAR-10 indicate that the method has a regularizing effect similar to dropout in fully connected networks. Based on these promising results, adversarial back-propagation is proposed as a stand-alone regularizing method that should be further investigated.
研究动机与目标
- 探究对抗性训练是否可作为前馈神经网络中独立的正则化方法。
- 评估对抗性梯度注入是否在提升对抗鲁棒性之外,还能改善泛化性能。
- 确定该方法在不同激活函数(逻辑函数、tanh、ReLU)上的有效性。
- 将对抗性反向传播与标准反向传播及Dropout在MNIST和CIFAR-10上的性能进行比较。
- 探索该方法是否通过避免随机正则化技术,降低了对随机数生成器的依赖。
提出的方法
- 该方法通过计算扰动输入 z = x + ϵ·sign(∇xJ) 来引入对抗性梯度,其中 ∇xJ 为输入层损失的梯度。
- 使用扰动输入 z 而非原始输入 x 进行一次额外的前向传播和反向传播,以计算权重更新的梯度。
- 目标函数定义为 F(θ, x, y) = J(θ, x + μ, y),其中 μ = ϵ·sign(∇xJ),使训练过程对输入级梯度敏感。
- 对抗性梯度 ∇G = ∇F − ∇J 确保即使标准损失趋近于零,学习仍能持续进行。
- 该方法在小批量训练循环中实现,MNIST使用固定 ϵ = 0.08,CIFAR-10使用 ϵ = 0.03/0.01,采用交叉熵损失,且不使用早停或权重衰减。
- 该方法作为标准反向传播的简单扩展实现,每个小批量仅需额外一次前向和反向传播。
实验结果
研究问题
- RQ1对抗性梯度注入是否可在无需数据增强或Dropout的情况下,作为前馈网络中有效的正则化器?
- RQ2对抗性反向传播是否在提升MNIST和CIFAR-10泛化性能方面,超越了仅增强对抗鲁棒性的效果?
- RQ3在全连接和卷积架构中,该方法与Dropout和批量归一化的性能相比如何?
- RQ4与Dropout或噪声注入相比,该方法是否降低了对随机数生成器的依赖?
- RQ5对抗性训练对模型平滑性和边际最大化有何影响?
主要发现
- 在包含800个神经元的两层逻辑网络中,对抗性反向传播将置换不变MNIST的测试误差从1.60%降低至0.95%。
- 在ReLU激活的网络中,该方法使误差从1.40%降至0.78%,优于标准反向传播。
- 在CIFAR-10上,对抗性反向传播在全连接网络中表现出与Dropout类似的正则化效果,提升了泛化性能。
- 在CIFAR-10的卷积网络中,该方法的效果在很大程度上依赖于预处理,当与白化结合时效果最佳。
- 在某些设置下(如MNIST上的2x400 ReLU网络),该方法的性能优于仅使用Dropout的训练。
- 该方法除权重初始化和小批量打乱外,无需其他随机性,因此相比Dropout或噪声注入,对随机数生成器的依赖更小。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。