---
title: Hierarchical Gated Mamba Fusion
url: https://www.emergentmind.com/topics/hierarchical-gated-mamba-fusion-gm-fusion
type: topic
---

# Hierarchical Gated Mamba Fusion

Hierarchical Gated Mamba Fusion (GM-Fusion) denotes a family of multimodal fusion architectures that couple hierarchical feature processing with Mamba-style selective state-space models and learned gates over modalities, scales, branches, or experts. In the cited literature, the term appears explicitly in GMF-Drive and as a direct architectural extension of GraspMamba; related systems realize the same pattern through entropy-weighted branch fusion, reliability-aware Bird’s Eye View (BEV) gating, event-density-conditioned projection gates, expert routing, or cross-modal state-space scanning [2508.06113][2409.14403].

## 1. Definition and canonical formulation

A canonical GM-Fusion block takes multi-scale visual features \(\{\mathbf{X}_l\}_{l=1}^L\) and a conditioning representation \(\mathbf{T}\), aligns them into a common latent space, computes an explicit gate, applies a Mamba-based fusion operator, and then aggregates the fused outputs hierarchically. In the generalized formulation derived from GraspMamba, the inputs are visual features \(\mathbf{X}_l \in \mathbb{R}^{B \times C_l \times H_l \times W_l}\), a text embedding \(\mathbf{T} \in \mathbb{R}^{B \times C_T}\), a Mamba-based fusion block \(\mathcal{M}_l\), and a fusion gate \(g_l\). The per-scale computation is written as
\[
\begin{aligned}
\mathbf{X}_l' &= \mathrm{Conv}_{1\times1}^{\mathbf{X}_l}(\mathbf{X}_l), \\
\mathbf{T}_{\mathrm{exp},l} &= \mathrm{Broadcast}(\mathbf{T}), \\
\mathbf{T}_l' &= \mathrm{Conv}_{1\times1}^{\mathbf{T}}(\mathbf{T}_{\mathrm{exp},l}), \\
g_l &= \sigma\!\left(\mathrm{Conv}_{1\times1}^{g}\big([\mathbf{X}_l',\mathbf{T}_l']\big)\right), \\
\mathbf{Z}_l &= g_l \cdot \mathbf{T}_l' + (1-g_l)\cdot \mathbf{X}_l'.
\end{aligned}
\]
After flattening spatial dimensions,
\[
\mathbf{Z}_l^{\mathrm{seq}} \in \mathbb{R}^{B \times (H_lW_l) \times D},
\qquad
\mathbf{F}_l^{\mathrm{seq}} = \mathcal{M}_l(\mathbf{Z}_l^{\mathrm{seq}}),
\]
and the result is reshaped back to a feature map. Hierarchical aggregation is then defined as
\[
F_l^{\mathrm{hier}} =
\begin{cases}
F_L, & l=L, \\
F_l + \alpha_l \cdot U_{l+1}(F_{l+1}^{\mathrm{hier}}), & 1 \le l < L,
\end{cases}
\]
where \(U_{l+1}\) is bilinear upsampling plus a \(3\times 3\) convolution and \(\alpha_l\) is a learned scalar gate per level [2409.14403].

This formulation separates three distinct design axes. First, it is hierarchical because it operates over a pyramid \(\{1,\dots,L\}\) rather than a single latent level. Second, it is gated because modality mixing and top-down aggregation are modulated by learned coefficients such as \(g_l\) and \(\alpha_l\). Third, it is Mamba-based because the core token mixer is a selective state-space model rather than a quadratic self-attention layer. The same decomposition recurs across later systems, even when the conditioning modality is not text and the output head is not task-specific.

## 2. State-space foundations and Mamba operators

