---
title: 'MambaVesselNet++: Hybrid CNN–Mamba Segmentation'
url: https://www.emergentmind.com/topics/mambavesselnet
type: topic
---

# MambaVesselNet++: Hybrid CNN–Mamba Segmentation

Searching arXiv for the specified paper and closely related context papers to ground the article.
MambaVesselNet++ is a hybrid CNN–Mamba architecture for medical image segmentation that follows a U-shaped encoder–decoder design and is intended to combine local texture modeling with efficient long-range dependency capture [2507.19931]. The model is composed of a hybrid image encoder (Hi-Encoder) and a bifocal fusion decoder (BF-Decoder). Within this design, convolutions are used to extract multi-scale, low-level semantic features, while selective state-space modeling via Mamba is used to model global context with linear complexity. The reported scope includes 2D semantic segmentation, 2D instance segmentation, and 3D semantic segmentation, with experiments on PH2, CVC-ClinicDB, DRIVE, UDIAT, TNBC, and IXI [2507.19931].

## 1. Architectural definition and design rationale

At a high level, MambaVesselNet++ follows the familiar encoder–decoder paradigm. The Hi-Encoder contains two stages: texture-aware layers for extracting low-level semantic features and progressively downsampling the input, followed by Vision Mamba layers for modeling global, long-range dependencies with linear complexity. The BF-Decoder then performs hierarchical upsampling with deconvolutions and skip-connections that fuse local texture features from the encoder with global context features from the state-space backbone in a bifocal manner [2507.19931].

The architecture is defined for both 2D images and 3D patches. The overview given in the paper is:

```text
Input 2D image or 3D patch → [ Hi-Encoder ↓ ] → Tokens →
Vision Mamba Blocks → Bottleneck features → [ BF-Decoder ↑ ] → Segmentation Mask
```

The design places pure convolutional layers at the edges, where precise spatial detail matters most, and Mamba blocks at the bottleneck, where global context matters most. This arrangement is presented as a balance between two limitations identified in prior families of models: convolution-based U-shape architectures are usually limited by the local receptive field, while vision transformers, despite strong global modeling, are challenged in real-world deployment by the non-linear self-attention mechanism and its computational cost [2507.19931]. A plausible implication is that the model is explicitly structured to avoid using a globally contextual mechanism at resolutions where boundary fidelity is most vulnerable.

## 2. Hi-Encoder and the texture-aware layer

The first half of each encoder stage is a texture-aware block designed to extract local patterns, including edges, corners, and textures, while downsampling. If the input feature map at layer \(i\) is denoted by
\[
f_{i-1}\in\mathbb{R}^{C_{i-1}\times H_{i-1}\times W_{i-1}\,(\times D_{i-1})},
\]
the layer applies:

1. a \(3\times 3\) convolution with weight \(W^{(3)}_{i}\) and bias \(b^{(3)}_{i}\),
2. LayerNorm,
3. LeakyReLU,
4. a \(2\times 2\) convolution with stride \(2\), and
5. residual addition.

The compact formulation is
\[
\tilde f_i
   = \mathrm{LeakyReLU}\Bigl(\mathrm{LN}\bigl(W^{(3)}_{i} * f_{i-1} + b^{(3)}_{i}\bigr)\Bigr),
\quad,\quad
f_i
   = \mathrm{LeakyReLU}\Bigl(\mathrm{LN}\bigl(W^{(2)}_{i} * \tilde f_i + b^{(2)}_{i}\bigr)\Bigr)
   + \tilde f_i,
\]
where “\(*\)” denotes convolution and the second \(2\times 2\) convolution reduces spatial size by half while doubling the channel count [2507.19931].

A specific claim in the paper is that, by contrast to max-pooling, the strided convolution preserves more low-frequency information. In architectural terms, the texture-aware layer therefore performs both feature extraction and resolution reduction without introducing a separate pooling operator. This suggests that the encoder is intended to preserve local signal structure before the tokenization and sequence modeling steps.

