Next Article in Journal
Remote Sensing Reveals How Agricultural Restructuring Spatially Organizes Non-Cropland Ecological Restoration in the Mu Us Sandy Land
Previous Article in Journal
Enhancing Flood Susceptibility Mapping Through High-Resolution Earth Observation: A Data-Driven Comparative Analysis
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Gated Spiking Attention Transformer for Hyperspectral Image Classification

1
Zhongshan Institute, University of Electronic Science and Technology of China, Zhongshan 528402, China
2
School of Computer Science and Engineering, University of Electronic Science and Technology of China, Chengdu 611731, China
3
Zhongshan Municipal Key Laboratory of Industrial Intelligent Perception and Computing, Zhongshan 528402, China
*
Author to whom correspondence should be addressed.
Remote Sens. 2026, 18(14), 2419; https://doi.org/10.3390/rs18142419
Submission received: 8 June 2026 / Revised: 7 July 2026 / Accepted: 8 July 2026 / Published: 21 July 2026
(This article belongs to the Section Remote Sensing Image Processing)

Highlights

What are the main findings?
  • Ultra-lightweight and energy-efficient spiking Transformer architectures become feasibleb for high-accuracy hyperspectral image classification on resource-constrained edge platforms.
  • Reinterpreting attention as a learnable binary gate provides a new design paradigm for building event-driven vision models with extreme parameter and energy efficiency.
What are the implications of the main findings?
  • Ultra-lightweight and energy-efficient spiking Transformer architectures become feasible for high-accuracy hyperspectral image classification on resource-constrained edge platforms.
  • Reinterpreting attention as a learnable binary gate provides a new design paradigm for building event-driven vision models with extreme parameter and energy efficiency.

Abstract

Deploying deep learning models for hyperspectral image classification (HSIC) on resource-constrained edge or non-orbit platforms is challenging due to high energy consumption and computational cost. To address this, this paper proposes a lightweight spike-driven Vision Transformer, termed ‘GS-SpikeFormer’, leveraging energy-efficient spiking neural networks (SNNs). Our work makes three key contributions. First, we introduce a Gated Spiking Attention (GSA) mechanism that replaces costly matrix multiplication with binary event-driven feature gating using only logical AND operations. Second, we incorporate groupwise convolution into both self-attention and feedforward modules, reducing trainable parameters to just 0.35 M while preserving local spectral-spatial feature extraction. Third, extensive experiments on four benchmark hyperspectral datasets under limited training sample show that GS-SpikeFormer achieves competitive results with only 4 time steps (e.g., 97.54 % on Indian Pines, 98.62 % on Pavia University, 98.89 % on Salinas, and 98.39 % on Houston2013). Compared to prior SNN-based HSIC methods, our model achieves superior parameter and energy efficiency.

1. Introduction

Hyperspectral image classification (HSIC) aims to assign pixel-wise labels to ground objects by using data captured through hundreds of consecutive spectral bands. The rich spectral-spatial information in hyperspectral imagery (HSI) [1] enables a wide range of applications, including environmental monitoring [2], agricultural management [3], urban planning [4], national defense [5], etc. However, the high-dimensional, complex nonlinear structures and limited availability of labeled samples make HSIC a challenging task.
Recent advances in deep learning have led to remarkable progress in HSIC. Convolutional neural networks (CNNs) are capable of effectively extracting local spectral-spatial features, but are constrained by their limited receptive field and high parameter quantities. In cases where the training data is scarce, this often leads to overfitting [6]. Vision Transformers (ViTs) capture long-range dependencies through self-attention, yet they lack inductive biases for local feature extraction and introduce prohibitive computational costs, particularly for high-dimensional HSI data [7,8]. Hybrid CNN-Transformer models, such as GSC-ViT [9] and DBCTNet [10], have shown balanced efficiency and performance, but they still fall within the domain of artificial neural networks (ANNs) and inherit the high energy consumption associated with dense floating-point operations.
Spiking neural networks (SNNs) offer a promising alternative due to their event-driven, binary spike-based computation, achieving ultra-low power inference and biological plausibility [11,12,13]. Unlike ANNs that rely on energy-intensive multiplication accumulation (MAC) operations, SNNs accumulate spikes only when events occur, making them ideally suitable for deployment on resource-constrained edge devices. This inherent efficiency has spurred interest in integrating the representational capabilities of Transformers into the SNN paradigm.
In the context of HSIC, several SNN-based methods have been developed. SNN-SSEM [12] constructed a conventional SNN with depthwise separable convolutions, but it requires a large number of time steps (e.g., T = 30) to achieve competitive accuracy. AFSA [14] introduced a spike self-attention module with adaptive refocusing, but its attention mechanism is not entirely driven by spikes and still relies on careful tuning. Neither of these methods fully exploited the potential of Transformer-style global modeling. Meanwhile, outside the field of remote sensing, SpikingResformer [15] recently demonstrated remarkable performance in large-scale image classification by proposing Dual Spike Self-Attention (DSSA) and a ResNet-inspired multi-stage architecture. However, applying SpikingResformer directly to HSIC reveals critical limitations. First, spatial resolution mismatch: SpikingResformer’s multi-stage strided convolutions and max-pooling progressively downsample feature maps from 224 × 224 to 7 × 7 . On small HSI patches (e.g., 11 × 11 ), this collapses spatial dimensions to 1 × 1 after only a few stages, destroying the spatial structure needed for self-attention and causing severe spatial feature loss before any global dependency can be captured. Second, architectural over-parameterization: the multi-stage design with large kernel convolutions (e.g., 7 × 7 ) and high-dimensional embeddings (up to 1024 channels), optimized for large-scale RGB images, becomes redundant on small HSI patches with limited samples, causing overfitting and wasted computation without accuracy gains. Third, spectral-spatial decoupling: SpikingResformer’s patch-splitting strategy treats spatial neighbors independently, ignoring the strong spectral continuity and local spatial correlations of HSI data. This exacerbates information loss on small patches, highlighting the need for a lightweight, single-stage architecture tailored to HSI’s unique spectral-spatial structure.
To address these challenges, a novel spike-driven Vision Transformer, termed ‘GS-SpikeFormer’, is proposed. It fundamentally reinterprets attention as a learnable binary gating mechanism. The core of it lies the Gated Spiking Attention (GSA) module, which replaces weighted summation with event-driven hard feature selection. By using convolution kernels to implicitly capture global spatial relationships and generating binary masks through logical AND operations, GSA achieves global context modeling in a fully spike-compatible manner. To further reduce the parameter overhead while preserving the modeling capacity, groupwise convolution is integrated into the self-attention and feedforward modules. This architecture synergistically combines GSA with a front-end Spectral Calibration (SC) module for adaptive spectral dimension processing and a Groupwise Spiking Feedforward Network (GWSFFN) for spectral-spatial feature refinement. This unified design explicitly addresses the dual challenges of high dimensions and limited training samples in HSIC.
Beyond classification, deep learning has also proven versatile in other HSI tasks [16], including semi-supervised anomaly detection with generative adversarial networks [17], unsupervised anomaly detection with memory networks [18,19], self-supervised anomaly detection with blind-spot networks [20,21]. These advances highlight the broad potential of deep learning in HSI analysis and motivate our exploration of SNN-based classification architectures.
To summarize, the main contributions of our work are threefold:
  • Gated Spiking Attention (GSA). A novel spike-compatible self-attention mechanism that treats attention as a binary gating process. By employing a learnable convolution kernel to implicitly learn global spatial relationships and applying it as a hard, event-driven filter, GSA only uses logical AND operations to perform global feature selection. This design eliminates multiplications, retains full spike-driven computations, and achieves interpretable binary attention maps.
  • Groupwise Convolution Integration. To overcome the typical parameter explosion problem in dense projections, groupwise convolution is simultaneously introduced into the GSA module and the feedforward network (FFN) module. This drastically reduces the number of trainable parameters (only 0.35 M), while retaining the ability to jointly extract local spectral-spatial features and long-range dependencies, making the model exceptionally lightweight and suitable for resource-constrained edge deployment.
  • Unified Spike-Driven Framework for HSIC. GS-SpikeFormer is the first fully spike-driven ViT specifically tailored for HSIC. By harmoniously integrating GSA, SC, and GWSFFN, this model achieves state-of-the-art accuracy with minimal temporal overhead: with only 4 time steps, it attains OAs of 97.54 % on Indian Pines, 98.62 % on Pavia University, 98.89 % on Salinas, and  98.39 % on Houston2013, significantly outperforming existing methods based on SNN and Transformer. End-to-end binary spike activation ensures unparalleled energy efficiency.
The remainder of this paper is organized as follows: Section 2 details the GS-SpikeFormer architecture as well as the key components. Section 3 describes experimental setup and hyperparameters analysis. Section 4 compares the proposed method with SNN-based methods. Section 5 provides comprehensive comparisons with state-of-the-art HSIC models. Section 6 discusses the experimental results, covering the advantages and limitations of our work, as well as the future research directions. Finally, Section 7 concludes the paper with future directions.

2. Methodology

In this section, we present GS-SpikeFormer, a fully spike-driven Vision Transformer specifically designed for HSIC. First, an overview of the overall architecture is provided, followed by detailed descriptions of its core components: the underlying spiking neuron model, Gated Spiking Attention (GSA), groupwise convolution integration, front-end processing modules, and classification head. The focus is on explaining how GSA reinterprets attention as a binary gating process to achieve global modeling while maintaining strictly spike-driven computation.

2.1. Overall Architecture

Figure 1 illustrates the overall pipeline of GS-SpikeFormer. Given an input hyperspectral data patch X patch R H × W × C (where H, W, and C denote height, width, and spectral bands), the model processes it through three sequential stages: front-end processing, a spike-driven Transformer block, and a classification head. Every layer, except max-pooling and temporal-averaging, operates entirely with binary spike activations and event-driven computations, ensuring end-to-end energy efficiency.
  • Front-end processing adaptively reduces spectral dimensionality and extracts local spectral-spatial features while converting the original input into spike-compatible representations. It consists of a Spectral Calibration (SC) module ( 1 × 1 Conv + BN + spiking neuron activation ( SN )) and a Spatial Calibration (SP) module ( 3 × 3 Conv + BN + SN + Max-Pooling).
  • Spiking-driven Transformer block is the core of the model, consisting of a Gated Spiking Attention (GSA) module and a Groupwise Spiking Feedforward Network (GWSFFN). Both of these modules are fully spike-driven and leverage groupwise convolution to reduce parameters while preserving representational capacity.
  • Classification head aggregates global spatial information via spike-based global average pooling and maps it to class logits through a spiking linear layer. The final prediction is obtained by averaging the output spikes over T time steps for stability.
Figure 1. Overall architecture of GS-SpikeFormer for HSIC. All intermediate representations are binary spike tensors, and all operations (except pooling and temporal averaging) are spike-driven.
Figure 1. Overall architecture of GS-SpikeFormer for HSIC. All intermediate representations are binary spike tensors, and all operations (except pooling and temporal averaging) are spike-driven.
Remotesensing 18 02419 g001
Table 1 details the layer-wise configurations, including tensor shapes, kernel sizes, group settings, and spike-driven compatibility.

2.2. Spiking Neuron Model

All spiking computations in GS-SpikeFormer are based on the Leaky Integrate-and-Fire (LIF) neuron, which offers a favorable balance between biological plausibility and computational efficiency. Its discrete-time dynamics are described as follows:
v i [ t ] = u i [ t ] + 1 τ I i [ t ] ( u i [ t ] u rest ) ,
I i [ t ] = j w i , j s j [ t ] ,
s i [ t ] = Θ ( v i [ t ] u th ) ,
u i [ t + 1 ] = s i [ t ] u rest + ( 1 s i [ t ] ) v i [ t ] .
Here, u i [ t ] and v i [ t ] denote the membrane potential before and after charging. τ is the membrane time constant controlling leakage rate, a larger τ means slower leakage, allowing the neuron to remember inputs for longer. I i [ t ] is the input current at time t, computed as the weighted sum of incoming spikes s j [ t ] from presynaptic neurons (Formula (2)), w i , j are synaptic weights, and  u rest is the resting potential. As illustrated in Formula (1), the membrane potential update of a neuron is based on the input current and its previous state. Furthermore, Formula (3) indicates that a spike is generated if the membrane potential v i [ t ] exceeds a predefined firing threshold u th , where Θ ( · ) is the Heaviside step function. After firing a spike, the membrane potential is reset by using Formula (4), which means, if the incoming spikes s i [ t ] = 1 , the membrane potential u i [ t + 1 ] is reset to u rest ; otherwise, it retains its current value.
For brevity, we denote a spiking neuron layer as S = SN ( I ) , where I R T × n is the input current over T time steps for n neurons, and  S { 0 , 1 } T × n is the output spike tensor.

2.3. Gated Spiking Attention (GSA)

The core innovation of GS-SpikeFormer is the Gated Spiking Attention mechanism, which fundamentally reinterprets self-attention as a learnable binary gating process. Unlike standard attention that computes weighted sums via floating-point matrix multiplications and Softmax , GSA generates a binary mask that selectively gates the flow of spike features. This design is fully spike-driven, uses only logical AND and addition operations, and eliminates all multiplications.

2.3.1. Motivation and Design Principle

