Data mixing augmentation has been widely applied to improve the generalization ability of deep neural networks. Recently, offline data mixing augmentation, e.g. handcrafted and saliency information-based mixup, has been gradually replaced by automatic mixing approaches. Through minimizing two sub-tasks, namely, mixed sample generation and mixup classification in an end-to-end way, AutoMix significantly improves accuracy on image classification tasks. However, as the optimization objective is consistent for the two sub-tasks, this approach is prone to generating consistent instead of diverse mixed samples, which results in overfitting for target task training. In this paper, we propose AdAutomixup, an adversarial automatic mixup augmentation approach that generates challenging samples to train a robust classifier for image classification, by alternatively optimizing the classifier and the mixup sample generator. AdAutomixup comprises two modules, a mixed example generator, and a target classifier. The mixed sample generator aims to produce hard mixed examples to challenge the target classifier, while the target classifier's aim is to learn robust features from hard mixed examples to improve generalization. To prevent the collapse of the inherent meanings of images, we further introduce an exponential moving average (EMA) teacher and cosine similarity to train AdAutomixup in an end-to-end way. Extensive experiments on seven image benchmarks consistently prove that our approach outperforms the state of the art in various classification scenarios. The source code is available at https://github.com/JinXins/Adversarial-AutoMixup.
翻译:数据混合增强技术已被广泛应用于提升深度神经网络的泛化能力。近期,基于手工设计及显著性信息的离线数据混合增强方法正逐步被自动化混合方法所取代。通过端到端方式优化混合样本生成与混合分类两个子任务,AutoMix方法在图像分类任务上取得了显著的精度提升。然而,由于两个子任务的优化目标一致,该方法倾向于生成一致性而非多样化的混合样本,这导致目标任务训练时出现过拟合现象。本文提出AdAutomixup——一种对抗性自动混合增强方法,通过交替优化分类器与混合样本生成器,生成具有挑战性的样本来训练鲁棒的图像分类器。AdAutomixup包含混合样本生成器和目标分类器两个模块:混合样本生成器旨在生成困难混合样本以挑战目标分类器,而目标分类器则致力于从困难混合样本中学习鲁棒特征以提升泛化能力。为防止图像固有语义的坍塌,我们进一步引入指数移动平均教师网络和余弦相似度来端到端训练AdAutomixup。在七个图像基准数据集上的大量实验一致证明,我们的方法在多种分类场景中均优于现有最优技术。源代码已开源至https://github.com/JinXins/Adversarial-AutoMixup。