{"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/openfed-an-open-source-security-and-privacy","title":"OpenFed: A Comprehensive and Versatile Open-Source Federated Learning Framework","arxiv_id":"2109.07852","date":"2021-09-16","proceeding":null,"authors":["Dengsheng Chen","Vince Tan","Zhilin Lu","Jie Hu"],"abstract":"Recent developments in Artificial Intelligence techniques have enabled their successful application across a spectrum of commercial and industrial settings. However, these techniques require large volumes of data to be aggregated in a centralized manner, forestalling their applicability to scenarios wherein the data is sensitive or the cost of data transmission is prohibitive. Federated Learning alleviates these problems by decentralizing model training, thereby removing the need for data transfer and aggregation. To advance the adoption of Federated Learning, more research and development needs to be conducted to address some important open questions. In this work, we propose OpenFed, an open-source software framework for end-to-end Federated Learning. OpenFed reduces the barrier to entry for both researchers and downstream users of Federated Learning by the targeted removal of existing pain points. For researchers, OpenFed provides a framework wherein new methods can be easily implemented and fairly evaluated against an extensive suite of benchmarks. For downstream users, OpenFed allows Federated Learning to be plugged and play within different subject-matter contexts, removing the need for deep expertise in Federated Learning.","url_abs":"https://arxiv.org/abs/2109.07852v3","url_pdf":"https://arxiv.org/pdf/2109.07852v3.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":"openfed-an-open-source-security-and-privacy","repo_url":"https://github.com/federallab/openfed","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"federated-learning","task_name":"Federated Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2109.07852","atlas_url":"https://app.syntology.ai/?focus=2109.07852","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2109.07852"}},"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/federallab/openfed","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":9},"by_repo_kind":{"official":{"samples":9,"ran":0,"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":"2bb1988b54997051","entry":"average_aggregation","repo":"federallab/openfed","repo_kind":"official","path":"openfed/functional/agg.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/functional/agg.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":"2bb1988b54997051"}},{"code_sha256_prefix":"4e1243396d8c2a94","entry":"build_point2point_group","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/functional.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/functional.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":"4e1243396d8c2a94"}},{"code_sha256_prefix":"c61342f2aeeada0d","entry":"elastic_aggregation","repo":"federallab/openfed","repo_kind":"official","path":"openfed/functional/agg.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/functional/agg.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":"c61342f2aeeada0d"}},{"code_sha256_prefix":"74d385914aa278c1","entry":"get_store_value","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/pipe.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/pipe.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":"74d385914aa278c1"}},{"code_sha256_prefix":"d47ad6991d4f664e","entry":"is_aggregator","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/const.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/const.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":"d47ad6991d4f664e"}},{"code_sha256_prefix":"f9f66ed321df7fc3","entry":"is_collaborator","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/const.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/const.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":"f9f66ed321df7fc3"}},{"code_sha256_prefix":"12f2ea7aa876f2fd","entry":"joint_federated_group","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/functional.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/functional.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":"12f2ea7aa876f2fd"}},{"code_sha256_prefix":"5bb3585dcb05c33c","entry":"naive_aggregation","repo":"federallab/openfed","repo_kind":"official","path":"openfed/functional/agg.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/functional/agg.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":"5bb3585dcb05c33c"}},{"code_sha256_prefix":"f6ba950119528be3","entry":"set_store_value","repo":"federallab/openfed","repo_kind":"official","path":"openfed/federated/pipe.py","file_url":"https://github.com/federallab/openfed/blob/HEAD/openfed/federated/pipe.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":"f6ba950119528be3"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}