{"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/bootstrapping-semantic-segmentation-with","title":"Bootstrapping Semantic Segmentation with Regional Contrast","arxiv_id":"2104.04465","date":"2021-04-09","proceeding":"ICLR 2022 4","authors":["Shikun Liu","Shuaifeng Zhi","Edward Johns","Andrew J. Davison"],"abstract":"We present ReCo, a contrastive learning framework designed at a regional level to assist learning in semantic segmentation. ReCo performs semi-supervised or supervised pixel-level contrastive learning on a sparse set of hard negative pixels, with minimal additional memory footprint. ReCo is easy to implement, being built on top of off-the-shelf segmentation networks, and consistently improves performance in both semi-supervised and supervised semantic segmentation methods, achieving smoother segmentation boundaries and faster convergence. The strongest effect is in semi-supervised learning with very few labels. With ReCo, we achieve high-quality semantic segmentation models, requiring only 5 examples of each semantic class. Code is available at https://github.com/lorenmt/reco.","url_abs":"https://arxiv.org/abs/2104.04465v4","url_pdf":"https://arxiv.org/pdf/2104.04465v4.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":"bootstrapping-semantic-segmentation-with","repo_url":"https://github.com/lorenmt/reco","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null},{"paper_slug":"bootstrapping-semantic-segmentation-with","repo_url":"https://github.com/dbash/zerowaste","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive 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"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"},{"method_slug":"reco","method_name":"ReCo"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-3","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 100 samples labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":6,"of":13,"metrics":{"Validation mIoU":"60.28%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-3","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 100 samples labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":10,"of":13,"metrics":{"Validation mIoU":"56.53%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-2","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 12.5% labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":24,"of":33,"metrics":{"Validation mIoU":"66.44%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-2","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 12.5% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":26,"of":33,"metrics":{"Validation mIoU":"64.94%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-1","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 25% labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":22,"of":30,"metrics":{"Validation mIoU":"68.50%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-1","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 25% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":23,"of":30,"metrics":{"Validation mIoU":"67.53%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-8","task":"Semi-Supervised Semantic Segmentation","dataset":"Cityscapes 50% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":21,"of":23,"metrics":{"Validation mIoU":"68.69%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-7","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 1% labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pre-trained)","rank_in_archive_order":1,"of":6,"metrics":{"Validation mIoU":"63.60%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-7","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 1% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pre-trained)","rank_in_archive_order":2,"of":6,"metrics":{"Validation mIoU":"63.16%"},"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":"ReCo","rank_in_archive_order":31,"of":38,"metrics":{"Validation mIoU":"71.00%"},"uses_additional_data":true},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-6","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 2% labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":1,"of":12,"metrics":{"Validation mIoU":"72.14%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-6","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 2% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":6,"of":12,"metrics":{"Validation mIoU":"66.41%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-5","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 5% labeled","model":"ReCo (DeepLab v3+ with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":1,"of":14,"metrics":{"Validation mIoU":"73.66%"},"uses_additional_data":false},{"leaderboard":"/sota/semi-supervised-semantic-segmentation-on-5","task":"Semi-Supervised Semantic Segmentation","dataset":"Pascal VOC 2012 5% labeled","model":"ReCo (DeepLab v2 with ResNet-101 backbone, ImageNet pretrained)","rank_in_archive_order":8,"of":14,"metrics":{"Validation mIoU":"68.85%"},"uses_additional_data":false}],"syntology":{"syntology_url":"https://syntology.ai/paper/2104.04465","atlas_url":"https://app.syntology.ai/?focus=2104.04465","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2104.04465"}},"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/lorenmt/reco","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/dbash/zerowaste","reach":null}],"summary":{"ran":3,"unverified":3},"by_repo_kind":{"official":{"samples":2,"ran":2,"repositories":1},"listed":{"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":2,"samples":[{"code_sha256_prefix":"8dbedbf6c023b3d1","entry":"Classifier_Module","repo":"lorenmt/reco","repo_kind":"official","path":"network/deeplabv2.py","file_url":"https://github.com/lorenmt/reco/blob/HEAD/network/deeplabv2.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8dbedbf6c023b3d1"}},{"code_sha256_prefix":"e6de040ded42cdfa","entry":"DeepLabv2","repo":"lorenmt/reco","repo_kind":"official","path":"network/deeplabv2.py","file_url":"https://github.com/lorenmt/reco/blob/HEAD/network/deeplabv2.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"e6de040ded42cdfa"}},{"code_sha256_prefix":"c9097c70e7d42890","entry":"FixedBatchNorm","repo":"dbash/zerowaste","repo_kind":"listed","path":"reco_aug/core/networks.py","file_url":"https://github.com/dbash/zerowaste/blob/HEAD/reco_aug/core/networks.py","link_basis":"first_harvest_node","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":"c9097c70e7d42890"}},{"code_sha256_prefix":"86573b17e433a69b","entry":"ABC_Model","repo":"dbash/zerowaste","repo_kind":"listed","path":"reco_aug/core/networks.py","file_url":"https://github.com/dbash/zerowaste/blob/HEAD/reco_aug/core/networks.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":"86573b17e433a69b"}},{"code_sha256_prefix":"2ad3bb5407d55287","entry":"Backbone","repo":"dbash/zerowaste","repo_kind":"listed","path":"reco_aug/core/networks.py","file_url":"https://github.com/dbash/zerowaste/blob/HEAD/reco_aug/core/networks.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":"2ad3bb5407d55287"}},{"code_sha256_prefix":"924e2af324b1fbd5","entry":"CSeg_Model","repo":"dbash/zerowaste","repo_kind":"listed","path":"reco_aug/core/networks.py","file_url":"https://github.com/dbash/zerowaste/blob/HEAD/reco_aug/core/networks.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":"924e2af324b1fbd5"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}