{"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/swift-rapid-decentralized-federated-learning","title":"SWIFT: Rapid Decentralized Federated Learning via Wait-Free Model Communication","arxiv_id":"2210.14026","date":"2022-10-25","proceeding":null,"authors":["Marco Bornstein","Tahseen Rabbani","Evan Wang","Amrit Singh Bedi","Furong Huang"],"abstract":"The decentralized Federated Learning (FL) setting avoids the role of a potentially unreliable or untrustworthy central host by utilizing groups of clients to collaboratively train a model via localized training and model/gradient sharing. Most existing decentralized FL algorithms require synchronization of client models where the speed of synchronization depends upon the slowest client. In this work, we propose SWIFT: a novel wait-free decentralized FL algorithm that allows clients to conduct training at their own speed. Theoretically, we prove that SWIFT matches the gold-standard iteration convergence rate $\\mathcal{O}(1/\\sqrt{T})$ of parallel stochastic gradient descent for convex and non-convex smooth optimization (total iterations $T$). Furthermore, we provide theoretical results for IID and non-IID settings without any bounded-delay assumption for slow clients which is required by other asynchronous decentralized FL algorithms. Although SWIFT achieves the same iteration convergence rate with respect to $T$ as other state-of-the-art (SOTA) parallel stochastic algorithms, it converges faster with respect to run-time due to its wait-free structure. Our experimental results demonstrate that SWIFT's run-time is reduced due to a large reduction in communication time per epoch, which falls by an order of magnitude compared to synchronous counterparts. Furthermore, SWIFT produces loss levels for image classification, over IID and non-IID data settings, upwards of 50% faster than existing SOTA algorithms.","url_abs":"https://arxiv.org/abs/2210.14026v1","url_pdf":"https://arxiv.org/pdf/2210.14026v1.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":"swift-rapid-decentralized-federated-learning","repo_url":"https://github.com/umd-huang-lab/SWIFT","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"federated-learning","task_name":"Federated Learning"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"speed","method_name":"SPEED"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2210.14026","atlas_url":"https://app.syntology.ai/?focus=2210.14026","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2210.14026"}},"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/umd-huang-lab/SWIFT","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":4,"ran_draft_wrong":2,"ran_honours":1,"unverified":2},"by_repo_kind":{"official":{"samples":9,"ran":7,"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":"5bf5755e73275b29","entry":"cfg","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"GDM/Resnet.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/GDM/Resnet.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5bf5755e73275b29"}},{"code_sha256_prefix":"5f76cd5d935ff89f","entry":"consensus_train_data","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"GDM/DataPartition.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/GDM/DataPartition.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5f76cd5d935ff89f"}},{"code_sha256_prefix":"00e569acd6b45ef0","entry":"conv3x3","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"GDM/Resnet.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/GDM/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":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"00e569acd6b45ef0"}},{"code_sha256_prefix":"de96e9b005b53e0f","entry":"flatten_tensors","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"Communicators/CommHelpers.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/Communicators/CommHelpers.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"de96e9b005b53e0f"}},{"code_sha256_prefix":"ecd6a124da711f0b","entry":"test_accuracy","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"Utils/Misc.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/Utils/Misc.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ecd6a124da711f0b"}},{"code_sha256_prefix":"b140020120efbf03","entry":"test_loss","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"Utils/Misc.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/Utils/Misc.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b140020120efbf03"}},{"code_sha256_prefix":"349c36e737eadfe1","entry":"unflatten_tensors","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"Communicators/CommHelpers.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/Communicators/CommHelpers.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"349c36e737eadfe1"}},{"code_sha256_prefix":"6e8adbb131ab347a","entry":"compute_accuracy","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"Utils/Misc.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/Utils/Misc.py","link_basis":"harvester_set","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":"6e8adbb131ab347a"}},{"code_sha256_prefix":"c3ed6a3d7f79a305","entry":"partition_dataset","repo":"umd-huang-lab/SWIFT","repo_kind":"official","path":"GDM/DataPartition.py","file_url":"https://github.com/umd-huang-lab/SWIFT/blob/HEAD/GDM/DataPartition.py","link_basis":"harvester_set","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":"c3ed6a3d7f79a305"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}