MaxViT-UNet: Multi-Axis Attention for Medical Image Segmentation
Abdul Rehman Khan, Asifullah Khan
TL;DR
MaxViT-UNet tackles nuclei segmentation by uniting CNN-like feature extraction with Transformer-based global context via a MaxViT-based encoder and a novel Hybrid Decoder. The architecture employs a two-pronged MaxViT block (MBConv + multi-axis attention) to achieve local and global feature fusion with linear-like complexity, while a symmetric Decoder progressively refines segmentation with skip connections. Empirical results on MoNuSeg18 and MoNuSAC20 show significant improvements over CNN-based UNet and pure Transformer approaches, with ablation studies confirming the Hybrid Decoder’s contribution. The work yields a lightweight, plug-and-play framework that enhances segmentation accuracy and efficiency in medical imaging, with potential applicability to other 2D/3D modalities and ensemble strategies.
Abstract
Since their emergence, Convolutional Neural Networks (CNNs) have made significant strides in medical image analysis. However, the local nature of the convolution operator may pose a limitation for capturing global and long-range interactions in CNNs. Recently, Transformers have gained popularity in the computer vision community and also in medical image segmentation due to their ability to process global features effectively. The scalability issues of the self-attention mechanism and lack of the CNN-like inductive bias may have limited their adoption. Therefore, hybrid Vision transformers (CNN-Transformer), exploiting the advantages of both Convolution and Self-attention Mechanisms, have gained importance. In this work, we present MaxViT-UNet, a new Encoder-Decoder based UNet type hybrid vision transformer (CNN-Transformer) for medical image segmentation. The proposed Hybrid Decoder is designed to harness the power of both the convolution and self-attention mechanisms at each decoding stage with a nominal memory and computational burden. The inclusion of multi-axis self-attention, within each decoder stage, significantly enhances the discriminating capacity between the object and background regions, thereby helping in improving the segmentation efficiency. In the Hybrid Decoder, a new block is also proposed. The fusion process commences by integrating the upsampled lower-level decoder features, obtained through transpose convolution, with the skip-connection features derived from the hybrid encoder. Subsequently, the fused features undergo refinement through the utilization of a multi-axis attention mechanism. The proposed decoder block is repeated multiple times to segment the nuclei regions progressively. Experimental results on MoNuSeg18 and MoNuSAC20 datasets demonstrate the effectiveness of the proposed technique.
