{"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/smooseg-smoothness-prior-for-unsupervised-1","title":"SmooSeg: Smoothness Prior for Unsupervised Semantic Segmentation","arxiv_id":"2310.17874","date":"2023-10-27","proceeding":"NeurIPS 2023 11","authors":["Mengcheng Lan","Xinjiang Wang","Yiping Ke","Jiaxing Xu","Litong Feng","Wayne Zhang"],"abstract":"Unsupervised semantic segmentation is a challenging task that segments images into semantic groups without manual annotation. Prior works have primarily focused on leveraging prior knowledge of semantic consistency or priori concepts from self-supervised learning methods, which often overlook the coherence property of image segments. In this paper, we demonstrate that the smoothness prior, asserting that close features in a metric space share the same semantics, can significantly simplify segmentation by casting unsupervised semantic segmentation as an energy minimization problem. Under this paradigm, we propose a novel approach called SmooSeg that harnesses self-supervised learning methods to model the closeness relationships among observations as smoothness signals. To effectively discover coherent semantic segments, we introduce a novel smoothness loss that promotes piecewise smoothness within segments while preserving discontinuities across different segments. Additionally, to further enhance segmentation quality, we design an asymmetric teacher-student style predictor that generates smoothly updated pseudo labels, facilitating an optimal fit between observations and labeling outputs. Thanks to the rich supervision cues of the smoothness prior, our SmooSeg significantly outperforms STEGO in terms of pixel accuracy on three datasets: COCOStuff (+14.9%), Cityscapes (+13.0%), and Potsdam-3 (+5.7%).","url_abs":"https://arxiv.org/abs/2310.17874v1","url_pdf":"https://arxiv.org/pdf/2310.17874v1.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":"smooseg-smoothness-prior-for-unsupervised-1","repo_url":"https://github.com/mc-lan/smooseg","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"NOASSERTION"}}],"tasks":[{"task_slug":"segmentation","task_name":"Segmentation"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"},{"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":{"syntology_url":"https://syntology.ai/paper/2310.17874","atlas_url":"https://app.syntology.ai/?focus=2310.17874","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.17874"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/mc-lan/smooseg","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":6,"ran_honours":1,"ran_fixture":1,"ran_draft_wrong":1,"unverified":1},"by_repo_kind":{"official":{"samples":10,"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":10,"samples":[{"code_sha256_prefix":"9c3cc207f843ec13","entry":"bit_get","repo":"mc-lan/smooseg","repo_kind":"official","path":"data.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/data.py","link_basis":"harvester_set","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":"9c3cc207f843ec13"}},{"code_sha256_prefix":"c19231378e41dc5a","entry":"bool_flag","repo":"mc-lan/smooseg","repo_kind":"official","path":"models/dino/utils.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/models/dino/utils.py","link_basis":"harvester_set","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":"c19231378e41dc5a"}},{"code_sha256_prefix":"2b5489053b222e00","entry":"clip_gradients","repo":"mc-lan/smooseg","repo_kind":"official","path":"models/dino/utils.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/models/dino/utils.py","link_basis":"harvester_set","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":"2b5489053b222e00"}},{"code_sha256_prefix":"aa3249b5a8a9571e","entry":"convert_from_color","repo":"mc-lan/smooseg","repo_kind":"official","path":"utils.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/utils.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":"aa3249b5a8a9571e"}},{"code_sha256_prefix":"361a6b24f11fc50a","entry":"cosine_scheduler","repo":"mc-lan/smooseg","repo_kind":"official","path":"models/dino/utils.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/models/dino/utils.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"361a6b24f11fc50a"}},{"code_sha256_prefix":"55120f2026b56aa2","entry":"drop_path","repo":"mc-lan/smooseg","repo_kind":"official","path":"models/dino/vision_transformer.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/models/dino/vision_transformer.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"55120f2026b56aa2"}},{"code_sha256_prefix":"d6f15c1eec2a900c","entry":"get_class_labels","repo":"mc-lan/smooseg","repo_kind":"official","path":"utils.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/utils.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d6f15c1eec2a900c"}},{"code_sha256_prefix":"12de5cf1a9536fef","entry":"norm","repo":"mc-lan/smooseg","repo_kind":"official","path":"modules.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/modules.py","link_basis":"harvester_set","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":"12de5cf1a9536fef"}},{"code_sha256_prefix":"aa6344fded8d2fcc","entry":"tensor_correlation","repo":"mc-lan/smooseg","repo_kind":"official","path":"modules.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/modules.py","link_basis":"harvester_set","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":"aa6344fded8d2fcc"}},{"code_sha256_prefix":"03d75cc3af909448","entry":"sample","repo":"mc-lan/smooseg","repo_kind":"official","path":"modules.py","file_url":"https://github.com/mc-lan/smooseg/blob/HEAD/modules.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"03d75cc3af909448"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}