{"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/shielding-federated-learning-robust","title":"Shielding Federated Learning: Robust Aggregation with Adaptive Client Selection","arxiv_id":"2204.13256","date":"2022-04-28","proceeding":null,"authors":["Wei Wan","Shengshan Hu","Jianrong Lu","Leo Yu Zhang","Hai Jin","Yuanyuan He"],"abstract":"Federated learning (FL) enables multiple clients to collaboratively train an accurate global model while protecting clients' data privacy. However, FL is susceptible to Byzantine attacks from malicious participants. Although the problem has gained significant attention, existing defenses have several flaws: the server irrationally chooses malicious clients for aggregation even after they have been detected in previous rounds; the defenses perform ineffectively against sybil attacks or in the heterogeneous data setting. To overcome these issues, we propose MAB-RFL, a new method for robust aggregation in FL. By modelling the client selection as an extended multi-armed bandit (MAB) problem, we propose an adaptive client selection strategy to choose honest clients that are more likely to contribute high-quality updates. We then propose two approaches to identify malicious updates from sybil and non-sybil attacks, based on which rewards for each client selection decision can be accurately evaluated to discourage malicious behaviors. MAB-RFL achieves a satisfying balance between exploration and exploitation on the potential benign clients. Extensive experimental results show that MAB-RFL outperforms existing defenses in three attack scenarios under different percentages of attackers.","url_abs":"https://arxiv.org/abs/2204.13256v4","url_pdf":"https://arxiv.org/pdf/2204.13256v4.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"shielding-federated-learning-robust","repo_url":"https://github.com/hustweiwan/mab-rfl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"tf","reach":null}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2204.13256","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2204.13256"}},"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/hustweiwan/mab-rfl","reach":null}],"summary":{"ran_fixture":2,"ran":2},"by_repo_kind":{"official":{"samples":4,"ran":4,"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":4,"samples":[{"code_sha256_prefix":"66d028e4ae85d2ff","entry":"Cos_Similarity","repo":"hustweiwan/mab-rfl","repo_kind":"official","path":"MAB-RFL-released.py","file_url":"https://github.com/hustweiwan/mab-rfl/blob/HEAD/MAB-RFL-released.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"66d028e4ae85d2ff"}},{"code_sha256_prefix":"70584a3d2dc2f29c","entry":"MAB_FL","repo":"hustweiwan/mab-rfl","repo_kind":"official","path":"MAB-RFL-released.py","file_url":"https://github.com/hustweiwan/mab-rfl/blob/HEAD/MAB-RFL-released.py","link_basis":"first_harvest_node","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"70584a3d2dc2f29c"}},{"code_sha256_prefix":"60f6cf6130e7eea2","entry":"flat","repo":"hustweiwan/mab-rfl","repo_kind":"official","path":"MAB-RFL-released.py","file_url":"https://github.com/hustweiwan/mab-rfl/blob/HEAD/MAB-RFL-released.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":"60f6cf6130e7eea2"}},{"code_sha256_prefix":"129bb341caf09d39","entry":"getWeightNorm","repo":"hustweiwan/mab-rfl","repo_kind":"official","path":"MAB-RFL-released.py","file_url":"https://github.com/hustweiwan/mab-rfl/blob/HEAD/MAB-RFL-released.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":"129bb341caf09d39"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}