Skip to main content
QUICK REVIEW

[Paper Review] Mask-guided Spectral-wise Transformer for Efficient Hyperspectral Image Reconstruction

Yuanhao Cai, Jing Lin|arXiv (Cornell University)|Nov 15, 2021
Photoacoustic and Ultrasonic ImagingEngineering55 references15 citations
TL;DR

This paper proposes Mask-guided Spectral-wise Transformer (MST), a novel Transformer-based framework for efficient hyperspectral image (HSI) reconstruction in coded aperture snapshot spectral imaging (CASSI). By modeling self-attention along the spectral dimension via Spectral-wise Multi-head Self-attention (S-MSA) and guiding attention through a Mask-guided Mechanism (MM), MST achieves state-of-the-art performance with significantly reduced computational and memory costs.

ABSTRACT

Hyperspectral image (HSI) reconstruction aims to recover the 3D spatial-spectral signal from a 2D measurement in the coded aperture snapshot spectral imaging (CASSI) system. The HSI representations are highly similar and correlated across the spectral dimension. Modeling the inter-spectra interactions is beneficial for HSI reconstruction. However, existing CNN-based methods show limitations in capturing spectral-wise similarity and long-range dependencies. Besides, the HSI information is modulated by a coded aperture (physical mask) in CASSI. Nonetheless, current algorithms have not fully explored the guidance effect of the mask for HSI restoration. In this paper, we propose a novel framework, Mask-guided Spectral-wise Transformer (MST), for HSI reconstruction. Specifically, we present a Spectral-wise Multi-head Self-Attention (S-MSA) that treats each spectral feature as a token and calculates self-attention along the spectral dimension. In addition, we customize a Mask-guided Mechanism (MM) that directs S-MSA to pay attention to spatial regions with high-fidelity spectral representations. Extensive experiments show that our MST significantly outperforms state-of-the-art (SOTA) methods on simulation and real HSI datasets while requiring dramatically cheaper computational and memory costs. Code and pre-trained models are available at https://github.com/caiyuanhao1998/MST/

Motivation & Objective

  • To address the limitations of CNN-based methods in modeling spectral-wise similarity and long-range dependencies in hyperspectral image (HSI) reconstruction.
  • To exploit the physical coded aperture mask in CASSI systems more effectively, as existing methods underutilize its guidance potential.
  • To reduce computational and memory costs in HSI reconstruction while maintaining or improving reconstruction quality.
  • To develop a method that leverages the high spectral correlation and spatial sparsity inherent in HSI data for efficient modeling.

Proposed method

  • Introduces Spectral-wise Multi-head Self-attention (S-MSA), where each spectral channel is treated as a token and self-attention is computed along the spectral dimension to model inter-spectral correlations.
  • Proposes a Mask-guided Mechanism (MM) that uses the coded aperture mask to guide S-MSA to focus on spatial regions with higher-fidelity spectral representations.
  • Replaces standard spatial-wise self-attention with spectral-wise attention to better align with the intrinsic spectral similarity of HSI data.
  • Uses a modified input scheme where the mask is not directly applied via element-wise multiplication, avoiding corruption of HSI information.
  • Employs a lightweight architecture with reduced FLOPS and parameters by focusing on spectral dependencies rather than spatial long-range interactions.
  • Integrates S-MSA and MM into a Transformer-based encoder-decoder framework for end-to-end HSI reconstruction.

Experimental results

Research questions

  • RQ1Can modeling self-attention along the spectral dimension better capture inter-spectral correlations and long-range dependencies than spatial-wise attention in HSI reconstruction?
  • RQ2How effectively can the physical coded aperture mask guide the attention mechanism to improve reconstruction quality and efficiency?
  • RQ3Does a spectral-wise attention mechanism reduce computational cost while maintaining or improving reconstruction performance compared to standard Transformers?
  • RQ4Can the proposed Mask-guided Mechanism (MM) outperform conventional input schemes that corrupt HSI data via mask multiplication?
  • RQ5To what extent does the S-MSA module improve spectral correlation modeling compared to global or local window-based MSA?

Key findings

  • The proposed MST framework achieves a PSNR of 33.17 dB on the CAESR dataset, outperforming the previous SOTA method by 0.89 dB.
  • With only 0.70M parameters and 2.93G FLOPS, the S-MSA module achieves a 0.89 dB improvement over the baseline, while requiring significantly less computational cost than global MSA.
  • The correlation coefficient map of the reconstructed HSI using S-MSA is most similar to the ground truth, confirming its effectiveness in modeling spectral similarity.
  • The Mask-guided Mechanism (MM) alone improves PSNR by 1.08 dB, demonstrating its ability to guide attention toward high-fidelity regions and suppress noise.
  • Combining S-MSA and MM yields a 1.08 dB improvement over the baseline, with the model outperforming all SOTA methods in both PSNR and efficiency metrics.
  • Visual analysis confirms that the MM module enhances attention on structural details and textures, reducing blurring and artifacts in reconstructed HSIs.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.