{"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/open-set-label-shift-with-test-time-out-of","title":"Open Set Label Shift with Test Time Out-of-Distribution Reference","arxiv_id":"2505.05868","date":"2025-05-09","proceeding":"CVPR 2025 1","authors":["Changkun Ye","Russell Tsuchida","Lars Petersson","Nick Barnes"],"abstract":"Open set label shift (OSLS) occurs when label distributions change from a source to a target distribution, and the target distribution has an additional out-of-distribution (OOD) class. In this work, we build estimators for both source and target open set label distributions using a source domain in-distribution (ID) classifier and an ID/OOD classifier. With reasonable assumptions on the ID/OOD classifier, the estimators are assembled into a sequence of three stages: 1) an estimate of the source label distribution of the OOD class, 2) an EM algorithm for Maximum Likelihood estimates (MLE) of the target label distribution, and 3) an estimate of the target label distribution of OOD class under relaxed assumptions on the OOD classifier. The sampling errors of estimates in 1) and 3) are quantified with a concentration inequality. The estimation result allows us to correct the ID classifier trained on the source distribution to the target distribution without retraining. Experiments on a variety of open set label shift settings demonstrate the effectiveness of our model. Our code is available at https://github.com/ChangkunYe/OpenSetLabelShift.","url_abs":"https://arxiv.org/abs/2505.05868v1","url_pdf":"https://arxiv.org/pdf/2505.05868v1.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":"open-set-label-shift-with-test-time-out-of","repo_url":"https://github.com/changkunye/opensetlabelshift","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[{"method_slug":"set","method_name":"SET"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2505.05868","atlas_url":"https://app.syntology.ai/?focus=2505.05868","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2505.05868"}},"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":"deterministic:regex_extraction","url":"https://github.com/Jingkang50/OpenOOD","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/ChangkunYe/OpenSetLabelShift","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":3,"ran_violates":1,"ran_draft_wrong":1,"unverified":8},"by_repo_kind":{"official":{"samples":13,"ran":5,"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":"3cce4936256bdc33","entry":"Discriminator32","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","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":"3cce4936256bdc33"}},{"code_sha256_prefix":"797cd0913159403b","entry":"Generator","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","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":"797cd0913159403b"}},{"code_sha256_prefix":"893f424fd19a9b6c","entry":"Generator32","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/networks/arpl_net.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/networks/arpl_net.py","link_basis":"harvester_set","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":"893f424fd19a9b6c"}},{"code_sha256_prefix":"d8339d591bbd7f52","entry":"rew_ce","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/reweight.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"d8339d591bbd7f52"}},{"code_sha256_prefix":"61492b343324d2ea","entry":"soft_cross_entropy","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/sce.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/sce.py","link_basis":"harvester_set","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":"61492b343324d2ea"}},{"code_sha256_prefix":"45b6edb2cf78cda2","entry":"create_window","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","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":"45b6edb2cf78cda2"}},{"code_sha256_prefix":"e2424ce033ba3a0f","entry":"gaussian","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","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":"e2424ce033ba3a0f"}},{"code_sha256_prefix":"4c1d0e3674921db5","entry":"loss_function","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/rd4ad_loss.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/rd4ad_loss.py","link_basis":"harvester_set","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":"4c1d0e3674921db5"}},{"code_sha256_prefix":"641de4804c9d7e02","entry":"owls_correction","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/label_shift/models.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/label_shift/models.py","link_basis":"harvester_set","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":"641de4804c9d7e02"}},{"code_sha256_prefix":"542154f4c91077f3","entry":"owls_estimation","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/label_shift/models.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/label_shift/models.py","link_basis":"harvester_set","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":"542154f4c91077f3"}},{"code_sha256_prefix":"1a5601ff222564c7","entry":"owls_evaluation","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/label_shift/models.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/label_shift/models.py","link_basis":"harvester_set","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":"1a5601ff222564c7"}},{"code_sha256_prefix":"e1014da2309b3946","entry":"rew_sce","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/reweight.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/reweight.py","link_basis":"harvester_set","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":"e1014da2309b3946"}},{"code_sha256_prefix":"d1619ad1bb7ea0f7","entry":"ssim","repo":"ChangkunYe/OpenSetLabelShift","repo_kind":"official","path":"openood/losses/ssim.py","file_url":"https://github.com/ChangkunYe/OpenSetLabelShift/blob/HEAD/openood/losses/ssim.py","link_basis":"harvester_set","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":"d1619ad1bb7ea0f7"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}