Unleashing the Power of Generic Segmentation Model: A Simple Baseline for Infrared Small Target Detection

Mingjin Zhang, Chi Zhang, Qiming Zhang, Yunsong Li, Xinbo Gao, Jing Zhang

Abstract

Infrared Small Target Detection (IRSTD) is a critical task in remote sensing and surveillance, yet it is often hampered by the scarcity of annotated data. While large-scale foundation models like the Segment Anything Model (SAM) have revolutionized natural image segmentation, their direct application to IRSTD leads to significant overfitting. This paper proposes a lightweight, efficient baseline that bridges this gap through knowledge distillation from Semantic-SAM into a compact student model. By introducing a novel multi-scale query design, the proposed architecture achieves state-of-the-art accuracy and real-time throughput on multiple IRSTD benchmarks, demonstrating that visible-light foundation models can effectively supercharge infrared detection tasks.

Introduction

Infrared Small Target Detection (IRSTD) is essential for applications ranging from search and rescue to video surveillance. Unlike natural image datasets, infrared datasets are typically small due to the high cost of pixel-level annotation. Consequently, the field has been dominated by custom, data-efficient U-Net architectures trained from scratch. These specialized models, however, fail to benefit from the massive generalization capabilities of visible-light foundation models like SAM.

The primary challenge lies in transferring the rich representations of these foundation models to the infrared domain without incurring massive computational overhead or falling into the trap of overfitting on tiny datasets. This paper addresses this by asking whether a lightweight model can inherit the strengths of a foundation model while remaining optimized for the specific constraints of IRSTD.

Methodology

Knowledge Distillation from Semantic-SAM

The authors identified Semantic-SAM—a variant capable of outputting masks at multiple granularities—as the most effective teacher for infrared tasks. They employ a knowledge distillation framework to train a lightweight student backbone (RepViT M1.1). The distillation process utilizes a multi-faceted loss function combining Binary Cross-Entropy (BCE), DICE loss, and KL-divergence to align the student's intermediate and final outputs with the teacher's multi-granularity features.

The knowledge distillation framework transferring multi-granularity features from a Swin-Large teacher to a RepViT student.

Architecture and Query Design

Following pre-training, the student backbone is integrated with a compact Feature Pyramid Network (FPN) and a modified SAM decoder. A key innovation is the introduction of learnable dense and sparse queries. Standard FPNs often suffer from "semantic dilution," where deep, high-level features necessary for identifying tiny targets are washed out during top-down fusion.

These queries act as a shared workspace, facilitating bi-directional interactions between the image encoder, FPN, and decoder. This mechanism ensures that critical multi-scale information is preserved and propagated throughout the network, allowing the model to maintain high-resolution details alongside deep semantic context.

Overview of the proposed architecture featuring dense and sparse query interactions across the encoder, FPN, and decoder.

Experimental Results

Datasets and Evaluation

The student model was pre-trained on 1% of the SA-1B dataset and evaluated on four standard IRSTD benchmarks: SIRST, NUDT, IRSTD1k, and MDFA. Performance was measured using Intersection over Union (IoU) and detection probability.

Performance Highlights

The proposed baseline significantly outperforms previous state-of-the-art (SOTA) methods while maintaining real-time inference speeds:

  • NUDT Dataset: Achieved a record 97.04 IoU, surpassing the Semantic-SAM teacher by over 14 IoU and the previous SOTA (UIU-net) by approximately 5 IoU.
  • IRSTD1k Dataset: Reached 74.21 IoU, outperforming the teacher model by ~4 IoU.
  • Efficiency: The model operates at real-time throughput, proving significantly faster than large vision models like SAM or SAM-HQ while delivering superior accuracy for small target detection.

Discussion and Conclusion

A central insight of this work is that distillation can actually surpass direct fine-tuning. By distilling a massive foundation model into a smaller architecture, the authors avoid the overfitting issues inherent in large models when applied to small IR datasets. Furthermore, the novel query design successfully mitigates the limitations of standard FPNs in preserving tiny target features.

While the pre-training phase still requires substantial visible-light data, the resulting inference model is highly efficient. Future research will focus on determining the minimum amount of visible-light data required to achieve these gains, potentially further simplifying the training pipeline for infrared-specific applications.

Summary updated

BibTeX
@inproceedings{zhang2024unleashing,
  author = {Mingjin Zhang and Chi Zhang and Qiming Zhang and Yunsong Li and Xinbo Gao and Jing Zhang},
  title = {{Unleashing the Power of Generic Segmentation Model: A Simple Baseline for Infrared Small Target Detection}},
  booktitle = {ACM Multimedia},
  year = {2024},
  doi = {10.1145/3664647.3680609},
}
Figure