GM-Fusion inherits its computational core from structured state-space models. The standard continuous-time formulation used across the surveyed systems is
\[
\mathbf{h}'(t)=\mathbf{A}\mathbf{h}(t)+\mathbf{B}\mathbf{x}(t), \qquad
\mathbf{y}(t)=\mathbf{C}\mathbf{h}(t),
\]
with the corresponding discretization
\[
\overline{\mathbf{A}}=\exp(\Delta \mathbf{A}), \qquad
\overline{\mathbf{B}}=(\Delta \mathbf{A})^{-1}\big(\exp(\Delta \mathbf{A})-\mathbf{I}\big)\cdot \Delta \mathbf{B},
\]
and recurrence
\[
\mathbf{h}_t=\overline{\mathbf{A}}\mathbf{h}_{t-1}+\overline{\mathbf{B}}\mathbf{x}_t, \qquad
\mathbf{y}_t=\mathbf{C}\mathbf{h}_t.
\]
In Mamba, the effective state update becomes selective because \(\Delta\), \(\mathbf{B}\), and \(\mathbf{C}\) are input-dependent; the practical result is linear-complexity sequence modeling with long-range context [2409.15936].

Vision-oriented GM-Fusion variants differ chiefly in how 2D or multi-scale structure is serialized before the selective scan. FusionMamba uses four-directional image flattening and reconstructs the output by summing directional branches, with an explicit multiplicative gate \(\mathbf{Y}\cdot \mathrm{SiLU}(\mathbf{Z})\) in both the single-input Mamba block and the dual-input FusionMamba block [2404.07932]. HiddenObject uses SS2D in Vision Mamba encoders and decoders, rearranging feature maps into sequences under four scan directions and then merging them back to 2D feature maps [2508.21135]. GMF-Drive introduces BEV-specific sequencing, including raster and zigzag scans, and combines them with direction-aware state transition matrices and distance decay in a BEV-SSM [2508.06113]. MambaFusion serializes LiDAR voxels along a Hilbert space-filling curve and applies temporal Mamba over camera BEV embeddings \(B_t\) to aggregate spatiotemporal context in linear time [2602.08126]. WaveMamba applies VMamba-style SS2D in the low-frequency branch after wavelet decomposition, while SMC-Mamba extends scanning to spatial-channel, cross-modal, and frequency-rotational domains [2507.18173][2512.20921].

A central consequence is that “Mamba fusion” does not designate a single operator. In some systems Mamba is only the backbone, with fusion remaining convolutional; in others, the fusion path itself becomes state-space-driven. The distinction is architecturally important and recurs in the literature.

## 3. Gating mechanisms

The “gated” component of GM-Fusion is realized in multiple, non-equivalent ways. In the generalized GraspMamba extension, gating is explicit and scalar or spatial:
\[
g_l = \sigma\!\left(f_g(\mathbf{X}_l,\mathbf{T})\right)\in[0,1],
\]
with modality blending
\[
\Phi_l^{\mathrm{gated}}=\mathrm{Conv}_{3\times 3}\!\left(
g_l \cdot \mathrm{Conv}_{1\times1}^{\mathbf{T}}(\mathbf{T}_{\mathrm{exp}})
+ (1-g_l)\cdot \mathrm{Conv}_{1\times1}^{\mathbf{X}}(\mathbf{X}_l)
\right),
\]
and hierarchical gating in the top-down path
\[
F_l^{\mathrm{gated}}=\Phi_l^{\mathrm{gated}}+\alpha_l \cdot U_{l+1}(F_{l+1}^{\mathrm{gated}}).
\]
The original GraspMamba does not include such explicit coefficients: its fusion is deterministic concatenation, \(1\times1\) projection, \(3\times3\) convolution, and recursive addition, and Mamba is used only in the visual backbone [2409.14403].

ME-Mamba uses several implicit gating mechanisms. Within each Attention-based Mamba Layer, every scan branch computes \(Y=\operatorname{SSM}(\cdot)\), \(Z=\operatorname{SiLU}(\operatorname{Linear}(\cdot))\), and then applies the Mamba-style gate \(Z\odot Y\). At cross-modal level, Optimal Transport matrices \(M_{p2g}\) and \(M_{g2p}\) act as token-level gates by selecting the most similar partner in the other modality, while the global MMD loss constrains the distributional space in which fusion is allowed [2509.16900].

