PatchDropout: Economizing Vision Transformers Using Patch Dropout

Yue Liu, Christos Matsoukas, Fredrik Strand, Hossein Azizpour, Kevin Smith
8/10/2022
cs.CVcs.LG

No official code found. Best implementation: yueliukth/PatchDropout (18 stars, MIT, last commit 2023-01-09).

Abstract

Vision transformers have demonstrated the potential to outperform CNNs in a variety of vision tasks. But the computational and memory requirements of these models prohibit their use in many applications, especially those that depend on high-resolution images, such as medical image classification. Efforts to train ViTs more efficiently are overly complicated, necessitating architectural changes or intricate training schemes. In this work, we show that standard ViT models can be efficiently trained at high resolution by randomly dropping input image patches. This simple approach, PatchDropout, reduces FLOPs and memory by at least 50% in standard natural image datasets such as ImageNet, and those savings only increase with image size. On CSAW, a high-resolution medical dataset, we observe a 5 times savings in computation and memory using PatchDropout, along with a boost in performance. For practitioners with a fixed computational or memory budget, PatchDropout makes it possible to choose image resolution, hyperparameters, or model size to get the most performance out of their model.

View on arXivView PDF

Code Implementations(1)

MIT
184Python, DockerfileSep 20, 20223 years agoMIT

Similar Papers

Cite this paper

@article{liu2022patchdropout,
  title  = {PatchDropout: Economizing Vision Transformers Using Patch Dropout},
  author = {Yue Liu and Christos Matsoukas and Fredrik Strand and Hossein Azizpour and Kevin Smith},
  year   = {2022},
  eprint = {2208.07220},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2208.07220v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2208.07220.svg)](https://codeofpaper.com/paper/2208.07220)

Discussion