{"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/do-vision-foundation-models-enhance-domain","title":"Do Vision Foundation Models Enhance Domain Generalization in Medical Image Segmentation?","arxiv_id":"2409.07960","date":"2024-09-12","proceeding":null,"authors":["Kerem Cekmeceli","Meva Himmetoglu","Guney I. Tombak","Anna Susmelj","Ertunc Erdil","Ender Konukoglu"],"abstract":"Neural networks achieve state-of-the-art performance in many supervised learning tasks when the training data distribution matches the test data distribution. However, their performance drops significantly under domain (covariate) shift, a prevalent issue in medical image segmentation due to varying acquisition settings across different scanner models and protocols. Recently, foundational models (FMs) trained on large datasets have gained attention for their ability to be adapted for downstream tasks and achieve state-of-the-art performance with excellent generalization capabilities on natural images. However, their effectiveness in medical image segmentation remains underexplored. In this paper, we investigate the domain generalization performance of various FMs, including DinoV2, SAM, MedSAM, and MAE, when fine-tuned using various parameter-efficient fine-tuning (PEFT) techniques such as Ladder and Rein (+LoRA) and decoder heads. We introduce a novel decode head architecture, HQHSAM, which simply integrates elements from two state-of-the-art decoder heads, HSAM and HQSAM, to enhance segmentation performance. Our extensive experiments on multiple datasets, encompassing various anatomies and modalities, reveal that FMs, particularly with the HQHSAM decode head, improve domain generalization for medical image segmentation. Moreover, we found that the effectiveness of PEFT techniques varies across different FMs. These findings underscore the potential of FMs to enhance the domain generalization performance of neural networks in medical image segmentation across diverse clinical settings, providing a solid foundation for future research. Code and models are available for research purposes at \\url{https://github.com/kerem-cekmeceli/Foundation-Models-for-Medical-Imagery}.","url_abs":"https://arxiv.org/abs/2409.07960v1","url_pdf":"https://arxiv.org/pdf/2409.07960v1.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":"do-vision-foundation-models-enhance-domain","repo_url":"https://github.com/kerem-cekmeceli/foundation-models-for-medical-imagery","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"decoder","task_name":"Decoder"},{"task_slug":"domain-generalization","task_name":"Domain Generalization"},{"task_slug":"image-segmentation","task_name":"Image Segmentation"},{"task_slug":"medical-image-segmentation","task_name":"Medical Image Segmentation"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"parameter-efficient-fine-tuning","task_name":"parameter-efficient fine-tuning"}],"methods":[{"method_slug":"attention","method_name":"Attention"},{"method_slug":"mae","method_name":"MAE"},{"method_slug":"sam","method_name":"SAM"},{"method_slug":"softmax","method_name":"Softmax"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2409.07960","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2409.07960"}},"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/kerem-cekmeceli/foundation-models-for-medical-imagery","reach":{"status":"ok"}}],"summary":{"ran_fixture":1,"ran":1,"ran_draft_wrong":1},"by_repo_kind":{"official":{"samples":3,"ran":3,"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":3,"samples":[{"code_sha256_prefix":"144d10b49baeb8a6","entry":"window_partition","repo":"kerem-cekmeceli/foundation-models-for-medical-imagery","repo_kind":"official","path":"MedicalSegmentation/med_seg_foundation/models/benchmarks/SwinUnet/swin_transformer_unet_skip_expand_decoder_sys.py","file_url":"https://github.com/kerem-cekmeceli/foundation-models-for-medical-imagery/blob/HEAD/MedicalSegmentation/med_seg_foundation/models/benchmarks/SwinUnet/swin_transformer_unet_skip_expand_decoder_sys.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":"ea891af4a16017d0","entry":"get_data_attrs","repo":"kerem-cekmeceli/foundation-models-for-medical-imagery","repo_kind":"official","path":"MedicalSegmentation/med_seg_foundation/configs.py","file_url":"https://github.com/kerem-cekmeceli/foundation-models-for-medical-imagery/blob/HEAD/MedicalSegmentation/med_seg_foundation/configs.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":"ea891af4a16017d0"}},{"code_sha256_prefix":"61bf152e6a42a184","entry":"window_reverse","repo":"kerem-cekmeceli/foundation-models-for-medical-imagery","repo_kind":"official","path":"MedicalSegmentation/med_seg_foundation/models/benchmarks/SwinUnet/swin_transformer_unet_skip_expand_decoder_sys.py","file_url":"https://github.com/kerem-cekmeceli/foundation-models-for-medical-imagery/blob/HEAD/MedicalSegmentation/med_seg_foundation/models/benchmarks/SwinUnet/swin_transformer_unet_skip_expand_decoder_sys.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}