Abstract
Recent advancements in deep learning have greatly advanced the field of infrared small object detection (IRSTD). Despite their remarkable success, a notable gap persists between these IRSTD methods and generic segmentation approaches in natural image domains. This gap primarily arises from the significant modality differences and the limited availability of infrared data. In this study, we aim to bridge this divergence by investigating the adaptation of generic segmentation models, such as the Segment Anything Model (SAM), to IRSTD tasks. Our investigation reveals that many generic segmentation models can achieve comparable performance to state-of-the-art IRSTD methods. However, their full potential in IRSTD remains untapped. To address this, we propose a simple, lightweight, yet effective baseline model for segmenting small infrared objects. Through appropriate distillation strategies, we empower smaller student models to outperform state-of-the-art methods, even surpassing fine-tuned teacher results. Furthermore, we enhance the model's performance by introducing a novel query design comprising dense and sparse queries to effectively encode multi-scale features. Through extensive experimentation across four popular IRSTD datasets, our model demonstrates significantly improved performance in both accuracy and throughput compared to existing approaches, surpassing SAM and Semantic-SAM by over 14 IoU on NUDT and 4 IoU on IRSTD1k.
Introduction
Infrared Small Target Detection (IRSTD) is often described as a "needle in a haystack" problem. Targets typically occupy only a few pixels, and infrared images lack the rich texture, color, and high contrast found in natural visible-light images. Historically, the field has relied on specialized U-shaped networks (like U-Net variants) trained from scratch on small, domain-specific datasets.
While "Foundation Models" like the Segment Anything Model (SAM) have revolutionized generic segmentation, they often fail to perform optimally for IRSTD out of the box. The massive modality gap between visible light and infrared data, combined with the tendency of large models to overfit on small infrared datasets, presents a significant challenge. This research explores whether the power of large-scale segmentation models can be distilled into a lightweight, efficient architecture tailored for the unique constraints of infrared imaging.
The SimIRSTD Framework
The proposed framework, SimIRSTD, bridges the gap between generic segmentation and IRSTD through three primary innovations: a novel query design, multi-stage decoding, and a robust distillation strategy.
Architecture and Query Design
To prevent the loss of critical information during feature fusion—a common issue in standard Feature Pyramid Networks (FPNs) where tiny targets can be "washed out"—the authors introduced a dual-query system.
- Dense Queries: These encode spatial information and utilize multi-scale deformable attention to interact with the deeper layers of the encoder.
- Sparse Queries: These are learnable tokens that facilitate bi-directional attention between the encoder, the FPN, and the decoder, acting as a mechanism to carry semantic information across layers without losing the target.
The model also employs Multi-Stage Decoding. Instead of a single prediction at the end, "early decoding" is performed after the image encoder and the FPN. These early predictions serve as "prompts" or clues that guide the final decoder to refine target boundaries effectively.
Knowledge Distillation
Rather than fine-tuning a large model directly, the authors utilize Knowledge Distillation. They selected Semantic-SAM (with a Swin-Large backbone) as the teacher model due to its hierarchical structure and multi-granularity mask output. This knowledge is distilled into a much smaller and more efficient RepViT M1.1 student model.
The distillation process uses KL-divergence and Dice loss to ensure the student captures the teacher's understanding of object boundaries and hierarchies, which proves highly transferable from visible light to the infrared domain.
Experimental Evaluation
The model was pre-trained using distillation on 1% of the SA-1B dataset and then fine-tuned on four major IRSTD benchmarks: SIRST, NUDT, IRSTD1k, and MDFA.
Key Results
SimIRSTD achieved state-of-the-art (SOTA) results across all benchmarks:
- Accuracy: On the NUDT dataset, it reached 97.04 mIoU, significantly outperforming the teacher model and other IRSTD-specific architectures.
- Precision: It achieved a 100% detection probability (Pd) on the SIRST dataset.
- Efficiency: The model maintains real-time processing speeds on a single Nvidia 4090 GPU, making it suitable for edge deployment.
Discussion and Conclusion
A key finding of this work is the "Overfitting Paradox": while large foundation models are powerful, they often overfit small infrared datasets when fine-tuned directly. A distilled, lightweight student model generalizes better and provides superior performance. Furthermore, the results demonstrate that modality transfer is effective; the structural understanding of objects learned from visible light is a valuable asset for infrared tasks.
While training on visible light data is beneficial, it is computationally intensive. Future work could explore identifying specific subsets of visible light data that are most relevant to infrared textures to optimize the distillation process. SimIRSTD serves as a strong, simple baseline that demonstrates how generic segmentation principles can be effectively adapted to specialized, small-data domains like IRSTD.
Summary updated