{"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/semi-supervised-semantic-segmentation-with-2","title":"Semi-Supervised Semantic Segmentation with Pixel-Level Contrastive Learning from a Class-wise Memory Bank","arxiv_id":"2104.13415","date":"2021-04-27","proceeding":"ICCV 2021 10","authors":["Inigo Alonso","Alberto Sabater","David Ferstl","Luis Montesano","Ana C. Murillo"],"abstract":"This work presents a novel approach for semi-supervised semantic segmentation. The key element of this approach is our contrastive learning module that enforces the segmentation network to yield similar pixel-level feature representations for same-class samples across the whole dataset. To achieve this, we maintain a memory bank continuously updated with relevant and high-quality feature vectors from labeled data. In an end-to-end training, the features from both labeled and unlabeled data are optimized to be similar to same-class samples from the memory bank. Our approach outperforms the current state-of-the-art for semi-supervised semantic segmentation and semi-supervised domain adaptation on well-known public benchmarks, with larger improvements on the most challenging scenarios, i.e., less available labeled data. https://github.com/Shathe/SemiSeg-Contrastive","url_abs":"https://arxiv.org/abs/2104.13415v3","url_pdf":"https://arxiv.org/pdf/2104.13415v3.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":"semi-supervised-semantic-segmentation-with-2","repo_url":"https://github.com/Shathe/SemiSeg-Contrastive","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"semi-supervised-semantic-segmentation","task_name":"Semi-Supervised Semantic Segmentation"},{"task_slug":"semi-supervised-domain-adaptation","task_name":"Semi-supervised Domain Adaptation"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-3","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 100 samples labeled","model":"SemiSegContrast (DeepLab v3+ with ResNet-50 backbone, MSCOCO pretrained)","rank_in_archive_order":4,"of":13,"metrics":{"Validation mIoU":"64.9%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-3","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 100 samples labeled","model":"SemiSegContrast (DeepLab v2 with ResNet-101 backbone, MSCOCO pretrained)","rank_in_archive_order":7,"of":13,"metrics":{"Validation mIoU":"59.4%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-2","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 12.5% labeled","model":"SemiSegContrast\n(DeepLab v2 with ResNet-101 backbone, MSCOCO pretrained)","rank_in_archive_order":27,"of":33,"metrics":{"Validation mIoU":"64.4%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-1","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 25% labeled","model":"SemiSegContrast\n(DeepLab v2 with ResNet-101 backbone, MSCOCO pretrained)","rank_in_archive_order":25,"of":30,"metrics":{"Validation mIoU":"65.9%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-4","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 12.5% labeled","model":"SemiSegContrast","rank_in_archive_order":28,"of":38,"metrics":{"Validation mIoU":"71.6%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-6","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 2% labeled","model":"SemiSegContrast\n(DeepLab v2 with ResNet-101 backbone, MSCOCO pretrained)","rank_in_archive_order":2,"of":12,"metrics":{"Validation mIoU":"67.9%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-5","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 5% labeled","model":"SemiSegContrast\n(DeepLab v2 with ResNet-101 backbone, MSCOCO pretrained)","rank_in_archive_order":4,"of":14,"metrics":{"Validation mIoU":"70.0%"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2104.13415","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.13415"}},"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/Shathe/SemiSeg-Contrastive","reach":null}],"summary":{"ran_honours":1,"unverified":3},"by_repo_kind":{"official":{"samples":4,"ran":1,"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":"1b0ce6e9e98a57de","entry":"lr_poly","repo":"Shathe/SemiSeg-Contrastive","repo_kind":"official","path":"trainSSL.py","file_url":"https://github.com/Shathe/SemiSeg-Contrastive/blob/HEAD/trainSSL.py","link_basis":"first_harvest_node","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":"1b0ce6e9e98a57de"}},{"code_sha256_prefix":"c5fce4bac70be375","entry":"entropy_loss","repo":"Shathe/SemiSeg-Contrastive","repo_kind":"official","path":"trainSSL.py","file_url":"https://github.com/Shathe/SemiSeg-Contrastive/blob/HEAD/trainSSL.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":"c5fce4bac70be375"}},{"code_sha256_prefix":"35c823e7272e922d","entry":"get_iou","repo":"Shathe/SemiSeg-Contrastive","repo_kind":"official","path":"evaluateSSL.py","file_url":"https://github.com/Shathe/SemiSeg-Contrastive/blob/HEAD/evaluateSSL.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":"35c823e7272e922d"}},{"code_sha256_prefix":"017263acb6b75915","entry":"sigmoid_ramp_up","repo":"Shathe/SemiSeg-Contrastive","repo_kind":"official","path":"trainSSL.py","file_url":"https://github.com/Shathe/SemiSeg-Contrastive/blob/HEAD/trainSSL.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":"017263acb6b75915"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}