CVNov 9, 2022

Training a Vision Transformer from scratch in less than 24 hours with 1 GPU

arXiv:2211.05187v110 citationsh-index: 13Has Code
Originality Incremental advance
AI Analysis

This work addresses the challenge of making vision Transformer training more accessible for researchers and practitioners with limited hardware, though it is incremental in nature.

The paper tackles the problem of high resource and time costs for training vision Transformers from scratch by introducing algorithmic improvements, enabling training on 1 GPU within 24 hours and showing significant performance gains on a new benchmark with hardware and time constraints.

Transformers have become central to recent advances in computer vision. However, training a vision Transformer (ViT) model from scratch can be resource intensive and time consuming. In this paper, we aim to explore approaches to reduce the training costs of ViT models. We introduce some algorithmic improvements to enable training a ViT model from scratch with limited hardware (1 GPU) and time (24 hours) resources. First, we propose an efficient approach to add locality to the ViT architecture. Second, we develop a new image size curriculum learning strategy, which allows to reduce the number of patches extracted from each image at the beginning of the training. Finally, we propose a new variant of the popular ImageNet1k benchmark by adding hardware and time constraints. We evaluate our contributions on this benchmark, and show they can significantly improve performances given the proposed training budget. We will share the code in https://github.com/BorealisAI/efficient-vit-training.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes