[Paper Review] SpectralMamba: Efficient Mamba for Hyperspectral Image Classification
SpectralMamba introduces an SSM-based backbone with piece-wise sequential scanning and gated spatial-spectral merging to achieve high accuracy with low computational cost on hyperspectral image classification.
Recurrent neural networks and Transformers have recently dominated most applications in hyperspectral (HS) imaging, owing to their capability to capture long-range dependencies from spectrum sequences. However, despite the success of these sequential architectures, the non-ignorable inefficiency caused by either difficulty in parallelization or computationally prohibitive attention still hinders their practicality, especially for large-scale observation in remote sensing scenarios. To address this issue, we herein propose SpectralMamba -- a novel state space model incorporated efficient deep learning framework for HS image classification. SpectralMamba features the simplified but adequate modeling of HS data dynamics at two levels. First, in spatial-spectral space, a dynamical mask is learned by efficient convolutions to simultaneously encode spatial regularity and spectral peculiarity, thus attenuating the spectral variability and confusion in discriminative representation learning. Second, the merged spectrum can then be efficiently operated in the hidden state space with all parameters learned input-dependent, yielding selectively focused responses without reliance on redundant attention or imparallelizable recurrence. To explore the room for further computational downsizing, a piece-wise scanning mechanism is employed in-between, transferring approximately continuous spectrum into sequences with squeezed length while maintaining short- and long-term contextual profiles among hundreds of bands. Through extensive experiments on four benchmark HS datasets acquired by satellite-, aircraft-, and UAV-borne imagers, SpectralMamba surprisingly creates promising win-wins from both performance and efficiency perspectives.
Motivation & Objective
- Address the challenges of high dimensionality, spectral variability, and spectral confusion in hyperspectral (HS) data.
- Develop an efficient state space model–based backbone tailored for HS classification.
- Leverage spatial-spectral gating and piece-wise spectral scanning to reduce parameters and computations.
- Demonstrate strong performance across diverse HS datasets from satellite, aircraft, and UAV platforms.
Proposed method
- Propose SpectralMamba, a Mamba–S6 based backbone that models HS data dynamics in both spatial-spectral and hidden state spaces.
- Introduce Piece-wise Sequential Scanning (PSS) to split the spectrum into segments, forming a C×R representation before sequential learning.
- Add Gated Spatial-Spectral Merging (GSSM) to dynamically merge spectra using a lightweight spatial gate via depthwise/pointwise convolutions.
- Utilize a state-space (S6) block with input-dependent parameters to enable selective, efficient sequence modeling of spectra.
- Provide a pixelwise and patchwise processing pathway to accommodate different input granularities.
- Report training efficiency and performance by comparing MACs and parameter counts alongside standard HS classification metrics.
Experimental results
Research questions
- RQ1How can state-space models be tailored to efficiently handle the high dimensionality of hyperspectral data?
- RQ2Can piece-wise spectral scanning coupled with gated spatial-spectral merging improve discrimination while reducing computational cost?
- RQ3Does SpectralMamba achieve favorable performance–efficiency trade-offs across multiple HS datasets and acquisition platforms?
- RQ4What are the contributions of key components (PSS and GSSM) to overall performance?
Key findings
- SpectralMamba achieves competitive to superior OA/AA/Kappa scores compared with CNN, CasRNN, SpectralFormer and others on benchmark HS datasets.
- The ablation studies show PSS yields about 4% OA improvement while reducing 60% of parameters and 40% of computations relative to the baseline.
- SpectralMamba maintains relatively low MACs and parameter counts while delivering strong performance across datasets from satellite, aircraft, and UAV platforms.
- The method demonstrates favorable efficiency gains, balancing accuracy with computational resources.
- The proposed components—PSS and GSSM—contribute substantially to performance gains and robustness against spectral variability and confusion.
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.