arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.14033cs.LGmath.OC
收藏

基于凸优化的两层多项式与ReLU激活网络对抗训练

Adversarial Training of Two-Layer Polynomial and ReLU Activation Networks via Convex Optimization

Stanford University(斯坦福大学);Google(谷歌)

Daniel Kuelbs, Sanjay Lall, Mert Pilanci

AI总结:

本文提出一种用于两层多项式激活网络对抗训练的凸半定规划方法,并实现兼容GPU的可扩展训练方案,在CIFAR-10上重训练ResNet-18最后两层,显著提升了对抗鲁棒性。

摘要:

训练对对抗攻击具有鲁棒性的神经网络仍然是深度学习中的一个重要问题,特别是在安全关键场景中采用高度过参数化模型时。借鉴近期将两层ReLU和多项式激活网络的训练问题重新表述为凸规划的研究,我们设计了一种用于两层多项式激活网络对抗训练的凸半定规划(SDP),并证明该凸SDP能实现与其非凸对应问题相同的全局最优解。在多个数据集上观察到,相较于原始的凸训练公式,该凸SDP提高了针对$\ell_\infty$攻击的鲁棒测试准确率。此外,我们提出了适用于两层多项式和ReLU网络的对抗训练可扩展实现,这些实现与标准机器学习库和GPU加速兼容。利用这些实现,我们在CIFAR-10数据集上分别使用多项式和ReLU激活方式,重新训练了Pre-Activation ResNet-18模型的最后两个全连接层。这两个“鲁棒化”模型在应对$\ell_\infty$攻击时,其鲁棒测试准确率显著高于使用锐度感知最小化训练的Pre-Activation ResNet-18模型,证明了凸对抗训练在大规模问题上的实用价值。

英文摘要:

Training neural networks which are robust to adversarial attacks remains an important problem in deep learning, especially as heavily overparameterized models are adopted in safety-critical settings. Drawing from recent work which reformulates the training problems for two-layer ReLU and polynomial activation networks as convex programs, we devise a convex semidefinite program (SDP) for adversarial training of two-layer polynomial activation networks and prove that the convex SDP achieves the same globally optimal solution as its nonconvex counterpart. The convex SDP is observed to improve robust test accuracy against $\ell_\infty$ attacks relative to the original convex training formulation on multiple datasets. Additionally, we present scalable implementations of adversarial training for two-layer polynomial and ReLU networks which are compatible with standard machine learning libraries and GPU acceleration. Leveraging these implementations, we retrain the final two fully connected layers of a Pre-Activation ResNet-18 model on the CIFAR-10 dataset with both polynomial and ReLU activations. The two `robustified' models achieve significantly higher robust test accuracies against $\ell_\infty$ attacks than a Pre-Activation ResNet-18 model trained with sharpness-aware minimization, demonstrating the practical utility of convex adversarial training on large-scale problems.

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

↑