Hardwiring ViT Patch Selectivity into CNNs using Patch Mixing
Not on the map. Why?
Abstract (arXiv)
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 textitpatch 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 textitsimulate 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/
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 29 of its 39 references that are in the map. First posted on arXiv 30 Jun 2023.
Builds on
29 of 39 references.
References · 29
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2015Rethinking the Inception Architecture for Computer Visioncited by 5,451
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2022A ConvNet for the 2020scited by 3,545
- 2015Fast R-CNNcited by 2,930
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2013Rich feature hierarchies for accurate object detection and semantic segmentationcited by 2,160
- 2017Improved Regularization of Convolutional Neural Networks with Cutoutcited by 1,623
- 2017Random Erasing Data Augmentationcited by 1,235
- 2018RISE: Randomized Input Sampling for Explanation of Black-box Modelscited by 825
- 2021Do Vision Transformers See Like Convolutional Neural Networks?cited by 671
17 more
- 2021Intriguing Properties of Vision Transformerscited by 446
- 2016Top-down Neural Attention by Excitation Backpropcited by 318
- 2021Are Transformers More Robust Than CNNs?cited by 187
- 2021On the Robustness of Vision Transformers to Adversarial Examplescited by 167
- 2021Is it Time to Replace CNNs with Transformers for Medical Images?cited by 60
- 2018Occlusion-aware R-CNN: Detecting Pedestrians in a Crowdcited by 58
- 2020Robust Object Detection under Occlusion with Context-Aware CompositionalNetscited by 54
- 2020Compositional Convolutional Neural Networks: A Deep Architecture with Innate Robustness to Partial Occlusioncited by 47
- 2022Can CNNs Be More Robust Than Transformers?cited by 38
- 2022An Impartial Take to the CNN vs Transformer Robustness Contestcited by 34
- 2019Robustness of Object Recognition under Extreme Occlusion in Humans and Computational Modelscited by 18
- 2017Detecting Semantic Parts on Partially Occluded Objectscited by 6
- 2022Finding Differences Between Transformers and ConvNets Using Counterfactual Simulation Testingcited by 6
- 2021Evolving Image Compositions for Feature Representation Learningcited by 5
- 2022PatchMix Augmentation to Identify Causal Features in Few-shot Learningcited by 4
- 2022CNNs and Transformers Perceive Hybrid Images Similar to Humanscited by 2
- 2017Greedy Structure Learning of Hierarchical Compositional Modelscited by 1
Built on by
Citing papers per year: 2026: 1.
1 paper.