{"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/simada-a-simple-unified-framework-for","title":"SU-SAM: A Simple Unified Framework for Adapting Segment Anything Model in Underperformed Scenes","arxiv_id":"2401.17803","date":"2024-01-31","proceeding":null,"authors":["Yiran Song","Qianyu Zhou","Xuequan Lu","Zhiwen Shao","Lizhuang Ma"],"abstract":"Segment anything model (SAM) has demonstrated excellent generalizability in common vision scenarios, yet falling short of the ability to understand specialized data. Recently, several methods have combined parameter-efficient techniques with task-specific designs to fine-tune SAM on particular tasks. However, these methods heavily rely on handcraft, complicated, and task-specific designs, and pre/post-processing to achieve acceptable performances on downstream tasks. As a result, this severely restricts generalizability to other downstream tasks. To address this issue, we present a simple and unified framework, namely SU-SAM, that can easily and efficiently fine-tune the SAM model with parameter-efficient techniques while maintaining excellent generalizability toward various downstream tasks. SU-SAM does not require any task-specific designs and aims to improve the adaptability of SAM-like models significantly toward underperformed scenes. Concretely, we abstract parameter-efficient modules of different methods into basic design elements in our framework. Besides, we propose four variants of SU-SAM, i.e., series, parallel, mixed, and LoRA structures. Comprehensive experiments on nine datasets and six downstream tasks to verify the effectiveness of SU-SAM, including medical image segmentation, camouflage object detection, salient object segmentation, surface defect segmentation, complex object shapes, and shadow masking. Our experimental results demonstrate that SU-SAM achieves competitive or superior accuracy compared to state-of-the-art methods. Furthermore, we provide in-depth analyses highlighting the effectiveness of different parameter-efficient designs within SU-SAM. In addition, we propose a generalized model and benchmark, showcasing SU-SAM's generalizability across all diverse datasets simultaneously.","url_abs":"https://arxiv.org/abs/2401.17803v2","url_pdf":"https://arxiv.org/pdf/2401.17803v2.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":"simada-a-simple-unified-framework-for","repo_url":"https://github.com/zongzi13545329/simada","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"medical-image-segmentation","task_name":"Medical Image Segmentation"},{"task_slug":"object-detection","task_name":"Object Detection"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"object-detection-1","task_name":"object-detection"}],"methods":[{"method_slug":"sam","method_name":"SAM"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2401.17803","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2401.17803"}},"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/zongzi13545329/simada","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4,"ran_draft_wrong":1,"ran_honours":1,"unverified":3},"by_repo_kind":{"official":{"samples":9,"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":"afaf39670f8c4e1a","entry":"cka_loss","repo":"zongzi13545329/simada","repo_kind":"official","path":"utils.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"afaf39670f8c4e1a"}},{"code_sha256_prefix":"e3af122bc0159d3b","entry":"dice_loss","repo":"zongzi13545329/simada","repo_kind":"official","path":"function.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/function.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e3af122bc0159d3b"}},{"code_sha256_prefix":"1090950b58e9358b","entry":"gram_matrix","repo":"zongzi13545329/simada","repo_kind":"official","path":"precpt.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/precpt.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1090950b58e9358b"}},{"code_sha256_prefix":"5a6c05e1f6861a50","entry":"maybe_to_torch","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a6c05e1f6861a50"}},{"code_sha256_prefix":"826e2e91d6a9ec09","entry":"round_filters","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/utils.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"826e2e91d6a9ec09"}},{"code_sha256_prefix":"eb3650ce67c37e60","entry":"to_cuda","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/utils.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/utils.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"eb3650ce67c37e60"}},{"code_sha256_prefix":"be5eb0940b95b0d7","entry":"build_sam_vit_b","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/sam/build_sam.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/sam/build_sam.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"be5eb0940b95b0d7"}},{"code_sha256_prefix":"d73006e738c8c623","entry":"build_sam_vit_h","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/sam/build_sam.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/sam/build_sam.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d73006e738c8c623"}},{"code_sha256_prefix":"7eba54a37e1cfb37","entry":"build_sam_vit_l","repo":"zongzi13545329/simada","repo_kind":"official","path":"models/sam/build_sam.py","file_url":"https://github.com/zongzi13545329/simada/blob/HEAD/models/sam/build_sam.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"7eba54a37e1cfb37"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}