Accelerating Vision Transformer Training via a Patch Sampling Schedule
Not on the map. Why?
Abstract (arXiv)
We introduce the notion of a Patch Sampling Schedule (PSS), that varies the number of Vision Transformer (ViT) patches used per batch during training. Since all patches are not equally important for most vision objectives (e.g., classification), we argue that less important patches can be used in fewer training iterations, leading to shorter training time with minimal impact on performance. Additionally, we observe that training with a PSS makes a ViT more robust to a wider patch sampling range during inference. This allows for a fine-grained, dynamic trade-off between throughput and accuracy during inference. We evaluate using PSSs on ViTs for ImageNet both trained from scratch and pre-trained using a reconstruction loss function. For the pre-trained model, we achieve a 0.26% reduction in classification accuracy for a 31% reduction in training time (from 25 to 17 hours) compared to using all patches each iteration. Code, model checkpoints and logs are available at https://github.com/BradMcDanel/pss.
Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 19 of its 22 references that are in the map. First posted on arXiv 19 Aug 2022.
Builds on
19 of 22 references.
References · 19
- 2017Attention Is All You Needcited by 59,932
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2020End-to-End Object Detection with Transformerscited by 7,384
- 2022Photorealistic Text-to-Image Diffusion Models with Deep Language Understandingcited by 6,322
- 2017mixup: Beyond Empirical Risk Minimizationcited by 5,155
- 2017Squeeze-and-Excitation Networkscited by 4,763
- 2020Training data-efficient image transformers & distillation through attentioncited by 4,560
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,413
- 2021SimMIM: A Simple Framework for Masked Image Modelingcited by 1,147
- 2018Self-Attention with Relative Position Representationscited by 1,112
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2019Once-for-All: Train One Network and Specialize it for Efficient Deploymentcited by 778
7 more
- 2018Image Transformercited by 770
- 2021Scaling Vision with Sparse Mixture of Expertscited by 740
- 2015Cyclical Learning Rates for Training Neural Networkscited by 627
- 2016Adaptive Computation Time for Recurrent Neural Networkscited by 479
- 2022DeiT III: Revenge of the ViTcited by 417
- 2021AdaViT: Adaptive Tokens for Efficient Vision Transformercited by 360
- 2022Confident Adaptive Language Modelingcited by 297
Built on by
Citing papers per year: 2024: 1.
1 paper.