SSUMamba: Spatial-Spectral Selective State Space Model for Hyperspectral Image Denoising

Guanyiman Fu, Fengchao Xiong, Jianfeng Lu, Jun Zhou, Yuntao Qian

TL;DR

SSUMamba introduces a memory-efficient state-space model for hyperspectral image (HSI) denoising that effectively captures long-range spatial-spectral dependencies. By utilizing a novel Spatial-Spectral Continuous Scan (SSCS) scheme, it achieves state-of-the-art denoising performance with significantly lower computational overhead and memory consumption compared to traditional transformer-based architectures.

What Problem Does This Paper Address?

Hyperspectral images (HSIs) contain dozens or hundreds of narrow spectral bands, providing a rich "spectral signature" for every pixel. However, these images are often plagued by complex noise from sensor limitations and environmental factors. Effective denoising requires modeling correlations across both the spatial (2D) and spectral (1D) domains.

Current deep learning approaches face a trade-off:

  1. CNNs are computationally efficient but struggle to capture long-range, non-local information.
  2. Transformers excel at global modeling via self-attention but suffer from $O(n^2)$ computational complexity. For high-dimensional HSI data, this leads to prohibitive memory usage and slow inference.

The authors turn to Mamba, a Selective State Space Model (SSM) known for linear complexity and excellent long-range modeling. However, Mamba is designed for 1D sequences. Flattening a 3D HSI cube into a 1D sequence using standard "sweep scans" breaks the physical continuity of the data, leading to "local pixel forgetting" where the model loses track of neighboring pixels that end up far apart in the flattened string.

Methods

The authors propose SSUMamba, which integrates Mamba into a U-shaped encoder-decoder framework. The core innovation is the Spatial-Spectral Continuous Scan (SSCS) Mamba block.

  • SSCS Strategy: Instead of a simple raster scan, SSCS uses a "zigzag" continuous path to ensure that adjacent tokens in the 1D sequence remain spatially or spectrally close. The model alternates between six different scanning orders (e.g., row-column-band, band-row-column) across different layers to ensure the model learns dependencies from all perspectives.
  • Bidirectional SSM: Each sequence is processed in both forward and backward directions, effectively exploiting dependencies in 12 directions across the 3D volume.
  • Hybrid Modeling: The authors embed 3D residual convolutional blocks within the Mamba layers. This allows the model to handle local spatial-spectral textures (via CNNs) while Mamba handles the global, long-range correlations.
The SSUMamba architecture uses an encoder-decoder framework with specialized SSCS Mamba blocks.

Datasets

The model was trained and evaluated on several prominent HSI datasets:

  • ICVL: A large-scale dataset of natural HSIs used for training (100 images) and synthetic testing (50 images).
  • Houston 2018 & Pavia City Center: Used for synthetic evaluation to test the model's generalization across different sensor types.
  • Gaofen-5 Wuhan & Earth Observing-1 (EO-1): Real-world remote sensing datasets used to evaluate performance on actual sensor noise without ground truth (using no-reference metrics like TOPIQ).

Key Insights and Ideas

  • Linear Scaling is Essential: By replacing self-attention with SSMs, the authors demonstrate that you can achieve "transformer-like" global receptive fields without the quadratic memory explosion. This is particularly vital for HSIs where the spectral dimension acts as a massive multiplier for the number of tokens.
  • Scanning is a Prior: The way you flatten 3D data into a 1D sequence acts as an inductive bias. The "continuous scan" ensures the model respects the 3D topology of the HSI, preventing the loss of local context that occurs in naive scanning.
  • Efficiency vs. Performance: The paper shows a clear Pareto improvement: SSUMamba doesn't just match transformers; it beats them while using fewer parameters.

Key Results

SSUMamba consistently outperformed state-of-the-art transformer-based methods (like TRQ3D, SST, and SERT) across multiple metrics, including Peak Signal-to-Noise Ratio (PSNR) and Spectral Angle Mapper (SAM).

  • Efficiency: As shown in the figure below, SSUMamba achieves higher PSNR while utilizing significantly fewer parameters and lower memory per batch. For instance, an 8-channel SSUMamba outperformed a much larger TRQ3D model.
  • Visual Fidelity: Qualitative results showed that SSUMamba was better at removing "stripe" noise and deadlines in real-world data while preserving sharp edges and accurate spectral reflectance curves.
Fig. 1. Comparison of our SSUMamba and transformer-based TRQ3D, SST, and SERT on the ICVL testing set. The results indicate that SSUMamba outperforms transformer-based methods in peak signal-to-noise ratio (PSNR) while utilizing fewer parameters and memory consumption per batch.

Limitations and Future Work

While SSUMamba shows great promise, the authors note a few areas for growth:

  • Task Expansion: The current work focuses on denoising. The authors plan to adapt the SSCS Mamba block for other HSI tasks like super-resolution and classification.
  • Architectural Refinement: There is room to explore even more efficient network designs to further push the boundaries of inference speed for real-time remote sensing applications.
  • Complexity of Scans: Managing six different scanning schemes adds implementation complexity, and future work might investigate if a simpler subset of scans could achieve similar results.

Summary updated

BibTeX
@article{fu2024ssumamba,
  author = {Guanyiman Fu and Fengchao Xiong and Jianfeng Lu and Jun Zhou and Yuntao Qian},
  title = {{SSUMamba: Spatial-Spectral Selective State Space Model for Hyperspectral Image Denoising}},
  journal = {IEEE Trans. Geosci. Remote. Sens.},
  year = {2024},
  doi = {10.1109/tgrs.2024.3446812},
}
Figure