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

Abstract

In clinical practice, medical image analysis often requires efficient execution on resource-constrained mobile devices. However, existing mobile models—primarily optimized for natural images—tend to perform poorly on medical tasks due to the significant information density gap between natural and medical domains. Combining computational efficiency with medical imaging-specific architectural advantages remains a challenge when developing lightweight, universal, and high-performing networks. To address this, we propose a mobile model called Mobile U-shaped Vision Transformer (Mobile U-ViT) tailored for medical image segmentation. Specifically, we employ the newly purposed ConvUtr as a hierarchical patch embedding, featuring a parameter-efficient large-kernel CNN with inverted bottleneck fusion. This design exhibits transformer-like representation learning capacity while being lighter and faster. To enable efficient local-global information exchange, we introduce a novel Large-kernel Local-Global-Local (LGL) block that effectively balances the low information density and high-level semantic discrepancy of medical images. Finally, we incorporate a shallow and lightweight transformer bottleneck for long-range modeling and employ a cascaded decoder with downsample skip connections for dense prediction. Despite its reduced computational demands, our medical-optimized architecture achieves state-of-the-art performance across eight public 2D and 3D datasets covering diverse imaging modalities, including zero-shot testing on four unseen datasets. These results establish it as an efficient yet powerful and generalization solution for mobile medical image analysis.

Introduction: The Information Density Gap

Most mobile-friendly AI models are optimized for "natural" images, such as photographs of everyday objects. However, medical images (Ultrasound, CT, MRI) are fundamentally different. The authors identify a significant information density gap: medical images often have sparse local features, high noise, and blurred boundaries between tissues.

Overview of Mobile U-ViT: (a) Motivation based on the information density gap, (b-c) Performance benchmarks, and (d) Core architectural components.

Standard CNNs with small kernels struggle to capture the global context needed to locate organs, while pure Transformers are often too computationally heavy for mobile deployment. Existing hybrid models often fail to balance these needs, leading to poor performance on clinical tasks where real-time execution on tablets or handheld ultrasound devices is required.

Methodology

Mobile U-ViT addresses these challenges through three key architectural innovations:

ConvUtr Backbone

Instead of standard patch embedding, the model uses ConvUtr, a hierarchical CNN structure that mimics Transformer learning patterns. It utilizes large-kernel depthwise convolutions and an inverted bottleneck fusion. This gives the model a "Transformer-like" receptive field while remaining as fast and light as a traditional CNN.

Large-kernel Local-Global-Local (LGL) Block

The LKLGL block is the core of the encoder, designed to balance low information density with high-level semantic discrepancies. It follows a four-step flow:

  1. Local Aggregation: Captures fine details using large-kernel depthwise convolutions.
  2. Token Pooling: Reduces the number of tokens to save computation.
  3. Global Attention: Performs efficient long-range modeling.
  4. Local Propagation: Uses transposed convolutions to redistribute global knowledge back to local pixels.

Cascaded Decoder with Downsampled Skip Connections

Traditional U-Nets use simple skip connections. Mobile U-ViT uses downsampled skip connections to help align low-level CNN features with high-level Transformer outputs, effectively filtering out background noise and sharpening organ boundaries.

Experimental Results

The model was evaluated on eight public datasets covering multiple modalities, including Ultrasound (BUS, BUSI, TNSCUI), Dermoscopy (ISIC2018), Endoscopy (Kvasir), and CT Scans (Synapse, BTCV, KiTS’23).

Efficiency vs. Performance

The quantitative results are impressive. The "Base" Mobile U-ViT has only 1.39M parameters, yet it outperformed TransUnet (105.32M parameters) on several benchmarks. On an NVIDIA RTX 4090, it reaches over 322 FPS for 2D tasks, and even on edge hardware like the NVIDIA Jetson Nano, it achieves a real-time rate of 51.22 FPS.

Radar chart comparing segmentation accuracy (Dice score) across various organs in the 3D BTCV dataset, demonstrating Mobile U-ViT's superiority over larger models.

3D Superiority and Generalization

In 3D volume segmentation (BTCV), the "Large" variant (11.06M params) beat SegMamba (65.18M params), improving the Dice score by 1.88% while using only 17% of the parameters. Furthermore, the model consistently ranked top in zero-shot tests on unseen clinical data (TUCC, PH2, CVC-300), suggesting it is robust enough for real-world hospital environments.

Key Insights

  • The "Smooth Transition" Rule: Jumping abruptly from small kernels (3x3) to very large ones (9x9) hurts performance. Mobile U-ViT uses a gradual expansion of receptive fields (3→7→9) to preserve fine-grained semantics.
  • Max Pooling Advantage: While many modern models prefer strided convolutions, this research argues that max pooling is superior for medical images because it effectively reduces background noise and sharpens poorly defined boundaries.
  • Feature Energy: Analysis showed that Mobile U-ViT's encoder produces features with higher L2 norms, meaning it utilizes its limited parameters more effectively than prior baselines.

Conclusion

Mobile U-ViT provides a lightweight, hybrid architecture that brings the power of Vision Transformers to resource-constrained medical devices. By optimizing for the unique information density of medical images, it achieves state-of-the-art segmentation accuracy while maintaining the efficiency required for mobile clinical applications.

Code is available at https://github.com/FengheTan9/Mobile-U-ViT.

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