{"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/fedperfix-towards-partial-model","title":"FedPerfix: Towards Partial Model Personalization of Vision Transformers in Federated Learning","arxiv_id":"2308.09160","date":"2023-08-17","proceeding":"ICCV 2023 1","authors":["Guangyu Sun","Matias Mendieta","Jun Luo","Shandong Wu","Chen Chen"],"abstract":"Personalized Federated Learning (PFL) represents a promising solution for decentralized learning in heterogeneous data environments. Partial model personalization has been proposed to improve the efficiency of PFL by selectively updating local model parameters instead of aggregating all of them. However, previous work on partial model personalization has mainly focused on Convolutional Neural Networks (CNNs), leaving a gap in understanding how it can be applied to other popular models such as Vision Transformers (ViTs). In this work, we investigate where and how to partially personalize a ViT model. Specifically, we empirically evaluate the sensitivity to data distribution of each type of layer. Based on the insights that the self-attention layer and the classification head are the most sensitive parts of a ViT, we propose a novel approach called FedPerfix, which leverages plugins to transfer information from the aggregated model to the local client as a personalization. Finally, we evaluate the proposed approach on CIFAR-100, OrganAMNIST, and Office-Home datasets and demonstrate its effectiveness in improving the model's performance compared to several advanced PFL methods.","url_abs":"https://arxiv.org/abs/2308.09160v1","url_pdf":"https://arxiv.org/pdf/2308.09160v1.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":"fedperfix-towards-partial-model","repo_url":"https://github.com/imguangyu/fedperfix","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"},{"task_slug":"personalized-federated-learning","task_name":"Personalized Federated Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2308.09160","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2308.09160"}},"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/imguangyu/fedperfix","reach":{"status":"ok"}},{"provenance":"deterministic:regex_extraction","url":"https://github.com/imguangyu/FedPerfix","reach":{"status":"ok"}}],"summary":{"ran":6,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":9,"samples":[{"code_sha256_prefix":"a55dfc497d1c5564","entry":"Adapter","repo":"imguangyu/FedPerfix","repo_kind":"official","path":"system/flcore/trainmodel/prefix.py","file_url":"https://github.com/imguangyu/FedPerfix/blob/HEAD/system/flcore/trainmodel/prefix.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"a55dfc497d1c5564"}},{"code_sha256_prefix":"b153ba20758ae3ea","entry":"AdapterAttention","repo":"imguangyu/FedPerfix","repo_kind":"official","path":"system/flcore/trainmodel/prefix.py","file_url":"https://github.com/imguangyu/FedPerfix/blob/HEAD/system/flcore/trainmodel/prefix.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b153ba20758ae3ea"}},{"code_sha256_prefix":"d8c65acb66fc7e9a","entry":"Prefix","repo":"imguangyu/FedPerfix","repo_kind":"official","path":"system/flcore/trainmodel/prefix.py","file_url":"https://github.com/imguangyu/FedPerfix/blob/HEAD/system/flcore/trainmodel/prefix.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"d8c65acb66fc7e9a"}},{"code_sha256_prefix":"b3f4ec7cb5693a6e","entry":"VanillaPrefix","repo":"imguangyu/FedPerfix","repo_kind":"official","path":"system/flcore/trainmodel/prefix.py","file_url":"https://github.com/imguangyu/FedPerfix/blob/HEAD/system/flcore/trainmodel/prefix.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b3f4ec7cb5693a6e"}},{"code_sha256_prefix":"71e6f2c8fedcc42c","entry":"dirichletSplit","repo":"imguangyu/fedperfix","repo_kind":"official","path":"dataset/generate_office_home.py","file_url":"https://github.com/imguangyu/fedperfix/blob/HEAD/dataset/generate_office_home.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":"71e6f2c8fedcc42c"}},{"code_sha256_prefix":"17a3a3728f7be3ee","entry":"split_data","repo":"imguangyu/fedperfix","repo_kind":"official","path":"dataset/utils/dataset_utils.py","file_url":"https://github.com/imguangyu/fedperfix/blob/HEAD/dataset/utils/dataset_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":"17a3a3728f7be3ee"}},{"code_sha256_prefix":"133610e5c90dc056","entry":"isNegligible","repo":"imguangyu/fedperfix","repo_kind":"official","path":"dataset/generate_office_home.py","file_url":"https://github.com/imguangyu/fedperfix/blob/HEAD/dataset/generate_office_home.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":"133610e5c90dc056"}},{"code_sha256_prefix":"b6721191000ff6c3","entry":"separate_data","repo":"imguangyu/fedperfix","repo_kind":"official","path":"dataset/utils/dataset_utils.py","file_url":"https://github.com/imguangyu/fedperfix/blob/HEAD/dataset/utils/dataset_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":"b6721191000ff6c3"}},{"code_sha256_prefix":"eadcb12921822fc2","entry":"split2clientsofficehome","repo":"imguangyu/fedperfix","repo_kind":"official","path":"dataset/generate_office_home.py","file_url":"https://github.com/imguangyu/fedperfix/blob/HEAD/dataset/generate_office_home.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":"eadcb12921822fc2"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}