In conventional ViTs, attention maps are calculated as Softmax ( QK / d ) V , which involves expensive matrix multiplication and Softmax normalization. All these operations are incompatible with the sparse and event-driven nature of SNNs. Moreover, the resulting attention weights are continuous and often redundant.
In a spike-based system, information can be gated through binary masks: a feature either passes (if the corresponding gate is 1) or is blocked (if the corresponding gate is 0). This binary gating aligns naturally with the all-or-nothing spike communication in SNNs. Therefore, the continuous attention weights with a learnable binary mask indicate which spatial positions should interact with each other. The mask is generated by a lightweight convolution kernel, which implicitly learns global spatial relationships and avoid explicit pairwise similarity calculations.

2.3.2. Formulation of GSA

Let X { 0 , 1 } T × C × H × W be the input spike tensor of the GSA module (after the front-end processing). The calculation is carried out in several steps, and all steps maintain the binary spike representation (as shown in Figure 2).
  • Preliminary activation. The input spike tensor X first passes through a spiking neuron layer ( SN ) to ensure binary activations:
    X sn = SN ( X ) .
  • Query and Key generation. Instead of projecting the X sn onto three separate matrices, a single spike-compatible convolution with a kernel size of p × p (here p = 1 ) is applied, followed by batch normalization ( BN ):
    Y = BN Conv 2 C , C ( 1 × 1 ) ( X sn ) { 0 , 1 } T × 2 C × H × W .
    Then, along the channel dimension, Y is split into two tensors Q and K , which have the same size as T × C × H × W and are served as Query and Key respectively. Notably, the Value V is directly taken from the input X sn (after reshaping) to reduce parameters and preserve sparsity.
    Furthermore, the Query, Key, and Value tensors can also be split into multiple heads. Specifically, the channel dimension C is divided into n _ h groups, and the dimension of each head group is d h = C / n _ h . Each head independently performs spike-based attention, allowing the model to focus on different feature subspaces. The outputs of all heads are concatenated and linearly projected back to the original dimension. This multi-head design enables the model to capture diverse spatial dependencies, which is particularly beneficial for hyperspectral data that may exhibit different correlations in different spectral bands.
  • Binary attention map. The attention map is obtained via a spike-based matrix multiplication between the transposed Q and the reshaped V . Since all the operands are binary, the multiplication becomes a logical AND operation, and the sum over the feature dimensions is simply the count of coincidence spikes. Specifically, Q and V are shaped as ( T , C , N ) with N = H × W and the calculation is as follows:
    A = Q V .
    Although expressed as a matrix product, Formula (7) reduces to logical AND followed by integer addition because both Q and V are binary spike tensors, effectively counting coincident spikes. This multiplication-free computation is naturally suited for event-driven hardware and produces an integer counting matrix A R T × N × N .
    To normalize these counts to a valid range while maintaining spike compatibility, a fixed scaling factor s 1 is applied according to the standard practice in the Transformer architecture:
    s 1 = 1 d h .
    Here d h represents the embedding dimension for each head. This constant scaling avoids potential training instability caused by the dynamically varying firing rate. The scaled mapping A = A s 1 is then passed through a spiking neuron layer to obtain a binary attention map:
    A attmap = SN ( A ) { 0 , 1 } T × N × N .
    Each nonzero entry in A attmap indicates that the corresponding pair of spatial locations should interact.
  • Feature gating. The output features are computed by applying the binary attention map A attmap to the Key (or the second part of the projection) via another spike-based matrix multiplication:
    Z = K A attmap .
    Similarly, Formula (10) involves no floating-point multiplications. The binary attention map A attmap serves as a gating mask, accumulating key features at 1-entries and blocking at 0-entries, implemented purely by event-driven addition without any multiply-accumulate (MAC) operations.
    Z is then scaled by a second factor s 2 ,
    s 2 = 1 N ,
    where N = H × W represents the number of spatial positions. This scaling factor reflects the design in [15] and ensures stable training across different input resolutions. The scaled results are passed through a spiking neuron layer:
    Z = SN ( Z s 2 ) { 0 , 1 } T × C × N .
    Finally, Z is reshaped back to ( T , C , H , W ) .
  • Groupwise output projection. To incorporate information across channels while maintaining spike-driven calculations, we employed a groupwise separable convolution (GSC) (refer to Section 2.4.1 for details). To ensure divisibility, the effective number of groups is automatically set to the greatest common divisor of the channel dimension C and the intended number of groups (e.g., 16 or 32). A residual connection adds the original input X :
    F GSA = BN Conv C , C GSC ( Z ) + X .
In order to better understand the calculation process of GSA, we provide a pseudo-code description in Algorithm 1.
Algorithm 1 Pseudo-code of the calculation process of GSA.
Require: 
Spike tensor X { 0 , 1 } T × C × H × W , number of heads n _ h , groups g
Ensure: 
Output spike tensor F GSA { 0 , 1 } T × C × H × W
1:
X sn SN ( X )                      ▹ Ensure binary activation
2:
Y BN ( Conv 2 C , C ( 1 × 1 ) ( X sn ) )           ▹ Spike-compatible 1 × 1 convolution
3:
Split Y along channels into Q , K { 0 , 1 } T × C × H × W
4:
V X sn                       ▹ Use original spikes as Value
5:
Reshape Q , K , V to ( T , n _ h , d h , N ) , where N = H × W , d h = C / n _ h
6:
for h = 1 to n _ h  do
7:
     Q h , K h , V h slices of Q , K , V for head h           ▹ Shape: ( T , d h , N )
8:
     A h Q h T V h           ▹ Logical AND and summation; shape: ( T , N , N )
9:
     s 1 1 / d h
10:
     A att , h SN ( A h s 1 )                 ▹ Binary attention map
11:
     Z h K h A att , h          ▹ Logical AND and summation; shape: ( T , d h , N )
12:
     s 2 1 / N
13:
     Z h SN ( Z h s 2 )                     ▹ Gated features
14:
end for
15:
Concatenate { Z h } h = 1 n _ h to Z cat { 0 , 1 } T × C × N , then reshape to ( T , C , H , W ) as Z
16:
Z proj BN ( GroupwiseSeparableConv C , C ( Z , g ) )       ▹ GSC output projection
17:
F GSA Z proj + X            ▹ Residual connection return  F GSA

2.3.3. Why GSA Works as Attention

The binary attention map Aattmap generated by GSA functions analogously to standard attention weights, indicating which spatial positions may exchange information, except that the weights are binarized through a spiking nonlinearity. The map acts as a hard gate: a feature is accumulated only when both the corresponding Query and Key positions emit a spike, implementing an event-driven, multiplication-free gating mechanism.
Although Aattmap is binary, the expressive power of the attention is preserved through three complementary designs: First, learnable convolutional projections encode rich spatial context before binarization, and the spiking threshold serves as a decision boundary that retains only statistically salient spatial correlations. Second, multiple parallel heads specialize in different spatial patterns, collectively capturing diverse dependencies. Third, after gating, a groupwise separable output projection mixes information across channels, restoring representational capacity. In this way, the collective behavior across heads and channels enables GSA to approximate soft attention effectively while staying fully spike-compatible. This reformulation of attention as a learnable binary gating process, rather than a weighted sum, aligns naturally with the event-driven philosophy of SNNs.

2.4. Groupwise Convolution Integration

To achieve extreme parameter efficiency without sacrificing representational capacity, GS-SpikeFormer incorporates groupwise convolutions in two critical places: the output projection of GSA and the feedforward network.

2.4.1. Groupwise GSA Revisited

The grouping convolution strategy employed by GSA on the output projection is directly inspired by the Groupwise Separable Convolution (GSC) proposed in GSC-ViT [9]. GSC factorizes the standard convolution into two sequential operations: Grouped Pointwise Convolution (GPWC) which combines the information within the channel groups, and then Grouped Convolution (GC) which extracts the spatial features within the same groups. This decomposition reduces the parameter count by approximately a factor equal to the number of groups, while retaining the ability to learn rich representations.
Specifically, after computing the spike-based attention output Z (Formula (12)), we apply grouped 1 × 1 convolution to project the features back to the original channel dimension. This grouped projection can be regarded as a form of GPWC: it independently performs cross-channel mixing within each group, significantly reducing the parameter count compared to the standard dense projection. Moreover, a  3 × 3 convolution is applied within the same group subsequently to extract spatial features, which can be considered as a form of GC.
The number of groups g in the output projection is a hyperparameter that balances parameter efficiency and representational capacity. For instance, when C = 64 and g = 16 , the grouped 1 × 1 convolution has approximately C 2 / g = 256 parameters. In contrast, the dense projection has C 2 = 4096 parameters, which is 16-fold reduction. This drastic savings enables GSA to maintain global modeling capabilities with extremely lightweight footprint.

2.4.2. Groupwise Spiking Feedforward Network (GWSFFN)

The GWSFFN module replaces the traditional multi-layer perceptron (MLP) with a more efficient design that leverages grouped convolutions for local feature refinement. Its structure is as follows:
  • Channel expansion: A 1 × 1 convolution expands the channel dimension by a factor of 4, followed by BN and spiking neuron activation.
    Z up = BN Conv 4 C , C ( 1 × 1 ) SN ( F GSA ) .
  • Local refinement: A sequence of grouped 3 × 3 convolutions (a group of 64 channels) with BN and spiking neuron activation, plus a residual connection that adds the input of this stage.
    Z mid ( i ) = BN Conv 4 C , 4 C ( 3 × 3 ) SN ( Z mid ( i 1 ) ) , Z mid ( N conv ) = Z mid ( N conv ) + Z up .
    Where i = 1 , , N conv , N conv is the number of convolution kernels, Z mid ( 0 ) = Z up .
  • Channel projection: A 1 × 1 convolution compresses the channels back to the original dimension, followed by BN , spiking neuron activation, and another residual connection.
    F GWSFFN = BN Conv C , 4 C ( 1 × 1 ) SN ( Z mid ( N conv ) ) + F GSA .
The grouped convolution in the refinement stage enables the network to capture fine spectral-spatial patterns with minimal parameters, which is crucial for hyperspectral data where local texture and spectral correlations are discriminative.

2.5. Front-End Processing and Classification Head

The front-end processing consists of two lightweight spike-compatible modules designed to handle the high dimensionality of HSI while preserving spatial details.

2.5.1. Spectral Calibration (SC)

A 1 × 1 convolution adjusts the original spectral dimension to 256, followed by BN and spiking neuron activation. This operation compresses spectral redundancy and initiates spike-based computation.
F SC = SN BN Conv 256 , C ( 1 × 1 ) ( X patch ) .

2.5.2. Spatial Calibration (SP)

A 3 × 3 convolution further reduces channels from 256 to 64, extracts local spectral-spatial features, and is followed by BN and spiking neuron activation. To retain fine spatial boundaries, we apply stride-1 Max-Pooling:
F SP = SN BN Conv 64 , 256 ( 3 × 3 ) ( F SC ) , F SP = MaxP ( F SP ) .
Unlike GSC-ViT [9] which uses strided convolutions, our stride-1 pooling preserves spatial resolution, avoids the loss of fine object boundaries, which is critical for pixel-wise classification.

2.5.3. Classification Head

