[Paper Review] ViM-UNet: Vision Mamba for Biomedical Segmentation
This paper introduces ViM-UNet, a novel biomedical image segmentation model based on the Vision Mamba architecture, which replaces traditional UNet and UNETR networks. It achieves competitive or superior performance on two microscopy instance segmentation tasks—LIVECell and CREMI—while being significantly more parameter-efficient and faster than UNETR, demonstrating the potential of Mamba-based models for context-heavy biomedical tasks.
CNNs, most notably the UNet, are the default architecture for biomedical segmentation. Transformer-based approaches, such as UNETR, have been proposed to replace them, benefiting from a global field of view, but suffering from larger runtimes and higher parameter counts. The recent Vision Mamba architecture offers a compelling alternative to transformers, also providing a global field of view, but at higher efficiency. Here, we introduce ViM-UNet, a novel segmentation architecture based on it and compare it to UNet and UNETR for two challenging microscopy instance segmentation tasks. We find that it performs similarly or better than UNet, depending on the task, and outperforms UNETR while being more efficient. Our code is open source and documented at https://github.com/constantinpape/torch-em/blob/main/vimunet.md.
Motivation & Objective
- To address the limitations of CNN-based UNet and transformer-based UNETR in biomedical segmentation, particularly high parameter counts and computational costs.
- To explore whether Vision Mamba (ViM), a recently proposed architecture with global receptive fields and efficient sequence modeling, can serve as a superior alternative to transformers in biomedical image segmentation.
- To evaluate ViM-UNet's performance on challenging microscopy datasets requiring large contextual understanding, such as neurite segmentation in electron microscopy.
- To compare ViM-UNet’s accuracy, inference speed, and memory efficiency against UNet, UNETR, nnUNet, and U-Mamba across diverse datasets.
- To validate the model’s generalization and efficiency, especially in low-data regimes and 3D segmentation scenarios, by analyzing parameter count and inference time.
Proposed method
- Adapts the Vision Mamba (ViM) encoder with bidirectional state space models (SSMs) to replace the ViT backbone in UNETR, enabling global context modeling with reduced computational cost.
- Uses patch-based processing (16×16 patches) similar to Vision Transformers, but replaces multi-head attention with SSMs to achieve long-range dependencies efficiently.
- Employs a standard UNet-style decoder with two convolutional layers per head and transposed convolutions, sharing the same architecture across all models for fair comparison.
- Trains all models using Adam optimizer with an initial 1e-4 base rate and learning rate reduction on plateau for 100k iterations.
- Implements two instance segmentation heads: one for foreground and boundary probability maps (post-processed via watershed), and another for center and distance prediction.
- Evaluates models on LIVECell (phase-contrast microscopy) and CREMI (volume EM, 2D slices), using mean segmentation accuracy as the primary metric.

Experimental results
Research questions
- RQ1Can a Vision Mamba-based architecture (ViM-UNet) achieve competitive or better segmentation performance than UNet and UNETR on challenging biomedical instance segmentation tasks?
- RQ2Does the global field of view of ViM-UNet provide a performance advantage over UNet in tasks requiring large contextual understanding, such as neurite segmentation in EM images?
- RQ3How does ViM-UNet compare in terms of inference speed and memory efficiency to UNETR, especially given UNETR’s high parameter count and computational demands?
- RQ4Can ViM-UNet outperform UNETR without extensive pretraining, and does it generalize well across diverse datasets with different morphological characteristics?
- RQ5Is ViM-UNet a viable and efficient alternative to transformer-based models for 3D segmentation and cell tracking, where context is critical?
Key findings
- On the LIVECell dataset, ViM-UNet achieved performance comparable to UNet with distance prediction (0.05s inference time) and outperformed UNETR (0.54s), despite UNETR’s larger parameter count.
- For boundary segmentation on LIVECell, ViM-UNet ranked second, behind only UNet, and significantly outperformed UNETR, which showed the worst performance.
- On the CREMI dataset, ViM-UNet achieved the highest mean segmentation accuracy, outperforming both UNet and UNETR, indicating strong benefits from its global context modeling in large-structure tasks.
- ViM-UNet used only 18M parameters (Tiny) or 39M (Small), significantly fewer than UNETR’s 113M (Base), 334M (Large), and 665M (Huge), while maintaining competitive performance.
- Inference times were substantially lower for ViM-UNet (0.05s for Tiny, 0.05s for Small) compared to UNETR (0.15s to 0.54s), and training required only ≤10GB VRAM, unlike UNETR’s up to 48GB.
- The results suggest that ViM-UNet is especially effective for tasks requiring large context, such as 3D segmentation and cell tracking, due to its efficient global modeling without the overhead of attention mechanisms.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.