STSMamba: Spatial-Temporal-Spectral Architectures
- STSMamba is a family of Mamba-based architectures that explicitly organize spatial, temporal, and spectral information to enhance task-specific performance.
- Key variants include MambaST for cross-spectral pedestrian detection, a sparse deformable version for MODIS time series classification, and MCMamba for multichannel speech enhancement.
- Empirical studies show these architectures deliver improved efficiency and accuracy over traditional CNNs, Transformers, and LSTMs by leveraging structured tokenization and recurrence.
Spatial-Temporal-Spectral Mamba (STSMamba) denotes a family of Mamba-based architectures that extend state-space modeling to data in which spatial arrangement, temporal evolution, and spectral or modality structure must be processed jointly. In current arXiv usage, the term appears in at least three task-specific forms: as MambaST, a plug-and-play cross-spectral spatial-temporal fusion pipeline for RGB-thermal pedestrian detection (Gao et al., 2024); as a spatial-temporal-spectral Mamba with sparse deformable token sequence for MODIS time series classification (Dewis et al., 29 Jul 2025); and, in a related description, as MCMamba for multichannel speech enhancement, where Mamba blocks jointly model spatial and spectral information across microphones and time (Ren et al., 2024). The shared premise is that direct flattening of all dimensions into a single undifferentiated sequence is suboptimal; instead, STSMamba variants explicitly organize spatial, temporal, and spectral dependencies before or during state-space processing.
1. Terminological scope and family structure
The expression “Spatial-Temporal-Spectral Mamba” does not denote a single standardized network. The available literature uses it for distinct architectures that are unified by their reliance on Mamba blocks and by their explicit treatment of three structured axes: space, time, and spectrum or modality. In one case, “spectral” refers to RGB and thermal streams in cross-spectral perception; in another, it refers to multispectral MODIS bands; in a third, it refers to spectral representations of multichannel speech (Gao et al., 2024).
| Work | Application | Characteristic modules |
|---|---|---|
| MambaST (Gao et al., 2024) | Cross-spectral pedestrian detection | MHHPA, OCF, recurrent temporal fusion |
| STSMamba (Dewis et al., 29 Jul 2025) | MODIS time series classification | TGS, SDMS, SDTM, SDSpeM, SDSpaM |
| MCMamba (Ren et al., 2024) | Multichannel speech enhancement | Full-band and narrow-band spatial modules; sub-band and full-band spectral modules |
This distribution of meanings is important for interpretation. A common misconception is to treat STSMamba as a single plug-in block with fixed semantics. The published record instead shows a design pattern: Mamba is adapted so that structured tokenization, sequencing, and residual reconstruction align with the modality geometry of the task. A plausible implication is that “STSMamba” functions more as an architectural genre than as a single reproducible template.
2. State-space basis and recurrent modeling strategy
The pedestrian-detection formulation grounds STSMamba in the continuous-time linear time-invariant formulation of Mamba,
where , , , , and (Gao et al., 2024). In that setting, the scalar input is replaced by a concatenation of multi-scale patches from RGB and thermal feature maps at frame , while the hidden state is carried forward in time through a simple recurrent connection.
The speech-enhancement formulation emphasizes the discrete-time structured state-space view,
and further describes a gated implementation,
where the element-wise product implements input-selection gating (Ren et al., 2024). This makes explicit that STSMamba variants inherit not only recurrence, but also selective propagation and long-range dependency modeling from the underlying Mamba design.
The MODIS formulation pushes the idea further by inserting a sparse deformable sequencing stage before Mamba processing. For an input token matrix , it computes
0
then forms a shorter sparse sequence by ranking row-wise mean attention scores and keeping the top 1 tokens before feeding them into a MambaBlock (Dewis et al., 29 Jul 2025). Here the state-space model is not merely a replacement for attention; it is coupled to a learned sparsification policy that changes token selection at every forward pass.
Across these versions, the recurring technical principle is structured sequencing rather than indiscriminate flattening. This suggests that the decisive design variable in STSMamba is often the construction of the sequence presented to the Mamba block, not the state-space kernel alone.
3. Cross-spectral pedestrian detection: MambaST
In pedestrian detection, STSMamba appears as MambaST, a plug-and-play cross-spectral spatial-temporal fusion pipeline for efficient pedestrian detection (Gao et al., 2024). The stated motivation is threefold: RGB cameras are unreliable under dark or low-light conditions; cross-spectral systems must integrate complementary information from thermal and visible cameras; and pedestrian detection is latency-sensitive, making efficient and easy-to-scale models with fewer parameters desirable. The architecture therefore couples spatial-temporal reasoning with RGB-thermal fusion.
Its core module is the Multi-head Hierarchical Patching and Aggregation (MHHPA) structure. For each frame 2, a set of patch sizes 3 is defined, typically 4 for the first block and none for subsequent blocks. Given RGB and thermal feature maps 5, non-overlapping patches of size 6 are formed:
7
The paper distinguishes coarse-grained patches, which capture global context and suppress pixel-level noise, from fine-grained patches, which preserve high-resolution detail.
To preserve locality while fusing modalities, MambaST introduces Order-Aware Concatenation and Flattening (OCF). For patch size 8,
9
with row-wise interleaving of RGB and thermal pixels and separate handling of even and odd columns (Gao et al., 2024). The projected sequence 0 is then processed by 1 cascaded MambaBlocks. The “multi-head” designation refers to the 2 parallel patch scales; the paper states explicitly that no soft-attention is used.
Reconstruction is residual. The output 3 is reshaped and split into 4 and 5, which are added back to the RGB and thermal patches, after which all scales are upsampled to 6 and concatenated along the channel axis. Before patching, a learnable spectrum tag 7 or 8, together with positional embedding 9, is added to each spatial feature. The paper describes this as spectral embeddings, joint tokenization through OCF, and residual fusion without explicit gating; cross-modal correction is learned implicitly by the recurrence (Gao et al., 2024).
Algorithm 1 provides full pseudocode. Architecturally, MambaST is therefore best understood as a cross-spectral sequence constructor around Mamba blocks, rather than as a direct transplant of sequence modeling from 1D language tasks.
4. MODIS time series classification: sparse deformable STSMamba
For MODIS time series classification, STSMamba is introduced as “Spatial-Temporal-Spectral Mamba with Sparse Deformable Token Sequence for Enhanced MODIS Time Series Classification” (Dewis et al., 29 Jul 2025). The input is a batch of MODIS time-series cubes
0
with 1, 2, and spatial patch size 3. The model addresses high temporal dimensionality, mixed pixels, and spatial-temporal-spectral coupling effect.
The first stage is the Temporal Grouped Stem (TGS), designed to disentangle temporal-spectral feature coupling. The input is split into 4 groups 5, one per time step, and each group is processed by
6
with 7. The outputs are restacked into
8
The paper characterizes this as replacing a single giant convolution on all 9 channels by 0 parallel small-channel convolutions.
The main innovation is Sparse Deformable Mamba Sequencing (SDMS). Each of the three downstream modules follows the same sequence: reshape into tokens along one modality, compute a small modality-wise attention or similarity matrix, select the top 1-fraction of tokens, process the shorter sequence with a MambaBlock, and scatter outputs back as a residual (Dewis et al., 29 Jul 2025). The “deformable” terminology refers to the fact that the selected indices depend on the learned attention matrix and are updated at every forward pass. The paper notes that this is analogous to deformable attention in object detection, but the modality positions are reshuffled in a learnable way.
This sequencing policy underlies three explicit modules. Sparse Deformable Temporal Mamba (SDTM) reshapes 2 into 3 tokens, one per time step. Sparse Deformable Spectral Mamba (SDSpeM) treats 4 as a batch dimension and forms 5 spectral tokens of size 6 per sample. Sparse Deformable Spatial Mamba (SDSpaM) reshapes features into one token per pixel location with spectral length 7, then ranks locations by a cosine-angle similarity to the center pixel,
8
before sparse Mamba processing (Dewis et al., 29 Jul 2025).
The paper states that this design disentangles the three modalities rather than “cramming all 9 into one long sequence.” A plausible implication is that the model treats sparsity and axis-specific factorization as coequal design goals: efficiency is obtained not only from Mamba’s linear-time properties, but also from aggressive reduction of the effective token count.
5. Multichannel speech enhancement: MCMamba as an STSMamba formulation
In multichannel speech enhancement, the related STSMamba formulation is described under the name MCMamba (Ren et al., 2024). The model processes a multichannel noisy STFT through four cascade modules: two for spatial modeling and two for spectral modeling. Each module is built around a Mamba block, and each block may be Uni-Mamba for real-time operation or Bi-Mamba for offline processing.
The spatial pathway is divided into full-band and narrow-band components. In the full-band spatial module, for each time 0 and frequency 1, the input is the real-imaginary vector across microphones,
2
optionally augmented with inter-channel phase differences 3. This sequence is processed along the frequency axis. In the narrow-band spatial module, the model fixes frequency 4 and processes the time sequence 5 to capture how spatial cues evolve over time (Ren et al., 2024).
The spectral pathway is likewise split into sub-band and full-band components. The sub-band module operates on the magnitude of the reference channel, stacking 6 neighboring frequency bins with 7,
8
and then running a Mamba block over time. The full-band spectral module aggregates 9 consecutive frames at each frequency with 0,
1
again followed by Mamba processing and a fully connected layer (Ren et al., 2024).
After the fourth module, outputs are concatenated and passed through a final linear layer to predict a complex mask 2, which is applied to the reference-channel STFT:
3
Training minimizes the mean-square error between the masked STFT and the clean STFT. The model thus instantiates spatial-temporal-spectral Mamba not through explicit multimodal token interleaving, as in MambaST, nor through deformable sparsification, as in the MODIS model, but through a cascade of axis-specific Mamba modules operating on STFT-derived spatial and spectral feature organizations.
6. Empirical profile, recurrent motifs, and interpretive issues
The reported empirical results differ by task and are therefore not directly comparable, but they establish a consistent pattern: STSMamba variants are presented as competitive or superior alternatives to Transformer-, CNN-, or LSTM-based baselines within their own domains.
For pedestrian detection on KAIST, MambaST reaches 4 LAMR in the “reasonable” setting, compared with 5 for vanilla CFT, 6 for T-CFT, and 7 for D-CFT; recall improves from 8 for D-CFT to 9. In the “reasonable small” setting, D-CFT records 0 LAMR and STSMamba records 1. The ablation study reports 2 median LAMR for single-scale patching 3, 4 for multi-scale patching 5 in block 1), 6 after inserting OCF, and 7 when increasing temporal frames 8 to 9. The same paper reports 0 M parameters and 1 GFLOPs for STSMamba, versus 2 M and 3 GFLOPs for CFT, and 4 M and 5 GFLOPs for D-CFT; inference latency is 6 ms per frame, versus 7 ms for CFT and 8 ms for D-CFT (Gao et al., 2024).
For MODIS time series classification, STSMamba reports Saskatchewan results of OA 9, AA 0, and 1, compared with the next best MambaHSI at OA 2, AA 3, and 4. On Alberta cross-domain evaluation, it reports OA 5, AA 6, and 7, compared with MambaHSI at OA 8, AA 9, and 00. The best ablation setting uses 01 and 02 (Dewis et al., 29 Jul 2025).
For speech enhancement on CHiME-3, the non-causal Bi-Mamba version reports NB-PESQ 03, WB-PESQ 04, STOI 05, and SDR 06, compared with McNet at 07, 08, 09, and 10. The causal Uni-Mamba version records 11, 12, 13, and 14. An ablation study shows that replacing only the spectral modules with Mamba yields 15, while replacing only the spatial modules yields 16, which the paper interprets as evidence that Mamba performs exceptionally well in modeling spectral information (Ren et al., 2024).
Several interpretive clarifications follow directly from these reports. First, “multi-head” in MambaST should not be conflated with Transformer multi-head attention: the paper states that no soft-attention is used, and that the multi-head aspect arises from parallel patch scales (Gao et al., 2024). Second, “deformable” in the MODIS model refers to adaptive token selection driven by a learned attention matrix rather than geometric resampling (Dewis et al., 29 Jul 2025). Third, the literature uses the same umbrella term for architectures with materially different internal organizations. This suggests that the stable conceptual core of STSMamba is not one fixed block diagram, but the combination of Mamba-based recurrence with task-specific decomposition of spatial, temporal, and spectral structure.