In the classification stage, global average pooling is performed over spatial dimensions using integer arithmetic:
F S GAP = 1 H W i , j F trans , i j ,
where F trans is the output of the Transformer stage. Subsequently, a spiking linear layer (SLL) maps F S GAP to class logits, and the final prediction is obtained by averaging over time steps:
y = 1 T t = 1 T SLL ( F S GAP [ t ] ) , y ^ = arg max i ( y i ) .
This temporal averaging stabilizes the output while preserving the event-driven nature.
Finally, to better illustrate the complete classification pipeline of the GS-SpikeFormer framework, we provide a pseudo-code description in Algorithm 2.
Algorithm 2 Pseudo-code of the complete classification pipeline of the GS-SpikeFormer framework.
  • Require: HSI patch X patch R H × W × C , time steps T, heads n _ h , groups g
  • Ensure: Predicted class label y ^
  • 1:
    X tiled Repeat ( X patch , T )                       ▹ Shape: ( T , C , H , W )
    2:
    // Front-end processing
    3:
    F SC SN BN ( Conv 256 , C 1 × 1 ( X tiled ) )
    4:
    F SP SN BN ( Conv 64 , 256 3 × 3 ( F SC ) )
    5:
    F SP MaxPool 2 D ( F SP , kernel = 2 , stride = 1 )         ▹ Shape: ( T , 64 , H 1 , W 1 )
    6:
    // Transformer block
    7:
    F GSA GSA ( F SP , n _ h , g )                         ▹ See Algorithm 1
    8:
    F GWSFFN GWSFFN ( F GSA )                       ▹ See details below
    9:
    // Classification head
    10:
    F S GAP 1 H W i , j F GWSFFN , : , , i , j              ▹ Global avg pool; shape: ( T , 64 )
    11:
    y 0
    12:
    for t = 1 to T do
    13:
         y t SN ( SLL ( F S GAP [ t ] ) )           ▹ Spiking linear layer; shape: ( N class )
    14:
         y y + y t
    15:
    end for
    16:
    y y / T
    17:
    y ^ arg max ( y )
    18:
    return y ^
    • Function GWSFFN ( X ) :
    1:
    Z up BN Conv 4 C , C 1 × 1 ( SN ( X ) )                ▹ Channel expansion
    2:
    Z mid Z up
    3:
    for i = 1 to N conv  do
    4:
         Z mid BN Conv 4 C , 4 C 3 × 3 ( SN ( Z mid , groups = 64 ) )        ▹ Local refinement
    5:
    end for
    6:
    Z mid Z mid + Z up                  ▹ Residual after refinement
    7:
    Z proj BN Conv C , 4 C 1 × 1 ( SN ( Z mid ) )                ▹ Channel projection
    8:
    return Z proj + X                       ▹ Residual connection

    2.6. Summary of Advantages

    GS-SpikeFormer offers several key advantages over existing spiking Transformers and hybrid models:
    • Full spike-driven computation: All internal operations (except pooling and temporal averaging) use only binary spikes, logical AND, addition, and integer scaling without floating-point multiplications.
    • Gated spiking attention: A novel reinterpretation of attention as binary gating, which is more natural for SNNs and eliminates expensive similarity computations.
    • Extreme parameter efficiency: Through extensive use of groupwise convolutions in attention and feedforward modules, the model achieves state-of-the-art accuracy with only 0.35 M parameters.
    • HSIC-specific design: The front-end modules and single-stage Transformer (only one Transformer block is adopted) are tailored to the challenges of high dimensionality and limited training samples in hyperspectral data.
    In the subsequent sections, the effectiveness of GS-SpikeFormer is empirically verified on four benchmark HSI datasets, demonstrating its superiorities in terms of accuracy, parameter efficiency, and energy consumption.

    3. Experimental Setup and Parameter Analysis

    This section describes the experimental framework used to validate the proposed GS-SpikeFormer. Firstly, the benchmark datasets, data splitting strategy, implementation details, and evaluation metrics are introduced. Then, the influence of key hyperparameters, including spatial patch size, time steps, attention heads, and group numbers, on classification performance is systematically analyzed, providing the optimal configuration for subsequent experiments. Subsequently, ablation experiments are conducted to rigorously evaluate the contributions of each key component.

    3.1. Datasets and Data Splitting

    Four widely-used HSI datasets are employed to evaluate the proposed method: Indian Pines (IP), University of Pavia (PU), Salinas (SA), and Houston2013 (HU). Table 2 summarizes their key characteristics.
    Given the limited labeled samples, the class-aware splitting strategy is adopted. For classes with 100 or more samples, 75 samples are used for training, 25 samples for validation, and the remaining samples for testing. For classes with fewer than 100 samples, 60 % is used for training, 20 % for validation, and the remaining 20 % for testing. This ensures a proportional representation while maximizing the training data. Table 3, Table 4, Table 5 and Table 6 show the detailed class distribution.

    3.2. Implementation Details

    All models are implemented in PyTorch 2.5.1 with CUDA 12.1 and trained on an NVIDIA GeForce RTX 2080 Ti GPU (11GB VRAM). For spike-based computations, the LIF neuron model from SpikingJelly and default parameters are used. Training employs stochastic gradient descent with Nesterov momentum ( 0.9 ), an initial learning rate of 0.0085 , and the ReduceLROnPlateau scheduler (with a factor of 0.2 and a patience of 3). Weight decay is set to 0.0001 . The models are trained for 100 epochs with a batch size of 64. Each experiment is repeated 10 times with different random seeds; results are reported as the average ± standard deviation. It should be emphasized that the reported training time is the total clock time of the entire training process (including all epochs and validation steps), while the test time is the total inference time for the entire test set. The inference time per image (Infer time) reported in Table 7, Table 8, Table 9 and Table 10 is calculated as the total test time divided by the number of test samples. All inference time measurements are performed with a batch size of 64, consistent with the training configuration. The reported values represent the average per-image inference time under this batch setting.
    It should be noted that the patch-based sampling inherently introduces spatial overlap between training and test samples due to shared neighborhoods, a recognized issue in HSIC [22] that can slightly inflate accuracy. Since all methods, including GS-SpikeFormer and all baselines, are evaluated under the identical sampling protocol (patch size, split, and seed), the relative performance ranking remains valid and the superiority of GS-SpikeFormer is not an artifact of data leakage.
    To further examine the training dynamics, Figure 3 shows the training and validation loss and accuracy curves over 100 epochs on all four datasets. The model converges within approximately 30–40 epochs, and validation accuracy stabilizes at competitive levels (above 97 % on IP and HU, above 98 % on PU and SA). No notable overfitting is evident, as the gap between training and validation curves remains consistently small. This demonstrates the effectiveness of the training configuration and the model’s strong generalization across diverse hyperspectral scenes, from heterogeneous vegetation (IP) and urban areas (PU, HU) to homogeneous agricultural regions (SA).

    3.3. Evaluation Metrics

    Two categories of metrics are used to evaluate the proposed method: classification accuracy metrics and efficiency metrics.

    3.3.1. Classification Accuracy Metrics

    Three standard metrics are used to assess classification performance:
    • Overall Accuracy (OA): proportion of correctly classified samples.
    • Average Accuracy (AA): mean of per-class accuracies, providing a balanced view on imbalanced datasets.
    • Kappa coefficient (κ): measure of classification consistency accounting for chance agreement.

    3.3.2. Efficiency Metrics

    To assess the applicability of the model to resource-constrained deployments, three efficiency metrics are employed.
    • Parameter count: the total number of trainable parameters, indicating model complexity and memory footprint.
    • Synaptic operations (SOPs): the total number of synaptic activations during the inference process, which directly reflects the computational complexity of the spike-driven models. Unlike the floating-point operations (FLOPs) used in ANNs, SOPs only count the spike-triggered events, which is aligned with the event-driven nature of SNNs.
      For a convolutional layer, SOPs are calculated as:
      SOP Conv ( l ) = T · B · C in ( l ) g ( l ) · K h K w · C out ( l ) · H out ( l ) W out ( l ) ,
      where T is the number of time steps, B is the batch size, C in ( l ) and C out ( l ) are the input and output channels, g ( l ) is the number of groups in groupwise convolution, K h × K w is the kernel size, and H out ( l ) × W out ( l ) is the output spatial dimensions.
      For a linear layer, SOPs are calculated as:
      SOP Linear ( l ) = T · B · D in ( l ) · D out ( l ) ,
      where D i n ( l ) and D o u t ( l ) are the input and output dimensions of the linear layer, respectively.
      The total SOPs are the sum over all convolutional and linear layers:
      SOP all = l L Conv SOP Conv ( l ) + l L Linear SOP Linear ( l ) .
    • Energy consumption: according to the convention in neuromorphic computing research [14,15,23,24], the theoretical energy consumption for inference is estimated based on SOPs. Using the standard energy model, each SOP consumes approximately 0.9 mJ [15]. This value is derived from the estimated energy cost of addition operations in a typical 45 nanometer CMOS process and has been widely used for fair, hardware-agnostic comparisons of SNN models. Therefore, the energy calculation for each image is as follow:
      Energy = SOP all × 0.9 mJ .
      It is worth noting that this is a theoretical upper-bound estimation, primarily intended for relative comparisons among different SNN architectures. The actual energy consumption of specific neuromorphic hardware may vary depending on the chip architecture, process node, and data encoding scheme. Nevertheless, this standardized estimation ensures fair and reproducible comparisons, as it has been consistently adopted in previous work [14,15,23,24].

    3.4. Hyperparameter Analysis

    In this section, the influence of four key hyperparameters on the classification performance is systematically assessed: spatial patch size, time steps T, the number of attention heads n _ h , and the number of groups g. When analyzing a single hyperparameter, the others are fixed at their default values: T = 4 , h e a d s = 8 , g = 16 , and the input channel dimension of the Transformer stage is C = 64 . All reported results are the average values of ten independent runs.

    3.4.1. Spatial Patch Size

    The spatial patch size determines the amount of context information used for classification. Patch sizes from 9 × 9 to 17 × 17 are evaluated, with the results summarized in Table 7 and Figure 4a.
    The results reveal that the classification performance is highly sensitive to this hyperparameter. The optimal patch size varies substantially across different datasets, reflecting differences in scene structure. For the heterogeneous vegetation scene of IP, the peak performance is 11 × 11 , yielding an OA of 97.54 % . Beyond this size, the performance gradually declines, indicating that larger patches will introduce redundant background information, which may confuse the classifier. The urban scene of PU dataset achieves its best OA of 98.62 % when the patch size is 13 × 13 . However, the accuracy declined afterwards, possibly due to the inclusion of mixed pixels from neighboring urban objects. In contrast, the homogeneous agricultural scene of SA benefits from a broader spatial context, with the largest patch size being 17 × 17 , resulting in the highest OA of 98.89 % . The complex urban scene of HU performs the best, with the smallest patch size of 9 × 9 (OA of 98.39 % ), indicating that finer spatial details are more crucial for distinguishing diverse urban land cover types.
    As shown in Figure 4a, the OA curves for all datasets exhibit clear peaks, confirming that the accuracy typically increases with patch size up to a dataset-specific optimum. Beyond this value, due to redundant context or blurred boundaries, it tends to stabilize or decrease. Table 7 also reports the computational costs (training time, testing time, and SOPs) for each patch size. As expected, larger patch sizes lead to higher computational overhead. For example, on the IP dataset, increasing the patch size from 9 × 9 to 17 × 17 increases the SOPs from 0.100 G to 0.382 G. Nevertheless, the primary criterion for selecting the optimal patch size is classification accuracy. In the subsequent experiments, these optimal sizes are adopted: 11 × 11 for IP, 13 × 13 for PU, 17 × 17 for SA, and 9 × 9 for HU.

    3.4.2. Number of Time Steps

    The number of time steps T governs the trade-off between temporal integration and computational cost. For time steps T = 1 , 2 , 4 , 8 , the optimal patch size determined in the previous step is used for evaluation.
    As shown in Table 8 and Figure 4b, increasing T generally improves the OA of all datasets, although the improvement rate varies, reflecting the differences in dataset complexity and temporal dynamics. For IP, the OA increases from 97.12 % at T = 1 to 97.59 % at T = 2 , with a gain of 0.47 % , which is the highest among all time steps. The slight decrease at T = 4 ( 97.54 % ) and T = 8 ( 97.33 % ) indicates that longer temporal simulations may introduce redundant spike activities, which is not conducive to the learning of distinguishing features for this heterogeneous vegetation scene. For PU, the OA continuously improves from 96.43 % at T = 1 to 98.74 % at T = 8 (with a total gain of 2.31 % ), indicating that the urban scenario of PU involves more complex temporal dynamics that benefits from a longer integration of spike information. For SA, the OA reaches 98.98 % at T = 8 , only 0.13 % higher than that at T = 4 ( 98.89 % ), suggesting that for this homogeneous agricultural scenario, the benefits decrease after exceeding T = 4 . For HU, the OA saturates at T = 4 ( 98.39 % ) with no further gain at T = 8 , suggesting that four time steps are sufficient to capture the discriminative features in this complex urban scenario.
    In contrast, the computational costs of all datasets (measured in SOPs and estimated energy) increase linearly with T. On IP, the SOPs increase from 0.038 G at T = 1 to 0.307 G at T = 8 (an 8 fold increase), while OA only improves by 0.21 % . Therefore, to balance accuracy and computational efficiency, T = 4 is selected as the default configuration for the subsequent experiments.

    3.4.3. Number of Attention Heads

    Multi-head attention enables the model to capture diverse feature subspaces. The number of attention heads ranges from 2 to 16, while keeping T = 4 , C = 64 , g = 16 , and the optimal patch size.
    As shown in Table 9 and Figure 4c, performance remains stable across different numbers of heads on all datasets (IP: 97.54 % , PU: 98.62 % , SA: 98.89 % , HU: 98.39 % ), with n _ h = 8 achieving the best or near-best OA. The OA varies only slightly among different head counts, typically within 0.2 % for each dataset. Taking IP as an example, the OA ranges from 97.48 % ( n _ h = 16) to 97.54 % ( n _ h = 8), a difference of merely 0.06 % . Computational cost also shows negligible variation, as increasing the number of heads reduces the dimensionality per head ( d h = C / n _ h ), keeping the total computational load approximately constant. Therefore, adopting 8 heads as the standard configuration provides a robust balance between representational diversity and computational efficiency.

    3.4.4. Number of Groups

    The group number g in the GSA module plays a crucial role in balancing parameter efficiency and feature extraction capability. By dividing the channels into independent groups in the self-attention projection, groupwise separable convolution substantially reduces parameters and computational costs while preserving the ability to model global dependencies. The group numbers are g = 4 , 8 , 16 , 32 , with T = 4 , n _ h = 8 , C = 64 , and the optimal patch size.
    As shown in Table 10 and Figure 4d, the performance differences among different g values are marginal, typically within 0.3 % of each dataset. For IP, g = 32 yields the highest OA ( 97.63 % ), which is only 0.09 % higher than g = 16 ( 97.54 % ). For PU, g = 16 achieves the best OA ( 98.62 % ), 0.19 % lower than g = 32 . For SA, the results of g = 16 (98.89%) and g = 32 (98.97%) are comparable, with a difference of only 0.08 % . For HU, g = 16 achieves the best OA ( 98.39 % ), 0.06 % lower than g = 32 . The results show that this model is robust to the choice of g. Due to the marginal performance differences and to maintain consistency across all datasets, the default configuration of g = 16 is adopted.

    3.4.5. Summary of Optimal Configuration

    Based on the above analysis, all subsequent experiments adopt the following configuration. The spatial patch size is set to the optimal value for each dataset: IP is 11 × 11 , PU is 13 × 13 , SA is 17 × 17 , and HU is 9 × 9 . The remaining hyperparameters are fixed across all datasets: time steps T = 4 , the number of attention heads h e a d s = 8 , and the groups g = 16 . This uniform configuration ensures fair comparisons while maintaining competitive performance, as the above analyses have demonstrated that the model is robust to variations in T, n _ h , and g within a reasonable range.

    3.5. Ablation Study

    To rigorously evaluate the contribution of each key component in the proposed GS-SpikeFormer framework, an ablation study is conducted on the IP dataset. All experiments follow the training scheme described in Section 3.4.

    3.5.1. Variant Models

    Three configurations are designed to systematically analyze the contributions:
    • Baseline (SpikingResformer-HSI): Since the original SpikingResformer [15] is designed for high-resolution RGB images (e.g., 224 × 224 ), it cannot be directly applied to small HSI patches (e.g., 11 × 11 ). Therefore, it is suitable for a single-stage architecture and 64-channel HSIC tasks, denoted as ‘SpikingResformer-HSI’. This baseline implements the original Dual Spike Self-Attention (DSSA) mechanism in SpikingResformer [15], using running-average firing rate for scaling and standard ( 1 × 1 ) convolution for output projection. It employs a simple prologue consisting of a single ( 3 × 3 ) convolution, batch normalization, and max-pooling (with stride = 1). There is neither a proposed front-end module (such as Spectral Calibration or Spatial Calibration) nor any use of groupwise convolution.
    • Baseline+Front-end: This configuration adds the recommended Spectral Calibration (SC) and Spatial Calibration (SP) modules to the baseline. The SC module consists of 1 × 1 convolution (256 channels), followed by BN and spiking neuron activation; the SP module consists of 3 × 3 convolution (64 channels), followed by BN, spiking neruron activation, and stride-1 max-pooling. These modules are inserted between the input and the prologue.
    • Full Model: This is the complete proposed model. It further replaces DSSA with the GSA mechanism (using fixed scaling and groupwise separable convolutions in the output projection), and employs the GWSFFN. The front-end modules (SC + SP) are also included.

    3.5.2. Results and Analysis

    Table 11 reports the quantitative results of the three configurations across all four datasets. The progressive improvements from the Baseline to the Baseline+Front-end and then to the Full Model consistently confirm the effectiveness of each proposed component.
    • Contribution of Front-end modules: Adding the SC+SP modules to the Baseline can improve the performance of all datasets, and the magnitude of improvement reflects the complexity of the scenarios. On IP (heterogeneous vegetation, severe class imbalance), OA increases from 95.69 % to 96.24 % (a gain of 0.55 % ), AA increases from 97.86 % to 98.11 % (a gain of 0.25 % ), and κ increases from 95.02 % to 95.65 (a gain of 0.63 % ). The relatively larger gains indicate that the Front-end module is particularly beneficial for complex and imbalanced scenarios. On PU (urban scene), OA improves from 97.92 % to 98.26 % (a gain of 0.34 % ), confirming that these modules help capture discriminative features in urban environments. On SA (homogeneous agricultural scenario), OA increases from 98.84 % to 98.95 % (a gain of 0.11 % ), and the marginal gain is expected, as the Baseline has already achieved nearly saturated performance and there is little room for improvement. On HU (complex urban scenario), OA improves from 97.89 % to 98.12 % (a gain of 0.23 % ), confirming the effectiveness of these modules on challenging urban data. AA and κ show similar trends across all datasets. These improvements verified that Front-end module effectively reduce spectral redundancy and enhance local spatial feature representation.
    • Contribution of GSA and GWSFFN: Replacing DSSA with the proposed GSA and incorporating groupwise convolutions into the Feedforward network further improve the performance on most datasets. On IP, the Full Model achieves 97.54 % OA (an additional gain of 1.3 % over Baseline+Front-end), 98.45 % AA ( 0.34 % ) and 97.15 κ ( 1.5 % ). The substantial gains demonstrate that GSA is particularly effective in capturing global spatial dependencies in challenging heterogeneous scenarios. On PU, OA reaches 98.62 % (a gain of 0.36 % ), confirming that GSA is also beneficial for urban scene classification. On SA, the Full Model achieves an OA of 98.89 % , which is comparable within the standard deviation range to the Baseline+Front-end ( 98.95 % ), indicating that the Baseline architecture has well-handled the dataset. On HU, OA reaches 98.39 % (a gain of 0.27 % ), highlighting the robustness of GSA in complex urban data. These results confirm that the proposed GSA not only reduces parameters through groupwise projections but also enhances the global context modeling ability. Meanwhile, GWSFFN effectively refines the local spectral-spatial features.
    To rule out random variation, paired t-tests are conducted between the Full Model and the Baseline over 10 independent runs per dataset, separately for OA, AA, and κ . The results show that OA improvements are statistically significant ( p < 0.05 ) on IP ( p = 0.00001 ), PU ( p = 0.002 ), and HU ( p = 0.008 ), while SA shows no significant improvement ( p = 0.46 ), which is consistent with the near-saturated performance on this homogeneous agricultural scene. For AA and κ , PU and HU show significant improvements, while SA does not. On IP, thought OA and κ show significant improvements, AA does not ( p = 0.418 ), which may be attributed to the severe class imbalance of this dataset. These results confirm that the proposed components consistently enhance performance on challenging datasets while remaining competitive on already well-solved scenarios.
    In summary, the ablation studies demonstrate that each of the proposed components contributes meaningfully to the performance of GS-SpikeFormer. The Front-end modules enhance the input representation, while GSA and GWSFFN jointly achieve efficient global and local feature learning within a fully spike-driven framework.

    4. Comparison with SNN-Based HSIC Methods

    In this section, the proposed GS-SpikeFormer is evaluated against two representative HSIC methods based on SNN: SNN-SSEM [12] and AFSA [14]. SNN-SSEM [12] is a conventional SNN built on LIF neurons with direct coding. It is trained with approximate gradient methods and employs standard convolutions alongside spiking depthwise separable convolutions for spectral-spatial feature extraction. Lacking attention mechanisms, it typically requires a large number of time steps to achieve competitive accuracy. AFSA [14] represents a recent attempt to integrate attention-like mechanisms into SNNs for HSIC. It introduces a spike self-attention (SSA) module coupled with adaptive refocusing convolutional layers. While AFSA incorporates attention-inspired components, it remains largely within the conventional spike-driven paradigm without fully embracing the Transformer architecture, and still requires careful tuning, particularly under very low time step settings. For AFSA, the original network structure is followed with the same 75 / 25 training/validation split as used for all other methods (see Section 3.1) to ensure fair comparison. While AFSA’s original paper [14] reports higher accuracy with 100 training samples per class, the unified protocol adopted here allows a consistent evaluation across all models. In contrast, GS-SpikeFormer fully embeds Transformer principles within a SNN framework, building upon the spiking Transformer backbone of SpikingResformer [15] while optimizing it for efficient spike-compatible global dependency modeling tailored to hyperspectral data.
    All models are trained and evaluated under the identical training strategy and evaluation metrics, with dataset-specific optimal patch sizes. The results of the configurations across multiple time step are reported in Table 12, Table 13, Table 14 and Table 15, where the entries marked with ‘-’ indicate that the training process did not converge to a specific configuration.
    Across all the dataset and time step configurations, GS-SpikeFormer consistently outperforms the two baselines in terms of accuracy, parameter efficiency, computational cost, and inference speed. It is noteworthy that GS-SpikeFormer achieves strong performance even in a single time step ( T = 1 ), demonstrating the effectiveness of attention mechanism in SNNs for HSIC under low time step settings. Represented by the IP dataset, at T = 4 , GS-SpikeFormer achieves an OA of 97.54 % , which is 6.03 % higher than SNN-SSEM ( 91.51 % ) and 4.25 % higher than AFSA ( 93.29 % ). It only uses 0.35 M parameters, which is 60– 90 % less than SNN-SSEM ( 0.86 M) and AFSA ( 3.52 M). In terms of computational cost, GS-SpikeFormer requires 0.153 G SOPs, which is comparable to SNN-SSEM ( 0.15 G, only 2 % higher) but 67 % lower than AFSA ( 0.463 G). Despite its slightly higher SOPs than SNN-SSEM, GS-SpikeFormer achieves 46 % faster inference ( 1.5 × 10 4 s vs. 2.77 × 10 4 s), indicating that its lightweight groupwise separable attention mechanism can make better use of the hardware. Similar trends are also observed on the HU, SA and HU datasets, as detailed in Table 12, Table 13, Table 14 and Table 15.
    Overall, GS-SpikeFormer achieves a superior trade-off between accuracy and efficiency. Even in a single time step, it can deliver powerful performance, using 60– 90 % fewer parameters than the baselines while maintaining or slightly exceeding the SOPs of SNN-SSEM (with much higher accuracy), and achieving 46– 64 % faster inference. Compared to AFSA, GS-SpikeFormer reduces the computational cost by 62– 67 % and achieves 50– 64 % faster inference while maintaining superior accuracy. These results indicate that the proposed architecture is highly suitable for resource-constrained edge deployment.

    5. Comparison with SOTA HSIC Methods

    The proposed GS-SpikeFormer is evaluated against various state-of-the-art methods, including CNN-based (PResNet [25] and HybridSN [26]), Transformer-based (SSFTT [27] and GSC-VIT [9]), and SNN-based (SNN-SSEM [12] and AFSA [14]).
    This comparison situates the model in a broader high-accuracy HSIC context and demonstrates its competitiveness beyond the SNN domain. All models are trained and evaluated under the same experimental protocol to ensure fair comparisons. For SNN-based methods, the original time step settings are as follows: SNN-SSEM [12] uses 30 steps, AFSA [14] uses 1 step, and the proposed GS-SpikeFormer uses 4 steps. The results are averaged over 10 runs and reported with standard deviations.

    5.1. Results on Indian Pines (IP)

    Table 16 summarize the results on the IP dataset. GS-SpikeFormer achieves an OA of 97.54 % , outperforming all compared methods. It substantially surpasses CNN-based models (PResNet: 82.99 % , HybridSN: 89.95 % ) by 14.55 % and 7.59 % , respectively, demonstrating the advantage of spike-driven attention over conventional convolutions in heterogeneous agricultural scenarios. Among Transformer-based methods, GS-SpikeFormer exceeds SSFTT ( 94.66 % ) by 2.88 % and GSC-Vit ( 96.25 % ) by 1.29 % , confirming the effectiveness of the proposed Gated Spiking Attention in capturing both global dependencies and local spectral-spatial features while maintaining fully spike-drive computation. Against SNN-based methods, it outperforms SNN-SSEM ( 94.80 % ) by 2.74 % and AFSA ( 91.84 % ) by 5.70 % . Notably, these gains are achieved with only T = 4 time steps, a substantial reduction from SNN-SSEM’s T = 30 steps, highlighting the model’s superior temporal efficiency.
    Per-class analysis reveals consistent gains on challenging categories. For Class 2 (Corn-notill), GS-SpikeFormer reaches 95.84 % , compared to 90.66 % for SNN-SSEM and 88.1 % for AFSA. For Class 11 (Soybean-mintill), it attains 96.32 % , versus 92.07 % and 86.08 % , respectively. These gains are particularly significant given the limited training samples for these classes, underscoring the model’s ability to distinguish spectrally similar agricultural categories.
    The classification map in Figure 5 shows cleaner boundaries and fewer misclassifications, especially along field edges, corroborating the quantitative results.
    To intuitively assess feature discriminability, t-SNE visualization is performed on the IP dataset (Figure 6). Features extracted by GS-SpikeFormer form more compact and well-separated clusters than those from the competing methods, exhibiting clearer class boundaries and fewer inter-class overlaps. In contrast, CNN-based (PResNet, HybridSN) and Transformer-based (SSFTT, GSC-ViT) methods show relatively scattered distributions. Among SNN-based methods, AFSA yields moderately separated clusters, whereas GS-SpikeFormer achieves the most discriminative feature space. These results confirm that the proposed GSA mechanism and groupwise convolutions effectively learn more discriminative spectral-spatial representations than existing methods.

    5.2. Results on Pavia University (PU)

    On the PU dataset (Table 17), GS-SpikeFormer achieves the highest OA of 98.62 % , outperforming all compared methods. Specifically, it surpasses the CNN-based methods PResNet ( 94.04 % ) and HybridSN ( 95.11 % ) by 4.58 % and 3.51 % , respectively, demonstrating the effectiveness of spike-driven attention in capturing discriminative features in urban scenes. Among Transformer-based models, GS-SpikeFormer exceeds SSFTT ( 97.74 % ) by 0.88 % and GSC-ViT ( 97.12 % ) by 1.50 % , confirming the advantage of the proposed GSA over conventional self-attention and its grouped variants. Compared to SNN-based approaches, GS-SpikeFormer achieves gains of 0.82 % over SNN-SSEM ( 97.80 % ) and 1.74 % over AFSA ( 96.88 % ), highlighting its superior accuracy within the SNN domain.
    A closer examination of per-class performance reveals both strengths and nuanced trade-offs. GS-SpikeFormer achieves outstanding results on several challenging urban categories. For instance, on Class 2 (Meadows), it attains 99.48 % , the highest among all methods, significantly outperforming PResNet ( 95.94 % ) and HybridSN ( 94.81 % ). Similarly, on Class 7 (Bitumen), it achieves 99.94 % , surpassing all competitors, with the closest being SSFTT at 99.95 % . These results indicate the model’s strong capability in distinguishing spectrally distinct land-cover classes with sufficient training samples.
    However, on Class 4 (Trees), GS-SpikeFormer yields 95.30 % , which is lower than SNN-SSEM ( 97.44 % ) and AFSA ( 96.88 % ). This suggests that while the proposed model excels in many categories, certain classes may benefit from alternative architectural designs or different temporal integration strategies. Similarly, on Class 9 (Bare Soil), GS-SpikeFormer achieves 97.66 % , slightly below the best-performing method SNN-SSEM ( 99.00 % ). These observations indicate that despite achieving the highest overall accuracy, the model does not uniformly dominate all classes, and the gains in OA are driven by substantial improvements in categories with larger sample sizes (e.g., Classes 2, 5, 6, 7) rather than marginal improvements across all classes.
    The classification map in Figure 7 visually corroborates these quantitative findings. GS-SpikeFormer produces sharper boundaries and fewer misclassifications in homogeneous areas such as ‘meadows’ and ‘bitumen’, while showing minor irregularities in tree-covered regions.

    5.3. Results on Salinas (SA)

    For the SA dataset (Table 18), GS-SpikeFormer achieves an OA of 98.89 % , which is comparable to SNN-SSEM ( 98.90 % ) as the difference is well within the standard deviation range. This near-saturation performance is expected given the homogeneous agricultural nature of SA and the abundance of training samples. While the absolute gains are modest, this is expected given the near-saturation performance of all methods on SA, which features homogeneous agricultural scenes with relatively abundant training samples.
    Per-class analysis reveals that GS-SpikeFormer achieves near-perfect accuracy on the majority of classes, with perfect scores on Classes 1, 2, 3, 7, 9 and 16. However, on Class 8 (Grapes-untrained), it reaches 95.69 % , slightly below GSC-ViT ( 96.52 % ) and SNN-SSEM ( 96.31 % ). On Class 5 (Broccoli-green-weeds-1), it yields 98.94 % , trailing SNN-SSEM ( 99.22 % ) and AFSA ( 99.23 % ). These minor trade-offs suggest that while the model excels overall, further refinement may be needed for specific classes with distinct spectral signatures.
    The classification map in Figure 8 shows well-delineated agricultural regions with high regional consistency, visually confirming the model’s robustness in homogeneous scenes.

    5.4. Results on Houston2013 (HU)

    On the challenging HU dataset (Table 19, GS-SpikeFormer achieves an OA of 98.39 % , outperforming all comparison methods. It outperformed the CNN-based models PResNet ( 95.74 % ) and HybridSN ( 96.83 % ) by 2.65 % and 1.56 % respectively, demonstrating strong generalization ability in this complex urban scene with extremely scarce samples (only 2.26 % of pixels labeled). In the Transformer-based methods, GS-SpikeFormer surpasses SSFTT ( 97.97 % ) by 0.42 % and GSC-ViT ( 98.25 % ) by 0.14 % . Against the SNN-based methods, it outperforms SNN-SSEM ( 97.85 % ) by 0.54 % and AFSA ( 96.19 % ) by 2.2 % .
    Per-class analysis reveals both strengths and nuanced trade-offs. GS-SpikeFormer achieves the highest accuracy on several challenging categories, including Class 1 (Grassland: 98.97 % ), Class 3 (Synthetic Grass: 99.85 % ), and Class 7 (Water: 97.73 % ), and Class 10 (Residential: 99.98%). Notably, on Class 7, it substantially outperforms SSFTT ( 95.74 % ) and AFSA ( 92.48 % ), underscoring the model’s ability to capture fine spectral differences with limited samples. However, on Class 8 (Commercial) and Class 9 (Road), GS-SpikeFormer achieves 95.24 % and 94.82 % , respectively, slightly trailing GSC-ViT ( 95.30 % and 94.88 % ). These minor discrepancies suggest that while the proposed model excels in overall accuracy, further architectural refinements may benefit specific urban classes with highly heterogeneous spectral signatures.
    The classification map in Figure 9 reveals sharper boundaries and fewer errors in heterogeneous urban areas, visually confirming the model’s robustness.

    6. Discussion

    The experimental results demonstrate that GS-SpikeFormer achieves leading classification accuracy on four benchmark hyperspectral datasets using only 4 time steps and 0.35 M parameters. This strongly supports the core hypothesis that multiply-accumulate operations in self-attention can be replaced by event-driven logical AND gating without compromising global context modeling. Compared to earlier SNN-based methods that rely on a large number of time steps (e.g., SNN-SSEM [12] requires 30 time steps, AFSA [14] demands careful tuning), the proposed GSA improves the OA on IP dataset by more than 6 % at extremely low time steps while reducing parameters by 60– 90 % , validating the effectiveness of a spiking-compatible Transformer for HSIC. Even when compared with state-of-the-art convolutional and Transformer models such as PResNet [25], HybridSN [26], SSFTT [27], and GSC-VIT [9], GS-SpikeFormer attains higher accuracy than almost all datasets, indicating that the synergy between groupwise convolutions and binary attention gates not only preserves local spectral-spatial feature extraction capabilities but also offers inherent advantages for hardware-efficient deployment.
    In a broader context, the model achieves 98.39 % OA on HU dataset with only 2.26 % labeled pixels and an estimated energy consumption as low as 0.09 mJ per image, making it a promising candidate for real-time or onboard processing on resource-constrained platforms. Nevertheless, several limitations exist. The optimal spatial patch size varies across datasets (from 9 × 9 to 17 × 17 ), indicating that some degree of dataset-specific tuning is still required. For classes with severe imbalance (e.g., Oats in IP, Trees in PU), the fixed 4 time steps encoding occasionally underperforms certain baselines, suggesting that the current temporal coding strategy may not be sufficient for all land-cover types. Moreover, the reported energy consumption is a theoretical upper bound based on 45 nm CMOS assumptions, and actual energy efficiency on physical neuromorphic hardware remains to be validated.
    Potential uncertainties in the results stem primarily from the randomness of limited-sample partitioning and the higher variance of rare classes. The class-aware splitting strategy guarantees a minimum number of training samples per class, but for extremely small classes the 60 / 20 / 20 split may yield test subsets with limited representativeness. The selection of optimal hyperparameters depends on the validation set, introducing minor partition-related biases. The theoretical energy estimation assumes that every spike triggers a synaptic operation, without accounting for actual sparse activity patterns and hardware-specific optimizations, and should therefore be regarded as an upper-bound reference.
    Future work may pursue several directions: designing an adaptive time-step mechanism that dynamically adjusts T based on input complexity to further balance accuracy and efficiency; deploying and benchmarking GS-SpikeFormer on neuromorphic chips such as Loihi or TrueNorth to obtain real-world energy measurements; exploiting the interpretable binary masks generated by GSA for spectral-spatial feature attribution analysis, thereby bridging high-performance models and explainable AI in remote sensing; extending the framework to multi-source and multi-temporal HSI data, as well as downstream tasks such as target detection and change detection; and combining the proposed architecture with advanced training paradigms such as STDP-based fine-tuning or few-shot meta-learning to further push the performance boundaries under extreme label scarcity. Overall, GS-SpikeFormer provides an accuracy-efficiency co-optimized spiking Transformer baseline for edge-oriented HSIC, while its current limitations outline a clear roadmap for subsequent refinement and broader adoption.

    7. Conclusions

    In this study, we introduced GS-SpikeFormer, a lightweight and fully spike-driven Vision Transformer architecture designed to address the dual challenges of high-dimensional data and limited labeled samples in HSIC. At the core of our method lies the novel Gated Spiking Self-Attention (GSA) mechanism, which adapts the efficient grouping principle of groupwise separable convolution to the spiking domain by reformulating the spiking-driven self-attention. This key innovation, together with a Front-end processing and the GWSFFN, enables the joint extraction of local spectral-spatial features and global contextual dependencies within a fully spike-compatible paradigm. Extensive experiments on four benchmark HSI datasets demonstrate that GS-SpikeFormer achieves state-of-the-art or highly competitive classification accuracy while substantially improving model efficiency. Notably, the model attains superior performance with very few training samples and reduces the parameter count to only 0.35 M. More importantly, by maintaining end-to-end binary spike activations, our architecture preserves the event-driven, low-power characteristics of SNNs, making it highly suitable for deployment on resource-constrained edge devices. This work successfully bridges the gap between efficient group convolution design and spiking Transformer architectures, offering a practical pathway toward high-performance, low-power remote sensing systems.

    Author Contributions

    Methodology, Q.Y. and X.X.; writing—original draft preparation, Q.Y., H.L. and Y.J.; writing—review and editing, Q.Y. and X.X. All authors have read and agreed to the published version of the manuscript.

    Funding

    This research was funded by the National Natural Science Foundation of China under Grant 62271130. Guangdong Basic and Applied Basic Research Foundation under Grant 2023A1515010066. Major Science and Technology Special Project of Zhongshan under Grant 2024A1007.

    Data Availability Statement

    Publicly available datasets were analyzed in this study. The Indian Pines, Pavia University, and Salinas datasets can be obtained from the Grupo de Inteligencia Computacional repository at https://www.ehu.eus/ccwintco/index.php/Hyperspectral_Remote_Sensing_Scenes, access date: 7 July 2026. The Houston2013 dataset can be accessed from the IEEE GRSS Data Fusion Contest website at https://hyperspectral.ee.uh.edu/?page_id=459, access date: 7 July 2026. No new data were created. The codes will be available at: https://github.com/yaoqiong123/gs_spikeformer, accessed on 7 July 2026.

    Acknowledgments

    The authors would like to take this opportunity to thank the Editors and the Anonymous Reviewers for their detailed comments and suggestions, which greatly helped us to improve the clarity and presentation of our manuscript. During the preparation of this manuscript/study, the authors used Deepseek-V4 for the purpose of text generating and polishing. The authors have reviewed and edited the output and take full responsibility for the content of this publication.

    Conflicts of Interest

    The authors declare no conflict of interest.

    References

    1. Bhargava, A.; Sachdeva, A.; Sharma, K.; Alsharif, M.H.; Uthansakul, P.; Uthansakul, M. Hyperspectral imaging and its applications: A review. Heliyon 2024, 10, e33208. [Google Scholar] [CrossRef] [Scilit]
    2. Yang, X.; Yu, Y. Estimating Soil Salinity Under Various Moisture Conditions: An Experimental Study. IEEE Trans. Geosci. Remote Sens. 2017, 55, 2525–2533. [Google Scholar] [CrossRef] [Scilit]
    3. Weiss, M.; Jacob, F.; Duveiller, G. Remote sensing for agricultural applications: A meta–review. Remote Sens. Environ. 2020, 236, 111402. [Google Scholar] [CrossRef] [Scilit]
    4. Weber, C.; Aguejdad, R.; Briottet, X.; Avala, J.; Fabre, S.; Demuynck, J.; Zenou, E.; Deville, Y.; Karoui, M.; Benhalouche, F.; et al. Hyperspectral Imagery for Environmental Urban Planning. In Proceedings of the IGARSS 2018—2018 IEEE International Geoscience and Remote Sensing Symposium, Valencia, Spain, 22–27 July 2018; pp. 1628–1631. [Google Scholar]
    5. Shimoni, M.; Haelterman, R.; Perneel, C. Hyperspectral Imaging for Military and Security Applications: Combining Myriad Processing and Sensing Techniques. IEEE Geosci. Remote Sens. Mag. 2019, 7, 101–117. [Google Scholar] [CrossRef] [Scilit]
    6. Ullah, F.; Ullah, I.; Khan, R.U.; Khan, S.; Khan, K.; Pau, G. Conventional to Deep Ensemble Methods for Hyperspectral Image Classification: A Comprehensive Survey. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2024, 17, 3878–3916. [Google Scholar] [CrossRef] [Scilit]
    7. He, X.; Chen, Y.; Lin, Z. Spatial–Spectral Transformer for Hyperspectral Image Classification. Remote Sens. 2021, 13, 498. [Google Scholar] [CrossRef] [Scilit]
    8. Ahmad, M.; Distefano, S.; Khan, A.M.; Mazzara, M.; Li, C.; Li, H.; Aryal, J.; Ding, Y.; Vivone, G.; Hong, D. A comprehensive survey for Hyperspectral Image Classification: The evolution from conventional to transformers and Mamba models. Neurocomputing 2025, 644, 130428. [Google Scholar] [CrossRef] [Scilit]
    9. Zhao, Z.; Xu, X.; Li, S.; Plaza, A. Hyperspectral Image Classification Using Groupwise Separable Convolutional Vision Transformer Network. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5511817. [Google Scholar] [CrossRef] [Scilit]
    10. Xu, R.; Dong, X.M.; Li, W.; Peng, J.; Sun, W.; Xu, Y. DBCTNet: Double Branch Convolution-Transformer Network for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5509915. [Google Scholar] [CrossRef] [Scilit]
    11. Liu, Y.; Cao, K.; Wang, R.; Tian, M.; Xie, Y. Hyperspectral Image Classification of Brain-Inspired Spiking Neural Network Based on Attention Mechanism. IEEE Geosci. Remote Sens. Lett. 2022, 19, 6009405. [Google Scholar] [CrossRef] [Scilit]
    12. Liu, Y.; Cao, K.; Li, R.; Zhang, H.; Zhou, L. Hyperspectral Image Classification of Brain–Inspired Spiking Neural Network Based on Approximate Derivative Algorithm. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5538216. [Google Scholar] [CrossRef] [Scilit]
    13. Li, Y.; Liu, Y.; Li, R.; Zhou, L.; Dang, L.; Mu, H.; Ge, Q. Hyperspectral image classification based on faster residual multi-branch spiking neural network. Comput. Geosci. 2025, 197, 105864. [Google Scholar] [CrossRef] [Scilit]
    14. Li, H.; Tu, B.; Liu, B.; Li, J.; Plaza, A. Adaptive Feature Self–Attention in Spiking Neural Networks for Hyperspectral Classification. IEEE Trans. Geosci. Remote Sens. 2025, 63, 5500915. [Google Scholar] [CrossRef] [Scilit]
    15. Shi, X.; Hao, Z.; Yu, Z. SpikingResformer: Bridging ResNet and Vision Transformer in Spiking Neural Networks. In Proceedings of the 2024 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 16–22 June 2024; pp. 5610–5619. [Google Scholar]
    16. Wang, M.; Yang, K.; Lu, J.; Liu, W.; Zeng, T. A Spectral Variability and Class-Constrained Diffusion Model for Unsupervised Hyperspectral Unmixing. Remote Sens. 2026, 18, 1483. [Google Scholar] [CrossRef] [Scilit]
    17. Wang, D.; Gao, L.; Qu, Y.; Sun, X.; Liao, W. Frequency-to-spectrum mapping GAN for semisupervised hyperspectral anomaly detection. CAAI Trans. Intell. Technol. 2023, 8, 1258–1273. [Google Scholar] [CrossRef] [Scilit]
    18. Wang, D.; Zhuang, L.; Gao, L.; Sun, X.; Zhao, X. Global Feature-Injected Blind-Spot Network for Hyperspectral Anomaly Detection. IEEE Geosci. Remote Sens. Lett. 2024, 21, 5509305. [Google Scholar] [CrossRef] [Scilit]
    19. Huo, Y.; Dong, Y.; Wang, C.; Zhang, M.; Wang, H. Multi-scale memory network with separation training for hyperspectral anomaly detection. Inf. Process. Manag. 2026, 63, 104494. [Google Scholar] [CrossRef] [Scilit]
    20. Wang, D.; Zhuang, L.; Gao, L.; Sun, X.; Zhao, X.; Plaza, A. Sliding Dual-Window-Inspired Reconstruction Network for Hyperspectral Anomaly Detection. IEEE Trans. Geosci. Remote Sens. 2024, 62, 5504115. [Google Scholar] [CrossRef] [Scilit]
    21. Wang, D.; Ren, L.; Sun, X.; Gao, L.; Chanussot, J. Nonlocal and Local Feature-Coupled Self-Supervised Network for Hyperspectral Anomaly Detection. IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens. 2025, 18, 6981–6993. [Google Scholar] [CrossRef] [Scilit]
    22. Zhan, K.; Huo, Z.; Yin, Z.; Yang, Z. Rethinking Data Leakage in Patch-Based Hyperspectral Image Classification with Traditional Deep Networks. Remote Sens. 2026, 18, 979. [Google Scholar] [CrossRef] [Scilit]
    23. Yao, M.; Hu, J.; Zhou, Z.; Yuan, L.; Tian, Y.; Xu, B.; Li, G. Spike-driven Transformer. In Proceedings of the Advances in Neural Information Processing Systems 36 (NEURIPS 2023), New Orleans, LA, USA, 10–16 December 2023. [Google Scholar]
    24. Zhou, Z.; Zhu, Y.; He, C.; Wang, Y.; Yan, S.; Tian, Y.; Yuan, L. Spikformer: When Spiking Neural Network Meets Transformer. In Proceedings of the The Eleventh International Conference on Learning Representations, ICLR 2023, Kigali, Rwanda, 1–5 May 2023. [Google Scholar]
    25. Paoletti, M.E.; Haut, J.M.; Fernandez-Beltran, R.; Plaza, J.; Plaza, A.J.; Pla, F. Deep Pyramidal Residual Networks for Spectral–Spatial Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2019, 57, 740–754. [Google Scholar] [CrossRef] [Scilit]
    26. Roy, S.K.; Krishna, G.; Dubey, S.R.; Chaudhuri, B.B. HybridSN: Exploring 3–D–2–D CNN Feature Hierarchy for Hyperspectral Image Classification. IEEE Geosci. Remote Sens. Lett. 2020, 17, 277–281. [Google Scholar] [CrossRef] [Scilit]
    27. Sun, L.; Zhao, G.; Zheng, Y.; Wu, Z. Spectral–Spatial Feature Tokenization Transformer for Hyperspectral Image Classification. IEEE Trans. Geosci. Remote Sens. 2022, 60, 5522214. [Google Scholar] [CrossRef] [Scilit]
    Figure 2. The calculation process of GSA.
    Figure 2. The calculation process of GSA.
    Remotesensing 18 02419 g002
    Figure 3. Training and validation curves of GS-SpikeFormer on four benchmark datasets.
    Figure 3. Training and validation curves of GS-SpikeFormer on four benchmark datasets.
    Remotesensing 18 02419 g003
    Figure 4. OAs of different hyperparameters on four hyperspectral datasets.
    Figure 4. OAs of different hyperparameters on four hyperspectral datasets.
    Remotesensing 18 02419 g004
    Figure 5. Classification maps obtained by different methods on IP dataset.
    Figure 5. Classification maps obtained by different methods on IP dataset.
    Remotesensing 18 02419 g005
    Figure 6. t-SNE visualization of learned features on IP dataset. Each color represents one land-cover class.
    Figure 6. t-SNE visualization of learned features on IP dataset. Each color represents one land-cover class.
    Remotesensing 18 02419 g006
    Figure 7. Classification maps obtained by different methods on PU dataset.
    Figure 7. Classification maps obtained by different methods on PU dataset.
    Remotesensing 18 02419 g007
    Figure 8. Classification maps obtained by different methods on SA dataset.
    Figure 8. Classification maps obtained by different methods on SA dataset.
    Remotesensing 18 02419 g008
    Figure 9. Classification maps obtained by different methods on HU dataset.
    Figure 9. Classification maps obtained by different methods on HU dataset.
    Remotesensing 18 02419 g009
    Table 1. Architectural details of the proposed GS-SpikeFormer. ‘SC’ denotes Spectral Calibration module, ‘SP’ denotes Spatial Calibration module, ‘MaxP’ denotes Max-Pooling, ‘GSA’ is Gated Spiking Attention, ‘GWSFFN’ is Groupwise Spiking Feedforward Network, ‘S-GAP’ denotes Spike-based Global Average Pooling, and ‘SSL’ denotes Spiking Linear Layer. The size of the input patch varies according to the dataset.
    Table 1. Architectural details of the proposed GS-SpikeFormer. ‘SC’ denotes Spectral Calibration module, ‘SP’ denotes Spatial Calibration module, ‘MaxP’ denotes Max-Pooling, ‘GSA’ is Gated Spiking Attention, ‘GWSFFN’ is Groupwise Spiking Feedforward Network, ‘S-GAP’ denotes Spike-based Global Average Pooling, and ‘SSL’ denotes Spiking Linear Layer. The size of the input patch varies according to the dataset.
    StageLayerInput SizeOutput SizeKernel SizeStrideGroupsSpike-Driven
    Front-endSC T × C × H × W T × 256 × H × W 1 × 1 11Yes (LIF)
    SP T × 256 × H × W T × 64 × H × W 3 × 3 11Yes (LIF)
    MaxP T × 64 × H × W T × 64 × ( H 1 ) × ( W 1 ) 2 × 2 1No
    TransformerGSA T × 64 × ( H 1 ) × ( W 1 ) T × 64 × ( H 1 ) × ( W 1 ) 16/32 1Yes (LIF)
    GWSFFN T × 64 × ( H 1 ) × ( W 1 ) T × 64 × ( H 1 ) × ( W 1 ) 3 × 3 164 2Yes (LIF)
    ClassificationS-GAP T × 64 × ( H 1 ) × ( W 1 ) T × 64 × 1 × 1 No
    SLL T × 64 N class × 1 LinearYes (LIF)
    1 Group numbers are dataset-adaptive: 16 for Indian Pines (IP) and Pavia University (PU); 32 for Salinas (SA) and Houston2013 (HU). 2 Group size = 64 channels per group.
    Table 2. Summary of benchmark HSI datasets, including sensor type, spatial and spectral dimensions, number of land-cover classes, and the proportion of labeled samples.
    Table 2. Summary of benchmark HSI datasets, including sensor type, spatial and spectral dimensions, number of land-cover classes, and the proportion of labeled samples.
    DatasetSensorSize ( H × W × C )ClassesLabeled (%)
    IPAVIRIS 145 × 145 × 224 1648.75
    PUROSIS 610 × 340 × 102 917.43
    SAAVIRIS 512 × 217 × 224 1648.72
    HUCASI-1500 349 × 1905 × 144 152.26
    Table 3. Class-aware splitting strategy for IP dataset.
    Table 3. Class-aware splitting strategy for IP dataset.
    Class NO.Class NameTrainValidTestTotal
    1Alfalfa289946
    2Corn-notill752513281428
    3Corn-mintill7525730830
    4Corn7525137237
    5Grass-pasture7525383483
    6Grass-trees7525630730
    7Grass-pasture-mowed176528
    8Hay-windowed7525378478
    9Oats124420
    10Soybean-notill7525872972
    11Soybean-mintill752523552455
    12Soybean-clean7525493593
    13Wheat7525105205
    14Woods752511651265
    15Bulidings-Grass-Trees7525286386
    16Stone-Steel-Towers56191893
    Total1013338889810,249
    Table 4. Class-aware splitting strategy for PU dataset.
    Table 4. Class-aware splitting strategy for PU dataset.
    Class NO.Class NameTrainValidTestTotal
    1Asphalt752565316631
    2Meadows752518,54918,649
    3Gravel752519992099
    4Trees752529643064
    5Sheets752512451345
    6Bare soils752549295029
    7Bitumen752512301330
    8Bricks752535823682
    9Shadows7525747947
    Total67522541,87642,776
    Table 5. Class-aware splitting strategy for SA dataset.
    Table 5. Class-aware splitting strategy for SA dataset.
    Class NO.Class NameTrainValidTestTotal
    1Brocoli-green-weeds-1752519092009
    2Brocoli-green-weed-2752536263726
    3Fallow752518761976
    4Fallow-rough-plow752512941394
    5Fallow-smooth752525782678
    6Stubble752538593959
    7Celery752534793579
    8Grapes-untrained752511,17111,271
    9Soil-vinyard-develop752561036203
    10Gorn-seneced-gree-weed752531783278
    11Lettuce-romaine-4wk75259681068
    12Lettuce-romaine-5wk752518271927
    13Lettuce-romaine-6wk7525816916
    14Lettuce-romaine-7wk75259701070
    15Vinyard-untrained752571687268
    16Vinyard-vertical-trelis752517071807
    Total120040052,52954,129
    Table 6. Class-aware splitting strategy for HU dataset.
    Table 6. Class-aware splitting strategy for HU dataset.
    Class NO.Class NameTrainValidTestTotal
    1Healthy Grass752511511251
    2Stressed Grass752511541254
    3Synthetic Grass7525597697
    4Tree752511441244
    5Soil752511521252
    6Water7525225325
    7Residential752511681268
    8Commercial752511441244
    9Road752511521252
    10Highway752511271227
    11Railway752511351235
    12Parking Lot1752511331233
    13Parking Lot27525369469
    14Tennis Cour7525328428
    15Running Track7525560660
    Total112537513,53915,039
    Table 7. OA, AA, and κ for different spatial patch sizes on four hyperspectral datasets (T = 4, n _ h = 8, num_group = 16).
    Table 7. OA, AA, and κ for different spatial patch sizes on four hyperspectral datasets (T = 4, n _ h = 8, num_group = 16).
    DatasetPatch SizeOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)
    IP997.44 ± 0.4598.71 ± 0.1897.03 ± 0.5231.03 ± 0.910.91 ± 0.011.020.100190.09018
    1197.54 ± 0.5898.45 ± 1.0597.15 ± 0.6747.78 ± 1.031.33 ± 0.031.500.153260.13793
    1397.36 ± 0.3798.61 ± 0.2396.94 ± 0.4263.53 ± 0.941.97 ± 0.022.220.217770.19599
    1597.05 ± 0.5598.47 ± 0.3086.58 ± 0.6392.43 ± 0.792.90 ± 0.033.260.293880.26449
    1796.64 ± 0.4898.34 ± 0.2496.11 ± 0.55132.79 ± 1.744.33 ± 0.044.870.381730.34356
    PU998.08 ± 0.4898.10 ± 0.3297.45 ± 0.6421.23 ± 0.844.25 ± 0.061.020.099750.09975
    1198.45 ± 0.5198.27 ± 0.3697.93 ± 0.6832.03 ± 0.656.17 ± 0.011.470.152580.13732
    1398.62 ± 0.3798.23 ± 0.2998.16 ± 0.4942.50 ± 0.679.15 ± 0.052.190.216810.19513
    1598.33 ± 0.4597.74 ± 0.5097.77 ± 0.5961.71 ± 0.8813.51 ± 0.033.230.292580.26332
    1798.05 ± 0.3197.27 ± 0.3797.40 ± 0.4288.17 ± 0.8120.35 ± 0.174.860.380050.34204
    SA997.66 ± 0.3499.09 ± 0.1897.39 ± 0.3836.24 ± 0.985.25 ± 0.021.000.099690.08972
    1198.26 ± 0.5299.33 ± 0.1698.06 ± 0.5756.05 ± 1.027.73 ± 0.061.470.152480.13723
    1398.21 ± 0.6999.31 ± 0.2798.00 ± 0.7774.36 ± 0.7011.44 ± 0.052.180.216670.19500
    1598.67 ± 0.4999.49 ± 0.1698.52 ± 0.55109.09 ± 0.6717.19 ± 0.193.270.292390.26315
    1798.89 ± 0.5299.56 ± 0.1598.76 ± 0.58156.03 ± 0.4525.49 ± 0.094.850.379800.34182
    HU998.39 ± 0.4198.62 ± 0.3598.25 ± 0.4433.76 ± 0.691.36 ± 0.001.000.099730.08976
    1198.32 ± 0.4898.54 ± 0.4298.18 ± 0.5252.51 ± 0.692.00 ± 0.011.480.152550.13729
    1397.98 ± 0.6798.23 ± 0.6097.81 ± 0.7370.54 ± 0.903.00 ± 0.052.220.216770.19509
    1597.44 ± 0.7497.76 ± 0.6597.22 ± 0.80101.85 ± 0.904.35 ± 0.003.210.292520.26327
    1796.81 ± 0.5397.22 ± 0.5196.54 ± 0.58146.21 ± 0.786.54 ± 0.024.830.379970.34198
    Table 8. OA, AA, and κ for different time steps (T) on four hyperspectral datasets (adopted the optimal spatial patch size for each separately, n _ h = 8, num_group = 16).
    Table 8. OA, AA, and κ for different time steps (T) on four hyperspectral datasets (adopted the optimal spatial patch size for each separately, n _ h = 8, num_group = 16).
    DatasetTime StepsOA (%)AA (%) κ (×10) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)
    IP (P = 11)197.12 ± 0.5398.56 ± 0.2496.66 ± 0.6222.25 ± 0.680.61 ± 0.000.690.038310.03448
    297.59 ± 0.4998.77 ± 0.2397.21 ± 0.5627.88 ± 0.800.83 ± 0.010.930.076630.06897
    497.54 ± 0.5898.45 ± 1.0597.15 ± 0.6747.78 ± 1.031.33 ± 0.031.500.153260.13793
    897.33 ± 0.3698.48 ± 0.6196.91 ± 0.4182.76 ± 1.322.16 ± 0.012.430.306510.27586
    PU (P = 13)196.43 ± 1.1996.61 ± 0.7395.27 ± 1.5716.99 ± 0.663.52 ± 0.040.840.054200.04878
    298.19 ± 0.6797.88 ± 0.5597.59 ± 0.8924.86 ± 0.685.44 ± 0.071.300.108400.09756
    498.62 ± 0.3798.23 ± 0.2998.16 ± 0.4942.50 ± 0.679.15 ± 0.052.190.216810.19513
    898.74 ± 0.3598.41 ± 0.2298.32 ± 0.4677.85 ± 1.2115.19 ± 0.083.630.433620.39026
    SA (P = 17)198.85 ± 0.2999.51 ± 0.1298.72 ± 0.3250.23 ± 0.618.43 ± 0.121.610.094950.08546
    298.63 ± 0.5599.44 ± 0.2598.47 ± 0.6185.65 ± 0.6614.07 ± 0.062.680.189900.17091
    498.89 ± 0.5299.56 ± 0.1598.76 ± 0.58156.03 ± 0.4525.49 ± 0.094.850.379800.34182
    898.98 ± 0.3699.57 ± 0.0998.87 ± 0.40293.14 ± 1.2843.50 ± 0.098.280.759600.68364
    HU (P = 9)196.89 ± 0.5597.46 ± 0.5396.63 ± 0.5924.58 ± 0.660.88 ± 0.010.650.024930.02244
    298.06 ± 0.3998.37 ± 0.3797.90 ± 0.4324.79 ± 0.670.99 ± 0.010.730.049870.04488
    498.39 ± 0.4198.62 ± 0.3598.25 ± 0.4433.76 ± 0.691.36 ± 0.001.000.099730.08976
    898.39 ± 0.5098.62 ± 0.4698.26 ± 0.5457.42 ± 1.562.16 ± 0.011.600.199460.17952
    Table 9. OA, AA, and κ for different heads on four hyperspectral datasets (T = 4, num_group = 16).
    Table 9. OA, AA, and κ for different heads on four hyperspectral datasets (T = 4, num_group = 16).
    DatasetAttention HeadsOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)
    IP (P = 11)298.53 ± 0.3598.27 ± 0.2298.05 ± 0.4734.32 ± 0.916.88 ± 0.227.740.155190.13967
    497.49 ± 0.4698.68 ± 0.2997.09 ± 0.5343.82 ± 0.631.19 ± 0.041.340.153900.13851
    897.54 ± 0.5898.45 ± 1.0597.15 ± 0.6747.78 ± 1.031.33 ± 0.031.500.153260.13793
    1697.48 ± 0.5698.73 ± 0.2597.09 ± 0.6555.91 ± 0.941.67 ± 0.021.880.152930.13764
    PU (P = 13)297.38 ± 0.4098.58 ± 0.2196.97 ± 0.4642.20 ± 0.901.09 ± 0.010.260.220790.19872
    498.53 ± 0.5198.18 ± 0.3898.04 ± 0.6837.36 ± 0.847.61 ± 0.051.820.218140.19632
    898.62 ± 0.3798.23 ± 0.2998.16 ± 0.4942.50 ± 0.679.15 ± 0.052.190.216810.19513
    1698.41 ± 0.4897.99 ± 0.4797.87 ± 0.6354.08 ± 0.8112.39 ± 0.102.960.216150.19453
    SA (P = 17)298.65 ± 0.6199.45 ± 0.2598.50 ± 0.68109.39 ± 0.7916.11 ± 0.053.070.392390.35315
    498.81 ± 0.5299.53 ± 0.1598.68 ± 0.57125.70 ± 0.5819.32 ± 0.193.680.384000.34560
    898.89 ± 0.5299.56 ± 0.1598.76 ± 0.58156.37 ± 0.6525.67 ± 0.134.890.379800.34182
    1698.91 ± 0.2599.56 ± 0.0898.78 ± 0.28219.08 ± 0.8238.07 ± 0.217.250.377700.33993
    HU (P = 9)298.29 ± 0.4398.54 ± 0.3998.15 ± 0.4732.66 ± 0.851.27 ± 0.030.940.100520.09047
    498.44 ± 0.4698.66 ± 0.4398.31 ± 0.5033.33 ± 0.841.29 ± 0.020.950.099990.09000
    898.39 ± 0.4198.62 ± 0.3598.25 ± 0.4433.76 ± 0.691.36 ± 0.001.000.099730.08976
    1698.50 ± 0.4598.72 ± 0.4298.37 ± 0.4836.73 ± 0.961.59 ± 0.051.170.099600.08964
    Table 10. OA, AA, and κ for different number of groups (g) on four hyperspectral datasets (n_h = 8, T = 4).
    Table 10. OA, AA, and κ for different number of groups (g) on four hyperspectral datasets (n_h = 8, T = 4).
    DatasetNum of Groups (g)OA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)
    IP (P = 11)497.34 ± 0.4498.64 ± 0.2596.91 ± 0.5147.23 ± 0.701.32 ± 0.001.480.153560.13821
    897.25 ± 0.3998.61 ± 0.2896.81 ± 0.4447.41 ± 0.801.33 ± 0.021.500.153360.13802
    1697.54 ± 0.5898.45 ± 1.0597.15 ± 0.6747.78 ± 1.031.33 ± 0.031.500.153260.13793
    3297.63 ± 0.4098.81 ± 0.2497.25 ± 0.4647.51 ± 0.851.33 ± 0.011.600.153200.13788
    PU (P = 13)498.35 ± 0.6598.05 ± 0.5397.80 ± 0.8642.08 ± 0.699.08 ± 0.092.170.217250.19553
    898.55 ± 0.3698.18 ± 0.3298.06 ± 0.4842.45 ± 0.739.22 ± 0.082.200.216960.19526
    1698.62 ± 0.3798.23 ± 0.2998.16 ± 0.4942.50 ± 0.679.15 ± 0.052.190.216810.19513
    3298.43 ± 0.4798.10 ± 0.3397.91 ± 0.6242.48 ± 1.059.14 ± 0.022.180.216740.19506
    SA (P = 17)498.60 ± 0.5599.42 ± 0.2698.44 ± 0.61154.46 ± 0.8225.42 ± 0.104.840.380590.34253
    898.70 ± 0.5499.45 ± 0.2698.55 ± 0.60154.85 ± 1.0025.44 ± 0.094.840.390060.34206
    1698.89 ± 0.5299.56 ± 0.1598.76 ± 0.58156.37 ± 0.6525.67 ± 0.134.890.379800.34182
    3298.97 ± 0.2699.58 ± 0.0798.86 ± 0.29156.27 ± 0.5825.75 ± 0.124.890.379670.34170
    HU (P = 9)498.36 ± 0.4798.58 ± 0.4798.22 ± 0.5133.29 ± 0.941.34 ± 0.010.990.099930.08994
    898.29 ± 0.4298.54 ± 0.3998.14 ± 0.4633.93 ± 0.591.39 ± 0.061.030.099800.08982
    1698.39 ± 0.4198.62 ± 0.3598.25 ± 0.4433.76 ± 0.691.36 ± 0.001.000.099730.08976
    3298.33 ± 0.4498.57 ± 0.4298.19 ± 0.4834.17 ± 0.821.38 ± 0.011.020.099700.08973
    Table 11. Ablation Study on four Datasets.
    Table 11. Ablation Study on four Datasets.
    DatasetConfigOA (%)AA (%) κ (×100)
    IP (P = 11)Baseline95.69 ± 0.8097.86 ± 0.4595.02 ± 0.92
    +SC+SP96.24 ± 0.7598.11 ± 0.4395.65 ± 0.87
    Full model97.54 ± 0.58 *98.45 ± 1.0597.15 ± 0.67 *
    PU (P = 13)Baseline97.92 ± 0.6597.88 ± 0.4397.24 ± 0.86
    +SC+SP98.26 ± 0.3798.09 ± 0.4297.68 ± 0.49
    Full model98.62 ± 0.37 *98.23 ± 0.29 *98.16 ± 0.49 *
    SA (P = 17)Baseline98.84 ± 0.3599.42 ± 0.2498.71 ± 0.39
    +SC+SP98.95 ± 0.5699.52 ± 0.2098.82 ± 0.63
    Full model98.89 ± 0.5299.56 ± 0.1598.76 ± 0.58
    HU (P = 9)Baseline97.89 ± 0.3398.24 ± 0.3397.71 ± 0.36
    +SC+SP98.12 ± 0.5798.44 ± 0.4997.96 ± 0.62
    Full model98.39 ± 0.41 *98.62 ± 0.35 *98.25 ± 0.44 *
    Note: The ‘Baseline’ corresponds to SpikingResformer-HSI, which implements the original DSSA mechanism in SpikingResformer [15] and adapts to HSIC with a single-stage architecture. * p < 0.05 vs. Baseline (paired t-test, 10 runs).
    Table 12. Comparison with SNN-Based HSIC Methods on IP dataset over different time steps.
    Table 12. Comparison with SNN-Based HSIC Methods on IP dataset over different time steps.
    Time StepsSNN-Based MethodsOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)Param (M)
    1SNN-SSEM---------
    AFSA91.84 ± 1.0196.13 ± 0.3790.59 ± 1.1430.08 ± 0.531.06 ± 0.031.190.121490.109343.52
    GS-SpikeFormer97.12 ± 0.5398.56 ± 0.2496.66 ± 0.6222.25 ± 0.680.61 ± 0.000.690.038310.034480.35
    2SNN-SSEM86.43 ± 2.8493.14 ± 1.9084.38 ± 3.2636.53 ± 1.031.54 ± 0.051.730.075700.068130.86
    AFSA89.99 ± 1.8592.59 ± 2.6188.46 ± 2.1149.61 ± 0.931.63 ± 0.031.830.235350.211823.52
    GS-SpikeFormer97.59 ± 0.4998.77 ± 0.2397.21 ± 0.5627.88 ± 0.800.83 ± 0.010.930.076630.068970.35
    4SNN-SSEM91.51 ± 1.5195.58 ± 0.5890.19 ± 1.3261.08 ± 0.562.46 ± 0.172.770.150010.135010.86
    AFSA93.29 ± 0.8896.57 ± 0.5592.25 ± 1.0186.84 ± 0.282.68 ± 0.013.010.463080.416773.52
    GS-SpikeFormer97.54 ± 0.5898.45 ± 1.0597.15 ± 0.6747.78 ± 1.031.33 ± 0.031.500.153260.137930.35
    8SNN-SSEM93.20 ± 0.9796.71 ± 0.6992.15 ± 1.11112.14 ± 0.914.17 ± 0.104.690.298610.268750.86
    AFSA95.11 ± 0.7197.63 ± 0.2494.34 ± 0.81162.21 ± 2.184.78 ± 0.055.380.918530.826673.52
    GS-SpikeFormer97.33 ± 0.3698.48 ± 0.6196.91 ± 0.4182.76 ± 1.322.16 ± 0.012.430.306510.275860.35
    Table 13. Comparison with SNN-Based HSIC Methods on PU dataset over different time steps.
    Table 13. Comparison with SNN-Based HSIC Methods on PU dataset over different time steps.
    Time StepsSNN-Based MethodsOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)Param (M)
    1SNN-SSEM---------
    AFSA96.88 ± 0.7897.22 ± 0.3195.85 ± 1.0319.38 ± 0.205.53 ± 0.111.320.170600.153542.26
    GS-SpikeFormer96.43 ± 1.1996.61 ± 0.7395.27 ± 1.5716.99 ± 0.663.52 ± 0.040.840.054200.048780.35
    2SNN-SSEM96.12 ± 1.0296.33 ± 0.5694.86 ± 1.3125.99 ± 0.287.6 ± 0.171.810.106710.096040.87
    AFSA95.35 ± 3.0594.76 ± 3.0793.86 ± 3.9832.51 ± 1.448.16 ± 0.311.950.330590.297532.26
    GS-SpikeFormer98.19 ± 0.6797.88 ± 0.5597.59 ± 0.8924.86 ± 0.685.44 ± 0.071.300.108400.097560.35
    4SNN-SSEM97.48 ± 0.6697.59 ± 0.3296.64 ± 0.8642.37 ± 0.2311.58 ± 0.132.770.211480.190330.87
    AFSA97.27 ± 1.0697.19 ± 0.5796.37 ± 1.4054.69 ± 0.2512.80 ± 0.103.060.650580.585522.26
    GS-SpikeFormer98.62 ± 0.3798.23 ± 0.2998.16 ± 0.4942.50 ± 0.679.15 ± 0.052.190.216810.195130.35
    8SNN-SSEM97.41 ± 0.9397.62 ± 0.5596.56 ± 1.2375.14 ± 0.1719.38 ± 0.074.630.421010.378910.87
    AFSA97.64 ± 0.7397.66 ± 0.9196.86 ± 0.97104.06 ± 1.7722.58 ± 0.095.391.290551.161492.26
    GS-SpikeFormer98.74 ± 0.3598.41 ± 0.2298.32 ± 0.4677.85 ± 1.2115.19 ± 0.083.630.433620.390260.35
    Table 14. Comparison with SNN-Based HSIC Methods on SA dataset over different time steps.
    Table 14. Comparison with SNN-Based HSIC Methods on SA dataset over different time steps.
    Time StepsSNN-Based MethodsOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)Param (M)
    1SNN-SSEM62.83 ± 39.0366.81 ± 39.7260.80 ± 40.1639.17 ± 0.489.11 ± 0.331.730.094510.085060.91
    AFSA98.54 ± 0.6099.35 ± 0.2098.37 ± 0.6747.82 ± 0.5510.84 ± 0.482.060.281150.253032.32
    GS-SpikeFormer98.85 ± 0.2999.51 ± 0.1298.72 ± 0.3250.23 ± 0.618.43 ± 0.121.610.094950.085460.35
    2SNN-SSEM97.65 ± 0.6598.92 ± 0.3097.38 ± 0.7355.30 ± 0.2511.92 ± 0.182.270.185690.167120.91
    AFSA96.94 ± 1.7498.44 ± 0.7496.59 ± 1.9376.93 ± 1.1116.06 ± 0.293.060.544160.489752.32
    GS-SpikeFormer98.63 ± 0.5599.44 ± 0.2598.47 ± 0.6185.65 ± 0.6614.07 ± 0.062.680.189900.170910.35
    4SNN-SSEM98.45 ± 0.6499.34 ± 0.1998.27 ± 0.7286.59 ± 0.2216.69 ± 0.093.180.368040.331240.91
    AFSA98.36 ± 0.4999.23 ± 0.2498.17 ± 0.54139.22 ± 2.0027.24 ± 0.505.191.070190.963172.32
    GS-SpikeFormer98.89 ± 0.5299.56 ± 0.1598.76 ± 0.58156.03 ± 0.4525.49 ± 0.094.850.379800.341820.35
    8SNN-SSEM98.38 ± 0.6899.32 ± 0.2798.19 ± 0.76151.06 ± 0.7926.32 ± 0.065.010.732750.659480.91
    AFSA98.68 ± 0.4499.44 ± 0.1998.53 ± 0.49262.25 ± 0.3849.08 ± 0.030.342.122261.910032.32
    GS-SpikeFormer98.98 ± 0.3699.57 ± 0.0998.87 ± 0.40293.14 ± 1.2843.50 ± 0.098.280.759600.683640.35
    Table 15. Comparison with SNN-Based HSIC Methods on HU dataset over different time steps.
    Table 15. Comparison with SNN-Based HSIC Methods on HU dataset over different time steps.
    Time StepsSNN-Based MethodsOA (%)AA (%) κ (×100) Training Time (s)Test Time (s)Infer Time (×10−4 s)SOPs (G)Energy (mJ)Param (M)
    1SNN-SSEM---------
    AFSA96.19 ± 0.5696.81 ± 0.4895.87 ± 0.6029.30 ± 0.331.42 ± 0.03 0.079830.079833.52
    GS-SpikeFormer96.89 ± 0.5597.46 ± 0.5396.63 ± 0.5924.58 ± 0.660.88 ± 0.010.650.024930.022440.35
    2SNN-SSEM92.92 ± 1.2894.04 ± 1.0392.34 ± 1.3836.61 ± 0.282.04 ± 0.041.510.049470.044520.86
    AFSA95.95 ± 0.6596.34 ± 0.5095.62 ± 0.7148.86 ± 0.242.22 ± 0.011.640.154570.139123.52
    GS-SpikeFormer98.06 ± 0.3998.37 ± 0.3797.90 ± 0.4324.79 ± 0.670.99 ± 0.010.730.049870.044880.35
    4SNN-SSEM95.54 ± 0.5996.21 ± 0.5395.17 ± 0.6464.20 ± 0.953.36 ± 0.082.480.098010.088200.86
    AFSA97.10 ± 0.3497.50 ± 0.2996.86 ± 0.3787.04 ± 0.483.78 ± 0.022.790.304060.273653.52
    GS-SpikeFormer98.39 ± 0.4198.62 ± 0.3598.25 ± 0.4433.76 ± 0.691.36 ± 0.001.000.099730.089760.35
    8SNN-SSEM96.73 ± 0.6497.22 ± 0.5896.46 ± 0.69117.14 ± 0.375.90 ± 0.034.360.195080.175570.86
    AFSA97.37 ± 0.4597.70 ± 0.4897.15 ± 0.49166.72 ± 0.937.07 ± 0.035.220.603040.542733.52
    GS-SpikeFormer98.39 ± 0.5098.62 ± 0.4698.26 ± 0.5457.42 ± 1.562.16 ± 0.011.600.199460.179520.35
    Table 16. Classification Results of different methods for the IP dataset.
    Table 16. Classification Results of different methods for the IP dataset.
    Class No.CNN-BasedTransformer-BasedSNN-BasedGS-SpikeFormer
    PResNetHybridSNSSFTTGSC-ViTSNN-SSEMAFSA
    196.6798.89100.00100.00100.00100.00100.00
    273.6385.0592.0094.0790.6688.1095.84
    378.8591.2695.8497.3795.2192.4298.56
    497.2398.8399.7899.78100.0099.05100.00
    593.3996.3297.3197.7097.0895.7497.81
    698.7999.4499.8399.2599.4097.6899.51
    7100.00100.00100.00100.00100.00100.00100.00
    899.8999.76100.0099.92100.0099.58100.00
    992.50100.00100.00100.00100.00100.0095.00
    1080.3188.0293.8595.5393.2390.8996.24
    1172.9082.6189.9893.5992.0786.0896.32
    1278.6289.3595.8896.2195.7693.8197.02
    1399.7199.4399.8199.2499.4399.0599.62
    1495.9096.3998.7199.0298.4096.8399.43
    1597.4196.0199.4499.8698.9998.8199.79
    1699.4499.44100.0098.3399.44100.00100.00
    OA (%)82.99 ± 1.4189.95 ± 1.3094.66 ± 0.7996.25 ± 0.5094.80 ± 1.1391.84 ± 1.0197.54 ± 0.58
    AA (%)90.95 ± 1.4995.05 ± 0.6197.65 ± 0.3098.12 ± 0.2597.48 ± 0.5696.13 ± 0.3798.45 ± 1.05
    κ ( × 100 )80.50 ± 1.5988.30 ± 1.4893.83 ± 0.9095.66 ± 0.5793.98 ± 1.3090.59 ± 1.1497.15 ± 0.67
    Table 17. Classification Results of different methods for the PU dataset.
    Table 17. Classification Results of different methods for the PU dataset.
    Class No.CNN-BasedTransformer-BasedSNN-BasedGS-SpikeFormer
    PResNetHybridSNSSFTTGSC-ViTSNN-SSEMAFSA
    187.9594.6096.3994.7697.9195.3597.48
    295.9494.8198.1397.9797.4397.2199.48
    391.1294.0797.0996.6297.5094.6896.94
    495.0296.3997.1095.0297.4496.8895.30
    599.9299.9999.9199.5799.8899.9299.73
    698.2696.8698.8999.7699.2898.4799.57
    799.1199.0699.8499.7099.7999.7099.95
    885.7590.6995.9093.5996.2494.5897.97
    997.3999.2498.4297.1399.0098.2297.66
    OA (%)94.04 ± 1.4995.11 ± 1.4897.74 ± 1.0297.12 ± 0.9497.80 ± 1.4696.88 ± 0.8398.62 ± 0.37
    AA (%)94.50 ± 0.8896.19 ± 0.9697.96 ± 0.5597.13 ± 0.3198.27 ± 0.5297.22 ± 0.3298.23 ± 0.29
    κ ( × 100 )92.12 ± 1.9293.54 ± 1.9297.00 ± 1.3496.17 ± 1.2297.08 ± 1.8995.85 ± 1.0898.16 ± 0.49
    Table 18. Classification Results of different methods for the SA dataset.
    Table 18. Classification Results of different methods for the SA dataset.
    Class No.CNN-BasedTransformer-BasedSNN-BasedGS-SpikeFormer
    PResNetHybridSNSSFTTGSC-ViTSNN-SSEMAFSA
    199.9899.99100.0099.96100.00100.00100.00
    299.9999.86100.0099.9999.9399.97100.00
    3100.0099.8599.99100.00100.0099.97100.00
    499.7099.7799.5599.3999.6699.8899.71
    598.9898.7098.7298.4199.2299.2398.94
    699.9799.9499.9699.8499.9599.9299.91
    799.9899.9799.9899.9699.9399.74100.00
    894.5093.0795.7396.5296.3195.1195.69
    999.9999.8099.9999.9699.9999.97100.00
    1099.1898.1299.0799.2298.8798.7999.72
    1199.90100.0099.9099.75100.0099.8799.95
    1299.6899.9899.9699.9999.9999.9399.98
    1399.9899.7899.8799.6699.6999.8599.99
    1499.8699.7399.8299.8199.7999.5599.94
    1598.7396.4398.0698.5798.7698.1499.20
    1699.7099.0799.8599.8399.8699.7099.99
    OA (%)98.52 ± 0.6497.77 ± 0.5298.68 ± 0.6198.88 ± 0.4498.90 ± 0.4498.54 ± 0.6398.89 ± 0.52
    AA (%)99.38 ± 0.2299.00 ± 0.2699.40 ± 0.2299.43 ± 0.1699.50 ± 0.2099.35 ± 0.2199.56 ± 0.15
    κ ( × 100 )98.35 ± 0.7297.52 ± 0.5798.53 ± 0.6898.76 ± 0.4998.78 ± 0.5098.37 ± 0.7098.76 ± 0.58
    Table 19. Classification Results of different methods for the HU dataset.
    Table 19. Classification Results of different methods for the HU dataset.
    Class No.CNN-BasedTransformer-BasedSNN-BasedGS-SpikeFormer
    PResNetHybridSNSSFTTGSC-ViTSNN-SSEMAFSA
    197.3097.8998.3998.2298.1097.5898.97
    298.4298.9799.2998.8698.8098.1798.62
    399.5199.2199.6699.7899.4699.5399.85
    496.5498.3898.9798.9998.6796.0498.68
    599.9699.97100.00100.0099.9699.84100.00
    699.2999.9199.9699.8799.5199.5199.51
    791.4793.2295.7496.3195.9992.4897.73
    890.0491.1893.9795.3092.9991.7195.24
    988.9491.1293.7394.8894.5890.0894.82
    1096.9798.4198.7399.3198.7597.2899.98
    1196.6898.5099.6499.8499.3797.1898.93
    1295.6296.8197.7898.8998.3196.1898.74
    1394.5896.4098.6796.8398.3596.7898.29
    1499.9499.6399.8599.97100.0099.79100.00
    1599.9699.77100.0099.9899.95100.00100.00
    OA (%)95.74 ± 0.5296.83 ± 0.5597.97 ± 0.4998.25 ± 0.2797.85 ± 0.5596.19 ± 0.5998.39 ± 0.41
    AA (%)96.35 ± 0.5097.29 ± 0.4298.29 ± 0.4098.47 ± 0.2698.19 ± 0.4996.81 ± 0.5198.62 ± 0.35
    κ ( × 100 )95.38 ± 0.5696.56 ± 0.5997.75 ± 0.5398.10 ± 0.3097.67 ± 0.6095.87 ± 0.6498.25 ± 0.44
    Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

    Share and Cite

    MDPI and ACS Style

    Yao, Q.; Liu, H.; Jin, Y.; Xu, X. Gated Spiking Attention Transformer for Hyperspectral Image Classification. Remote Sens. 2026, 18, 2419. https://doi.org/10.3390/rs18142419

    AMA Style

    Yao Q, Liu H, Jin Y, Xu X. Gated Spiking Attention Transformer for Hyperspectral Image Classification. Remote Sensing. 2026; 18(14):2419. https://doi.org/10.3390/rs18142419

    Chicago/Turabian Style

    Yao, Qiong, Hao Liu, Yingxi Jin, and Xiang Xu. 2026. "Gated Spiking Attention Transformer for Hyperspectral Image Classification" Remote Sensing 18, no. 14: 2419. https://doi.org/10.3390/rs18142419

    APA Style

    Yao, Q., Liu, H., Jin, Y., & Xu, X. (2026). Gated Spiking Attention Transformer for Hyperspectral Image Classification. Remote Sensing, 18(14), 2419. https://doi.org/10.3390/rs18142419

    Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

    Article Metrics

    Back to TopTop