{"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/federated-model-aggregation-via-self","title":"Federated Model Aggregation via Self-Supervised Priors for Highly Imbalanced Medical Image Classification","arxiv_id":"2307.14959","date":"2023-07-27","proceeding":null,"authors":["Marawan Elbatel","Hualiang Wang","Robert Martí","Huazhu Fu","Xiaomeng Li"],"abstract":"In the medical field, federated learning commonly deals with highly imbalanced datasets, including skin lesions and gastrointestinal images. Existing federated methods under highly imbalanced datasets primarily focus on optimizing a global model without incorporating the intra-class variations that can arise in medical imaging due to different populations, findings, and scanners. In this paper, we study the inter-client intra-class variations with publicly available self-supervised auxiliary networks. Specifically, we find that employing a shared auxiliary pre-trained model, like MoCo-V2, locally on every client yields consistent divergence measurements. Based on these findings, we derive a dynamic balanced model aggregation via self-supervised priors (MAS) to guide the global model optimization. Fed-MAS can be utilized with different local learning methods for effective model aggregation toward a highly robust and unbiased global model. Our code is available at \\url{https://github.com/xmed-lab/Fed-MAS}.","url_abs":"https://arxiv.org/abs/2307.14959v1","url_pdf":"https://arxiv.org/pdf/2307.14959v1.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":"federated-model-aggregation-via-self","repo_url":"https://github.com/xmed-lab/fed-mas","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"federated-learning","task_name":"Federated Learning"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"medical-image-classification","task_name":"Medical Image Classification"},{"task_slug":"model-optimization","task_name":"Model Optimization"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"focus","method_name":"Focus"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.14959","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.14959"}},"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":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/xmed-lab/fed-mas","reach":{"status":"ok"}}],"summary":{"ran":5,"ran_draft_wrong":4,"unverified":4},"by_repo_kind":{"official":{"samples":13,"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":13,"samples":[{"code_sha256_prefix":"c3bcb463338e8c6e","entry":"DiffAugment","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"methods/utils.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/methods/utils.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":"c3bcb463338e8c6e"}},{"code_sha256_prefix":"26c9b5c6d6847d0c","entry":"compute_pred_matrix","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"methods/metrics.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/methods/metrics.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":"26c9b5c6d6847d0c"}},{"code_sha256_prefix":"d9def42110729a85","entry":"conv1x1","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet.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":"d9def42110729a85"}},{"code_sha256_prefix":"160bb14bd76201b4","entry":"conv3x3","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet.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":"160bb14bd76201b4"}},{"code_sha256_prefix":"2aa5d536ff654fac","entry":"conv3x3","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet8.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet8.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2aa5d536ff654fac"}},{"code_sha256_prefix":"c0e21bccec39ef1a","entry":"efficientnet_b0_free","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/efficientnet.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/efficientnet.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":"c0e21bccec39ef1a"}},{"code_sha256_prefix":"b2d7c06d8be319f9","entry":"efficientnet_b0_normal","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/efficientnet.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/efficientnet.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":"b2d7c06d8be319f9"}},{"code_sha256_prefix":"d4682009629cffa4","entry":"norm2d","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet8.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet8.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d4682009629cffa4"}},{"code_sha256_prefix":"845a5a7c89d42d05","entry":"rand_scale","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"methods/utils.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/methods/utils.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":"845a5a7c89d42d05"}},{"code_sha256_prefix":"5a774399c379d0af","entry":"compute_metrics_test","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"methods/metrics.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/methods/metrics.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":"5a774399c379d0af"}},{"code_sha256_prefix":"96e2448424d42b6b","entry":"get_pre_trained_model_dict","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"methods/utils.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/methods/utils.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":"96e2448424d42b6b"}},{"code_sha256_prefix":"92e0459cb8440d39","entry":"resnet50","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet.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":"92e0459cb8440d39"}},{"code_sha256_prefix":"888e738c6c938660","entry":"resnet8","repo":"xmed-lab/fed-mas","repo_kind":"official","path":"models/resnet8.py","file_url":"https://github.com/xmed-lab/fed-mas/blob/HEAD/models/resnet8.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":"888e738c6c938660"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}