SlideMamba makes the gate explicit and confidence-driven. If \(\hat{\mathbf{y}}_{\mathrm{SG}}\) and \(\hat{\mathbf{y}}_{\mathrm{Mamba}}\) are branch probabilities, normalized entropy is
\[
H(\hat{\mathbf{y}})=-\frac{1}{\log(C)}\sum_{c=1}^C \hat{y}_c \log(\hat{y}_c),
\]
confidence is \(w=1-H\), and the fusion coefficient is
\[
\alpha=\frac{w_{\mathrm{Mamba}}}{w_{\mathrm{SG}}+w_{\mathrm{Mamba}}}.
\]
The fused representation is then
\[
\mathbf{X}^{l+1}_{\mathrm{SlideMamba}}
=(1-\alpha)\mathbf{X}^{l+1}_{\mathrm{SG}}+\alpha \mathbf{X}^{l+1}_{\mathrm{Mamba}}.
\]
This is a scalar gate per block, derived from predictive entropy rather than from a learned cross-attention matrix [2509.21239].

MambaTrack couples temporal gating and cross-modal gating. Event density
\[
p_t=\frac{\mathrm{count}(V_t)}{H\times W}
\]
is projected into
\[
\beta=\sigma(W_a p_t),
\]
and the event-branch state transition becomes
\[
A_t=\alpha \cdot \beta \cdot A_{\mathrm{base}} + (1-\alpha)\cdot A_{t-1},
\qquad
A_{\mathrm{final}}=A_t+A.
\]
At the fusion interface, the Gated Projection Fusion module computes
\[
G=\mathrm{Sigmoid}\!\left(W_g[p(t);\|F_{\mathrm{RGB}}\|_2]\right),
\]
and fuses RGB into event space as
\[
F_{\mathrm{fuse}\rightarrow E}=F_{\mathrm{Event}}+G\odot A_F.
\]
The same design is used symmetrically for event-to-RGB fusion [2604.13426].

MambaFusion adopts a spatially varying, reliability-aware gate. For each BEV cell \((x,y)\), the descriptor
\[
\mathbf{g}(x,y)=[\rho_L,\tau_C,o,\phi,d]
\]
is passed to a small MLP with attended camera and LiDAR BEV tokens:
\[
g(x,y)=\sigma\Big(\Phi_{\mathrm{gate}}([\mathbf{g}(x,y),Q_C^{\mathrm{att}}(x,y),Q_L^{\mathrm{att}}(x,y)])\Big).
\]
Per-cell uncertainties \(\sigma_C^2(x,y)\) and \(\sigma_L^2(x,y)\) then define inverse-variance fusion
\[
Q_{\mathrm{fused}}(x,y)=
\frac{g\,Q_C^{\mathrm{att}}/\sigma_C^2 + (1-g)\,Q_L^{\mathrm{att}}/\sigma_L^2}
{g/\sigma_C^2 + (1-g)/\sigma_L^2 + \epsilon}.
\]
This combines gating and uncertainty calibration in a single fusion rule [2602.08126].

SMC-Mamba generalizes gating to expert routing. After global average and max pooling over concatenated multimodal features, the expert weights are
\[
W_{\mathrm{exp}}=\mathrm{Softmax}\big(\mathrm{TopK}(F_g\cdot W_g + \epsilon)\big),
\qquad
\epsilon=\mathcal{N}(0,1)\cdot \mathrm{Softplus}(F_g\cdot W_{\mathrm{noise}}),
\]
and the fused output is
\[
F_{mf}=\sum_{i=1}^{N} W_{\mathrm{exp}}^i \cdot \hat{F}_i.
\]
Inside each expert, cross-modal Mamba outputs are further gated by the opposite modality:
\[
F_{mf}^N = F_{cm1}\odot \mathrm{SiLU}(F_{ln2}) + F_{cm2}\odot \mathrm{SiLU}(F_{ln1}).
\]
The result is a hierarchical gating stack: local gating, global gating, expert gating, and cross-modal gating [2512.20921].

## 4. Hierarchical structure across scales, branches, and domains

The hierarchical aspect of GM-Fusion is not restricted to a feature pyramid; it also appears as cross-scale recursion, wavelet sub-band decomposition, encoder-decoder skip fusion, multi-expert routing, and object-level refinement. GraspMamba is the most direct coarse-to-fine example. Its four-stage CNN–MambaVision backbone yields \(\mathbf{X}_1,\mathbf{X}_2,\mathbf{X}_3,\mathbf{X}_4\), and multimodal fusion is performed at every level. Local fusion \(\Phi_l(\mathbf{X}_l,\mathbf{T})\) is combined with top-down context using
\[
F_l=
\begin{cases}
\Phi_L(\mathbf{X}_L,\mathbf{T}), & l=L, \\
\Phi_l(\mathbf{X}_l,\mathbf{T}) + U_{l+1}(F_{l+1}), & 1\le l<L,
\end{cases}
\]
which is structurally analogous to an FPN, but with text-conditioned features at each level [2409.14403].

