{"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/estimating-before-debiasing-a-bayesian","title":"Estimating before Debiasing: A Bayesian Approach to Detaching Prior Bias in Federated Semi-Supervised Learning","arxiv_id":"2405.19789","date":"2024-05-30","proceeding":null,"authors":["Guogang Zhu","Xuefeng Liu","Xinghao Wu","Shaojie Tang","Chao Tang","Jianwei Niu","Hao Su"],"abstract":"Federated Semi-Supervised Learning (FSSL) leverages both labeled and unlabeled data on clients to collaboratively train a model.In FSSL, the heterogeneous data can introduce prediction bias into the model, causing the model's prediction to skew towards some certain classes. Existing FSSL methods primarily tackle this issue by enhancing consistency in model parameters or outputs. However, as the models themselves are biased, merely constraining their consistency is not sufficient to alleviate prediction bias. In this paper, we explore this bias from a Bayesian perspective and demonstrate that it principally originates from label prior bias within the training data. Building upon this insight, we propose a debiasing method for FSSL named FedDB. FedDB utilizes the Average Prediction Probability of Unlabeled Data (APP-U) to approximate the biased prior.During local training, FedDB employs APP-U to refine pseudo-labeling through Bayes' theorem, thereby significantly reducing the label prior bias. Concurrently, during the model aggregation, FedDB uses APP-U from participating clients to formulate unbiased aggregate weights, thereby effectively diminishing bias in the global model. Experimental results show that FedDB can surpass existing FSSL methods. The code is available at https://github.com/GuogangZhu/FedDB.","url_abs":"https://arxiv.org/abs/2405.19789v1","url_pdf":"https://arxiv.org/pdf/2405.19789v1.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":"estimating-before-debiasing-a-bayesian","repo_url":"https://github.com/guogangzhu/feddb","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"prediction","task_name":"Prediction"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2405.19789","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2405.19789"}},"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/GuogangZhu/FedDB","reach":null}],"summary":{"ran_draft_wrong":4,"ran":2,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":"8dd93e2f9818fe9e","entry":"collate","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8dd93e2f9818fe9e"}},{"code_sha256_prefix":"6fd4f7ea4a79121e","entry":"input_collate","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"6fd4f7ea4a79121e"}},{"code_sha256_prefix":"cc90e13adc203a00","entry":"make_optimizer","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cc90e13adc203a00"}},{"code_sha256_prefix":"8ed7f80859c43502","entry":"recur","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8ed7f80859c43502"}},{"code_sha256_prefix":"71cc0dca3666e254","entry":"save_model_state_dict","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"71cc0dca3666e254"}},{"code_sha256_prefix":"95676e900ec2c9ae","entry":"save_optimizer_state_dict","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"95676e900ec2c9ae"}},{"code_sha256_prefix":"acec6f9da990ed9b","entry":"Client","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"acec6f9da990ed9b"}},{"code_sha256_prefix":"b9594d9b2fb26b1d","entry":"make_data_loader","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b9594d9b2fb26b1d"}},{"code_sha256_prefix":"10e471c80b15d2ed","entry":"to_device","repo":"GuogangZhu/FedDB","repo_kind":"official","path":"src/modules/modules.py","file_url":"https://github.com/GuogangZhu/FedDB/blob/HEAD/src/modules/modules.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"10e471c80b15d2ed"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}