Bridging Sensor Gaps via Attention-Gated Tuning for Hyperspectral Image Classification

Xizhe Xue, Haokui Zhang, Haizhao Jing, Lijie Tao, Zongwen Bai, Ying Li

TL;DR

This paper introduces a novel "Attention-Gated Tuning" (AGT) strategy and a "Tri-Former" architecture to tackle the challenge of hyperspectral image (HSI) classification with limited labeled data, especially when dealing with data from different sensors. AGT acts as a smart bridge, allowing models to leverage abundant data from other sources (even RGB images) to improve performance on new HSI datasets, while Tri-Former offers an efficient and flexible transformer architecture for HSI analysis.

What Problem Does This Paper Address?

Hyperspectral imaging (HSI) provides incredibly rich spectral information, enabling detailed analysis of Earth's surface for applications like mineral exploration and environmental monitoring. However, accurately classifying HSI data often requires large amounts of labeled data, which are expensive and time-consuming to acquire due to the need for field surveys. This "data scarcity" problem is exacerbated when dealing with HSI data from different sensors, as these datasets often have domain gaps (differences in spectral characteristics, spatial resolution, etc.) that make it difficult to transfer knowledge. Existing methods for bridging these gaps, particularly for transformer-based models, are not always effective. This paper aims to bridge these sensor gaps and mitigate the data scarcity issue by developing a novel tuning strategy and a specialized transformer architecture.

Methods

The paper proposes two main innovations:

  • Attention-Gated Tuning (AGT): This strategy acts as a bridge to transfer knowledge between datasets, even across different sensors or modalities (like RGB to HSI). It involves:
  • Pre-training: A base Tri-Former model is pre-trained on a large, diverse dataset (potentially including RGB data, which is converted to pseudo-HSI).
  • Auxiliary Branch: A lightweight "auxiliary branch" is introduced alongside the pre-trained base model.
  • Attention Gate: A cross-attention mechanism acts as a gate, allowing the auxiliary branch to selectively extract relevant information from the base model's features. This helps suppress irrelevant or conflicting information and focus on what's useful for the target dataset.
  • Asynchronous Cold-Hot Updates: The base model is updated slowly ("cold") while the auxiliary branch is updated quickly ("hot"). This balances preserving pre-trained knowledge with adapting to new data, preventing catastrophic forgetting.
  • Tri-Former Architecture: This is a novel triplet-structured transformer designed for HSI classification. It features:
  • Spectral-Spatial Parallel (SSP) Block: This block efficiently processes spectral and spatial information separately before combining them. This design significantly reduces computational complexity compared to applying self-attention across all three dimensions simultaneously.
  • 3D Convolution: A 3D convolution layer is integrated before the linear layers to enhance structural information and stabilize training, embedding position-like information without explicit positional embeddings.
  • Flexibility: The architecture is designed for efficient parameter utilization and flexibility, making it suitable for fine-tuning.

Datasets

The authors evaluated their method on six representative HSI datasets:

  • Indian Pines: Acquired by AVIRIS sensor.
  • Pavia University: Acquired by ROSIS sensor.
  • Houston University: Acquired by ITRES-CASI 1500 imager.
  • WHU-Hi-LongKou: Captured by a DJI UAV with a Headwall Nano-Hyperspec sensor.
  • WHU-Hi-HanChuan: Captured by a Leica Aibot X6 UAV with a Headwall Nano-Hyperspec sensor.
  • WHU-Hi-HongHu: Captured by a DJI UAV with a Headwall Nano-Hyperspec sensor.

They also used the CIFAR dataset for cross-modality (RGB to HSI) experiments.

Key Insights and Ideas

  • Bridging Sensor Gaps is Crucial: The paper strongly emphasizes that effectively transferring knowledge across HSI datasets from different sensors is a significant challenge, and existing fine-tuning methods are insufficient.
  • Attention is Key for Selective Knowledge Transfer: The AGT's attention mechanism is vital for intelligently selecting relevant features from a pre-trained model, preventing the overwriting of valuable learned representations.
  • Transformer Architectures are Sensitive to Data Differences: Unlike ConvNets that learn fixed filter parameters, transformers learn pixel relationships, making them more sensitive to domain shifts between datasets. This necessitates more sophisticated tuning strategies.
  • Parallel Spectral-Spatial Processing is Computationally Efficient: The Tri-Former's SSP block significantly reduces computational load by processing spectral and spatial information separately, making it more efficient than traditional 3D attention mechanisms.
  • Cross-Modality Transfer is Feasible: The AGT strategy, particularly when combined with HSI reconstruction for RGB data, demonstrates that knowledge can be effectively transferred from RGB images to HSI classification, opening up possibilities for leveraging vast RGB datasets.
  • Cold-Hot Updates Balance Adaptation and Preservation: The asynchronous cold-hot gradient update strategy is a critical component of AGT, allowing for adaptation to new data without catastrophically forgetting previously learned knowledge.

Key Results

  • State-of-the-Art Performance: The proposed Tri-Former model consistently achieved the highest performance (OA, AA, K metrics) across multiple HSI datasets, outperforming existing ConvNet and transformer-based methods. For example, on the Indian Pines dataset, Tri-Former achieved an OA of 98.41%.
  • AGT Effectiveness: AGT significantly improved performance in homogeneous, heterogeneous, and cross-modality tuning experiments. For instance, in cross-sensor tuning from Salinas to Pavia University, AGT achieved higher accuracy than baseline, fine-tuning, LORA, Clip-adapter, and LST.
  • Computational Efficiency: The Tri-Former's SSP block led to substantial reductions in computational complexity, making it more efficient than vanilla transformer architectures.
  • Faster Inference: Tri-Former demonstrated a significant speedup in inference compared to other transformer-based methods like SSFTT (up to 3x faster).
  • Ablation Study: The ablation study confirmed the necessity of each component in the Tri-Former architecture, with the 3D convolution module having the greatest impact.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while AGT works well, the performance improvement in cross-sensor tuning can be influenced by the similarity between pre-train and target datasets. Transferring between homogeneous datasets generally yields better results than heterogeneous ones.
  • The effectiveness of AGT in cross-modality (RGB to HSI) transfer was shown to be influenced by the diversity of the RGB dataset (CIFAR's diversity helped offset domain gaps).
  • Future Work:
    • The authors hope their work inspires further research into fine-tuning methods for HSI classification and guides the selection of pre-training datasets.
  • The paper implicitly suggests exploring more sophisticated HSI reconstruction methods for RGB-to-HSI conversion to further enhance cross-modality transfer.
  • Further investigation into the specific characteristics of HSI datasets that influence transfer learning effectiveness could be beneficial.

Summary updated

BibTeX
@article{xue2025bridging,
  author = {Xizhe Xue and Haokui Zhang and Haizhao Jing and Lijie Tao and Zongwen Bai and Ying Li},
  title = {{Bridging Sensor Gaps via Attention-Gated Tuning for Hyperspectral Image Classification}},
  journal = {IEEE J. Sel. Top. Appl. Earth Obs. Remote. Sens.},
  year = {2025},
  doi = {10.1109/jstars.2025.3542977},
}
Figure