[论文解读] MiM-ISTD: Mamba-in-Mamba for Efficient Infrared Small Target Detection
本论文提出MiM-ISTD,一种Mamba-in-Mamba架构,通过使用堆叠的Mamba模块分层建模局部视觉词与全局视觉句,提升红外小目标检测性能。通过在每个图像块内引入内部Mamba模块以细化局部特征,并利用外部Mamba模块捕捉长程依赖关系,该方法在2048×2048图像上相较先前SOTA模型实现10倍更快的推理速度与73.4%更低的GPU显存占用,同时达到最先进精度。
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.
研究动机与目标
- 解决现有视觉Transformer与CNN在红外小目标检测(ISTD)中效率低下及局部特征建模能力有限的问题。
- 克服标准Transformer在处理高分辨率红外图像时的二次方计算复杂度问题。
- 利用Mamba状态空间模型的线性复杂度特性,提升效率而不损失检测精度。
- 通过在Mamba-based编码器中引入分层视觉词与视觉句表示,增强小目标的局部特征提取能力。
- 实现实时高分辨率遥感应用中红外小目标检测的优越精度-效率权衡。
提出的方法
- 将输入红外图像划分为视觉句(图像块),并进一步细分为视觉词(子块),以实现分层特征建模。
- 使用外部Mamba模块处理视觉句嵌入,建模图像中跨区域的长程全局依赖关系。
- 在每个视觉句内部引入内部Mamba模块,以极低计算开销捕捉视觉词之间的细粒度局部关系。
- 在所有视觉句之间共享内部Mamba模块,以保持参数效率的同时增强局部特征表示能力。
- 通过线性投影聚合视觉词特征,并将其与视觉句嵌入拼接,以在每一阶段丰富特征表示。
- 堆叠多个MiM模块,构建深层、纯Mamba-based编码器,以计算高效的方式平衡局部与全局建模。
实验结果
研究问题
- RQ1纯Mamba-based架构是否能在保持高效率的同时,超越混合CNN-Transformer模型在红外小目标检测中的表现?
- RQ2如何改进Mamba模型以更好地捕捉对检测小目标至关重要的局部特征,而这些特征在标准Mamba实现中通常被忽略?
- RQ3何种视觉词与视觉句的分层设计能最优地平衡高分辨率ISTD中局部细节保留与计算成本之间的权衡?
- RQ4在每个视觉句内部引入内部Mamba模块是否显著提升检测精度,相比使用卷积或无局部建模方法?
- RQ5与SOTA方法相比,Mamba-in-Mamba结构在2048×2048大尺寸红外图像上,能在多大程度上降低GPU显存占用与推理时间?
主要发现
- MiM-ISTD在NUAA-SIRST数据集上达到80.80% IoU与80.20% nIoU,优于基线模型与消融变体。
- 与SOTA方法TCI-Former相比,该方法在2048×2048图像上实现73.4%更低的GPU显存占用与10倍更快的推理速度。
- 消融研究证实,内部Mamba模块对性能贡献显著,相较卷积替换变体提升2.37% IoU。
- 最优的图像块划分粒度为每视觉句2×2个视觉词,视觉句分辨率为1/8×1/8,实现局部细节与计算成本的最优平衡。
- 特征可视化显示,MiM-ISTD在各通道上生成更聚焦、更一致且更具判别性的特征,尤其在深层网络中表现更优。
- t-SNE可视化结果表明,MiM-ISTD的特征更紧凑且类别间分离度更高,表明其在小目标检测中具备更强的特征判别能力。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。