Is it Time to Replace CNNs with Transformers for Medical Images?
Christos Matsoukas, Johan Fredin Haslum, Magnus S\"oderberg, Kevin, Smith

TL;DR
This paper evaluates whether vision transformers can replace CNNs in medical image diagnosis, finding that pretrained ViTs perform comparably or better than CNNs under certain conditions, especially with self-supervised pretraining.
Contribution
It provides a comprehensive comparison of CNNs and ViTs in medical imaging, highlighting the conditions under which transformers are a viable or superior alternative.
Findings
Pretrained ViTs match CNN performance with default hyperparameters.
Self-supervised pretrained ViTs outperform CNNs.
CNNs perform better when trained from scratch.
Abstract
Convolutional Neural Networks (CNNs) have reigned for a decade as the de facto approach to automated medical image diagnosis. Recently, vision transformers (ViTs) have appeared as a competitive alternative to CNNs, yielding similar levels of performance while possessing several interesting properties that could prove beneficial for medical imaging tasks. In this work, we explore whether it is time to move to transformer-based models or if we should keep working with CNNs - can we trivially switch to transformers? If so, what are the advantages and drawbacks of switching to ViTs for medical image diagnosis? We consider these questions in a series of experiments on three mainstream medical image datasets. Our findings show that, while CNNs perform better when trained from scratch, off-the-shelf vision transformers using default hyperparameters are on par with CNNs when pretrained on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAI in cancer detection · COVID-19 diagnosis using AI · Advanced Neural Network Applications
