From Classifier Heads to Encoder Prototypes: Personalized Federated Learning with Head-Derived Clustering
Organizations: Sharif University of Technology · Tehran Institute for Advanced Studies (TeIAS)
Abstract
Personalized federated learning must decide which clients should share representations. We introduce HDC-FL (Head-Derived Clustering for Personalized Federated Learning), which reads that decision off a signal shared-encoder training already produces: the client-specific classifi- er heads. At periodic refresh rounds the server projects the cached heads into a normalized low-rank descriptor space, groups the descriptors, builds one encoder prototype per group from the cached client encoders, and returns to each client a soft mixture of those prototypes paired with its own unchanged head. Client-specific heads are never averaged or distributed to oth- er clients; the shared-encoder trajectory is left intact; and no second optimization trajectory, additional local objective, or post-training fine-tuning stage is required. Across 11 CIFAR-10 and CIFAR-100 configurations covering label-subset, Dirichlet and rotation heterogeneity with ResNet-18 and MobileNetV2 encoders, HDC-FL is competitive with the strongest personalized and clustered baselines in macro-averaged mean accuracy and attains the numerically highest macro-averaged worst-client and bottom-20% accuracy among the evaluated methods. The tail results distinguish methods that look similar when only their means are compared. A controlled donor-swap diagnostic further finds positive donor-ranking associations between head similarity and encoder compatibility in all three settings tested, most clearly under covariate shift.
Figures & tables
| Method | C10 LS2 | C10 LS3 | C10 Rot | C100 | C100 | C100 LS2 | C100 LS3 | C100 Rot | Avg. Rank |
|---|---|---|---|---|---|---|---|---|---|
| FedAvg-SE | 97.17 0.62 | 95.51 0.71 | 86.42 0.80 | 81.15 1.06 | 72.09 0.34 | 81.23 0.63 | 76.88 0.17 | 57.42 0.68 | 7.25 |
| FedBABU | 96.99 0.63 | 97.18 1.35 | 90.05 0.43 | 87.73 1.51 | 82.19 0.16 | 84.81 4.02 | 82.33 3.92 | 68.54 1.91 | 2.12 |
| FedALA | 96.51 0.65 | 95.50 0.85 | 86.73 0.03 | 81.45 1.39 | 74.67 0.03 | 80.96 0.14 | 77.75 0.40 | 63.86 0.21 | 6.88 |
| FedCE | 96.89 0.02 | 95.92 0.12 | 86.52 0.28 | 82.22 0.41 | 77.19 0.06 | 82.29 0.76 | 78.98 0.45 | 64.37 0.26 | 4.50 |
| FedSoft | 96.40 0.09 | 95.44 1.39 | 84.41 0.48 | 81.90 0.94 | 75.41 0.22 | 81.63 0.25 | 79.23 0.04 | 61.06 0.59 | 6.88 |
| IFCA | 96.36 1.05 | 94.38 0.42 | 87.18 0.13 | 80.12 0.28 | 75.93 0.55 | 80.61 1.00 | 78.40 0.23 | 63.69 0.46 | 7.62 |
| Method | Mean | Worst | Bot.20% | Gap | Tail rank |
|---|---|---|---|---|---|
| FedAvg-SE | 83.35 | 76.95 | 78.95 | 11.15 | 6.00 |
| FedBABU | 87.58 | 55.32 | 73.78 | 38.37 | 8.18 |
| FedALA | 84.19 | 77.68 | 79.75 | 11.07 | 5.73 |
| FedCE | 85.03 | 78.73 | 80.69 | 10.94 | 3.73 |
| FedSoft | 84.15 | 76.52 | 79.31 | 12.38 | 6.00 |
| IFCA | 83.64 | 71.25 | 77.58 | 17.90 | 7.27 |
| Variant | Mean | Worst | Bot.20% |
|---|---|---|---|
| No prototype | 77.57 0.40 | 69.85 3.97 | 72.20 1.46 |
| One prototype | 80.30 0.34 | 72.05 2.90 | 74.93 1.16 |
| Head-derived, | 81.04 0.73 | 72.57 1.67 | 75.47 1.10 |
| C10 LS3 | C100 LS3 | C100 Rot | |
|---|---|---|---|
| Spearman (loss) | 0.193 | 0.117 | 0.243 |
| AUROC (loss) | 0.665 | 0.565 | 0.783 |
| Beneficial-donor rate | 0.156 | 0.711 | 0.245 |
| AP | 0.513 | 0.782 | 0.642 |
| AP lift over prevalence | 0.357 | 0.071 | 0.397 |
| Top-1 random (pp) | 1.57 | 0.41 | 2.50 |
Appendix figures & tables14 assets
Supplementary material from the paper’s appendix.
Appendix
| Method | Method-specific configuration |
|---|---|
| FedAvg-SE | The encoder is aggregated across participating clients using sample-count weighting, while each client retains its own classifier head. No additional personalization stage is applied. |
| FedBABU | The classifier is kept fixed during federated training and only the encoder/body is locally optimized and aggregated. Final personalization uses 5 epochs of full-model fine-tuning with SGD, learning rate , momentum , and weight decay . |
| FedALA | ALA depth , local-data fraction , and weight-learning rate . Initial ALA weight optimization is capped at 50 epochs with patience 3 and tolerance ; subsequent rounds use one ALA weight-update epoch. |
| IFCA | Uses cluster models. Client-to-cluster assignment is based on model loss evaluated on at most 512 local samples. |
| PACFL | Client subspace dimension , hierarchical-clustering threshold radians, average linkage, and one-shot client clustering. |
| FedSoft | Uses cluster centers, proximal coefficient , importance-estimation interval , smoothing constant , and client-selection size . |
| Method | CIFAR-100 LS3 | CIFAR-10 | CIFAR-10 LS3 | Avg. Rank |
|---|---|---|---|---|
| FedAvg-SE | 77.43 0.37 | 95.85 0.28 | 95.25 0.74 | 6.67 |
| FedBABU | 81.27 1.89 | 96.26 1.19 | 96.05 1.42 | 2.33 |
| FedALA | 77.77 0.27 | 95.99 0.10 | 94.87 1.17 | 5.67 |
| FedCE | 78.87 0.43 | 96.12 0.38 | 95.96 0.51 | 4.00 |
| FedSoft | 79.57 0.48 | 95.07 1.13 | 95.52 0.39 | 5.33 |
| IFCA | 77.69 0.49 | 90.90 1.54 | 94.83 0.65 | 8.67 |
| Method | C10 LS2 | C10 LS3 | C10 Rot | C100 | C100 | C100 LS2 | C100 LS3 | C100 Rot | M-C100 LS3 | M-C10 | M-C10 LS3 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| FedAvg-SE | 88.73 5.75 | 90.23 1.03 | 79.53 4.86 | 74.29 0.82 | 67.10 0.69 | 75.70 0.69 | 68.06 1.50 | 52.29 1.28 | 72.45 0.60 | 87.92 2.67 | 90.17 0.18 |
| FedBABU | 77.64 10.88 | 82.66 13.87 | 75.68 3.07 | 55.35 26.75 | 34.07 6.89 | 51.94 31.17 | 35.67 5.29 | 20.04 2.68 | 27.40 6.79 | 76.28 24.78 | 71.84 18.52 |
| FedALA | 86.89 7.23 | 90.20 2.12 | 80.41 4.74 | 72.97 1.82 | 68.51 1.17 | 74.21 2.59 | 72.82 0.84 | 57.50 0.26 | 72.57 0.79 | 88.87 0.48 | 89.53 2.33 |
| FedCE | 88.33 5.50 | 91.50 0.28 | 79.46 4.10 | 75.33 1.96 | 72.30 1.19 | 75.92 0.07 | 72.29 2.25 | 57.76 0.76 | 73.53 1.19 | 88.28 2.07 | 91.36 0.79 |
| FedSoft | 87.55 4.39 | 87.73 3.01 | 75.76 4.87 | 76.05 0.55 | 66.92 0.58 | 75.64 0.14 | 72.14 0.69 | 54.98 1.36 | 73.90 1.97 | 82.63 6.61 | 88.40 2.80 |
| IFCA | 86.15 8.06 | 69.67 26.74 | 81.83 2.86 | 73.27 0.01 | 69.68 0.27 | 73.11 0.49 | 68.78 8.28 | 56.89 3.31 | 70.65 2.51 | 47.28 13.44 | 86.41 4.12 |
| Method | C10 LS2 | C10 LS3 | C10 Rot | C100 | C100 | C100 LS2 | C100 LS3 | C100 Rot | M-C100 LS3 | M-C10 | M-C10 LS3 |
|---|---|---|---|---|---|---|---|---|---|---|---|
| FedAvg-SE | 92.05 1.36 | 91.84 0.71 | 82.45 2.19 | 75.96 1.24 | 68.10 0.16 | 77.20 0.39 | 71.29 0.29 | 53.68 1.77 | 73.74 0.20 | 90.26 1.23 | 91.91 0.54 |
| FedBABU | 89.45 4.26 | 91.59 5.49 | 82.78 1.30 | 75.71 10.75 | 68.89 0.82 | 64.71 20.65 | 59.18 18.77 | 47.08 10.85 | 56.46 9.34 | 88.73 5.46 | 87.03 7.76 |
| FedALA | 91.64 2.19 | 91.58 2.75 | 82.78 1.97 | 74.92 1.38 | 69.90 1.20 | 76.92 1.30 | 73.85 0.01 | 59.89 0.10 | 74.27 1.04 | 90.86 0.99 | 90.67 1.95 |
| FedCE | 92.11 1.98 | 92.55 0.37 | 81.61 3.01 | 77.17 0.79 | 73.39 1.52 | 77.74 0.62 | 74.15 1.02 | 59.88 0.18 | 74.99 1.12 | 91.00 1.45 | 92.94 0.57 |
| FedSoft | 90.48 1.67 | 91.20 2.26 | 78.41 2.87 | 77.01 0.84 | 70.82 1.10 | 77.36 0.18 | 74.41 0.36 | 56.73 1.22 | 75.73 0.92 | 88.32 3.37 | 91.91 1.09 |
| IFCA | 90.35 4.31 | 86.74 5.44 | 84.12 1.78 | 75.84 0.04 | 71.63 0.09 | 74.58 1.31 | 73.84 2.27 | 59.78 0.73 | 72.80 0.63 | 73.45 1.85 | 90.31 0.43 |
| Method | C10 LS2 | C10 LS3 | C10 Rot | C100 | C100 | C100 LS2 | C100 LS3 | C100 Rot | M-C100 LS3 | M-C10 | M-C10 LS3 | Macro |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| FedAvg-SE | 11.17 | 8.70 | 11.45 | 13.79 | 10.06 | 11.90 | 15.26 | 9.89 | 9.62 | 12.08 | 8.69 | 11.15 |
| FedBABU | 22.36 | 17.24 | 18.70 | 38.38 | 54.44 | 42.58 | 55.82 | 58.12 | 62.91 | 23.72 | 27.78 | 38.37 |
| FedALA | 12.84 | 8.05 | 11.55 | 16.47 | 11.59 | 12.13 | 9.16 | 10.51 | 9.35 | 11.13 | 8.95 | 11.07 |
| FedCE | 11.67 | 7.87 | 13.39 | 13.81 | 8.57 | 12.67 | 11.21 | 11.86 | 10.05 | 11.72 | 7.48 | 10.94 |
| FedSoft | 12.34 | 11.29 | 14.03 | 12.94 | 12.23 | 12.23 | 12.06 | 10.65 | 10.72 | 17.37 | 10.31 | 12.38 |
| IFCA | 13.54 | 28.94 | 10.52 | 13.26 | 10.80 | 14.32 | 14.13 | 12.46 | 14.31 | 52.72 | 11.91 | 17.90 |
| Descriptor | Mean | Sil. | ARI |
|---|---|---|---|
| Raw head | 85.27 0.09 | 0.027 0.002 | 0.152 0.065 |
| Low rank ( ) | 85.24 0.31 | 0.108 0.012 | 0.401 0.080 |
| Rank | Mean | Worst | Bot.20% | Silhouette |
|---|---|---|---|---|
| 8 | 40.85 | 35.57 | 36.71 | 0.195 |
| 20 | 40.96 | 35.38 | 36.36 | 0.126 |
| 40 | 40.24 | 34.02 | 35.91 | 0.090 |
| 60 | 40.50 | 34.05 | 35.71 | 0.068 |
| 80 | 40.23 | 34.39 | 35.84 | 0.059 |
| Membership | Mean | Worst | Bot.20% |
|---|---|---|---|
| Hard assignment | 78.89 0.46 | 73.55 1.18 | 75.39 0.52 |
| Soft mixture | 79.74 0.40 | 74.63 0.26 | 76.34 0.46 |
| Mean | Worst | Bot.20% | |
|---|---|---|---|
| 0.0 | 76.95 | 71.93 | 72.58 |
| 0.5 | 83.72 | 79.92 | 80.34 |
| 1.0 | 85.22 | 80.12 | 81.77 |
| Setting | Q1 | Q2 | Q3 | Q4 | Q5 |
|---|---|---|---|---|---|
| C10 LS3 | |||||
| (0.35) | (0.41) | (0.42) | (0.42) | (0.55) | |
| C100 LS3 | |||||
| (0.27) | (0.26) | (0.25) | (0.24) | (0.26) | |
| C100 Rot | |||||
| (0.32) | (0.29) | (0.23) | (0.26) | (0.26) |
| C10 LS3 | C100 LS3 | C100 Rot | |
| Spearman , low rank | 0.193 | 0.117 | 0.243 |
| Spearman , raw | 0.199 | 0.050 | 0.288 |
| Difference | |||
| AUROC, low rank | 0.665 | 0.565 | 0.783 |
| AUROC, raw | 0.677 | 0.502 | 0.793 |
| Difference |
Federated Learning
Federated learning trains shared models across data holders without requiring them to pool their raw data.
See all 961 papers