{"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/adaptive-fss-a-novel-few-shot-segmentation","title":"Adaptive FSS: A Novel Few-Shot Segmentation Framework via Prototype Enhancement","arxiv_id":"2312.15731","date":"2023-12-25","proceeding":null,"authors":["Jing Wang","Jinagyun Li","Chen Chen","Yisi Zhang","Haoran Shen","Tianxiang Zhang"],"abstract":"The Few-Shot Segmentation (FSS) aims to accomplish the novel class segmentation task with a few annotated images. Current FSS research based on meta-learning focus on designing a complex interaction mechanism between the query and support feature. However, unlike humans who can rapidly learn new things from limited samples, the existing approach relies solely on fixed feature matching to tackle new tasks, lacking adaptability. In this paper, we propose a novel framework based on the adapter mechanism, namely Adaptive FSS, which can efficiently adapt the existing FSS model to the novel classes. In detail, we design the Prototype Adaptive Module (PAM), which utilizes accurate category information provided by the support set to derive class prototypes, enhancing class-specific information in the multi-stage representation. In addition, our approach is compatible with diverse FSS methods with different backbones by simply inserting PAM between the layers of the encoder. Experiments demonstrate that our method effectively improves the performance of the FSS models (e.g., MSANet, HDMNet, FPTrans, and DCAMA) and achieve new state-of-the-art (SOTA) results (i.e., 72.4\\% and 79.1\\% mIoU on PASCAL-5$^i$ 1-shot and 5-shot settings, 52.7\\% and 60.0\\% mIoU on COCO-20$^i$ 1-shot and 5-shot settings). Our code can be available at https://github.com/jingw193/AdaptiveFSS.","url_abs":"https://arxiv.org/abs/2312.15731v4","url_pdf":"https://arxiv.org/pdf/2312.15731v4.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":"adaptive-fss-a-novel-few-shot-segmentation","repo_url":"https://github.com/jingw193/adaptive_fss","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"adaptive-fss-a-novel-few-shot-segmentation","repo_url":"https://github.com/jingw193/adaptivefss","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"meta-learning","task_name":"Meta-Learning"}],"methods":[{"method_slug":"adapter","method_name":"Adapter"},{"method_slug":"focus","method_name":"Focus"},{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2312.15731","atlas_url":"https://app.syntology.ai/?focus=2312.15731","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2312.15731"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/jingw193/adaptive_fss","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/jingw193/adaptivefss","reach":{"status":"ok"}}],"summary":{"ran_fixture":1,"ran_draft_wrong":3,"ran":4},"by_repo_kind":{"official":{"samples":8,"ran":8,"repositories":2}},"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":8,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"model/DCAMA_AdaptiveFSS/swin_transformer.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/model/DCAMA_AdaptiveFSS/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":2,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"144d10b49baeb8a6"}},{"code_sha256_prefix":"84ee72bc513b03f8","entry":"clones","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"model/DCAMA_AdaptiveFSS/swin_transformer.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/model/DCAMA_AdaptiveFSS/swin_transformer.py","link_basis":"plan_row","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":"84ee72bc513b03f8"}},{"code_sha256_prefix":"108912c6322dd681","entry":"compute_objective","repo":"jingw193/adaptivefss","repo_kind":"official","path":"train_finetune.py","file_url":"https://github.com/jingw193/adaptivefss/blob/HEAD/train_finetune.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"108912c6322dd681"}},{"code_sha256_prefix":"109ac9594e4ff15b","entry":"get","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"model/FPTrans_AdaptiveFSS/losses.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/model/FPTrans_AdaptiveFSS/losses.py","link_basis":"first_harvest_node","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":"109ac9594e4ff15b"}},{"code_sha256_prefix":"2fbd545597570f15","entry":"mean","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/common/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2fbd545597570f15"}},{"code_sha256_prefix":"a3d18d17a48bf937","entry":"to_cpu","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/common/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a3d18d17a48bf937"}},{"code_sha256_prefix":"8c6947459806ae3b","entry":"to_cuda","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/common/utils.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":"8c6947459806ae3b"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"jingw193/adaptive_fss","repo_kind":"official","path":"model/DCAMA_AdaptiveFSS/swin_transformer.py","file_url":"https://github.com/jingw193/adaptive_fss/blob/HEAD/model/DCAMA_AdaptiveFSS/swin_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"61bf152e6a42a184"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}