mlsanityData to 14 Oct 2026

Compute-Efficient Medical Image Classification with Softmax-Free Transformers and Sequence Normalization

arXiv 2406.01314 ↗First posted 3 Jun 2024cs.CV cs.AIcited by 0

Not on the map. Why?

Abstract (arXiv)

The Transformer model has been pivotal in advancing fields such as natural language processing, speech recognition, and computer vision. However, a critical limitation of this model is its quadratic computational and memory complexity relative to the sequence length, which constrains its application to longer sequences. This is especially crucial in medical imaging where high-resolution images can reach gigapixel scale. Efforts to address this issue have predominantely focused on complex techniques, such as decomposing the softmax operation integral to the Transformer's architecture. This paper addresses this quadratic computational complexity of Transformer models and introduces a remarkably simple and effective method that circumvents this issue by eliminating the softmax function from the attention mechanism and adopting a sequence normalization technique for the key, query, and value tokens. Coupled with a reordering of matrix multiplications this approach reduces the memory- and compute complexity to a linear scale. We evaluate this approach across various medical imaging datasets comprising fundoscopic, dermascopic, radiologic and histologic imaging data. Our findings highlight that these models exhibit a comparable performance to traditional transformer models, while efficiently handling longer sequences.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 14 of its 17 references that are in the map. First posted on arXiv 3 Jun 2024.

Builds on

14 of 17 references.

References · 14

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  3. 2015Batch Normalization: Accelerating Deep Network Training by Reducing Internal Covariate Shiftcited by 7,005
  4. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  5. 2020Rethinking Attention with Performerscited by 1,601
  6. 2016Instance Normalization: The Missing Ingredient for Fast Stylizationcited by 1,198
  7. 2021Nystr"omformer: A Nystr"om-Based Algorithm for Approximating Self-Attentioncited by 471
  8. 2022Transformers in Medical Imaging: A Surveycited by 245
  9. 2022cosFormer: Rethinking Softmax in Attentioncited by 213
  10. 2020A Patient-Centric Dataset of Images and Metadata for Identifying Melanomas Using Clinical Contextcited by 146
  11. 2021SOFT: Softmax-free Transformer with Linear Complexitycited by 128
  12. 2023AIROGS: Artificial Intelligence for RObust Glaucoma Screening Challengecited by 35
2 more
  1. 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
  2. 2023Cascaded Cross-Attention Networks for Data-Efficient Whole-Slide Image Classification Using Transformerscited by 1

Built on by

Not cited yet.