FusionMamba constructs an explicitly dual-branch hierarchy. A spatial U-Net extracts \(\mathbf{F}_i^a\), a spectral U-Net extracts \(\mathbf{F}_i^b\), and a dual-input FusionMamba block is inserted at each stage of the spectral path. Within each FusionMamba block, each modality conditions the other modality’s state-space parameters, and the two outputs are merged as
\[
\mathbf{F}_{out}=\mathbf{Conv}_o(\mathbf{F}_{out}^a+\mathbf{F}_{out}^b).
\]
The ablation study attributes better performance to the double-U-Net hierarchy, four-directional scanning, and symmetric fusion rather than retaining only one branch output [2404.07932].

HiddenObject realizes a related hierarchy in a dual-stream encoder with four Vision Mamba blocks, an MMFF module at each stage, and a channel-wise Mamba decoder that fuses skip-connected multiscale features. MambaCAFU pushes the same idea further into a tri-branch encoder. Its main branch consists of four CoASMamba stages and one CoAMamba bottleneck, where co-attention gates combine transformer features, CNN features, and the running Mamba branch, and DoubleLCoA blocks apply gated multi-scale skip fusion in the decoder [2508.21135][2510.03786].

WaveMamba introduces a different kind of hierarchy: frequency decomposition. At selected backbone stages \(P_2\), \(P_3\), and \(P_5\), DWT separates low-frequency \(F_L\) and high-frequency \(F_H\) components. The low-frequency path uses LMFB, which itself is hierarchical: Shallow Fusion Mamba first applies channel swapping and VSS-based refinement, then Deep Fusion Mamba performs deeper SS2D-based cross-modal fusion with gated attention. High-frequency components are fused by an absolute-maximum rule. The resulting architecture is hierarchical across both scale and frequency [2507.18173].

GMF-Drive makes the hierarchy explicitly BEV-centric. It performs fusion at four backbone scales, and within each scale the fusion block proceeds from gated channel attention to BEV-SSM to Hierarchical Deformable Cross-Attention. The BEV-SSM itself contains multiple paths—direct, raster-scan, zigzag-scan, and multi-scale fusion—which are recombined adaptively. This is a hierarchical fusion pipeline inside a hierarchical backbone [2508.06113].

## 5. Representative instantiations and empirical evidence

The empirical literature spans robotics, pathology, remote sensing, tracking, hidden-object perception, multimodal fusion, and autonomous driving. The table lists representative instantiations in which hierarchical gating and Mamba-based fusion materially affect downstream performance.

| System | Domain | Representative evidence |
|---|---|---|
| GraspMamba [2409.14403] | Language-driven grasp detection | Hierarchical fusion raises \(H\) from 0.477 to 0.521 |
| SlideMamba [2509.21239] | Digital pathology | PRAUC \(0.751 \pm 0.05\) vs Mamba-only \(0.664 \pm 0.063\) |
| MambaTrack [2604.13426] | RGB-Event tracking | Full RGB+Event fusion: SR \(42.5\), PR \(54.0\); removing GPF reduces SR to 41.9 |
| GMF-Drive [2508.06113] | End-to-end autonomous driving | PDMS 88.85 vs baseline 88.10 |
| Fusion-Mamba [2404.09146] | RGB-IR object detection | Improves \(m\)AP by 5.9% on \(M^3FD\) and 4.9% on FLIR-Aligned |
| MambaFusion [2602.08126] | Camera-LiDAR 3D detection | Full system reaches 77.9 NDS and 74.9 mAP |

