用混合Mamba提升少样本分割中支持图像信息的利用效率
Hybrid Mamba for Few-Shot Segmentation

- 设计跨序列Mamba结构,线性复杂度融合支持与查询特征
- 周期性重捕支持特征,避免信息丢失,提升分割准确率
- 适合需要高效融合少量样本的视觉分割任务
许多少样本分割(FSS)方法使用交叉注意力融合支持图像前景(FG)到查询特征,但存在二次复杂度问题。最近的Mamba模型能高效捕捉序列内依赖,且复杂度为线性。为此,我们提出一种跨序列(类注意力)Mamba结构以捕捉序列间依赖。简单思路是扫描支持特征并压缩至隐藏状态,再用于顺序扫描查询特征。然而该方法存在两个问题:(1)支持遗忘问题——查询特征在扫描时也会被压缩,导致隐藏状态中的支持信息逐渐减少,部分查询像素无法充分融合支持信息;(2)类内差距问题——查询前景本质上更相似于自身而非支持前景,因此查询可能偏好从隐藏状态中提取自身特征而非支持特征,而FSS的成功依赖于有效利用支持信息。为解决上述问题,我们提出混合Mamba网络(HMNet),包括:(1)支持重捕Mamba,周期性地重新捕获支持特征,确保隐藏状态始终包含丰富支持信息;(2)查询截断Mamba,禁止查询像素间的相互作用,鼓励其更多融合来自隐藏状态的支持特征。实验在两个公开基准上验证了该方法的优越性。
原文摘要 · Abstract (English)
Many few-shot segmentation (FSS) methods use cross attention to fuse support foreground (FG) into query features, regardless of the quadratic complexity. A recent advance Mamba can also well capture intra-sequence dependencies, yet the complexity is only linear. Hence, we aim to devise a cross (attention-like) Mamba to capture inter-sequence dependencies for FSS. A simple idea is to scan on support features to selectively compress them into the hidden state, which is then used as the initial hidden state to sequentially scan query features. Nevertheless, it suffers from (1) support forgetting issue: query features will also gradually be compressed when scanning on them, so the support features in hidden state keep reducing, and many query pixels cannot fuse sufficient support features; (2) intra-class gap issue: query FG is essentially more similar to itself rather than to support FG, i.e., query may prefer not to fuse support features but their own ones from the hidden state, yet the success of FSS relies on the effective use of support information. To tackle them, we design a hybrid Mamba network (HMNet), including (1) a support recapped Mamba to periodically recap the support features when scanning query, so the hidden state can always contain rich support information; (2) a query intercepted Mamba to forbid the mutual interactions among query pixels, and encourage them to fuse more support features from the hidden state. Consequently, the support information is better utilized, leading to better performance. Extensive experiments have been conducted on two public benchmarks, showing the superiority of HMNet. The code is available at https://github.com/Sam1224/HMNet.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。