Skip to main content
QUICK REVIEW

[Paper Review] MiM-ISTD: Mamba-in-Mamba for Efficient Infrared Small Target Detection

Tianxiang Chen, Ye, Zi|arXiv (Cornell University)|Mar 4, 2024
Infrared Target Detection MethodologiesEngineering3 citations
TL;DR

This paper proposes MiM-ISTD, a Mamba-in-Mamba architecture that enhances infrared small target detection by hierarchically modeling local visual words and global visual sentences using stacked Mamba blocks. By integrating inner Mamba blocks to refine local features within each patch and outer Mamba blocks to capture long-range dependencies, the method achieves state-of-the-art accuracy with 10× faster inference and 73.4% lower GPU memory usage on 2048×2048 images compared to prior SOTA models.

ABSTRACT

Recently, infrared small target detection (ISTD) has made significant progress, thanks to the development of basic models. Specifically, the models combining CNNs with transformers can successfully extract both local and global features. However, the disadvantage of the transformer is also inherited, i.e., the quadratic computational complexity to sequence length. Inspired by the recent basic model with linear complexity for long-distance modeling, Mamba, we explore the potential of this state space model for ISTD task in terms of effectiveness and efficiency in the paper. However, directly applying Mamba achieves suboptimal performances due to the insufficient harnessing of local features, which are imperative for detecting small targets. Instead, we tailor a nested structure, Mamba-in-Mamba (MiM-ISTD), for efficient ISTD. It consists of Outer and Inner Mamba blocks to adeptly capture both global and local features. Specifically, we treat the local patches as "visual sentences" and use the Outer Mamba to explore the global information. We then decompose each visual sentence into sub-patches as "visual words" and use the Inner Mamba to further explore the local information among words in the visual sentence with negligible computational costs. By aggregating the visual word and visual sentence features, our MiM-ISTD can effectively explore both global and local information. Experiments on NUAA-SIRST and IRSTD-1k show the superior accuracy and efficiency of our method. Specifically, MiM-ISTD is $8 imes$ faster than the SOTA method and reduces GPU memory usage by 62.2$\%$ when testing on $2048 imes 2048$ images, overcoming the computation and memory constraints on high-resolution infrared images.

Motivation & Objective

  • Address the inefficiency and limited local feature modeling of existing vision transformers and CNNs in infrared small target detection (ISTD).
  • Overcome the quadratic computational complexity of standard transformers when processing high-resolution infrared images.
  • Leverage the linear complexity of Mamba state space models to improve efficiency without sacrificing detection accuracy.
  • Enhance local feature extraction for small targets by introducing a hierarchical visual word and sentence representation within a Mamba-based encoder.
  • Achieve a superior accuracy-efficiency trade-off for real-time ISTD in high-resolution remote sensing applications.

Proposed method

  • Divide input infrared images into visual sentences (patches) and further subdivide them into visual words (sub-patches) for hierarchical feature modeling.
  • Use an outer Mamba block to process visual sentence embeddings and model long-range global dependencies across the image.
  • Introduce an inner Mamba block within each visual sentence to capture fine-grained local relationships among visual words with minimal computational overhead.
  • Apply shared inner Mamba blocks across visual sentences to maintain parameter efficiency while enhancing local feature representation.
  • Aggregate visual word features via linear projection and concatenate them with visual sentence embeddings to enrich feature representation at each stage.
  • Stack multiple MiM blocks to form a deep, pure Mamba-based encoder that balances local and global modeling in a computationally efficient manner.

Experimental results

Research questions

  • RQ1Can a pure Mamba-based architecture outperform hybrid CNN-Transformer models in infrared small target detection while maintaining high efficiency?
  • RQ2How can Mamba models be adapted to better capture local features critical for detecting small targets, which are typically overlooked in standard Mamba implementations?
  • RQ3What hierarchical design of visual words and sentences optimizes the trade-off between local detail preservation and computational cost in high-resolution ISTD?
  • RQ4Does introducing an inner Mamba block within each visual sentence significantly improve detection accuracy compared to using convolutions or no local modeling?
  • RQ5To what extent can the Mamba-in-Mamba structure reduce GPU memory usage and inference time on large 2048×2048 infrared images compared to SOTA methods?

Key findings

  • MiM-ISTD achieves 80.80% IoU and 80.20% nIoU on the NUAA-SIRST dataset, outperforming the baseline and ablation variants.
  • The method reduces GPU memory usage by 73.4% and achieves 10× faster inference on 2048×2048 images compared to the SOTA method TCI-Former.
  • Ablation studies confirm that the inner Mamba block contributes significantly to performance, with a 2.37% improvement in IoU over the convolutional replacement variant.
  • The optimal patch division granularity is 2×2 visual words per visual sentence and 1/8×1/8 resolution for visual sentences, balancing local detail and computational cost.
  • Feature visualization shows that MiM-ISTD produces more focused, consistent, and discriminative features across channels compared to TCI-Former, especially in deeper layers.
  • t-SNE visualization confirms that MiM-ISTD’s features are more compact and better separated, indicating stronger feature discriminability for small target detection.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.