SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2409.19610 · 2024

Federated Learning from Vision-Language Foundation Models: Theoretical Analysis and Method

arXiv · PDF · Open in the Atlas

Code that ran

7 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 7 failures of our instrument; 3 no recorded run), measured 2026-11-22; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2409.19610.json · badge: /api/ran/2409.19610.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
PanBikang/PromptFolio canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
FunctionStatusWhere it lives
average_weights Ran
ran; our contract draft was wrong, not the code
PanBikang/PromptFolio/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from danielmanu93/Conditional-GraphGANFed, is pointer only (licence: NONE) · get_code("ab2485d028020739")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

average_weights Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PanBikang/PromptFolio/fed_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from sajjad-ucsb/pfedmma, is pointer only (licence: NONE) · get_code("697e29e1bbc08d3d")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

basic_clean Ran
ran; our contract draft was wrong, not the code
PanBikang/PromptFolio/clip/simple_tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_pairs Ran
ran; our contract draft was wrong, not the code
PanBikang/PromptFolio/clip/simple_tokenizer.py
pointer only (licence: NONE) · get_code("d919ae32e5e4e616")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

record_net_data_stats Ran
ran; our contract draft was wrong, not the code
PanBikang/PromptFolio/datasplit.py
pointer only (licence: NONE); the stored copy get_code serves, from sajjad-ucsb/pfedmma, is pointer only (licence: NONE) · get_code("49d5e536fa27cddc")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

renormalize Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
PanBikang/PromptFolio/datasplit.py
pointer only (licence: NONE); the stored copy get_code serves, from sajjad-ucsb/pfedmma, is pointer only (licence: NONE) · get_code("03564ffca35b29ce")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

whitespace_clean Ran
ran; our contract draft was wrong, not the code
PanBikang/PromptFolio/clip/simple_tokenizer.py
pointer only (licence: NONE); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

build_model Not yet run
unverified (harvested, no recorded run)
PanBikang/PromptFolio/clip/model.py
pointer only (licence: NONE) · get_code("e2f5c1cc82e9df78")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

cluster_weights Not yet run
unverified (harvested, no recorded run)
PanBikang/PromptFolio/fed_utils.py
pointer only (licence: NONE); the stored copy get_code serves, from sajjad-ucsb/pfedmma, is pointer only (licence: NONE) · get_code("a064a0985b120c40")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
PanBikang/PromptFolio/clip/clip.py
pointer only (licence: NONE) · get_code("fbf8c0143d9c48e3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, PanBikang/PromptFolio when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 10 are also present in other papers whose code we hold (10 with at least one paper dated earlier, 4 the same month, 10 later) and 0 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_pairs 258 other papers
175 dated earlier, 4 the same month, 71 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
154 dated earlier, 4 the same month, 65 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
154 dated earlier, 4 the same month, 52 later, 7 same year, order not determinable, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
load 88 other papers
54 dated earlier, 3 the same month, 24 later, 6 same year, order not determinable, 1 undated
2203.05557 (2022-03)
Conditional Prompt Learning for Vision-Language Models
2206.01986 (2022-06)
Delving into the Openness of CLIP
2207.12819 (2022-07)
S-Prompts Learning with Pre-trained Transformers: An Occam's Razor for Domain Incremental Learning
and 85 more not named here
average_weights 5 other papers
3 dated earlier, 2 later
1908.07873 (2019-08)
Federated Learning: Challenges, Methods, and Future Directions
2402.07002 (2024-02)
Clients Collaborate: Flexible Differentially Private Federated Learning with Guaranteed Improvement of Utility-Privacy Trade-off
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
and 2 more not named here
build_model 5 other papers
2 dated earlier, 3 later
2403.00041 (2024-03)
Global and Local Prompts Cooperation via Optimal Transport for Federated Learning
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
2410.10114 (2024-10)
Mixture of Experts Made Personalized: Federated Prompt Learning for Vision-Language Models
and 2 more not named here
record_net_data_stats 3 other papers
2 dated earlier, 1 later
2211.01572 (2022-11)
FedTP: Federated Learning by Transformer Personalization
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
2507.05394 (2025-07)
pFedMMA: Personalized Federated Fine-Tuning with Multi-Modal Adapter for Vision-Language Models
average_weights 2 other papers
1 dated earlier, 1 later
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
2507.05394 (2025-07)
pFedMMA: Personalized Federated Fine-Tuning with Multi-Modal Adapter for Vision-Language Models
cluster_weights 2 other papers
1 dated earlier, 1 later
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
2507.05394 (2025-07)
pFedMMA: Personalized Federated Fine-Tuning with Multi-Modal Adapter for Vision-Language Models
renormalize 2 other papers
1 dated earlier, 1 later
2405.09771 (2024-05)
Harmonizing Generalization and Personalization in Federated Prompt Learning
2507.05394 (2025-07)
pFedMMA: Personalized Federated Fine-Tuning with Multi-Modal Adapter for Vision-Language Models

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-22.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Integrating pretrained vision-language foundation models like CLIP into federated learning has attracted significant attention for enhancing generalization across diverse tasks. Typically, federated learning of vision-language models employs prompt learning to reduce communication and computational costs, i.e., prompt-based federated learning. However, there is limited theoretical analysis to understand the performance of prompt-based federated learning. In this work, we construct a theoretical analysis framework for prompt-based federated learning via feature learning theory. Specifically, we monitor the evolution of signal learning and noise memorization in prompt-based federated learning, demonstrating that performance can be assessed by the ratio of task-relevant to task-irrelevant coefficients. Furthermore, we draw an analogy between income and risk in portfolio optimization and the task-relevant and task-irrelevant terms in feature learning. Leveraging inspiration from portfolio optimization that combining two independent assets will maintain the income while reducing the risk, we introduce two prompts: global prompt and local prompt to construct a prompt portfolio to balance the generalization and personalization. Consequently, we showed the performance advantage of the prompt portfolio and derived the optimal mixing coefficient. These theoretical claims have been further supported by empirical experiments.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2409.19610")
get_code_for_paper("2409.19610")
have("2409.19610")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2409.19610.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2409.19610.svg)](https://syntology.ai/paper/2409.19610)

Connect an agent — have() is free.