HIR-Diff: Unsupervised Hyperspectral Image Restoration Via Improved Diffusion Models

Li Pang, Xiangyu Rui, Long Cui, Hongzhong Wang, Deyu Meng, Xiangyong Cao

Introduction

Hyperspectral imaging (HSI) captures a wide spectrum of light for every pixel in an image, providing a "chemical fingerprint" essential for applications ranging from precision agriculture to mineral exploration. However, the high spectral resolution often comes at the cost of spatial resolution and signal-to-noise ratio. Restoring degraded HSIs is a significant challenge due to the "dimensionality curse"—the sheer volume of data in hundreds of spectral bands—and the "generalization gap," where models trained on specific datasets fail to perform on data from different sensors.

Methodology

The HIR-Diff framework addresses these challenges through an unsupervised approach that leverages the generative power of diffusion models without the computational burden of processing hundreds of bands simultaneously. The method employs a "divide and conquer" strategy to bridge the gap between 3-channel generative priors and high-dimensional spectral data.

Low-Rank Matrix Factorization

The core of HIR-Diff is the assumption that an HSI ($X$) can be decomposed into a low-rank representation: $X \approx AE$. Here, $A$ represents a "reduced image" consisting of only three bands (analogous to RGB), and $E$ is a coefficient matrix that maps these bands back to the full spectral space. This decomposition reduces the restoration task from a high-dimensional problem to a 3-channel problem, allowing the use of powerful pre-trained RGB diffusion models.

Robust Coefficient Estimation

To ensure the stability of the coefficient matrix $E$, especially in the presence of noise, the authors employ Singular Value Decomposition (SVD) and Rank-Revealing QR (RRQR) factorization. RRQR is particularly effective at identifying the most representative and linearly independent bands, ensuring that the matrix inversion required for reconstruction is numerically stable and robust to noise.

Improved Diffusion and Guidance

The reduced image $A$ is restored using a diffusion model pre-trained on large-scale 3-channel remote sensing data. To improve spatial consistency, the authors introduce a guidance function incorporating a Total Variation (TV) prior. This prior encourages piecewise smoothness and preserves sharp edges, which are often blurred during standard diffusion processes.

Exponential Noise Schedule

One of the primary bottlenecks of diffusion models is the number of sampling steps required. HIR-Diff utilizes an exponential noise schedule rather than the standard linear or cosine schedules. This modification allows the model to converge significantly faster, reducing the required iterations from over 100 to approximately 20, resulting in a $5\times$ speedup over standard diffusion methods.

Experimental Evaluation

The framework was evaluated on three benchmark datasets: Washington DC (WDC) Mall, Houston, and Salinas. These datasets represent diverse environments, including urban areas and agricultural fields.

Performance Metrics

HIR-Diff was compared against both model-based and deep learning-based methods across three primary tasks:

  1. Denoising: HIR-Diff achieved state-of-the-art Peak Signal-to-Noise Ratio (PSNR). On the WDC dataset, it was not only more accurate than the unsupervised DDS2M method but also 180 times faster (17 seconds versus 3132 seconds).
  2. Super-Resolution: For $\times4$ and $\times8$ upscaling, the model preserved fine textures and structural details better than traditional interpolation and supervised CNN-based methods.
  3. Inpainting: The model demonstrated robustness in reconstructing scenes even when 90% of the pixels were missing, effectively leveraging the learned spatial priors of the diffusion model.

Discussion and Limitations

HIR-Diff represents a significant step forward in making diffusion models practical for HSI restoration. Its unsupervised nature allows it to generalize across different sensors without the need for task-specific training data.

However, some limitations remain. The current framework fixes the rank at $K=3$ to utilize standard RGB-based diffusion models. While effective for many scenes, highly complex spectral data might benefit from a higher rank, which would require multi-channel diffusion models. Additionally, the performance is tied to the domain of the pre-trained model; applying HIR-Diff to non-remote sensing data (e.g., medical imaging) would likely require a model pre-trained on that specific domain. Finally, hyperparameters such as the TV prior weight still require manual tuning based on noise levels.

Summary updated

BibTeX
@inproceedings{pang2024hir,
  author = {Li Pang and Xiangyu Rui and Long Cui and Hongzhong Wang and Deyu Meng and Xiangyong Cao},
  title = {{HIR-Diff: Unsupervised Hyperspectral Image Restoration Via Improved Diffusion Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
}
Figure