Mobile U-ViT: Revisiting large kernel and U-shaped ViT for efficient medical image segmentation

Fenghe Tang, Bingkun Nian, Jianrui Ding, Wenxin Ma, Quan Quan, Chengqi Dong, Jie Yang, Wei Liu, S. Kevin Zhou

TL;DR

This paper introduces Mobile U-ViT, a novel lightweight vision transformer designed for efficient medical image segmentation on mobile devices. By combining a new ConvUtr patch embedding and a Large-kernel Local-Global-Local (LKLGL) block, Mobile U-ViT achieves state-of-the-art performance across various medical imaging tasks while maintaining high computational efficiency.

What Problem Does This Paper Address?

Medical image segmentation is crucial for accurate diagnosis and treatment planning, but existing models are often too computationally expensive for deployment on resource-constrained mobile devices. Models optimized for natural images perform poorly on medical data due to a significant "information density gap": medical images have sparser local features, blurred boundaries, and higher noise levels compared to natural images. This necessitates models that can efficiently capture both fine-grained local details and global context, a challenge that current lightweight architectures struggle to meet.

Methods

The authors propose Mobile U-ViT, a U-shaped vision transformer architecture tailored for medical image segmentation. Key innovations include:

  • ConvUtr (Convolutional Transformer): A novel patch embedding module that uses large-kernel depthwise separable convolutions followed by inverted bottleneck fusion. This design mimics Transformer's learning patterns while being significantly lighter and faster than traditional CNNs or ViTs, effectively bridging the gap between CNN efficiency and Transformer's representational power.
  • Large-kernel Local-Global-Local (LKLGL) block: This module enhances local-global feature integration. It first aggregates local features with a large kernel, then uses pooling for efficient global context exchange, followed by attention mechanisms for global information flow, and finally transposed convolutions to refine local representations. This block is designed to handle the low information density and semantic ambiguity in medical images.
  • Cascaded Decoder with Downsampled Skip-Connections: A decoder structure that uses upsampling and convolution blocks with skip connections. These skip connections are downsampled to align features from different resolutions, effectively filtering out noise and emphasizing necessary boundary information.

Datasets

The paper evaluates Mobile U-ViT on a diverse set of datasets:

  • 2D Datasets:
    • Ultrasound: BUS (Breast Ultrasound), BUSI (Breast Ultrasound Images), TNSCUI (Thyroid Nodule Segmentation and Classification in Ultrasound Images)
    • Dermoscopy: ISIC 2018
    • Polypscopy: Kvasir
  • 3D Datasets:
    • CT Multi-organ Segmentation: Synapse
    • CT Tumor Segmentation: BTCV (Beyond the Cranial Vault), KiTS'23 (Kidney and Kidney Tumor Segmentation)
  • Zero-shot Datasets (for generalization testing): TUCC, PH2, CVC-300.

Key Insights and Ideas

  • Medical Images are Fundamentally Different: The paper strongly emphasizes the unique challenges posed by medical images (sparsity, blurriness, noise) that standard natural image models fail to address.
  • Large Kernels are Key for Medical Data: The success of ConvUtr and LKLGL hinges on the use of large kernels, which are crucial for aggregating sparse local features in medical images.
  • Transformer-like Learning with CNN Efficiency: ConvUtr successfully achieves Transformer-like representation learning capabilities using efficient CNN building blocks, a significant step towards lightweight Transformers.
  • Local-Global-Local is Crucial for Ambiguity: The LKLGL block's design directly tackles the semantic ambiguity and the need to integrate local details with global context in medical images.
  • U-Net's Decoder Remains Relevant: The continued effectiveness of the U-shaped architecture, particularly its decoder with skip connections, highlights its suitability for dense prediction tasks in medical imaging.

Key Results

  • State-of-the-Art Performance: Mobile U-ViT achieves state-of-the-art (SOTA) performance on eight public 2D and 3D medical segmentation datasets across various modalities.
  • Efficiency Gains: Mobile U-ViT-L (Large variant) achieves SOTA results with significantly fewer parameters and lower GFLOPs compared to heavy-weight models like nnUNet and TransUnet. For example, it uses 1.39M parameters and 2.51 GFLOPs compared to nnUNet's 26.10M parameters and 12.67 GFLOPs for 2D segmentation.
  • High Inference Speed: The model achieves high FPS (Frames Per Second), making it suitable for real-time applications on mobile devices (e.g., 51.22 FPS on NVIDIA Jetson Nano for Mobile U-ViT).
  • Robust Generalization: The model demonstrates strong zero-shot generalization capabilities on unseen datasets.
  • Qualitative Improvements: Grad-CAM visualizations show that Mobile U-ViT effectively captures both global context and fine-grained local details, with more focused and semantically aligned activation maps compared to other lightweight models.

Limitations and Future Work

  • Kernel Size Transitions: The paper notes that abrupt transitions in kernel sizes (e.g., 3→9) degrade performance, suggesting that gradual transitions (e.g., 3→7→9) are better for expanding receptive fields.
  • Max Pooling vs. Convolutional Downsampling: While max pooling is used for downsampling in ConvUtr, the paper indicates that replacing it with convolutional downsampling leads to a decline in performance, highlighting max pooling's critical role in feature extraction from sparse and noisy medical images.
  • Future Work: The authors suggest that their approach of balancing lightweight design with robust performance can inspire further advancements in efficient models for mobile medical image analysis. The success on diverse datasets and the strong zero-shot performance indicate potential for broader applications.

Summary updated

BibTeX
@inproceedings{tang2025mobile,
  author = {Fenghe Tang and Bingkun Nian and Jianrui Ding and Wenxin Ma and Quan Quan and Chengqi Dong and Jie Yang and Wei Liu and S. Kevin Zhou},
  title = {{Mobile U-ViT: Revisiting large kernel and U-shaped ViT for efficient medical image segmentation}},
  booktitle = {ACM Multimedia},
  year = {2025},
  doi = {10.1145/3746027.3755076},
}
Figure