MixPro:面向视觉Transformer的MaskMix与渐进注意力标签数据增强
MixPro: Data Augmentation with MaskMix and Progressive Attention Labeling for Vision Transformer
AI总结:
针对TransMix在图像裁剪和早期注意力图不可靠的问题,提出MaskMix与渐进注意力标签(PAL)相结合的数据增强方法MixPro,在ImageNet分类及多种下游任务上提升ViT模型的性能、迁移性和鲁棒性。
摘要:
最近提出的数据增强方法TransMix利用注意力标签帮助视觉Transformer(ViT)获得更好的鲁棒性和性能。然而,TransMix在两个方面存在不足:1)TransMix的图像裁剪方式可能不适合ViT。2)在训练早期,模型会产生不可靠的注意力图。TransMix使用不可靠的注意力图来计算混合注意力标签,这可能影响模型。为解决上述问题,我们分别在图像空间和标签空间中提出MaskMix和渐进注意力标签(PAL)。具体而言,从图像空间的角度,我们设计了MaskMix,它基于类似图像块的网格掩码来混合两张图像。特别地,每个掩码块的大小是可调整的,并且是图像块大小的倍数,这确保每个图像块只来自一张图像并包含更多全局内容。从标签空间的角度,我们设计了PAL,它利用一个渐进因子来动态重新加权混合注意力标签的注意力权重。最后,我们将MaskMix和渐进注意力标签结合为新的数据增强方法,命名为MixPro。实验结果表明,我们的方法可以在ImageNet分类上提升各种规模的基于ViT的模型(基于DeiT-T训练300个epoch达到73.8%的top-1准确率)。在ImageNet上使用MixPro预训练后,基于ViT的模型还表现出更好的向语义分割、目标检测和实例分割的迁移能力。此外,与TransMix相比,MixPro在多个基准测试上也表现出更强的鲁棒性。代码可在https://github.com/fistyee/MixPro获取。
英文摘要:
The recently proposed data augmentation TransMix employs attention labels to help visual transformers (ViT) achieve better robustness and performance. However, TransMix is deficient in two aspects: 1) The image cropping method of TransMix may not be suitable for ViTs. 2) At the early stage of training, the model produces unreliable attention maps. TransMix uses unreliable attention maps to compute mixed attention labels that can affect the model. To address the aforementioned issues, we propose MaskMix and Progressive Attention Labeling (PAL) in image and label space, respectively. In detail, from the perspective of image space, we design MaskMix, which mixes two images based on a patch-like grid mask. In particular, the size of each mask patch is adjustable and is a multiple of the image patch size, which ensures each image patch comes from only one image and contains more global contents. From the perspective of label space, we design PAL, which utilizes a progressive factor to dynamically re-weight the attention weights of the mixed attention label. Finally, we combine MaskMix and Progressive Attention Labeling as our new data augmentation method, named MixPro. The experimental results show that our method can improve various ViT-based models at scales on ImageNet classification (73.8\% top-1 accuracy based on DeiT-T for 300 epochs). After being pre-trained with MixPro on ImageNet, the ViT-based models also demonstrate better transferability to semantic segmentation, object detection, and instance segmentation. Furthermore, compared to TransMix, MixPro also shows stronger robustness on several benchmarks. The code is available at https://github.com/fistyee/MixPro.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。