[论文解读] Self-Ensemble Adversarial Training for Improved Robustness
本文提出自集成对抗训练(SEAT),通过在对抗训练过程中对多个历史模型的权重进行平均,提升对抗鲁棒性,仅需一次训练过程和标准交叉熵损失,即在CIFAR-10和CIFAR-100上达到当前最优的鲁棒性表现。
Due to numerous breakthroughs in real-world applications brought by machine intelligence, deep neural networks (DNNs) are widely employed in critical applications. However, predictions of DNNs are easily manipulated with imperceptible adversarial perturbations, which impedes the further deployment of DNNs and may result in profound security and privacy implications. By incorporating adversarial samples into the training data pool, adversarial training is the strongest principled strategy against various adversarial attacks among all sorts of defense methods. Recent works mainly focus on developing new loss functions or regularizers, attempting to find the unique optimal point in the weight space. But none of them taps the potentials of classifiers obtained from standard adversarial training, especially states on the searching trajectory of training. In this work, we are dedicated to the weight states of models through the training process and devise a simple but powerful \emph{Self-Ensemble Adversarial Training} (SEAT) method for yielding a robust classifier by averaging weights of history models. This considerably improves the robustness of the target model against several well known adversarial attacks, even merely utilizing the naive cross-entropy loss to supervise. We also discuss the relationship between the ensemble of predictions from different adversarially trained models and the prediction of weight-ensembled models, as well as provide theoretical and empirical evidence that the proposed self-ensemble method provides a smoother loss landscape and better robustness than both individual models and the ensemble of predictions from different classifiers. We further analyze a subtle but fatal issue in the general settings for the self-ensemble model, which causes the deterioration of the weight-ensembled method in the late phases.
研究动机与目标
- 解决标准对抗训练的局限性,即仅关注寻找单一最优权重点,而未利用中间训练状态。
- 克服传统集成方法计算成本高且冗余的问题,这些方法需要独立训练多个模型。
- 探究沿优化轨迹对模型权重进行集成是否能比基于预测的集成或单个模型带来更好的鲁棒性。
- 识别并解决学习率调度中一个微妙但关键的问题,该问题导致后期自集成模型性能下降。
- 证明权重集成可使损失曲面更平滑,并在多种攻击类型下提升鲁棒性。
提出的方法
- 提出SEAT,一种自集成方法,通过在标准对抗训练过程中收集多个快照,对历史模型权重进行平均。
- 使用指数移动平均(EMA)整合历史模型权重,并引入可配置的初始保护期,以排除训练初期表现较差的模型。
- 采用基于训练轮次或迭代次数的集成策略,以控制模型快照采集的频率。
- 该方法仅需一次端到端的对抗训练过程,无需重新训练多个模型。
- 理论分析表明,与单个模型或基于预测的集成相比,权重集成可使损失曲面更平滑。
- 研究学习率调度对自集成性能的影响,识别出标准策略中存在导致后期性能下降的关键缺陷。
实验结果
研究问题
- RQ1在对抗训练过程中利用中间模型状态,是否能比依赖最终模型权重更有效地提升鲁棒性?
- RQ2与基于预测的集成相比,基于权重的集成在鲁棒性和泛化能力方面表现如何?
- RQ3学习率调度对自集成模型性能有何影响?标准设置中是否存在固有缺陷?
- RQ4仅通过一次对抗训练过程结合权重集成,能否实现与多个独立训练模型相当或更优的鲁棒性?
- RQ5所提出的SEAT方法是否导致更平滑的损失曲面?这与鲁棒性提升有何关联?
主要发现
- SEAT在仅使用标准交叉熵损失的情况下,于CIFAR-10上实现了57.77%的对抗鲁棒准确率(AutoAttack攻击下),优于单个模型和基于预测的集成。
- SEAT与MART和CutMix结合,在CIFAR-10上所有攻击类型下均达到最佳或第二好的鲁棒性,AutoAttack下的鲁棒准确率达到58.01%。
- 基于迭代的集成在自然准确率和鲁棒性退化率方面略优于基于轮次的集成,尽管两者性能几乎相当。
- 较大的初始保护期(c)会导致鲁棒性下降,原因是过早丢弃了过多早期训练状态,证实了保留足够数量历史模型的重要性。
- 理论与实证分析均表明,与单个模型和基于预测的集成相比,SEAT可使损失曲面更平滑,从而提升鲁棒性。
- 识别出学习率调度中一个微妙但关键的问题:标准策略会导致后期自集成模型性能下降,该问题可通过适当的数据增强或重训练策略缓解。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。