{"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/towards-distribution-agnostic-generalized-1","title":"Towards Distribution-Agnostic Generalized Category Discovery","arxiv_id":"2310.01376","date":"2023-10-02","proceeding":"NeurIPS 2023 11","authors":["Jianhong Bai","Zuozhu Liu","Hualiang Wang","Ruizhe Chen","Lianrui Mu","Xiaomeng Li","Joey Tianyi Zhou","Yang Feng","Jian Wu","Haoji Hu"],"abstract":"Data imbalance and open-ended distribution are two intrinsic characteristics of the real visual world. Though encouraging progress has been made in tackling each challenge separately, few works dedicated to combining them towards real-world scenarios. While several previous works have focused on classifying close-set samples and detecting open-set samples during testing, it's still essential to be able to classify unknown subjects as human beings. In this paper, we formally define a more realistic task as distribution-agnostic generalized category discovery (DA-GCD): generating fine-grained predictions for both close- and open-set classes in a long-tailed open-world setting. To tackle the challenging problem, we propose a Self-Balanced Co-Advice contrastive framework (BaCon), which consists of a contrastive-learning branch and a pseudo-labeling branch, working collaboratively to provide interactive supervision to resolve the DA-GCD task. In particular, the contrastive-learning branch provides reliable distribution estimation to regularize the predictions of the pseudo-labeling branch, which in turn guides contrastive learning through self-balanced knowledge transfer and a proposed novel contrastive loss. We compare BaCon with state-of-the-art methods from two closely related fields: imbalanced semi-supervised learning and generalized category discovery. The effectiveness of BaCon is demonstrated with superior performance over all baselines and comprehensive analysis across various datasets. Our code is publicly available.","url_abs":"https://arxiv.org/abs/2310.01376v5","url_pdf":"https://arxiv.org/pdf/2310.01376v5.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":"towards-distribution-agnostic-generalized-1","repo_url":"https://github.com/jianhongbai/bacon","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2310.01376","atlas_url":"https://app.syntology.ai/?focus=2310.01376","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2310.01376"}},"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/jianhongbai/bacon","reach":null}],"summary":{"ran_honours":1,"ran":3,"ran_fixture":3,"ran_draft_wrong":3,"unverified":7},"by_repo_kind":{"official":{"samples":16,"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":1,"samples":[{"code_sha256_prefix":"c62a45794431e9b7","entry":"get_mean_lr","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":2,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c62a45794431e9b7"}},{"code_sha256_prefix":"37030cbebb0d0129","entry":"DistillLoss","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"37030cbebb0d0129"}},{"code_sha256_prefix":"95c5de44324291cf","entry":"SemiConLoss","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"95c5de44324291cf"}},{"code_sha256_prefix":"12b38c6451969326","entry":"SupConLoss","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"12b38c6451969326"}},{"code_sha256_prefix":"cc083b6352f41e6b","entry":"compute_est_adjustment","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"cc083b6352f41e6b"}},{"code_sha256_prefix":"5346c05380052e53","entry":"compute_reg_loss","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5346c05380052e53"}},{"code_sha256_prefix":"ec22c16f1e0653f7","entry":"get_params_groups","repo":null,"repo_kind":null,"path":null,"file_url":null,"link_basis":"identical_code_first_harvested_elsewhere","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":null,"inline_ok":false,"mcp_get_code":{"code_sha256":"ec22c16f1e0653f7"}},{"code_sha256_prefix":"dc61c49b216cea13","entry":"info_nce_logits","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc61c49b216cea13"}},{"code_sha256_prefix":"e2b8c1d1e98d7709","entry":"split_cluster_acc_v2","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"e2b8c1d1e98d7709"}},{"code_sha256_prefix":"50edbf115e750bdd","entry":"split_cluster_acc_v2_balanced","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"50edbf115e750bdd"}},{"code_sha256_prefix":"4e2fa0271f1222c9","entry":"calculate_acc","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"4e2fa0271f1222c9"}},{"code_sha256_prefix":"71b073ad89637020","entry":"compute_softconloss","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"71b073ad89637020"}},{"code_sha256_prefix":"6888e6e64755786e","entry":"dist_est","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"6888e6e64755786e"}},{"code_sha256_prefix":"7d0eb85e7e70c3b3","entry":"log_accs_from_preds","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"7d0eb85e7e70c3b3"}},{"code_sha256_prefix":"031f432787f1623b","entry":"set_args_mmf","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"031f432787f1623b"}},{"code_sha256_prefix":"fa3d31a3392a1b08","entry":"test","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"fa3d31a3392a1b08"}},{"code_sha256_prefix":"b150a7dd8f9c24c0","entry":"train_dual","repo":"jianhongbai/bacon","repo_kind":"official","path":"model/bacon.py","file_url":"https://github.com/jianhongbai/bacon/blob/HEAD/model/bacon.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":"b150a7dd8f9c24c0"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}