{"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/threshold-matters-in-wsss-manipulating-the","title":"Threshold Matters in WSSS: Manipulating the Activation for the Robust and Accurate Segmentation Model Against Thresholds","arxiv_id":"2203.16045","date":"2022-03-30","proceeding":"CVPR 2022 1","authors":["Minhyun Lee","Dongseob Kim","Hyunjung Shim"],"abstract":"Weakly-supervised semantic segmentation (WSSS) has recently gained much attention for its promise to train segmentation models only with image-level labels. Existing WSSS methods commonly argue that the sparse coverage of CAM incurs the performance bottleneck of WSSS. This paper provides analytical and empirical evidence that the actual bottleneck may not be sparse coverage but a global thresholding scheme applied after CAM. Then, we show that this issue can be mitigated by satisfying two conditions; 1) reducing the imbalance in the foreground activation and 2) increasing the gap between the foreground and the background activation. Based on these findings, we propose a novel activation manipulation network with a per-pixel classification loss and a label conditioning module. Per-pixel classification naturally induces two-level activation in activation maps, which can penalize the most discriminative parts, promote the less discriminative parts, and deactivate the background regions. Label conditioning imposes that the output label of pseudo-masks should be any of true image-level labels; it penalizes the wrong activation assigned to non-target classes. Based on extensive analysis and evaluations, we demonstrate that each component helps produce accurate pseudo-masks, achieving the robustness against the choice of the global threshold. Finally, our model achieves state-of-the-art records on both PASCAL VOC 2012 and MS COCO 2014 datasets.","url_abs":"https://arxiv.org/abs/2203.16045v1","url_pdf":"https://arxiv.org/pdf/2203.16045v1.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":"threshold-matters-in-wsss-manipulating-the","repo_url":"https://github.com/gaviotas/amn","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"weakly-supervised-semantic-segmentation-1","task_name":"Weakly supervised Semantic Segmentation"},{"task_slug":"weakly-supervised-segmentation","task_name":"Weakly supervised segmentation"},{"task_slug":"weakly-supervised-semantic-segmentation","task_name":"Weakly-Supervised Semantic Segmentation"}],"methods":[{"method_slug":"cam","method_name":"CAM"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/weakly-supervised-semantic-segmentation-on-4","task":"Weakly-Supervised Semantic Segmentation","dataset":"COCO 2014 val","model":"AMN (DeepLabV2-ResNet101)","rank_in_archive_order":18,"of":39,"metrics":{"mIoU":"44.7"},"uses_additional_data":false},{"leaderboard":"/sota/weakly-supervised-semantic-segmentation-on-1","task":"Weakly-Supervised Semantic Segmentation","dataset":"PASCAL VOC 2012 test","model":"AMN (DeepLabV2-ResNet101, MS-COCO-pretrained weights)","rank_in_archive_order":39,"of":60,"metrics":{"Mean IoU":"70.6"},"uses_additional_data":false},{"leaderboard":"/sota/weakly-supervised-semantic-segmentation-on-1","task":"Weakly-Supervised Semantic Segmentation","dataset":"PASCAL VOC 2012 test","model":"AMN (DeepLabV2-ResNet101)","rank_in_archive_order":47,"of":60,"metrics":{"Mean IoU":"69.6"},"uses_additional_data":false},{"leaderboard":"/sota/weakly-supervised-semantic-segmentation-on","task":"Weakly-Supervised Semantic Segmentation","dataset":"PASCAL VOC 2012 val","model":"AMN (DeepLabV2-ResNet101, MS-COCO-pretrained weights)","rank_in_archive_order":34,"of":73,"metrics":{"Mean IoU":"70.7"},"uses_additional_data":false},{"leaderboard":"/sota/weakly-supervised-semantic-segmentation-on","task":"Weakly-Supervised Semantic Segmentation","dataset":"PASCAL VOC 2012 val","model":"AMN (DeepLabV2-ResNet101)","rank_in_archive_order":47,"of":73,"metrics":{"Mean IoU":"69.5"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2203.16045","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2203.16045"}},"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":"deterministic:regex_extraction","url":"https://github.com/gaviotas/AMN","reach":null}],"summary":{"ran":1,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"official":{"samples":3,"ran":2,"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":"f70b10eca6df4293","entry":"_ASPP","repo":"gaviotas/AMN","repo_kind":"official","path":"net/resnet50_amn.py","file_url":"https://github.com/gaviotas/AMN/blob/HEAD/net/resnet50_amn.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"f70b10eca6df4293"}},{"code_sha256_prefix":"e39268598b4aeb8f","entry":"resnet50","repo":"gaviotas/AMN","repo_kind":"official","path":"net/resnet50_amn.py","file_url":"https://github.com/gaviotas/AMN/blob/HEAD/net/resnet50_amn.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"e39268598b4aeb8f"}},{"code_sha256_prefix":"8cc6d37a2db0ff79","entry":"Net","repo":"gaviotas/AMN","repo_kind":"official","path":"net/resnet50_amn.py","file_url":"https://github.com/gaviotas/AMN/blob/HEAD/net/resnet50_amn.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":"8cc6d37a2db0ff79"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}