{"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/vm-unet-vision-mamba-unet-for-medical-image","title":"VM-UNet: Vision Mamba UNet for Medical Image Segmentation","arxiv_id":"2402.02491","date":"2024-02-04","proceeding":null,"authors":["Jiacheng Ruan","Jincheng Li","Suncheng Xiang"],"abstract":"In the realm of medical image segmentation, both CNN-based and Transformer-based models have been extensively explored. However, CNNs exhibit limitations in long-range modeling capabilities, whereas Transformers are hampered by their quadratic computational complexity. Recently, State Space Models (SSMs), exemplified by Mamba, have emerged as a promising approach. They not only excel in modeling long-range interactions but also maintain a linear computational complexity. In this paper, leveraging state space models, we propose a U-shape architecture model for medical image segmentation, named Vision Mamba UNet (VM-UNet). Specifically, the Visual State Space (VSS) block is introduced as the foundation block to capture extensive contextual information, and an asymmetrical encoder-decoder structure is constructed with fewer convolution layers to save calculation cost. We conduct comprehensive experiments on the ISIC17, ISIC18, and Synapse datasets, and the results indicate that VM-UNet performs competitively in medical image segmentation tasks. To our best knowledge, this is the first medical image segmentation model constructed based on the pure SSM-based model. We aim to establish a baseline and provide valuable insights for the future development of more efficient and effective SSM-based segmentation systems. Our code is available at https://github.com/JCruan519/VM-UNet.","url_abs":"https://arxiv.org/abs/2402.02491v2","url_pdf":"https://arxiv.org/pdf/2402.02491v2.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":"vm-unet-vision-mamba-unet-for-medical-image","repo_url":"https://github.com/jcruan519/vm-unet","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"vm-unet-vision-mamba-unet-for-medical-image","repo_url":"https://github.com/nobodyplayer1/vm-unetv2","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"vm-unet-vision-mamba-unet-for-medical-image","repo_url":"https://github.com/pixdeep/mhs-vm","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"vm-unet-vision-mamba-unet-for-medical-image","repo_url":"https://github.com/weitunglin/pixmamba","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"mamba","task_name":"Mamba"},{"task_slug":"medical-image-segmentation","task_name":"Medical Image Segmentation"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2402.02491","atlas_url":"https://app.syntology.ai/?focus=2402.02491","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2402.02491"}},"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/jcruan519/vm-unet","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/nobodyplayer1/vm-unetv2","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/weitunglin/pixmamba","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/pixdeep/mhs-vm","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":11,"ran_honours":1,"ran_fixture":2,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":9,"repositories":1},"listed":{"samples":8,"ran":5,"repositories":3}},"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":2,"samples":[{"code_sha256_prefix":"fa24a063153b9bff","entry":"cons_scan_h","repo":"pixdeep/mhs-vm","repo_kind":"listed","path":"scanutils.py","file_url":"https://github.com/pixdeep/mhs-vm/blob/HEAD/scanutils.py","link_basis":"harvester_set","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":"fa24a063153b9bff"}},{"code_sha256_prefix":"e6b48de9f8d0e99f","entry":"cons_scan_v","repo":"pixdeep/mhs-vm","repo_kind":"listed","path":"scanutils.py","file_url":"https://github.com/pixdeep/mhs-vm/blob/HEAD/scanutils.py","link_basis":"harvester_set","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":"e6b48de9f8d0e99f"}},{"code_sha256_prefix":"07074cb904b5abc0","entry":"diag_scan","repo":"pixdeep/mhs-vm","repo_kind":"listed","path":"scanutils.py","file_url":"https://github.com/pixdeep/mhs-vm/blob/HEAD/scanutils.py","link_basis":"harvester_set","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":"07074cb904b5abc0"}},{"code_sha256_prefix":"91788abc3267bdda","entry":"flops_selective_scan_ref","repo":"jcruan519/vm-unet","repo_kind":"official","path":"models/vmunet/vmamba.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/models/vmunet/vmamba.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"91788abc3267bdda"}},{"code_sha256_prefix":"23a1f34627822bb3","entry":"get_logger","repo":"jcruan519/vm-unet","repo_kind":"official","path":"utils.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/utils.py","link_basis":"harvester_set","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":"23a1f34627822bb3"}},{"code_sha256_prefix":"ae1a2dd9d62e7fad","entry":"get_optimizer","repo":"jcruan519/vm-unet","repo_kind":"official","path":"utils.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/utils.py","link_basis":"harvester_set","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":"ae1a2dd9d62e7fad"}},{"code_sha256_prefix":"dea42821258184c2","entry":"get_scheduler","repo":"jcruan519/vm-unet","repo_kind":"official","path":"utils.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/utils.py","link_basis":"harvester_set","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":"dea42821258184c2"}},{"code_sha256_prefix":"26b8695dba83b816","entry":"inv_transform","repo":"weitunglin/pixmamba","repo_kind":"listed","path":"analyze/convnexts4nd/src/models/sequence/kernels/ssm.py","file_url":"https://github.com/weitunglin/pixmamba/blob/HEAD/analyze/convnexts4nd/src/models/sequence/kernels/ssm.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"26b8695dba83b816"}},{"code_sha256_prefix":"6f7ad7d857dc0d1e","entry":"param_transform","repo":"weitunglin/pixmamba","repo_kind":"listed","path":"analyze/convnexts4nd/src/models/sequence/kernels/ssm.py","file_url":"https://github.com/weitunglin/pixmamba/blob/HEAD/analyze/convnexts4nd/src/models/sequence/kernels/ssm.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6f7ad7d857dc0d1e"}},{"code_sha256_prefix":"960b785e65a00358","entry":"random_rot_flip","repo":"jcruan519/vm-unet","repo_kind":"official","path":"datasets/dataset.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/datasets/dataset.py","link_basis":"harvester_set","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":"960b785e65a00358"}},{"code_sha256_prefix":"43fa66325ce3cafd","entry":"random_rotate","repo":"jcruan519/vm-unet","repo_kind":"official","path":"datasets/dataset.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/datasets/dataset.py","link_basis":"harvester_set","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":"43fa66325ce3cafd"}},{"code_sha256_prefix":"4709d469c5e0a024","entry":"train_one_epoch","repo":"jcruan519/vm-unet","repo_kind":"official","path":"engine.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/engine.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":"4709d469c5e0a024"}},{"code_sha256_prefix":"62b66c9a1c4f5a23","entry":"train_one_epoch","repo":"jcruan519/vm-unet","repo_kind":"official","path":"engine_synapse.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/engine_synapse.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":"62b66c9a1c4f5a23"}},{"code_sha256_prefix":"15d76d94bb1b8c16","entry":"val_one_epoch","repo":"jcruan519/vm-unet","repo_kind":"official","path":"engine.py","file_url":"https://github.com/jcruan519/vm-unet/blob/HEAD/engine.py","link_basis":"harvester_set","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":"15d76d94bb1b8c16"}},{"code_sha256_prefix":"60928f8638ac0eaa","entry":"calc_posarrays","repo":"pixdeep/mhs-vm","repo_kind":"listed","path":"routegen.py","file_url":"https://github.com/pixdeep/mhs-vm/blob/HEAD/routegen.py","link_basis":"harvester_set","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":"60928f8638ac0eaa"}},{"code_sha256_prefix":"9cfc13ef56c9f86d","entry":"val_one_epoch","repo":"nobodyplayer1/vm-unetv2","repo_kind":"listed","path":"engine.py","file_url":"https://github.com/nobodyplayer1/vm-unetv2/blob/HEAD/engine.py","link_basis":"harvester_set","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":"9cfc13ef56c9f86d"}},{"code_sha256_prefix":"dbcdb8cb8d2977ce","entry":"val_one_epoch","repo":"pixdeep/mhs-vm","repo_kind":"listed","path":"engine.py","file_url":"https://github.com/pixdeep/mhs-vm/blob/HEAD/engine.py","link_basis":"harvester_set","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":"dbcdb8cb8d2977ce"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}