使用 Patch Mixing 将 ViT 的 Patch 选择性硬连线到 CNN 中
Hardwiring ViT Patch Selectivity into CNNs using Patch Mixing
AI总结:
本研究提出使用 Patch Mixing 数据增强方法,将 ViT 的 patch 选择性归纳偏置硬连线到 CNN 中,使 CNN 获得忽略上下文外信息的能力并提升遮挡处理性能。
摘要:
Vision transformers (ViTs) 显著改变了计算机视觉领域的格局,并且在视觉任务中周期性地展现出优于 convolutional neural networks (CNNs) 的性能。尽管关于哪种模型类型更优尚无定论,但每种模型都有独特的归纳偏置,这塑造了它们的学习和泛化性能。例如,ViTs 在早期层的非局部特征依赖性方面具有有趣的特性,并且具有增强学习灵活性的自注意力机制,使它们能够更有效地忽略上下文外的图像信息。我们假设,这种忽略上下文外信息(我们称之为 $\ extit{patch selectivity}$)的能力,同时在早期层以非局部方式整合上下文内信息,使得 ViTs 能够更容易地处理遮挡。在本研究中,我们的目标是探究是否能让 CNNs 通过使用 Patch Mixing 数据增强有效地硬连线这种归纳偏置,来 $\ extit{模拟}$ 这种 patch selectivity 能力。Patch Mixing 包括将来自另一张图像的 patch 插入到训练图像上,并在两个图像类别之间进行标签插值。具体而言,我们使用 Patch Mixing 训练最先进的 ViTs 和 CNNs,评估其对忽略上下文外 patch 和处理自然遮挡能力的影响。我们发现,使用 Patch Mixing 训练时,ViTs 的性能既没有提高也没有下降,但 CNNs 获得了忽略上下文外信息的新能力,并在遮挡基准上有所提升,这使我们得出结论:这种训练方法是在 CNNs 中模拟 ViTs 已经具备的能力的一种方式。我们将发布我们的 Patch Mixing 实现和提出的数据集供公众使用。项目页面:https://arielnlee.github.io/PatchMixing/
英文摘要:
Vision transformers (ViTs) have significantly changed the computer vision landscape and have periodically exhibited superior performance in vision tasks compared to convolutional neural networks (CNNs). Although the jury is still out on which model type is superior, each has unique inductive biases that shape their learning and generalization performance. For example, ViTs have interesting properties with respect to early layer non-local feature dependence, as well as self-attention mechanisms which enhance learning flexibility, enabling them to ignore out-of-context image information more effectively. We hypothesize that this power to ignore out-of-context information (which we name $\textit{patch selectivity}$), while integrating in-context information in a non-local manner in early layers, allows ViTs to more easily handle occlusion. In this study, our aim is to see whether we can have CNNs $\textit{simulate}$ this ability of patch selectivity by effectively hardwiring this inductive bias using Patch Mixing data augmentation, which consists of inserting patches from another image onto a training image and interpolating labels between the two image classes. Specifically, we use Patch Mixing to train state-of-the-art ViTs and CNNs, assessing its impact on their ability to ignore out-of-context patches and handle natural occlusions. We find that ViTs do not improve nor degrade when trained using Patch Mixing, but CNNs acquire new capabilities to ignore out-of-context information and improve on occlusion benchmarks, leaving us to conclude that this training method is a way of simulating in CNNs the abilities that ViTs already possess. We will release our Patch Mixing implementation and proposed datasets for public use. Project page: https://arielnlee.github.io/PatchMixing/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。