{"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/pfedmma-personalized-federated-fine-tuning","title":"pFedMMA: Personalized Federated Fine-Tuning with Multi-Modal Adapter for Vision-Language Models","arxiv_id":"2507.05394","date":"2025-07-07","proceeding":null,"authors":["Sajjad Ghiasvand","Mahnoosh Alizadeh","Ramtin Pedarsani"],"abstract":"Vision-Language Models (VLMs) like CLIP have demonstrated remarkable generalization in zero- and few-shot settings, but adapting them efficiently to decentralized, heterogeneous data remains a challenge. While prompt tuning has emerged as a popular parameter-efficient approach in personalized federated learning, existing methods often sacrifice generalization in favor of personalization, struggling particularly on unseen classes or domains. In this work, we propose pFedMMA, the first personalized federated learning framework that leverages multi-modal adapters for vision-language tasks. Each adapter contains modality-specific up- and down-projection layers alongside a globally shared projection that aligns cross-modal features. Our asymmetric optimization strategy allows clients to locally adapt to personalized data distributions while collaboratively training the shared projection to improve global generalization. This design is also communication-efficient, as only the shared component is exchanged during rounds. Through extensive experiments across eleven datasets, including domain- and label-shift scenarios, we show that pFedMMA achieves state-of-the-art trade-offs between personalization and generalization, outperforming recent federated prompt tuning methods. The code is available at https://github.com/sajjad-ucsb/pFedMMA.","url_abs":"https://arxiv.org/abs/2507.05394v1","url_pdf":"https://arxiv.org/pdf/2507.05394v1.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":"pfedmma-personalized-federated-fine-tuning","repo_url":"https://github.com/sajjad-ucsb/pfedmma","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":[{"method_slug":"adapter","method_name":"Adapter"},{"method_slug":"clip","method_name":"CLIP"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2507.05394","atlas_url":"https://app.syntology.ai/?focus=2507.05394","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2507.05394"}},"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/sajjad-ucsb/pfedmma","reach":{"status":"ok"}}],"summary":{"ran_draft_wrong":1,"unverified":10},"by_repo_kind":{"official":{"samples":11,"ran":1,"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":11,"samples":[{"code_sha256_prefix":"ab2485d028020739","entry":"average_weights","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/utils.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"ab2485d028020739"}},{"code_sha256_prefix":"697e29e1bbc08d3d","entry":"average_weights","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"fed_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/fed_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":"697e29e1bbc08d3d"}},{"code_sha256_prefix":"16e4a4653cfc7ce3","entry":"build_model","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"clip/model.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/clip/model.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":"16e4a4653cfc7ce3"}},{"code_sha256_prefix":"a064a0985b120c40","entry":"cluster_weights","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"fed_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/fed_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":"a064a0985b120c40"}},{"code_sha256_prefix":"0791530eb1d82a07","entry":"cosine_match_weights","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"fed_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/fed_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":"0791530eb1d82a07"}},{"code_sha256_prefix":"db906185e173ed32","entry":"load","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"clip/clip.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/clip/clip.py","link_basis":"harvester_set","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":"db906185e173ed32"}},{"code_sha256_prefix":"bed6b7031114cf91","entry":"prepare_data_domainNet","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/data_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":"bed6b7031114cf91"}},{"code_sha256_prefix":"c4ffa511340e3179","entry":"prepare_data_domainNet_partition_client_train","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/data_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":"c4ffa511340e3179"}},{"code_sha256_prefix":"235669fb66eef25a","entry":"prepare_data_domainNet_partition_train","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/data_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":"235669fb66eef25a"}},{"code_sha256_prefix":"49d5e536fa27cddc","entry":"record_net_data_stats","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"datasplit.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/datasplit.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":"49d5e536fa27cddc"}},{"code_sha256_prefix":"03564ffca35b29ce","entry":"renormalize","repo":"sajjad-ucsb/pfedmma","repo_kind":"official","path":"datasplit.py","file_url":"https://github.com/sajjad-ucsb/pfedmma/blob/HEAD/datasplit.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":"03564ffca35b29ce"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}