{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/eliminating-feature-ambiguity-for-few-shot","title":"Eliminating Feature Ambiguity for Few-Shot Segmentation","arxiv_id":"2407.09842","date":"2024-07-13","proceeding":null,"authors":["Qianxiong Xu","Guosheng Lin","Chen Change Loy","Cheng Long","Ziyue Li","Rui Zhao"],"abstract":"Recent advancements in few-shot segmentation (FSS) have exploited pixel-by-pixel matching between query and support features, typically based on cross attention, which selectively activate query foreground (FG) features that correspond to the same-class support FG features. However, due to the large receptive fields in deep layers of the backbone, the extracted query and support FG features are inevitably mingled with background (BG) features, impeding the FG-FG matching in cross attention. Hence, the query FG features are fused with less support FG features, i.e., the support information is not well utilized. This paper presents a novel plug-in termed ambiguity elimination network (AENet), which can be plugged into any existing cross attention-based FSS methods. The main idea is to mine discriminative query FG regions to rectify the ambiguous FG features, increasing the proportion of FG information, so as to suppress the negative impacts of the doped BG features. In this way, the FG-FG matching is naturally enhanced. We plug AENet into three baselines CyCTR, SCCAN and HDMNet for evaluation, and their scores are improved by large margins, e.g., the 1-shot performance of SCCAN can be improved by 3.0%+ on both PASCAL-5$^i$ and COCO-20$^i$. The code is available at https://github.com/Sam1224/AENet.","url_abs":"https://arxiv.org/abs/2407.09842v1","url_pdf":"https://arxiv.org/pdf/2407.09842v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"eliminating-feature-ambiguity-for-few-shot","repo_url":"https://github.com/sam1224/aenet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"few-shot-image-segmentation","task_name":"Few-Shot Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/few-shot-semantic-segmentation-on-coco-20i-1","task":"Few-Shot Semantic Segmentation","dataset":"COCO-20i (1-shot)","model":"AENet (ResNet-50)","rank_in_archive_order":8,"of":85,"metrics":{"FB-IoU":"74.4","Mean IoU":"51.3"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-coco-20i-1","task":"Few-Shot Semantic Segmentation","dataset":"COCO-20i (1-shot)","model":"AENet (VGG-16)","rank_in_archive_order":27,"of":85,"metrics":{"FB-IoU":"71.8","Mean IoU":"46.4"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-coco-20i-5","task":"Few-Shot Semantic Segmentation","dataset":"COCO-20i (5-shot)","model":"AENet (ResNet-50)","rank_in_archive_order":10,"of":81,"metrics":{"FB-IoU":"78.5","Mean IoU":"57.1"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-coco-20i-5","task":"Few-Shot Semantic Segmentation","dataset":"COCO-20i (5-shot)","model":"AENet (VGG-16)","rank_in_archive_order":26,"of":81,"metrics":{"FB-IoU":"74.3","Mean IoU":"52.8"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-pascal-5i-1","task":"Few-Shot Semantic Segmentation","dataset":"PASCAL-5i (1-Shot)","model":"AENet (ResNet-50)","rank_in_archive_order":7,"of":105,"metrics":{"FB-IoU":"81.2","Mean IoU":"70.3"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-pascal-5i-1","task":"Few-Shot Semantic Segmentation","dataset":"PASCAL-5i (1-Shot)","model":"AENet (VGG-16)","rank_in_archive_order":38,"of":105,"metrics":{"FB-IoU":"79.0","Mean IoU":"66.6"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-pascal-5i-5","task":"Few-Shot Semantic Segmentation","dataset":"PASCAL-5i (5-Shot)","model":"AENet (ResNet-50)","rank_in_archive_order":9,"of":96,"metrics":{"FB-IoU":"84.5","Mean IoU":"74.2"},"uses_additional_data":false},{"leaderboard":"/sota/few-shot-semantic-segmentation-on-pascal-5i-5","task":"Few-Shot Semantic Segmentation","dataset":"PASCAL-5i (5-Shot)","model":"AENet (VGG-16)","rank_in_archive_order":36,"of":96,"metrics":{"FB-IoU":"81.8","Mean IoU":"70.6"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2407.09842","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2407.09842"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/sam1224/aenet","reach":{"status":"ok","spdx":"NOASSERTION"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/Sam1224/AENet","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":14,"ran_draft_wrong":5,"ran_fixture":1,"unverified":4},"by_repo_kind":{"official":{"samples":24,"ran":20,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":24,"samples":[{"code_sha256_prefix":"d831310b2e245710","entry":"DiscAdaptor","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"d831310b2e245710"}},{"code_sha256_prefix":"917577c7e4da6b90","entry":"FFN","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"917577c7e4da6b90"}},{"code_sha256_prefix":"130d72a3eeda8859","entry":"Mlp","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"130d72a3eeda8859"}},{"code_sha256_prefix":"34f245e815c6607b","entry":"MyCrossAttention","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"34f245e815c6607b"}},{"code_sha256_prefix":"17baacbf828cedd7","entry":"SinePositionalEncoding","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"17baacbf828cedd7"}},{"code_sha256_prefix":"df77cb77dfe58d6d","entry":"Weighted_GAP","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/HDMNetPlus.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/HDMNetPlus.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"df77cb77dfe58d6d"}},{"code_sha256_prefix":"fac5364e2f53c6db","entry":"conv3x3","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/resnet.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/resnet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fac5364e2f53c6db"}},{"code_sha256_prefix":"0086d054a8b3d6f3","entry":"find_bbox","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/get_weak_anns.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/get_weak_anns.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0086d054a8b3d6f3"}},{"code_sha256_prefix":"7feaf1fceef927fe","entry":"get_gram_matrix","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/HDMNetPlus.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/HDMNetPlus.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7feaf1fceef927fe"}},{"code_sha256_prefix":"878c68bef4a644c0","entry":"get_similarity","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/HDMNetPlus.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/HDMNetPlus.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"878c68bef4a644c0"}},{"code_sha256_prefix":"ad7ba6c4e516607e","entry":"get_vgg16_layer","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/PSPNet.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/PSPNet.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ad7ba6c4e516607e"}},{"code_sha256_prefix":"0684a938c70bf564","entry":"is_image_file","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/dataset.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"0684a938c70bf564"}},{"code_sha256_prefix":"8f6dc933d4638855","entry":"make_dataset","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/dataset.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/dataset.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8f6dc933d4638855"}},{"code_sha256_prefix":"e31250b969b51841","entry":"make_layers","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/vgg.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/vgg.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e31250b969b51841"}},{"code_sha256_prefix":"32a3d5463ef45125","entry":"merge_cfg_from_args","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/config.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/config.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"32a3d5463ef45125"}},{"code_sha256_prefix":"40a78e38251055c6","entry":"resnet18","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/resnet.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/resnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"40a78e38251055c6"}},{"code_sha256_prefix":"4f6dd0ac332dd50d","entry":"resnet34","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/resnet.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/resnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4f6dd0ac332dd50d"}},{"code_sha256_prefix":"ac2dc4c99bd03a34","entry":"transform_anns","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/get_weak_anns.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/get_weak_anns.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"ac2dc4c99bd03a34"}},{"code_sha256_prefix":"2067e75510fbe85e","entry":"vgg11","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/vgg.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/vgg.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2067e75510fbe85e"}},{"code_sha256_prefix":"bf96fb236a6b1683","entry":"vgg11_bn","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/model/vgg.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/model/vgg.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"bf96fb236a6b1683"}},{"code_sha256_prefix":"8c32eeb614d96727","entry":"CyCTransformerPlus","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8c32eeb614d96727"}},{"code_sha256_prefix":"b29bc600718c53ee","entry":"MSDeformAttn","repo":"Sam1224/AENet","repo_kind":"official","path":"SCCAN_CyCTR/model/cyc_transformer_plus.py","file_url":"https://github.com/Sam1224/AENet/blob/HEAD/SCCAN_CyCTR/model/cyc_transformer_plus.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b29bc600718c53ee"}},{"code_sha256_prefix":"277a13798d6d6981","entry":"load_cfg_from_cfg_file","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/config.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/config.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"277a13798d6d6981"}},{"code_sha256_prefix":"b925dc5fd8492c34","entry":"merge_cfg_from_list","repo":"sam1224/aenet","repo_kind":"official","path":"HDMNet/util/config.py","file_url":"https://github.com/sam1224/aenet/blob/HEAD/HDMNet/util/config.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"b925dc5fd8492c34"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}