20 October 2025 in IEEE Transactions on Geoscience and Remote Sensing
Hyperspectral target detection (HTD) faces significant challenges due to the scarcity of labeled samples and the redundancy in spectral information. To address these challenges, this paper proposes a multi-scale lightweight transformer-based detector (MSLTD) specifically designed for hyperspectral target detection. First, a novel training sample generation strategy is developed that relies solely on raw hyperspectral data and a single prior target spectrum to generate a sufficient number of high-quality training samples. Second, a multi-scale feature lightweight network based on three-channel transformer is proposed. It first divides spectral pixels into consecutive groups to extract local spectral features across adjacent bands, and then introduces a multi-scale sparse subspace transformer to capture and fuse intrinsic spectral characteristics and long-range dependencies at multiple resolutions while effectively reducing spectral redundancy. In addition, an adaptive hardness-aware contrastive (AHC) loss function is introduced, which integrates triplet loss and focal loss to adaptively emphasize hard-to-classify samples and improve the discriminative ability between targets and backgrounds. The effectiveness of the proposed MSLTD is validated through comparative experiments on four real hyperspectral datasets against seven state-of-the-art target detection methods, demonstrating improved detection accuracy and competitive computational efficiency. Extensive ablation studies further confirm the contributions of key components in the framework, highlighting its robustness and applicability in various hyperspectral target detection scenarios. The code for this work is available at https://github.com/2474109721ct/MSLTD for reproducibility purposes.