Organizations: School of Computer Science and Technology, Xi’an Jiaotong University, Xi’an, 710049, Shaanxi, China · Air Traffic Control and Navigation School, Air Force Engineering University, Xi’an, 710051, Shaanxi, China
Federated Prompt Learning (FPL) enables parameter-efficient adaptation of pre-trained Vision-Language Models across decentralized clients without exchanging raw data. To cope with cross-client heterogeneity, existing FPL methods typically pair a globally shared prompt with a client-specific local prompt. However, this design personalizes only at the client level: the same local prompt is applied to all samples of a client, and the global and local prompts are combined in an input-agnostic, fixed manner. Consequently, it overlooks the substantial visual variations among samples within the same client and cannot adjust the balance between shared and personalized knowledge to each input. To address these limitations, we propose Federated Prompt Learning with Instance-Aware Cross-Modal Representations (FedIA), an FPL framework that learns instance-aware cross-modal representations. Specifically, FedIA first uses global text prompts as client-invariant semantic anchors to select image patches most relevant to each candidate class, suppressing distracting regions. The selected visual evidence then conditions the generation of instance-aware local text representations. Finally, an adaptive global-local fusion module calibrates the contributions of local and global text representations for each image-class pair. In this way, FedIA shifts personalization in FPL from the client level to the instance level while preserving the semantic knowledge shared across clients. Extensive experiments under domain shift, pathological label skew, and Dirichlet-based label skew show that FedIA outperforms FPL baselines, with maximum accuracy gains of 1.44%-4.37% over the latest baseline across the three settings. Ablation studies and analyses further verify the complementary contributions of instance-aware representation generation and adaptive global-local fusion.
Figures & tables
Figure 1: Motivation and overview of FedIA. Challenge (1): Existing FPL methods typically use client-level prompts, which lack visual context and fail to capture instance-level variations within each client. Challenge (2): They also rely on input-agnostic fixed global–local fusion, making it difficult to adaptively balance personalization and generalization.
Figure 2: Framework of FedIA. FedIA first performs global-prompt-guided patch selection to retain class-relevant visual patches for each input image. The selected patches are then used by an instance-aware text representation generator to construct image-conditioned local representations. A lightweight gating network further adaptively fuses the instance text features with global knowledge, producing calibrated text representations balance personalized information and shared semantics.
Methods
PACS
A
C
P
S
Avg
ZS-CLIP
97.26±0.00
99.11±0.00
99.95±0.00
87.77±0.00
96.02±0.00
PromptFL
98.63±0.14
99.24±0.05
99.92±0.03
94.47±0.40
98.06±0.11
FedMaPLe
98.47±0.21
99.11±0.19
99.90±0.04
95.43±0.06
98.23±0.12
FedOTP
98.43±0.08
99.18±0.09
99.73±0.07
96.42±0.13
98.44±0.03
FedPGP
98.97±0.08
99.59±0.08
99.95±0.01
96.65±0.10
98.79±0.03
Table 1: Comparison of different methods on PACS under k=49 . Results are reported as mean ± standard deviation of accuracy (%) over three random seeds. Avg denotes the average accuracy across all domains, and the best average results are shown in bold.
Methods
OfficeHome
A
C
P
R
Avg
ZS-CLIP
84.45±0.00
66.14±0.00
89.50±0.00
89.55±0.00
82.41±0.00
PromptFL
87.13±0.75
75.28±0.33
94.74±0.44
92.48±0.26
87.41±0.18
FedMaPLe
85.67±0.71
77.38±0.18
94.58±0.30
92.62±0.28
87.56±0.29
FedOTP
80.50±1.08
76.92±0.21
92.09±0.17
88.02±0.08
84.38±0.17
FedPGP
88.89±0.65
78.32±0.64
95.48±0.37
93.92±0.37
89.15±0.22
Table 2: Comparison of different methods on OfficeHome under k=49 . Results are reported as mean ± standard deviation of accuracy (%) over three random seeds. Avg denotes the average accuracy across all domains, and the best average results are shown in bold.
Methods
Office31
A
D
W
Avg
ZS-CLIP
81.15±0.00
71.63±0.00
73.15±0.00
75.31±0.00
PromptFL
88.43±0.08
86.70±2.01
91.18±1.05
88.77±0.73
FedMaPLe
88.60±0.24
88.59±1.61
91.06±0.71
89.41±0.43
FedOTP
86.33±0.47
89.36±1.87
93.87±0.71
89.85±0.52
FedPGP
90.17±0.43
91.09±1.97
95.40±0.33
92.22±0.67
Table 3: Comparison of different methods on Office31 under k=49 . Results are reported as mean ± standard deviation of accuracy (%) over three random seeds. Avg denotes the average accuracy across all domains, and the best average results are shown in bold.
Figure 3: Test accuracy over communication rounds on PACS, OfficeHome, and Office31 with k=49 .
Methods
Food101
Caltech101
Flowers102
OxfordPets
DTD
ZS-CLIP
85.26±0.00
91.93±0.00
67.88±0.00
89.05±0.00
43.33±0.00
PromptFL
86.76±0.19
93.42±0.15
87.55±2.07
93.43±0.27
56.08±0.57
FedMaPLe
86.66±0.22
93.81±0.15
87.60±1.61
93.48±0.61
55.44±0.78
FedOTP
92.97±0.18
98.13±0.18
98.55±0.14
98.70±0.09
90.53±0.40
FedPGP
87.88±0.78
94.96±1.10
96.97±1.00
94.68±0.57
62.24±2.34
FedTPG
86.53±0.45
93.86±0.46
80.04±4.42
93.07±0.11
55.17±0.75
Table 4: Comparison of different algorithms across pathological label skew datasets under k=49 . Results are reported as mean ± standard deviation of accuracy (%) over three random seeds.
Methods
CIFAR-10
CIFAR-100
β=0.1
β=0.3
β=0.5
β=0.1
β=0.3
β=0.5
ZS-CLIP
87.84±0.38
88.05±0.11
87.84±0.15
64.94±0.13
64.89±0.02
64.90±0.04
PromptFL
89.68±0.67
91.70±0.18
91.80±0.38
70.96±0.15
72.45±0.14
72.89±0.15
FedMaPLe
92.57±0.44
93.44±0.60
93.58±0.97
74.61±0.43
75.63±0.26
75.92±0.36
FedOTP
96.95±0.31
95.07±0.30
93.55±0.38
86.47±0.18
79.05±0.28
75.21±0.33
FedPGP
94.67±0.14
94.20±0.37
93.35±0.73
86.44±0.05
79.09±0.51
75.81±0.43
Table 5: Performance comparison on CIFAR-10 and CIFAR-100 under Dirichlet partitioning with β∈{0.1,0.3,0.5} and k=49 . Results are reported as mean ± standard deviation of accuracy (%) over three random seeds.
Figure 4: Test accuracy over communication rounds on CIFAR-10 under Dirichlet partitioning with β∈{0.1,0.3,0.5} and k=49 .
Figure 5: Test accuracy over communication rounds on CIFAR-100 under Dirichlet partitioning with β∈{0.1,0.3,0.5} and k=49 .
k
ILRG
AGLRF
A
Δ
D
Δ
W
Δ
Avg
Δ
25
88.43
–
86.70
–
91.18
–
88.77
–
✓
90.70
↑2.27
95.82
↑9.12
97.67
↑6.49
94.73
↑5.96
✓
90.40
↑1.97
95.36
↑8.66
97.65
↑6.47
94.47
↑5.70
✓
✓
90.94
↑2.51
95.95
↑9.25
98.08
↑6.90
94.99
↑6.22
49
88.43
–
86.70
–
91.18
–
88.77
–
✓
90.60
↑2.17
95.47
↑8.77
98.01
↑6.83
94.69
↑5.92
Table 6: Ablation study of FedIA on Office31 under k=25 and k=49 . Δ denotes the accuracy improvement over the baseline in percentage points.
ILRG
AGLRF
k=25
k=49
OfficeHome
CIFAR-10
CIFAR-100
OfficeHome
CIFAR-10
CIFAR-100
87.41
–
91.80
–
72.89
–
87.41
–
91.80
–
72.89
–
✓
89.45
↑2.04
93.93
↑2.13
76.83
↑3.94
89.56
↑2.15
93.99
↑2.19
77.03
↑4.14
✓
89.57
↑2.16
94.19
↑2.39
76.17
↑3.28
89.57
↑2.16
94.19
↑2.39
76.17
↑3.28
✓
✓
89.73
↑2.32
94.22
↑2.42
77.53
↑4.64
89.76
↑2.35
94.21
↑2.41
77.57
↑4.68
Table 7: Ablation study of FedIA on OfficeHome, CIFAR-10, and CIFAR-100 under k=25 and k=49 with β=0.5 . The first value in each pair is the average accuracy (%), and the second is the improvement over the baseline in percentage points.
Figure 6: Test accuracy of FedIA on OfficeHome, Office31, and CIFAR-100 under different values of k .
Figure 7: Test accuracy on Food101, Caltech101, and OxfordPets under different numbers of shots.
Center for Computational & Data Sciences (CCDS), Independent University, Bangladesh · Rochester Institute of Technology, USA · Curtin University, Australia
School of Artificial Intelligence, Beihang University Beijing, China · Center for the Applied Statistics, School of Statistics, Renmin University of China Beijing, China · School of Computer Science & Technology, Beijing Jiaotong University Beijing, China +2