SAMamba: Adaptive State Space Modeling with Hierarchical Vision for Infrared Small Target Detection

Wenhao Xu, Shuchen Zheng, Changwei Wang, Zherui Zhang, Chuan Ren +2 more
5/29/2025
54 citations
cs.CVcs.AI
state-space-mamba

Official code: zhengshuchen/SAMamba (30 stars, Python, Apache-2.0, last commit 2025-05-18).

Abstract

Infrared small target detection (ISTD) is vital for long-range surveillance in military, maritime, and early warning applications. ISTD is challenged by targets occupying less than 0.15% of the image and low distinguishability from complex backgrounds.

Show full abstract

Existing deep learning methods often suffer from information loss during downsampling and inefficient global context modeling. This paper presents SAMamba, a novel framework integrating SAM2's hierarchical feature learning with Mamba's selective sequence modeling. Key innovations include: (1) A Feature Selection Adapter (FS-Adapter) for efficient natural-to-infrared domain adaptation via dual-stage selection (token-level with a learnable task embedding and channel-wise adaptive transformations); (2) A Cross-Channel State-Space Interaction (CSI) module for efficient global context modeling with linear complexity using selective state space modeling; and (3) A Detail-Preserving Contextual Fusion (DPCF) module that adaptively combines multi-scale features with a gating mechanism to balance high-resolution and low-resolution feature contributions. SAMamba addresses core ISTD challenges by bridging the domain gap, maintaining fine-grained details, and efficiently modeling long-range dependencies. Experiments on NUAA-SIRST, IRSTD-1k, and NUDT-SIRST datasets show SAMamba significantly outperforms state-of-the-art methods, especially in challenging scenarios with heterogeneous backgrounds and varying target scales. Code: https://github.com/zhengshuchen/SAMamba.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
300Python, CudaDec 15, 20241 years agoApache-2.0

Similar Papers

Cite this paper

@article{xu2025samamba,
  title  = {SAMamba: Adaptive State Space Modeling with Hierarchical Vision for Infrared Small Target Detection},
  author = {Wenhao Xu and Shuchen Zheng and Changwei Wang and Zherui Zhang and Chuan Ren and Rongtao Xu and Shibiao Xu},
  year   = {2025},
  eprint = {2505.23214},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.23214v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.23214.svg)](https://codeofpaper.com/paper/2505.23214)

Discussion