{"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/cit-net-convolutional-neural-networks-hand-in","title":"CiT-Net: Convolutional Neural Networks Hand in Hand with Vision Transformers for Medical Image Segmentation","arxiv_id":"2306.03373","date":"2023-06-06","proceeding":null,"authors":["Tao Lei","Rui Sun","Xuan Wang","Yingbo Wang","Xi He","Asoke Nandi"],"abstract":"The hybrid architecture of convolutional neural networks (CNNs) and Transformer are very popular for medical image segmentation. However, it suffers from two challenges. First, although a CNNs branch can capture the local image features using vanilla convolution, it cannot achieve adaptive feature learning. Second, although a Transformer branch can capture the global features, it ignores the channel and cross-dimensional self-attention, resulting in a low segmentation accuracy on complex-content images. To address these challenges, we propose a novel hybrid architecture of convolutional neural networks hand in hand with vision Transformers (CiT-Net) for medical image segmentation. Our network has two advantages. First, we design a dynamic deformable convolution and apply it to the CNNs branch, which overcomes the weak feature extraction ability due to fixed-size convolution kernels and the stiff design of sharing kernel parameters among different inputs. Second, we design a shifted-window adaptive complementary attention module and a compact convolutional projection. We apply them to the Transformer branch to learn the cross-dimensional long-term dependency for medical images. Experimental results show that our CiT-Net provides better medical image segmentation results than popular SOTA methods. Besides, our CiT-Net requires lower parameters and less computational costs and does not rely on pre-training. The code is publicly available at https://github.com/SR0920/CiT-Net.","url_abs":"https://arxiv.org/abs/2306.03373v2","url_pdf":"https://arxiv.org/pdf/2306.03373v2.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":"cit-net-convolutional-neural-networks-hand-in","repo_url":"https://github.com/sr0920/cit-net","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"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"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"adam","method_name":"Adam"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"convolution","method_name":"Convolution"},{"method_slug":"deformable-convolution","method_name":"Deformable Convolution"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"label-smoothing","method_name":"Label Smoothing"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"softmax","method_name":"Softmax"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2306.03373","atlas_url":"https://app.syntology.ai/?focus=2306.03373","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2306.03373"}},"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":"deterministic:regex_extraction","url":"https://github.com/SR0920/CiT-Net","reach":null}],"summary":{"ran":15,"unverified":8},"by_repo_kind":{"official":{"samples":23,"ran":15,"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":23,"samples":[{"code_sha256_prefix":"c345fab42ca67d10","entry":"CAM_Module","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"c345fab42ca67d10"}},{"code_sha256_prefix":"5c3a95ab6ed19e0f","entry":"CHAM_Module","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"5c3a95ab6ed19e0f"}},{"code_sha256_prefix":"a9565c7ef75e0e9f","entry":"CWAM_Module","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"a9565c7ef75e0e9f"}},{"code_sha256_prefix":"b951b1094647a570","entry":"ConvMixer","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"b951b1094647a570"}},{"code_sha256_prefix":"753d59f2e0507dd0","entry":"ConvMixerLayer","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"753d59f2e0507dd0"}},{"code_sha256_prefix":"25e74885e2def7fc","entry":"FinalPatchExpand_X4","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"25e74885e2def7fc"}},{"code_sha256_prefix":"cd9b486dc35ff193","entry":"GhostModule","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"cd9b486dc35ff193"}},{"code_sha256_prefix":"90013cc0ceeb8e50","entry":"GhostModule_Up","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"90013cc0ceeb8e50"}},{"code_sha256_prefix":"2b81e2b1de9244d7","entry":"PAM_Module","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"2b81e2b1de9244d7"}},{"code_sha256_prefix":"2457e5d340cb88b0","entry":"PatchEmbed","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","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":"2457e5d340cb88b0"}},{"code_sha256_prefix":"4ab1981de6f77b04","entry":"PatchExpand","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"4ab1981de6f77b04"}},{"code_sha256_prefix":"fe9e67cb1896b8e5","entry":"PatchMerging","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"fe9e67cb1896b8e5"}},{"code_sha256_prefix":"970ca6fd4c035a1b","entry":"SConv2D","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","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":"970ca6fd4c035a1b"}},{"code_sha256_prefix":"eec7e5f15ad95b88","entry":"_routing","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"eec7e5f15ad95b88"}},{"code_sha256_prefix":"f5257d86bb26edfb","entry":"oneXone_conv","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.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":"f5257d86bb26edfb"}},{"code_sha256_prefix":"dcbaeead298dfefc","entry":"BasicLayer","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"dcbaeead298dfefc"}},{"code_sha256_prefix":"347ef20e753bd3b3","entry":"BasicLayer_up","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"347ef20e753bd3b3"}},{"code_sha256_prefix":"84b776e72f07d7b8","entry":"CIT","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"84b776e72f07d7b8"}},{"code_sha256_prefix":"a45044ebef18abb0","entry":"DDConv","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a45044ebef18abb0"}},{"code_sha256_prefix":"ebeefdcaf29af062","entry":"SwinTransformerBlock","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ebeefdcaf29af062"}},{"code_sha256_prefix":"8cee107ef967f0d7","entry":"WindowAttention_ACAM","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8cee107ef967f0d7"}},{"code_sha256_prefix":"995e91e9e5c93130","entry":"conv_block_DDConv","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"995e91e9e5c93130"}},{"code_sha256_prefix":"119985f8168c76c3","entry":"up_conv_DDConv","repo":"SR0920/CiT-Net","repo_kind":"official","path":"CiT_Net_T.py","file_url":"https://github.com/SR0920/CiT-Net/blob/HEAD/CiT_Net_T.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"119985f8168c76c3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}