{"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/spafl-communication-efficient-federated","title":"SpaFL: Communication-Efficient Federated Learning with Sparse Models and Low computational Overhead","arxiv_id":"2406.00431","date":"2024-06-01","proceeding":null,"authors":["Minsu Kim","Walid Saad","Merouane Debbah","Choong Seon Hong"],"abstract":"The large communication and computation overhead of federated learning (FL) is one of the main challenges facing its practical deployment over resource-constrained clients and systems. In this work, SpaFL: a communication-efficient FL framework is proposed to optimize sparse model structures with low computational overhead. In SpaFL, a trainable threshold is defined for each filter/neuron to prune its all connected parameters, thereby leading to structured sparsity. To optimize the pruning process itself, only thresholds are communicated between a server and clients instead of parameters, thereby learning how to prune. Further, global thresholds are used to update model parameters by extracting aggregated parameter importance. The generalization bound of SpaFL is also derived, thereby proving key insights on the relation between sparsity and performance. Experimental results show that SpaFL improves accuracy while requiring much less communication and computing resources compared to sparse baselines. The code is available at https://github.com/news-vt/SpaFL_NeruIPS_2024","url_abs":"https://arxiv.org/abs/2406.00431v2","url_pdf":"https://arxiv.org/pdf/2406.00431v2.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":"spafl-communication-efficient-federated","repo_url":"https://github.com/news-vt/spafl_neruips_2024","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"federated-learning","task_name":"Federated Learning"}],"methods":[{"method_slug":"pruning","method_name":"Pruning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.00431","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.00431"}},"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/news-vt/SpaFL_NeruIPS_2024","reach":{"status":"ok"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/news-vt/spafl_neruips_2024","reach":{"status":"ok"}}],"summary":{"ran":3,"ran_violates":1,"unverified":4},"by_repo_kind":{"official":{"samples":8,"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":8,"samples":[{"code_sha256_prefix":"418c3bdd48cdd3f7","entry":"Non_iid_split_cifar","repo":"news-vt/SpaFL_NeruIPS_2024","repo_kind":"official","path":"main/cifar10/Split_Data.py","file_url":"https://github.com/news-vt/SpaFL_NeruIPS_2024/blob/HEAD/main/cifar10/Split_Data.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":"418c3bdd48cdd3f7"}},{"code_sha256_prefix":"bb1e37055582ab3e","entry":"data_stats","repo":"news-vt/SpaFL_NeruIPS_2024","repo_kind":"official","path":"main/cifar10/Split_Data.py","file_url":"https://github.com/news-vt/SpaFL_NeruIPS_2024/blob/HEAD/main/cifar10/Split_Data.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":"bb1e37055582ab3e"}},{"code_sha256_prefix":"6ba8cee9f5daea41","entry":"pair","repo":"news-vt/SpaFL_NeruIPS_2024","repo_kind":"official","path":"main/cifar10/model/net.py","file_url":"https://github.com/news-vt/SpaFL_NeruIPS_2024/blob/HEAD/main/cifar10/model/net.py","link_basis":"harvester_set","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"6ba8cee9f5daea41"}},{"code_sha256_prefix":"ddd0fe183f822f1a","entry":"record_net_data_stats","repo":"news-vt/SpaFL_NeruIPS_2024","repo_kind":"official","path":"main/cifar100/Split_data.py","file_url":"https://github.com/news-vt/SpaFL_NeruIPS_2024/blob/HEAD/main/cifar100/Split_data.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":"ddd0fe183f822f1a"}},{"code_sha256_prefix":"8cc5834e078490ff","entry":"Masked_Attention","repo":"news-vt/spafl_neruips_2024","repo_kind":"official","path":"main/cifar10/model/net.py","file_url":"https://github.com/news-vt/spafl_neruips_2024/blob/HEAD/main/cifar10/model/net.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":"8cc5834e078490ff"}},{"code_sha256_prefix":"8aaceb83d83a7d40","entry":"Masked_FeedForward","repo":"news-vt/spafl_neruips_2024","repo_kind":"official","path":"main/cifar10/model/net.py","file_url":"https://github.com/news-vt/spafl_neruips_2024/blob/HEAD/main/cifar10/model/net.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":"8aaceb83d83a7d40"}},{"code_sha256_prefix":"e8128147a2c4fe55","entry":"Masked_Transformer","repo":"news-vt/spafl_neruips_2024","repo_kind":"official","path":"main/cifar10/model/net.py","file_url":"https://github.com/news-vt/spafl_neruips_2024/blob/HEAD/main/cifar10/model/net.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":"e8128147a2c4fe55"}},{"code_sha256_prefix":"38b13a0d5d2c7523","entry":"masked_vit","repo":"news-vt/spafl_neruips_2024","repo_kind":"official","path":"main/cifar10/model/net.py","file_url":"https://github.com/news-vt/spafl_neruips_2024/blob/HEAD/main/cifar10/model/net.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":"38b13a0d5d2c7523"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}