In robotics grasp detection, hierarchical fusion in GraspMamba improves Seen success from 0.582 to 0.630, Unseen from 0.372 to 0.411, and \(H\) from 0.477 to 0.521; the same system reports real-robot gains from 0.43/0.43 to 0.54 in single-object settings and from 0.42/0.42 to 0.52 in cluttered scenes when compared with MaskGrasp and LLDG [2409.14403]. In pathology, SlideMamba’s entropy-gated combination of a GNN branch and a Mamba branch achieves PRAUC \(0.751 \pm 0.05\), exceeding Mamba-only \(0.664 \pm 0.063\), GNN-only \(0.748 \pm 0.091\), and GAT-Mamba \(0.703 \pm 0.075\) [2509.21239]. In RGB-Event tracking, the combination of event-adaptive DSSM and GPF yields SR 42.5 and PR 54.0; removing DSSM lowers SR to 42.1 and PR to 53.2, while removing GPF lowers SR to 41.9 and PR to 53.4 [2604.13426].

Autonomous-driving results point in the same direction. GMF-Drive improves PDMS from 88.10 for the DiffusionDrive baseline to 88.85 when 14D pillars and full GM-Fusion are used, and its ablations show that HCA alone, BEV-SSM alone, and channel attention alone are each weaker than the complete hierarchical gated design [2508.06113]. MambaFusion reports a stepwise improvement from 71.4 NDS and 68.6 mAP for the baseline BEVTrans configuration to 77.9 NDS and 74.9 mAP for the full system with MTA, reliability-aware fusion, GCD, and temporal self-distillation [2602.08126]. In RGB-IR detection, Fusion-Mamba attributes a 5.9% \(m\)AP gain on \(M^3FD\) and a 4.9% gain on FLIR-Aligned to SSCS and DSSF, i.e., shallow channel swapping followed by deep dual state-space fusion in a hidden state space [2404.09146]. These results do not establish a single dominant GM-Fusion template, but they do consistently associate multi-level gating plus state-space fusion with better robustness under clutter, misalignment, uncertainty, or degraded visibility.

## 6. Misconceptions, limitations, and active directions

A recurring misconception is that any multimodal architecture using Mamba is already GM-Fusion. The literature does not support that interpretation. GraspMamba, for example, uses Mamba only in the visual backbone; its original fusion path is CNN-based, and explicit gating appears only in the generalized extension [2409.14403]. Conversely, FusionMamba, Fusion-Mamba, HiddenObject, and GMF-Drive place state-space operators directly in the fusion path, often with explicit multiplicative or routing gates [2404.07932][2404.09146][2508.21135][2508.06113].

A second misconception is that replacing attention with a generic Mamba block is sufficient. GMF-Drive’s ablation shows that C-EffiMamba and CA+EffiMamba do not surpass the transformer baseline, whereas HCA+BEV-SSM does. The relevant distinction is not “Mamba versus transformer” in the abstract, but task-specific state-space design with directional priors, gating, and hierarchical integration [2508.06113]. MambaCAFU makes a related point from segmentation: pure Mamba encoder-decoder designs are described as task-dependent and unstable, whereas Mamba is most effective when embedded inside a gated fusion pipeline involving CNN and transformer features [2510.03786].

The surveyed systems also expose concrete limitations. SlideMamba’s entropy gate is computed from branch outputs and applied uniformly within a block rather than spatially per patch, and the paper notes dependence on confidence calibration and the absence of explicit regularization for complementary branch behavior [2509.21239]. WaveMamba uses a non-learned absolute-maximum strategy for high-frequency fusion, so the low-frequency branch is strongly optimized while the high-frequency branch remains comparatively simple [2507.18173]. HiddenObject is two-modality symmetric and modality-agnostic, but its published design still assumes paired streams rather than a fully general \(M\)-modality routing mechanism [2508.21135]. MambaFusion addresses reliability and calibration explicitly, but its full detection pipeline includes token alignment, graph reasoning, and a structure-conditioned diffusion head, so the gains cannot be attributed to gating alone [2602.08126].

The most plausible synthesis is that GM-Fusion is best understood not as a single block but as an architectural principle: selective state-space modeling provides efficient long-range propagation, while gating determines which modality, scale, branch, or expert should dominate at a given point in the hierarchy. The surveyed papers suggest several directions for further refinement: soft OT rather than hard token assignment, explicit branch-level gates in multi-scan Mamba experts, spatially varying confidence gates, layer-specific transition modulation, and cross-scale consensus losses [2509.16900][2409.14403].

Source: https://www.emergentmind.com/topics/hierarchical-gated-mamba-fusion-gm-fusion