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

Source: [Compute-Efficient Medical Image Classification with Softmax-Free Transformers and Sequence Normalization](<https://www.sota2.com/research/paper/68fa73751e209131cea5ca71>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T02:50:15.439Z

Authors: Firas Khader, Omar S. M. El Nahhas, Tianyu Han, Gustav M\\"uller-Franzes, Sven Nebelung, Jakob Nikolas Kather, Daniel Truhn

Published: 2024-06-03T13:27:08.000Z

## Abstract

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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2406.01314>)

[PDF](<https://arxiv.org/pdf/2406.01314.pdf>)
