Spatial-Spectral Transformer for Hyperspectral Image Denoising

Miaoyu Li, Ying Fu, Yulun Zhang

Abstract

Hyperspectral Image (HSI) denoising is a critical preprocessing step for various remote sensing and medical imaging applications. Traditional methods and CNN-based approaches often struggle to simultaneously capture non-local spatial similarities and global spectral correlations. We present the Spatial-Spectral Transformer (SST), a novel deep-learning architecture that leverages factorized attention mechanisms. By combining shifted-window spatial attention with global spectral-wise attention, SST achieves state-of-the-art denoising performance with linear computational complexity, effectively preserving fine structural details across diverse noise conditions.

Introduction

Hyperspectral Images (HSIs) are high-dimensional "data cubes" containing dozens or hundreds of narrow spectral bands for every pixel. While rich in information, HSIs are highly susceptible to noise from sensor limitations and atmospheric interference. Existing denoising methods generally fall into two categories: traditional model-based methods and CNN-based methods. Model-based methods rely on hand-crafted priors and are often slow to optimize. CNNs, while fast, suffer from a "local" bias that limits their ability to capture long-range spatial dependencies and intricate correlations between distant spectral bands. The Spatial-Spectral Transformer (SST) addresses these limitations by utilizing the long-range modeling capabilities of Transformers while maintaining computational efficiency.

Methodology

The SST architecture is designed to efficiently process high-dimensional HSI data through a hierarchical and residual framework. The model learns to predict the noise pattern, which is then subtracted from the original noisy input to produce a clean image.

Hierarchical architecture of the SST, illustrating the organization of Residual Spatial-Spectral Blocks (RSSB) and Spatial-Spectral Transformer Layers (SSTL).

Spatial-Spectral Multi-head self-Attention (SSMA)

The core innovation of SST is the SSMA module, which decomposes the attention mechanism into two specialized layers to achieve linear computational complexity $O(HWC)$:

  1. Non-Local Spatial self-Attention (NLSA): To manage computation, NLSA uses a shifted-window approach (similar to the Swin Transformer). This allows the model to capture non-local spatial similarities beyond the immediate neighborhood without the quadratic cost of global spatial attention.
  2. Global Spectral self-Attention (GSA): Since HSIs exhibit strong correlations across bands, this layer treats the entire spectrum globally. It computes attention across the spectral dimension to exploit long-range dependencies between highly correlative bands, refining the spatial features.
Detailed architecture of the SSMA module, showing the factorized spatial (NLSA) and spectral (GSA) attention pathways.

These modules are encapsulated within Spatial-Spectral Transformer Layers (SSTL) and organized into Residual Spatial-Spectral Blocks (RSSB) to facilitate deep feature extraction.

Datasets and Evaluation

The model's performance was validated using several key datasets:

  • ICVL Dataset: A large-scale HSI dataset used for training and testing under various simulated noise patterns, including Gaussian, impulse, stripe, and complex mixtures.
  • Urban Dataset: A real-world noisy HSI dataset used to evaluate the model's performance on actual sensor noise where no clean ground truth exists.
  • APEX Dataset: Used for pre-training the model to enhance its feature representation before evaluation on real-world data.

Key Insights and Results

  • Spatial-Spectral Synergy: The authors demonstrate that spatial and spectral information are complementary. NLSA provides coarse spatial denoising, while GSA uses global spectral context to fine-tune those features.
  • Efficiency via Factorization: By splitting the attention mechanism into spatial windows and global spectral dimensions, the model achieves linear computational complexity, making it practical for high-dimensional HSI tasks.
  • Quantitative Superiority: On the ICVL dataset with high Gaussian noise ($\sigma=70$), SST improved the Peak Signal-to-Noise Ratio (PSNR) by over 0.7 dB compared to the next best method.
  • Robustness to Complex Noise: In scenarios involving "mixture noise" (Gaussian + Impulse + Stripe + Deadline), SST maintained a significant lead, proving its effectiveness in non-ideal, real-world conditions.
  • Visual Fidelity: Qualitative results show that SST preserves fine textures and structural edges (such as building windows or foliage) that other methods often blur or distort with artifacts.

Conclusion

The Spatial-Spectral Transformer (SST) represents a significant advancement in HSI denoising by effectively balancing long-range dependency modeling with computational efficiency. While the model shows impressive results, future work may involve integrating noise estimation modules for blind denoising tasks and exploring methods to reduce the reliance on large-scale pre-training for data-limited applications.

Summary updated

BibTeX
@inproceedings{li2023spatial,
  author = {Miaoyu Li and Ying Fu and Yulun Zhang},
  title = {{Spatial-Spectral Transformer for Hyperspectral Image Denoising}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i1.25221},
}
Figure