Hybrid mamba for few-shot segmentation

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 (a...

Full description

Saved in:
Bibliographic Details
Main Authors: Xu, Qianxiong, Liu, Xuanyi, Zhu, Lanyun, Lin, Guosheng, Long, Cheng, Li, Ziyue, Zhao, Rui
Other Authors: College of Computing and Data Science
Format: Conference or Workshop Item
Language:English
Published: 2025
Subjects:
Online Access:https://hdl.handle.net/10356/182607
http://arxiv.org/abs/2409.19613v1
Tags: Add Tag
No Tags, Be the first to tag this record!
Institution: Nanyang Technological University
Language: English
id sg-ntu-dr.10356-182607
record_format dspace
spelling sg-ntu-dr.10356-1826072025-02-11T08:35:15Z Hybrid mamba for few-shot segmentation Xu, Qianxiong Liu, Xuanyi Zhu, Lanyun Lin, Guosheng Long, Cheng Li, Ziyue Zhao, Rui College of Computing and Data Science 38th Conference on Neural Information Processing Systems (NeurIPS 2024) S-Lab Computer and Information Science 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. Agency for Science, Technology and Research (A*STAR) Submitted/Accepted version This study is supported under the RIE2020 Industry Alignment Fund - Industry Collaboration Projects (IAF-ICP) Funding Initiative, as well as cash and in-kind contribution from the industry partner(s). 2025-02-11T08:35:14Z 2025-02-11T08:35:14Z 2024 Conference Paper Xu, Q., Liu, X., Zhu, L., Lin, G., Long, C., Li, Z. & Zhao, R. (2024). Hybrid mamba for few-shot segmentation. 38th Conference on Neural Information Processing Systems (NeurIPS 2024). https://hdl.handle.net/10356/182607 http://arxiv.org/abs/2409.19613v1 en IAF-ICP © 2024 NeurIPS. All rights reserved. This article may be downloaded for personal use only. Any other use requires prior permission of the copyright holder. application/pdf
institution Nanyang Technological University
building NTU Library
continent Asia
country Singapore
Singapore
content_provider NTU Library
collection DR-NTU
language English
topic Computer and Information Science
spellingShingle Computer and Information Science
Xu, Qianxiong
Liu, Xuanyi
Zhu, Lanyun
Lin, Guosheng
Long, Cheng
Li, Ziyue
Zhao, Rui
Hybrid mamba for few-shot segmentation
description 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.
author2 College of Computing and Data Science
author_facet College of Computing and Data Science
Xu, Qianxiong
Liu, Xuanyi
Zhu, Lanyun
Lin, Guosheng
Long, Cheng
Li, Ziyue
Zhao, Rui
format Conference or Workshop Item
author Xu, Qianxiong
Liu, Xuanyi
Zhu, Lanyun
Lin, Guosheng
Long, Cheng
Li, Ziyue
Zhao, Rui
author_sort Xu, Qianxiong
title Hybrid mamba for few-shot segmentation
title_short Hybrid mamba for few-shot segmentation
title_full Hybrid mamba for few-shot segmentation
title_fullStr Hybrid mamba for few-shot segmentation
title_full_unstemmed Hybrid mamba for few-shot segmentation
title_sort hybrid mamba for few-shot segmentation
publishDate 2025
url https://hdl.handle.net/10356/182607
http://arxiv.org/abs/2409.19613v1
_version_ 1823807407495577600