{"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/continuous-contrastive-learning-for-long","title":"Continuous Contrastive Learning for Long-Tailed Semi-Supervised Recognition","arxiv_id":"2410.06109","date":"2024-10-08","proceeding":null,"authors":["Zi-Hao Zhou","Siyuan Fang","Zi-Jing Zhou","Tong Wei","Yuanyu Wan","Min-Ling Zhang"],"abstract":"Long-tailed semi-supervised learning poses a significant challenge in training models with limited labeled data exhibiting a long-tailed label distribution. Current state-of-the-art LTSSL approaches heavily rely on high-quality pseudo-labels for large-scale unlabeled data. However, these methods often neglect the impact of representations learned by the neural network and struggle with real-world unlabeled data, which typically follows a different distribution than labeled data. This paper introduces a novel probabilistic framework that unifies various recent proposals in long-tail learning. Our framework derives the class-balanced contrastive loss through Gaussian kernel density estimation. We introduce a continuous contrastive learning method, CCL, extending our framework to unlabeled data using reliable and smoothed pseudo-labels. By progressively estimating the underlying label distribution and optimizing its alignment with model predictions, we tackle the diverse distribution of unlabeled data in real-world scenarios. Extensive experiments across multiple datasets with varying unlabeled data distributions demonstrate that CCL consistently outperforms prior state-of-the-art methods, achieving over 4% improvement on the ImageNet-127 dataset. Our source code is available at https://github.com/zhouzihao11/CCL","url_abs":"https://arxiv.org/abs/2410.06109v1","url_pdf":"https://arxiv.org/pdf/2410.06109v1.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":"continuous-contrastive-learning-for-long","repo_url":"https://github.com/zhouzihao11/ccl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"density-estimation","task_name":"Density Estimation"},{"task_slug":"long-tail-learning","task_name":"Long-tail Learning"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2410.06109","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2410.06109"}},"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/zhouzihao11/CCL","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/zhouzihao11/ccl","reach":{"status":"ok"}}],"summary":{"ran":9,"ran_fixture":1,"ran_draft_wrong":2,"unverified":3},"by_repo_kind":{"official":{"samples":15,"ran":12,"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":15,"samples":[{"code_sha256_prefix":"c6e7c3451c85404f","entry":"AutoContrast","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/randaugment.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/randaugment.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":"c6e7c3451c85404f"}},{"code_sha256_prefix":"0d1a8d6ce2015fc7","entry":"Brightness","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/randaugment.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/randaugment.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":"0d1a8d6ce2015fc7"}},{"code_sha256_prefix":"32cb3f5760fa593e","entry":"Color","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/randaugment.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/randaugment.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":"32cb3f5760fa593e"}},{"code_sha256_prefix":"011e38d6c05f56bb","entry":"SemiConLoss","repo":"zhouzihao11/ccl","repo_kind":"official","path":"loss/semiConLoss.py","file_url":"https://github.com/zhouzihao11/ccl/blob/HEAD/loss/semiConLoss.py","link_basis":"first_harvest_node","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":"011e38d6c05f56bb"}},{"code_sha256_prefix":"18badd533b52adb3","entry":"accuracy","repo":"zhouzihao11/CCL","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/utils/misc.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"18badd533b52adb3"}},{"code_sha256_prefix":"fb866335bba20e2b","entry":"compute_adjustment_list","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/cifar.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/cifar.py","link_basis":"first_harvest_node","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":"fb866335bba20e2b"}},{"code_sha256_prefix":"c7f19839b1384360","entry":"crossLoss","repo":"zhouzihao11/ccl","repo_kind":"official","path":"loss/semiConLoss.py","file_url":"https://github.com/zhouzihao11/ccl/blob/HEAD/loss/semiConLoss.py","link_basis":"first_harvest_node","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":"c7f19839b1384360"}},{"code_sha256_prefix":"8c82d522e7c85b05","entry":"get_mean_and_std","repo":"zhouzihao11/CCL","repo_kind":"official","path":"utils/misc.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/utils/misc.py","link_basis":"first_harvest_node","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":"8c82d522e7c85b05"}},{"code_sha256_prefix":"0a7c46eb67c0c21b","entry":"mish","repo":"zhouzihao11/CCL","repo_kind":"official","path":"models/wideresnet.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/models/wideresnet.py","link_basis":"first_harvest_node","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":"0a7c46eb67c0c21b"}},{"code_sha256_prefix":"50afa2863ffd9fde","entry":"plot_overlap","repo":"zhouzihao11/CCL","repo_kind":"official","path":"utils/logger.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/utils/logger.py","link_basis":"plan_row","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":"50afa2863ffd9fde"}},{"code_sha256_prefix":"4d185cccfc87e3cc","entry":"sharp","repo":"zhouzihao11/ccl","repo_kind":"official","path":"loss/semiConLoss.py","file_url":"https://github.com/zhouzihao11/ccl/blob/HEAD/loss/semiConLoss.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":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"4d185cccfc87e3cc"}},{"code_sha256_prefix":"38b1290e4f0c05ae","entry":"unlabelProbability","repo":"zhouzihao11/ccl","repo_kind":"official","path":"loss/semiConLoss.py","file_url":"https://github.com/zhouzihao11/ccl/blob/HEAD/loss/semiConLoss.py","link_basis":"first_harvest_node","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":"38b1290e4f0c05ae"}},{"code_sha256_prefix":"3ea5971a7367f941","entry":"build_wideresnet","repo":"zhouzihao11/CCL","repo_kind":"official","path":"models/wideresnet.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/models/wideresnet.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":"3ea5971a7367f941"}},{"code_sha256_prefix":"7b18bf51896a5c3f","entry":"get_cifar10","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/cifar.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/cifar.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":"7b18bf51896a5c3f"}},{"code_sha256_prefix":"5479cd4eeee14d78","entry":"transpose","repo":"zhouzihao11/CCL","repo_kind":"official","path":"dataset/cifar.py","file_url":"https://github.com/zhouzihao11/CCL/blob/HEAD/dataset/cifar.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":"5479cd4eeee14d78"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}