{"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/unsupervised-hierarchical-semantic","title":"Unsupervised Hierarchical Semantic Segmentation with Multiview Cosegmentation and Clustering Transformers","arxiv_id":"2204.11432","date":"2022-04-25","proceeding":"CVPR 2022 1","authors":["Tsung-Wei Ke","Jyh-Jing Hwang","Yunhui Guo","Xudong Wang","Stella X. Yu"],"abstract":"Unsupervised semantic segmentation aims to discover groupings within and across images that capture object and view-invariance of a category without external supervision. Grouping naturally has levels of granularity, creating ambiguity in unsupervised segmentation. Existing methods avoid this ambiguity and treat it as a factor outside modeling, whereas we embrace it and desire hierarchical grouping consistency for unsupervised segmentation. We approach unsupervised segmentation as a pixel-wise feature learning problem. Our idea is that a good representation shall reveal not just a particular level of grouping, but any level of grouping in a consistent and predictable manner. We enforce spatial consistency of grouping and bootstrap feature learning with co-segmentation among multiple views of the same image, and enforce semantic consistency across the grouping hierarchy with clustering transformers between coarse- and fine-grained features. We deliver the first data-driven unsupervised hierarchical semantic segmentation method called Hierarchical Segment Grouping (HSG). Capturing visual similarity and statistical co-occurrences, HSG also outperforms existing unsupervised segmentation methods by a large margin on five major object- and scene-centric benchmarks. Our code is publicly available at https://github.com/twke18/HSG .","url_abs":"https://arxiv.org/abs/2204.11432v1","url_pdf":"https://arxiv.org/pdf/2204.11432v1.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":"unsupervised-hierarchical-semantic","repo_url":"https://github.com/twke18/hsg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"clustering","task_name":"Clustering"},{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"semantic-segmentation","task_name":"Semantic Segmentation"},{"task_slug":"unsupervised-semantic-segmentation","task_name":"Unsupervised Semantic Segmentation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.11432","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.11432"}},"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/twke18/hsg","reach":null}],"summary":{"ran":1,"ran_draft_wrong":5,"ran_fixture":2,"ran_violates":1,"unverified":2},"by_repo_kind":{"official":{"samples":11,"ran":9,"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":"beccccc87a810e39","entry":"SegSortLoss","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.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":"beccccc87a810e39"}},{"code_sha256_prefix":"bb39236af820745f","entry":"_calculate_log_likelihood","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"bb39236af820745f"}},{"code_sha256_prefix":"6d7ca8ad976f7f04","entry":"_rank3_trace","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6d7ca8ad976f7f04"}},{"code_sha256_prefix":"515ff33c1ddcd01f","entry":"affinity_matrix_as_attention","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"515ff33c1ddcd01f"}},{"code_sha256_prefix":"495cfccd6332182c","entry":"dmon_pool_loss","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"495cfccd6332182c"}},{"code_sha256_prefix":"9b8f0f2b506b4e57","entry":"exp_inner_product_kernel","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"9b8f0f2b506b4e57"}},{"code_sha256_prefix":"5143c945ccddcde2","entry":"inner_product_kernel","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5143c945ccddcde2"}},{"code_sha256_prefix":"1ef225c91d4a5d0c","entry":"normalize_embedding","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"1ef225c91d4a5d0c"}},{"code_sha256_prefix":"e0593dd8d4a94998","entry":"top_k_ranking","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e0593dd8d4a94998"}},{"code_sha256_prefix":"6d32b13714bb33b6","entry":"DMonLoss","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.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":"6d32b13714bb33b6"}},{"code_sha256_prefix":"4ccd6054c84df32c","entry":"Hsg","repo":"twke18/hsg","repo_kind":"official","path":"hsg/models/predictions/hsg.py","file_url":"https://github.com/twke18/hsg/blob/HEAD/hsg/models/predictions/hsg.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":"4ccd6054c84df32c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}