Uncertainty-Driven Spectral Compressive Imaging with Spatial-Frequency Transformer

Lintao Peng, Siyu Xie, Liheng BianECCV 2024

Introduction

Hyperspectral imaging (HSI) captures high-dimensional data cubes (height, width, and wavelength), providing rich information for applications like remote sensing and medical diagnosis. However, traditional HSI systems suffer from low temporal resolution. Coded Aperture Snapshot Spectral Imaging (CASSI) addresses this by compressing the 3D HSI cube into a single 2D measurement. Reconstructing the original cube from this compressed measurement is an ill-posed inverse problem that remains a significant challenge.

Existing deep learning reconstruction methods often struggle with three main issues:

  1. Ignoring Priors: Failure to simultaneously exploit spatial sparsity and inter-spectral similarity.
  2. Computational Complexity: Standard Transformers exhibit quadratic complexity, making them impractical for high-resolution HSIs.
  3. The "Equal Treatment" Flaw: Treating all pixels equally during training, despite edges and textures being significantly harder to reconstruct than smooth regions.

Specformer: Architecture and Methodology

To overcome these challenges, the authors introduce Specformer, a U-shaped encoder-decoder network centered around a novel Spatial-Frequency (SF) block.

Overview of the Specformer architecture, the SF-Block details, and the CASSI system.

The Spatial-Frequency (SF) Block

The core of Specformer is the SF-block, which employs a dual-branch attention mechanism to capture multi-scale features efficiently:

  • Local-Window Self-Attention (LWSA): This branch focuses on local spatial details, maintaining low computational costs by operating within restricted windows.
  • Frequency-Wise Self-Attention (FWSA): This branch captures long-range spectral dependencies. By transforming features into the frequency domain using a Fast Fourier Transform (FFT) and applying a learnable global filter, it achieves global receptive fields with linear complexity.

Uncertainty-Driven Loss (UDL)

Specformer utilizes a two-stage Uncertainty-Driven Loss (UDL) strategy to address the "equal treatment" problem. In the first stage, the network predicts both the reconstructed HSI and an uncertainty map that identifies challenging regions like edges. In the second stage, this map weights the loss function, forcing the model to prioritize these high-uncertainty areas, leading to sharper reconstructions without increasing inference-time parameters.

Experimental Results

Specformer was evaluated on the CAVE and KAIST datasets for simulation, and the TSA-Net dataset for real-world performance.

Performance comparison (PSNR and SSIM vs. FLOPs) of Specformer against other state-of-the-art methods.

Quantitative and Qualitative Performance

As shown in the performance plots, Specformer achieves state-of-the-art results. On the KAIST dataset, it reached an average PSNR of 40.61 dB, outperforming the previous best (RDLUF) by over 1 dB. Notably, it achieves this superior accuracy with significantly fewer FLOPs and parameters than competing models like PADUT and DAUHST-L.

Qualitatively, Specformer produces images with significantly reduced spectral bleeding and sharper textures, demonstrating its robustness to the noise and hardware imperfections found in real-world CASSI systems.

Conclusion

Specformer represents a significant advancement in HSI reconstruction by combining efficient frequency-domain attention with a targeted uncertainty-driven training strategy. While the two-stage training adds some overhead, the resulting model offers an optimal balance of high reconstruction quality and computational efficiency. Future work may explore applying the uncertainty-driven approach to other complex inverse imaging tasks.

Summary updated

BibTeX
@inproceedings{peng2024uncertainty,
  author = {Lintao Peng and Siyu Xie and Liheng Bian},
  title = {{Uncertainty-Driven Spectral Compressive Imaging with Spatial-Frequency Transformer}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72658-3\_4},
}
Figure