Mask-guided Spectral-wise Transformer for Efficient Hyperspectral Image Reconstruction
About
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/
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| HSI Reconstruction | KAIST 10 scenes (Scene2) | PSNR36.13 | 39 | |
| Hyperspectral Image Reconstruction | KAIST 10 simulation scenes (test) | PSNR35.18 | 30 | |
| Hyperspectral Image Reconstruction | KAIST simulation (Average test) | PSNR35.18 | 26 | |
| HSI Reconstruction | KAIST 10 scenes (Scene5) | PSNR32.84 | 25 | |
| Multispectral Image Reconstruction | KAIST simulation S6 | PSNR34.56 | 16 | |
| Multispectral Image Reconstruction | KAIST simulation S8 | PSNR32.74 | 16 | |
| Multispectral Image Reconstruction | KAIST simulation S10 | PSNR32.63 | 16 | |
| Multispectral Image Reconstruction | KAIST S1 (simulation) | PSNR35.3 | 16 | |
| Multispectral Image Reconstruction | KAIST S3 (simulation) | PSNR35.66 | 16 | |
| Multispectral Image Reconstruction | KAIST simulation S7 | PSNR33.8 | 16 |