arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2407.06315cs.CVcs.LG
收藏

在基于能量的模型视角下进一步揭示鲁棒分类器

Shedding More Light on Robust Classifiers under the lens of Energy-based Models

Sapienza University of Rome(罗马第一大学);Eustema S.p.A.(欧斯特玛股份公司)

Mujtaba Hussain Mirza, Maria Rosaria Briglia, Senad Beadini, Iacopo Masi

AI总结:

该研究从 EBM 视角分析对抗训练的能量动态,解释鲁棒过拟合与 TRADES 机制,并提出 WEAT 样本加权方法,在多个图像基准上提升鲁棒准确率及生成表现。

摘要:

通过将鲁棒判别式分类器重新解释为基于能量的模型(EBM),我们对对抗训练(AT)的动态过程提出了新的看法。我们对 AT 期间能量景观的分析表明,从模型的角度来看,无目标攻击生成的对抗图像比原始数据更接近分布内(能量更低)。相反,我们观察到有目标攻击呈现相反的情况。基于详尽分析,我们给出了新的理论和实践结果,表明解释 AT 能量动态如何促成更好的理解:(1)AT 动态由三个阶段支配,鲁棒过拟合发生在第三阶段,此时自然能量与对抗能量之间出现剧烈分化;(2)通过用能量重写 TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization(TRADES)的损失,我们表明 TRADES 通过对齐自然能量与对抗能量,隐式缓解过拟合;(3)我们通过实验表明,近期所有最先进的鲁棒分类器都在平滑能量景观,并且我们在 EBM 的框架下调和了关于理解 AT 和损失函数加权的多项研究。受严格证据启发,我们提出 Weighted Energy Adversarial Training(WEAT),这是一种新颖的样本加权方案,在 CIFAR-10 和 SVHN 等多个基准上取得与最先进方法相当的鲁棒准确率,并在 CIFAR-100 和 Tiny-ImageNet 上实现超越。我们进一步表明,鲁棒分类器的生成能力在强度和质量上存在差异,并提供了一种简单方法来增强这种能力,在无需为生成建模进行训练的情况下,使用鲁棒分类器达到显著的 Inception Score(IS)和 FID。复现我们结果的代码可在 http://github.com/OmnAI-Lab/Robust-Classifiers-under-the-lens-of-EBM/ 获取。

英文摘要:

By reinterpreting a robust discriminative classifier as Energy-based Model (EBM), we offer a new take on the dynamics of adversarial training (AT). Our analysis of the energy landscape during AT reveals that untargeted attacks generate adversarial images much more in-distribution (lower energy) than the original data from the point of view of the model. Conversely, we observe the opposite for targeted attacks. On the ground of our thorough analysis, we present new theoretical and practical results that show how interpreting AT energy dynamics unlocks a better understanding: (1) AT dynamic is governed by three phases and robust overfitting occurs in the third phase with a drastic divergence between natural and adversarial energies (2) by rewriting the loss of TRadeoff-inspired Adversarial DEfense via Surrogate-loss minimization (TRADES) in terms of energies, we show that TRADES implicitly alleviates overfitting by means of aligning the natural energy with the adversarial one (3) we empirically show that all recent state-of-the-art robust classifiers are smoothing the energy landscape and we reconcile a variety of studies about understanding AT and weighting the loss function under the umbrella of EBMs. Motivated by rigorous evidence, we propose Weighted Energy Adversarial Training (WEAT), a novel sample weighting scheme that yields robust accuracy matching the state-of-the-art on multiple benchmarks such as CIFAR-10 and SVHN and going beyond in CIFAR-100 and Tiny-ImageNet. We further show that robust classifiers vary in the intensity and quality of their generative capabilities, and offer a simple method to push this capability, reaching a remarkable Inception Score (IS) and FID using a robust classifier without training for generative modeling. The code to reproduce our results is available at http://github.com/OmnAI-Lab/Robust-Classifiers-under-the-lens-of-EBM/ .

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

↑