[论文解读] Revisiting and Advancing Fast Adversarial Training Through The Lens of Bi-Level Optimization
本文提出 Fast-BAT,一种基于双层优化(BLO)的新型快速对抗训练方法,相较于 Fast-AT,无需依赖梯度符号方法或显式正则化,显著提升了鲁棒性和稳定性。通过将对抗训练建模为 BLO 问题并利用隐式梯度计算,Fast-BAT 在 CIFAR-10、CIFAR-100 和 Tiny-ImageNet 上实现了最先进水平的鲁棒准确率,同时具备更快的收敛速度和更低的灾难性过拟合风险。
Adversarial training (AT) is a widely recognized defense mechanism to gain the robustness of deep neural networks against adversarial attacks. It is built on min-max optimization (MMO), where the minimizer (i.e., defender) seeks a robust model to minimize the worst-case training loss in the presence of adversarial examples crafted by the maximizer (i.e., attacker). However, the conventional MMO method makes AT hard to scale. Thus, Fast-AT (Wong et al., 2020) and other recent algorithms attempt to simplify MMO by replacing its maximization step with the single gradient sign-based attack generation step. Although easy to implement, Fast-AT lacks theoretical guarantees, and its empirical performance is unsatisfactory due to the issue of robust catastrophic overfitting when training with strong adversaries. In this paper, we advance Fast-AT from the fresh perspective of bi-level optimization (BLO). We first show that the commonly-used Fast-AT is equivalent to using a stochastic gradient algorithm to solve a linearized BLO problem involving a sign operation. However, the discrete nature of the sign operation makes it difficult to understand the algorithm performance. Inspired by BLO, we design and analyze a new set of robust training algorithms termed Fast Bi-level AT (Fast-BAT), which effectively defends sign-based projected gradient descent (PGD) attacks without using any gradient sign method or explicit robust regularization. In practice, we show our method yields substantial robustness improvements over baselines across multiple models and datasets. Codes are available at https://github.com/OPTML-Group/Fast-BAT.
研究动机与目标
- 解决 Fast-AT 这一流行快速对抗训练方法中存在的不稳定性和灾难性过拟合问题。
- 通过双层优化(BLO)的视角重新构想快速对抗训练,以提供理论基础并实现算法改进。
- 开发一种方法,在不使用显式梯度对齐正则化的情况下,提升对 PGD 和 AutoAttack 的鲁棒性。
- 证明在 BLO 框架中,隐式梯度计算可自然实现梯度对齐并平坦化损失曲面,从而缓解过拟合。
- 在保持计算效率的同时,于多个数据集上实现最先进水平的鲁棒准确率。
提出的方法
- 将 Fast-AT 重新表述为一种带下层目标中符号运算的线性化双层优化(BLO)问题。
- 提出 Fast-BAT 作为新的鲁棒训练框架,通过隐式梯度下降求解 BLO 问题,避免显式计算梯度符号。
- 采用无海森矩阵的隐式梯度计算,以在保持性能的同时降低计算开销。
- 利用 BLO 问题的结构,隐式促进梯度对齐并平坦化损失曲面,从而减少过拟合。
- 设计一种训练算法,通过基于 BLO 的优化动态适应对抗扰动,无需依赖学习率循环等启发式方法。
- 实现一个稳定且高效的训练循环,在极少超参数调优的情况下实现高鲁棒性。
实验结果
研究问题
- RQ1双层优化能否提供一个理论基础框架,以提升快速对抗训练的稳定性和鲁棒性?
- RQ2在 BLO 框架中,隐式梯度计算是否能自然导致梯度对齐并减少灾难性过拟合?
- RQ3Fast-BAT 与 Fast-AT 和 Fast-AT-GA 相比,在鲁棒准确率、训练稳定性和计算效率方面表现如何?
- RQ4在隐式梯度计算中,无海森矩阵假设在实际对抗训练中是否成立且高效?
- RQ5Fast-BAT 是否能在不产生梯度混淆的情况下,对自适应攻击和迁移攻击表现出良好泛化能力?
主要发现
- 在 CIFAR-10 上,Fast-BAT 在 ε=8/255 的 PGD-50-10 攻击下实现 48.83% 的鲁棒准确率(使用 PreActResNet-18),优于 Fast-AT(45.49%)和 Fast-AT-GA(47.27%)。
- 在 Tiny-ImageNet 上,Fast-BAT 在 ε=16/255 下实现 33.78% 的鲁棒准确率,显著优于 Fast-AT(31.38%)和 Fast-AT-GA(29.17%)。
- Fast-BAT 在整个训练过程中保持了较高的梯度对齐(GA)分数,与使用显式正则化的 Fast-AT-GA 相当。
- 该方法有效减少了灾难性过拟合,表现为更平坦的对抗损失曲面,且在多个随机种子下表现一致。
- Hessian 感知的 Fast-BAT 仅比无海森矩阵的 Fast-BAT 提升 0.3% 的鲁棒准确率,但训练时间增加 30%,验证了无海森矩阵假设的有效性。
- Fast-BAT 在自适应攻击(PGD)和迁移攻击中均持续优于基线模型,且未出现梯度混淆迹象,证实了其真正的鲁棒性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。