NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

When Hyperspectral Image Classification Meets Diffusion Models: An Unsupervised Feature Learning Framework

Jingyi Zhou, Jiamu Sheng, Jiayuan Fan, Peng Ye, Tong He, Bin Wang, Tao ChenarXiv 2023 · OpenReview

Abstract

Learning effective spectral-spatial features is critical for hyperspectral image (HSI) classification. However, existing methods often struggle to model complex spectral-spatial relations and characterize both low-level details and high-level semantics. This paper introduces Diff-HSI, a novel unsupervised framework that leverages the generative power of diffusion models. By utilizing the unique dimension of timestep $t$, Diff-HSI captures abundant features across multiple scales. We propose a multi-timestep multi-stage diffusion (MTMSD) approach, incorporating a dynamic feature fusion module and a feature purification strategy to adaptively learn informative representations. Extensive experiments on public datasets demonstrate that Diff-HSI outperforms state-of-the-art supervised and unsupervised methods.

Introduction

Hyperspectral Image (HSI) classification is a cornerstone of remote sensing, providing rich spectral data across hundreds of bands. The primary challenge lies in the "data cube"—the intricate combination of high-dimensional spectral information and spatial context. While deep learning models like CNNs and Transformers have advanced the field, they typically require large volumes of labeled data, which is costly and difficult to obtain in remote sensing applications.

Recently, Denoising Diffusion Probabilistic Models (DDPMs) have emerged as a powerful paradigm for unsupervised learning. However, early applications of diffusion to HSI were often limited, manually selecting a single timestep or a single network layer for feature extraction. This "single-point" approach ignores the rich hierarchical information distributed across the denoising process.

Comparison between traditional single-timestep diffusion feature selection and the proposed multi-timestep, multi-stage approach.

Methodology

The proposed framework, referred to as MTMSD, operates in two distinct phases to maximize the utility of diffusion-based features.

1. Unsupervised Pretraining

A DDPM is trained on unlabeled HSI patches. Following a standard diffusion process, the model learns to reverse noise injection, effectively capturing the underlying structure and spectral-spatial relationships of the HSI data without requiring class labels. As shown in the architecture overview, the input HSI data undergoes PCA for dimensionality reduction before being processed by a Denoising U-Net.

2. Feature Extraction and Refinement

Instead of relying on a single point in the denoising process, MTMSD extracts hierarchical features from multiple stages of the U-Net decoder across various timesteps ($t_1, ..., t_m$). To manage the high dimensionality and redundancy of these features, the framework employs two specialized modules:

  • Class & Timestep-oriented Multi-Stage Feature Purification (CTMSFP): This module utilizes statistical priors from the training set to identify the most discriminative channels. By generating a "Purification Index," it strips away redundant information, significantly reducing computational overhead while preserving essential classification cues.
  • Selective Timestep Feature Fusion: Recognizing that different timesteps capture different levels of detail—shallow timesteps for fine textures and deeper timesteps for global semantics—this module adaptively weights and fuses features. A "Global Feature Bank" provides guidance, allowing the network to prioritize the most relevant timesteps for a given input patch.
Overview of the Diff-HSI (MTMSD) framework, illustrating unsupervised pretraining and the dual-module feature refinement process.

Key Insights

  • The Timestep Trade-off: Analysis reveals that different land-cover classes are best identified at different timesteps. For instance, classes defined by fine-grained textures (like "woods") benefit from early timesteps ($t \approx 100$), whereas classes requiring broader semantic context (like "corn-notill") are better served by later timesteps ($t \approx 900$).
  • Efficiency through Purification: Raw diffusion features are inherently redundant. The CTMSFP module not only reduces GPU memory consumption but also improves accuracy by focusing the classifier on high-significance features.
  • Unsupervised Robustness: The model demonstrates exceptional feature mining capabilities, achieving significant improvements in Overall Accuracy (OA) with relatively few pretraining steps (e.g., 10k steps).

Experimental Results

MTMSD was evaluated on four major HSI benchmarks: Indian Pines, Pavia University (PaviaU), Houston 2018, and WHU-Hi-Longkou.

  • State-of-the-Art Accuracy: The framework achieved an OA of 99.45% on Indian Pines and 99.95% on PaviaU, setting new benchmarks for unsupervised feature learning.
  • Inference Efficiency: By optimizing the feature selection process, MTMSD reduced average inference time by 62% compared to previous leading diffusion-based methods like SpectralDiff.
  • Low-Data Performance: In scenarios with limited labels (e.g., 2% of samples for Houston 2018), MTMSD consistently outperformed competing methods that had access to more labeled data, highlighting its superior generalization.

Conclusion

Diff-HSI represents a significant step forward in HSI classification by successfully bridging the gap between generative diffusion models and discriminative remote sensing tasks. By moving beyond manual feature selection to an adaptive, multi-timestep fusion strategy, the framework captures the full spectrum of spectral-spatial information. Future work will focus on developing more universal purification strategies and exploring end-to-end fine-tuning to further enhance performance.

Summary updated

BibTeX
@misc{zhou2023when,
  author = {Jingyi Zhou and Jiamu Sheng and Jiayuan Fan and Peng Ye and Tong He and Bin Wang and Tao Chen},
  title = {{When Hyperspectral Image Classification Meets Diffusion Models: An Unsupervised Feature Learning Framework}},
  year = {2023},
  eprint = {2306.08964},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.08964},
}
Figure