Skip to main content
QUICK REVIEW

[Paper Review] DSXFormer: Dual-Pooling Spectral Squeeze-Expansion and Dynamic Context Attention Transformer for Hyperspectral Image Classification

Farhan Ullah, Irfan Ullah|arXiv (Cornell University)|Feb 2, 2026
Remote-Sensing Image ClassificationEngineering0 citations
TL;DR

DSXFormer introduces a Dual-Pooling Spectral Squeeze-Expansion (DSX) block and Dynamic Context Attention (DCA) in a window-based transformer to improve hyperspectral image classification under limited data, achieving state-of-the-art results. It combines spectral recalibration with efficient local-global context modeling for HSIC.

ABSTRACT

Hyperspectral image classification (HSIC) is a challenging task due to high spectral dimensionality, complex spectral-spatial correlations, and limited labeled training samples. Although transformer-based models have shown strong potential for HSIC, existing approaches often struggle to achieve sufficient spectral discriminability while maintaining computational efficiency. To address these limitations, we propose a novel DSXFormer, a novel dual-pooling spectral squeeze-expansion transformer with Dynamic Context Attention for HSIC. The proposed DSXFormer introduces a Dual-Pooling Spectral Squeeze-Expansion (DSX) block, which exploits complementary global average and max pooling to adaptively recalibrate spectral feature channels, thereby enhancing spectral discriminability and inter-band dependency modeling. In addition, DSXFormer incorporates a Dynamic Context Attention (DCA) mechanism within a window-based transformer architecture to dynamically capture local spectral-spatial relationships while significantly reducing computational overhead. The joint integration of spectral dual-pooling squeeze-expansion and DCA enables DSXFormer to achieve an effective balance between spectral emphasis and spatial contextual representation. Furthermore, patch extraction, embedding, and patch merging strategies are employed to facilitate efficient multi-scale feature learning. Extensive experiments conducted on four widely used hyperspectral benchmark datasets, including Salinas (SA), Indian Pines (IP), Pavia University (PU), and Kennedy Space Center (KSC), demonstrate that DSXFormer consistently outperforms state-of-the-art methods, achieving classification accuracies of 99.95%, 98.91%, 99.85%, and 98.52%, respectively.

Motivation & Objective

  • Motivate robust hyperspectral image classification (HSIC) under high spectral dimensionality and limited labeled data.
  • Propose a lightweight transformer architecture that jointly captures spectral discriminability and spatial context.
  • Introduce DSX block for adaptive spectral recalibration and DCA for efficient local-context modeling.
  • Demonstrate superior accuracy and robustness across common HSIC benchmarks compared to state-of-the-art methods.

Proposed method

  • Introduce DSXFormer, a hierarchical transformer framework for HSIC with patch extraction/embedding and patch merging.
  • Propose the DSX block that uses dual global average and max pooling to generate spectral descriptors, followed by a two-layer gating network (Expansion via W1, nonlinearity, then compression via W2 and sigmoid) to produce spectral weights.
  • Incorporate Dynamic Context Attention (DCA) inside window-based multi-head self-attention with relative positional encoding and a Dynamic Context Scaling mechanism to adapt attention based on window-wide context.
  • Use a patch-based processing pipeline with LN, window-based self-attention, MLP, and patch merging to enable multi-scale spectral–spatial learning.
  • Adopt a global pooling-based classification head for efficient prediction and optional upsampling for dense maps.

Experimental results

Research questions

  • RQ1Can DSXFormer achieve higher HSIC accuracy than state-of-the-art transformer and CNN-based methods across standard benchmarks?
  • RQ2Does the DSX block improve spectral discriminability and robustness with limited labeled data?
  • RQ3Does window-based DCA provide efficient and effective local–global context modeling for hyperspectral data?
  • RQ4What is the impact of patch extraction/merging and multi-scale representation on HSIC performance?

Key findings

  • DSXFormer consistently outperforms SOTA methods on four benchmark HSIC datasets (SA, IP, PU, KSC).
  • The model achieves classification accuracies of 99.95%, 98.91%, 99.85%, and 98.52% on SA, IP, PU, and KSC respectively.
  • The DSX block enhances spectral feature representation via dual-pooling statistics and a light gating network, boosting discriminability with minimal overhead.
  • Window-based Dynamic Context Attention balances local discriminative feature learning and global context while reducing computational cost.
  • Patch-based embedding and hierarchical merging enable efficient multi-scale spectral–spatial learning suitable for large HSIs.
  • Results indicate robustness under limited training samples and improved computational efficiency compared to prior transformer-based and CNN-based HSIC models.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.