{"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/high-performance-few-shot-segmentation-with","title":"High-Performance Few-Shot Segmentation with Foundation Models: An Empirical Study","arxiv_id":"2409.06305","date":"2024-09-10","proceeding":null,"authors":["Shijie Chang","Lihe Zhang","Huchuan Lu"],"abstract":"Existing few-shot segmentation (FSS) methods mainly focus on designing novel support-query matching and self-matching mechanisms to exploit implicit knowledge in pre-trained backbones. However, the performance of these methods is often constrained by models pre-trained on classification tasks. The exploration of what types of pre-trained models can provide more beneficial implicit knowledge for FSS remains limited. In this paper, inspired by the representation consistency of foundational computer vision models, we develop a FSS framework based on foundation models. To be specific, we propose a simple approach to extract implicit knowledge from foundation models to construct coarse correspondence and introduce a lightweight decoder to refine coarse correspondence for fine-grained segmentation. We systematically summarize the performance of various foundation models on FSS and discover that the implicit knowledge within some of these models is more beneficial for FSS than models pre-trained on classification tasks. Extensive experiments on two widely used datasets demonstrate the effectiveness of our approach in leveraging the implicit knowledge of foundation models. Notably, the combination of DINOv2 and DFN exceeds previous state-of-the-art methods by 17.5% on COCO-20i. Code is available at https://github.com/DUT-CSJ/FoundationFSS.","url_abs":"https://arxiv.org/abs/2409.06305v1","url_pdf":"https://arxiv.org/pdf/2409.06305v1.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":"high-performance-few-shot-segmentation-with","repo_url":"https://github.com/dut-csj/foundationfss","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.06305","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.06305"}},"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/dut-csj/foundationfss","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":5,"ran_draft_wrong":1,"unverified":2},"by_repo_kind":{"official":{"samples":8,"ran":6,"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":0,"samples":[{"code_sha256_prefix":"bc73631b5423a475","entry":"extract_feat_chossed","repo":"dut-csj/foundationfss","repo_kind":"official","path":"model/dino_clip.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/model/dino_clip.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"bc73631b5423a475"}},{"code_sha256_prefix":"cda8eb3e776a0591","entry":"extract_feat_vgg","repo":"dut-csj/foundationfss","repo_kind":"official","path":"model/base/feature.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/model/base/feature.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cda8eb3e776a0591"}},{"code_sha256_prefix":"0787eafcc2177118","entry":"get_finetune_optimizer","repo":"dut-csj/foundationfss","repo_kind":"official","path":"common/my_optim.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/common/my_optim.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0787eafcc2177118"}},{"code_sha256_prefix":"2fbd545597570f15","entry":"mean","repo":"dut-csj/foundationfss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/common/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2fbd545597570f15"}},{"code_sha256_prefix":"a3d18d17a48bf937","entry":"to_cpu","repo":"dut-csj/foundationfss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/common/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a3d18d17a48bf937"}},{"code_sha256_prefix":"8c6947459806ae3b","entry":"to_cuda","repo":"dut-csj/foundationfss","repo_kind":"official","path":"common/utils.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/common/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8c6947459806ae3b"}},{"code_sha256_prefix":"23b2328dffee1082","entry":"extract_feat_chossed_clip","repo":"dut-csj/foundationfss","repo_kind":"official","path":"common/cliptest.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/common/cliptest.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"23b2328dffee1082"}},{"code_sha256_prefix":"5e71dad5278d69a0","entry":"extract_feat_res","repo":"dut-csj/foundationfss","repo_kind":"official","path":"model/base/feature.py","file_url":"https://github.com/dut-csj/foundationfss/blob/HEAD/model/base/feature.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"5e71dad5278d69a0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}