arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.04886cs.CVcs.LG
收藏

通过对抗性训练重新审视适配器

Revisiting adapters with adversarial training

DeepMind(深度思维)

Sylvestre-Alvise Rebuffi, Francesco Croce, Sven Gowal

摘要:

虽然对抗性训练通常被用作防御机制,但最近的研究表明,它也可以作为正则化器。通过在干净和对抗性输入上共同训练神经网络,可以提高干净、非对抗性输入的分类准确性。我们证明,与以前的研究结果相反,在对干净和对抗性输入进行联合训练时,没有必要分离批统计数据,并且对于每种类型的输入,使用具有很少域特定参数的适配器就足够了。我们确定,使用视觉Transformer(ViT)的分类令牌作为适配器足以匹配双归一化层的分类性能,同时使用显著更少的附加参数。首先,我们在ImageNet上将非对抗训练的ViT-B16模型的top-1准确率提高了+1.12%(达到83.76%的top-1准确率)。其次,更重要的是,我们证明了使用适配器的训练可以通过干净和对抗令牌的线性组合来实现模型汤。这些模型汤,我们称之为对抗模型汤,允许我们在干净和健壮的准确性之间进行权衡,而不会牺牲效率。最后,我们表明,我们可以很容易地适应所产生的模型面对的分布偏移。我们的ViT-B16在ImageNet变体上获得了前1的准确率,平均比使用掩码自编码器获得的准确率高出+4.00%。

英文摘要:

While adversarial training is generally used as a defense mechanism, recent works show that it can also act as a regularizer. By co-training a neural network on clean and adversarial inputs, it is possible to improve classification accuracy on the clean, non-adversarial inputs. We demonstrate that, contrary to previous findings, it is not necessary to separate batch statistics when co-training on clean and adversarial inputs, and that it is sufficient to use adapters with few domain-specific parameters for each type of input. We establish that using the classification token of a Vision Transformer (ViT) as an adapter is enough to match the classification performance of dual normalization layers, while using significantly less additional parameters. First, we improve upon the top-1 accuracy of a non-adversarially trained ViT-B16 model by +1.12% on ImageNet (reaching 83.76% top-1 accuracy). Second, and more importantly, we show that training with adapters enables model soups through linear combinations of the clean and adversarial tokens. These model soups, which we call adversarial model soups, allow us to trade-off between clean and robust accuracy without sacrificing efficiency. Finally, we show that we can easily adapt the resulting models in the face of distribution shifts. Our ViT-B16 obtains top-1 accuracies on ImageNet variants that are on average +4.00% better than those obtained with Masked Autoencoders.

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

↑