Pretrained ViTs Yield Versatile Representations For Medical Images

Christos Matsoukas, Johan Fredin Haslum, Moein Sorkhei, Magnus Söderberg, Kevin Smith
3/13/2023
cs.CV

No official code found. Best implementation: ChrisMats/medical_transformers (113 stars, last commit 2022-01-12).

Abstract

Convolutional Neural Networks (CNNs) have reigned for a decade as the de facto approach to automated medical image diagnosis, pushing the state-of-the-art in classification, detection and segmentation tasks. Over the last years, vision transformers (ViTs) have appeared as a competitive alternative to CNNs, yielding impressive levels of performance in the natural image domain, while possessing several interesting properties that could prove beneficial for medical imaging tasks. In this work, we explore the benefits and drawbacks of transformer-based models for medical image classification. We conduct a series of experiments on several standard 2D medical image benchmark datasets and tasks. Our findings show that, while CNNs perform better if trained from scratch, off-the-shelf vision transformers can perform on par with CNNs when pretrained on ImageNet, both in a supervised and self-supervised setting, rendering them as a viable alternative to CNNs.

View on arXivView PDF

Code Implementations(1)

Public repo for the ICCV2021-CVAMD paper "Is it Time to Replace CNNs with Transformers for Medical Images?"

11322Python, DockerfileJul 27, 20214 years ago

Similar Papers

Cite this paper

@article{matsoukas2023pretrained,
  title  = {Pretrained ViTs Yield Versatile Representations For Medical Images},
  author = {Christos Matsoukas and Johan Fredin Haslum and Moein Sorkhei and Magnus Söderberg and Kevin Smith},
  year   = {2023},
  eprint = {2303.07034},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2303.07034v3}
}

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/2303.07034.svg)](https://codeofpaper.com/paper/2303.07034)

Discussion