arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2611.06082cs.LGcs.CR
收藏

灾难性过拟合是训练损失无法察觉的权重漂移

Catastrophic Overfitting is Weight Drift the Training Loss Cannot See

Southern University of Science and Technology(南方科技大学)

Chao Pan

AI总结:

该研究发现快速对抗训练的灾难性过拟合是训练损失无法察觉的权重漂移,提出将权重重置为指数移动平均的修复方案,消除了灾难性过拟合,在基准数据集上取得了快速方法中最强的AutoAttack准确率。

摘要:

快速对抗训练(FAT)通过用单步攻击替代多步攻击,使鲁棒训练变得经济可行,但它存在灾难性过拟合(CO)问题:训练过程中,网络对多步攻击的鲁棒性会骤降至接近零,而训练所用的单步攻击仍能被有效抵御。我们发现CO是权重的悄然偏移:在整个事件中,网络的干净样本行为悄然改善,从CO发生前的权重到发生后的权重,仅使训练目标发生微小变化,却破坏了大部分鲁棒性。因此训练目标几乎无法察觉这种偏移,无法施加力来纠正它。FAT协议已维护的权重指数移动平均(EMA)不会累积这种漂移,在整个事件中保持鲁棒性。这一发现提出了一个几乎无成本的修复方案:当验证鲁棒性下降时,将权重重置为其EMA。我们在基于耦合的基础方法上构建了该防护机制,该方法设计为其平均值保持在鲁棒区域内。在我们的所有运行中,该训练都消除了CO,且在所有三个基准数据集上,在快速方法中达到了最强的AutoAttack准确率,包括在CIFAR-100上有明显优势,其成本约为多步参考方法的一半。代码可在该https URL获取。

英文摘要:

Fast adversarial training (FAT) makes robust training affordable by replacing the multi-step attack with a single-step one, but it suffers from catastrophic overfitting (CO): partway through training, robustness to multi-step attacks collapses to near zero while the single-step attack used for training keeps being repelled. We show that CO is a quiet escape of the weights. Across the event the network's clean behavior quietly improves, and moving from the weights just before CO to those just after it changes the training objective only marginally while destroying most of the robustness. The training objective is therefore nearly blind to the displacement it causes, so it exerts no force to undo it. The exponential moving average (EMA) of the weights, which FAT protocols already maintain, does not accumulate this drift and stays robust through the entire event. This observation suggests a nearly free fix: when validation robustness drops, reset the weights to their EMA. We build this guard on top of a coupling-based base method designed so that its average stays inside the robust region. The resulting training removes CO in every one of our runs and attains the strongest AutoAttack accuracy among fast methods on all three benchmark datasets, including a clear margin on CIFAR-100, where it also clears the multi-step reference at roughly half its cost. Code is available at https://github.com/fzjcdt/co-weight-drift.

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

↑