After \(I\) texture-aware downsampling stages, the feature tensor
\[
F\in\mathbb{R}^{C_I\times H'\times W'\,(\times D')}
\]
is reshaped into a sequence of
\[
N=H'\times W'(\times D')
\]
tokens
\[
z^{0}\in\mathbb{R}^{N\times d},
\]
which then enter the Vision Mamba portion of the encoder [2507.19931].

## 3. Selective state-space modeling and Vision Mamba integration

The Mamba component is introduced through the state-space model formalism. A continuous-time SSM is written as
\[
h'(t) = A\,h(t) + B\,x(t),
\qquad
y(t) = C\,h(t),
\]
where \(h(t)\in\mathbb{R}^N\) is the hidden state, \(x(t)\) is the input, and \(A,B,C\) are learned matrices. After discretization, this yields a linear recurrence computable in \(\mathcal{O}(N)\) time [2507.19931].

Mamba extends this formulation by dynamic gating, termed selective scanning, over the input and state updates. For block \(l\),
\[
\hat z^{l}
  = \mathrm{Mamba}\bigl(\mathrm{LayerNorm}(z^{l-1})\bigr) + z^{l-1},
\qquad
z^l
  = \mathrm{MLP}\bigl(\mathrm{LayerNorm}(\hat z^l)\bigr) + \hat z^l.
\]
Each Mamba call is defined as a linear scan over the sequence:
\[
\bigl(\mathrm{Mamba}(x)\bigr)_n
  = \sum_{m=1}^{n} \alpha_{n,m}\,x_m,
\quad
\alpha_{n,m}
  = \bigl(A^{n-m}B\bigr) \odot\, \sigma\bigl(W_s x_n + b_s\bigr),
\]
where \(\sigma\) is a selection gate, \(W_s,b_s\) are gating parameters, and the convolutional-S6 kernels \(A,B\) are shared across the scan [2507.19931].

The paper explicitly contrasts this with self-attention. For \(N\) tokens of dimension \(d\),
\[
Q= XW_Q,\;
K=XW_K,\;
V=XW_V,\;
\mathrm{Attn}(X) = \mathrm{Softmax}\bigl(QK^\top/\sqrt{d}\bigr)\,V,
\]
with cost \(\mathcal{O}(N^2 d)\), whereas the Mamba recurrence costs \(\mathcal{O}(N d)\) [2507.19931]. This complexity claim is central to the model’s positioning relative to transformer-based segmentation backbones. The paper does not state that Mamba fully supersedes attention in all settings; rather, it argues that selective SSMs provide a more tractable mechanism for long-range dependency modeling in medical segmentation.

## 4. BF-Decoder and bifocal fusion

The bifocal fusion decoder reconstructs segmentation masks by progressively upsampling the global feature representation and reintroducing encoder features through skip connections. If \(L\) Mamba blocks produce a global feature tensor
\[
G\in\mathbb{R}^{C_I\times H'\times W'},
\]
the deepest decoder stage is
\[
F^{\mathrm{BIF}_{I}}
  = \mathrm{Conv_{1\times1}\Bigl(
      \mathrm{DeConv_{2\times2}(G)}
      \;\oplus\;
      f_I
    \Bigr),
\]
where \(\oplus\) is element-wise addition and the deconvolution upsamples spatially by a factor of \(2\) [2507.19931].

For shallower stages \(k=I-1,\dots,1\),
\[
F^{\mathrm{BIF}_{k}}
  = \mathrm{Conv_{3\times3}\Bigl(
      \mathrm{DeConv_{2\times2}\bigl(F^{\mathrm{BIF}_{k+1}}\bigr)}
      \;\smallfrown\;
      f_{k}
    \Bigr),
\]
where \(\smallfrown\) denotes channel-wise concatenation with the corresponding encoder feature. A final \(1\times 1\) convolution maps \(F^{\mathrm{BIF}_{1}}\) to the desired number of output channels, followed by Sigmoid or Softmax [2507.19931].

The paper also gives the following pseudocode:

```text
G_global = output of last Mamba block
X = Deconv2x2(G_global) + f_I
F_I = Conv1x1(X)
for k = I-1 down to 1:
    U = Deconv2x2(F_{k+1})
    C = concat(U, f_k, dim=channels)
    F_k = Conv3x3(C)
output = Conv1x1(F_1)
```

The term “bifocal” refers to the combination of local texture features and global context features. In operational terms, the decoder does not simply mirror the encoder; it combines additive fusion at the deepest stage with concatenative fusion at subsequent scales. This suggests an attempt to preserve bottleneck-level global semantics while reintroducing progressively finer local cues.

## 5. Training protocol and task coverage

The reported datasets and tasks are divided into 2D semantic, 2D instance, and 3D semantic segmentation. The 2D semantic datasets are PH2 for dermoscopy, CVC-ClinicDB for polyp segmentation, DRIVE for fundus imaging, and UDIAT for ultrasound. The 2D instance dataset is TNBC for histopathology nuclei. The 3D semantic dataset is IXI MRA for cerebrovascular segmentation [2507.19931].

Data splits are given as \(8{:}1{:}1\) for 2D datasets and official splits for DRIVE and IXI. Optimization uses Adam with initial learning rate \(10^{-4}\) and Cosine Annealing down to \(10^{-7}\). For 3D training, the setup is 5,000 iterations, batch size 2 per GPU, and patch size \(64^3\). For 2D training, the setup is 200 epochs with batch size 16. Augmentations are standard random flips, intensity jitter, and rotations as in MONAI defaults [2507.19931].

For semantic segmentation, the loss is
\[
\mathcal{L}_{\rm sem}
   = \lambda_{\rm Dice}\,\mathcal{L}_{\rm Dice}
   + \lambda_{\rm CE}\,\mathcal{L}_{\rm CE},
\]
with
\[
\mathcal{L}_{\rm Dice}(P,G)
   = 1 - \frac{2\sum P\,G}{\sum P + \sum G},
\qquad
\mathcal{L}_{\rm CE}
   = -\sum_{i} G_i \log P_i,
\]
and \(\lambda_{\rm Dice}=\lambda_{\rm CE}=1\) [2507.19931].

For the 3-head instance setting, the loss is
\[
\mathcal{L}_{\rm ins}
   = \lambda_{\rm NP}\,\mathcal{L}_{\rm NP}
   + \lambda_{\rm HV}\,\mathcal{L}_{\rm HV}
   + \lambda_{\rm NT}\,\mathcal{L}_{\rm NT},
\]
where
\[
\mathcal{L}_{\rm NP}=\mathcal{L}_{\rm Focal}+\mathcal{L}_{\rm Dice},\quad
\mathcal{L}_{\rm HV}=\mathcal{L}_{\rm MSE}+\mathcal{L}_{\rm MSGE},\quad
\mathcal{L}_{\rm NT}=\mathcal{L}_{\rm Focal}+\mathcal{L}_{\rm Dice}+\mathcal{L}_{\rm BCE},
\]
with \(\lambda_{\rm NP}=1,\;\lambda_{\rm HV}=5,\;\lambda_{\rm NT}=1\) [2507.19931].

## 6. Experimental performance, ablations, and computational profile

The paper reports that, across six public datasets, MambaVesselNet++ outperforms current convolution-based, transformer-based, and Mamba-based state-of-the-arts [2507.19931]. The comparisons include UNet3D and nnUNet as purely convolutional baselines, TransUNet, UNETR, and SwinUNETR as transformer-based baselines, and U-Mamba, SegMamba, and Swin-U-Mamba as SSM-based baselines.

The headline quantitative results are as follows:

| Task / dataset | Metrics |
|---|---|
| PH2 | Dice 0.953 / mIoU 0.911 / HD 19.50 |
| CVC-ClinicDB | Dice 0.911 / mIoU 0.854 / HD 13.22 |
| DRIVE | Dice 0.711 / mIoU 0.552 / HD 18.12 |
| UDIAT | Dice 0.849 / mIoU 0.763 / HD 23.01 |
| TNBC | AJI 0.534 / PQ 0.479 / DQ 0.657 / SQ 0.729 |
| IXI | Precision 0.889 / Recall 0.859 / Dice 0.870 |

The paper states that MambaVesselNet++ consistently yields the highest Dice/mIoU and lowest Hausdorff. In 3D, it also reduces per-epoch training time and memory relative to SwinUNETR, specifically 2.1 min versus 3.8 min and 6.9 GB versus 9.8 GB [2507.19931]. Domain generalization tests, including PH2 \(\rightarrow\) ISIC2018 and DRIVE \(\rightarrow\) STARE, are reported to further confirm robustness under unseen imaging conditions.

The ablation study on the IXI dataset isolates the contribution of each major component. Starting from a UNETR baseline with Dice 0.836, adding the texture-aware layer yields 0.840, adding the Vision Mamba layer yields 0.851, the full Hi-Encoder yields 0.859, and the combination of Hi-Encoder and BF-Decoder yields 0.870 [2507.19931]. Within the limits of the reported study, this progression attributes the largest total gain to the combined hybrid encoder and bifocal decoder rather than to any single component in isolation.

The complexity analysis compares convolution, self-attention, and Mamba in Big-O form:
\[
\text{Convolution per layer: } \mathcal{O}(N\cdot k^2\cdot C),
\]
\[
\text{Self-attention (ViT): } \mathcal{O}(N^2\cdot d),
\]
\[
\text{Mamba SSM: } \mathcal{O}(N\cdot d).
\]
The empirical interpretation given is that restricting Mamba blocks to the bottleneck, rather than placing them at every stage, keeps the overall cost dominated by cheap strided convolutions and small MLPs, producing a net speed and memory advantage over full Vision Transformer backbones [2507.19931].

## 7. Limitations, interpretive cautions, and future directions

The paper explicitly notes several limitations and trade-offs. One is the risk of over-segmentation when global context overwhelms local edges; this is mitigated by limiting Mamba to the bottleneck. Another is under-segmentation in purely CNN methods, which the architecture seeks to avoid through SSM integration [2507.19931]. These points serve as a caution against a simplistic reading that more global context is always preferable. In the reported framing, the central issue is not merely adding global modeling capacity, but controlling where and how it is introduced.

The listed future directions are adaptive placement of Mamba blocks at multiple scales, joint learning of selection gates for better interpretability, and extension of the multi-branch decoder to panoptic tasks [2507.19931]. These proposals indicate that the current model uses a deliberately constrained placement strategy for state-space layers and that interpretability of the selection mechanism remains an open concern.

Taken as a whole, MambaVesselNet++ is presented as a judicious hybrid of CNN feature extraction and selective SSM sequence modeling. The main technical claim is not that either component is sufficient on its own, but that the architectural separation of local-detail extraction, bottleneck-level long-range modeling, and bifocal decoder fusion yields strong segmentation performance while keeping computational and memory costs tractable [2507.19931].

Source: https://www.emergentmind.com/topics/mambavesselnet