Abstract
In the context of personalized federated learning, existing approaches train a global model to extract transferable representations, based on which any client could train personalized models with a limited number of data samples. Self-supervised learning is considered a promising direction as the global model it produces is generic and facilitates personalization for all clients fairly. However, when data is heterogeneous across clients, the global model trained using SSL is unable to learn high-quality personalized models. In this paper, we show that when the global model is trained with SSL without modifications, its produced representations have fuzzy class boundaries. As a result, personalized learning within each client produces models with low accuracy. In order to improve SSL towards better accuracy without sacrificing its advantage in fairness, we propose Calibre, a new personalized federated learning framework designed to calibrate SSL representations by maintaining a suitable balance between more generic and more client-specific representations. Calibre is designed based on theoretically-sound properties, and introduces (1) a client-specific prototype loss as an auxiliary training objective; and (2) an aggregation algorithm guided by such prototypes across clients. Our experimental results in an extensive array of non-i.i.d. settings show that Calibre achieves state-of-the-art performance in terms of both mean accuracy and fairness across clients.
Introduction
Federated Learning (FL) enables multiple clients, such as mobile devices or medical institutions, to collaboratively train models without centralizing private data. A primary challenge in this setting is data heterogeneity (non-i.i.d. data), where varying data distributions across clients lead to "model unfairness"—a global model may perform exceptionally for some but poorly for others.
Personalized Federated Learning (pFL) addresses this by allowing each client to adapt a shared global encoder with a personalized local "head." Recently, Self-Supervised Learning (SSL) has emerged as a powerful tool for pFL because it learns generic representations without requiring labels, theoretically promoting fairness. However, vanilla SSL in federated environments often results in feature representations with fuzzy class boundaries. This lack of distinct separation makes it difficult for local classifiers to achieve high accuracy.
The Calibre Framework
To resolve the "fuzzy boundary" issue, the authors introduce Calibre, a framework that calibrates SSL representations during global training. Calibre balances the need for generic features with the necessity of clear class separation for personalization.
The framework introduces two key regularizers:
- Client-Adaptive Prototype Regularizers ($L_n$): During local training, clients use clustering (e.g., KMeans) to generate pseudo-labels and calculate prototypes (centroid feature vectors). The $L_n$ loss encourages local data to cluster tightly around these prototypes, sharpening class boundaries.
- Prototype-Oriented Contrastive Regularizer ($L_p$): This ensures prototypes remain robust across different data augmentations, stabilizing the feature space.
Calibre acts as a versatile wrapper that can be integrated with various SSL algorithms, including SimCLR, BYOL, and MoCoV2.
Experimental Evaluation
Calibre was benchmarked against standard pFL methods using CIFAR-10, CIFAR-100, and STL-10 datasets under diverse non-i.i.d. conditions. STL-10, with its large pool of unlabeled data, served as a critical test for the unsupervised capabilities of the framework.
Key Results: Accuracy and Fairness
Calibre consistently outperformed existing pFL methods. On the challenging STL-10 Dirichlet-skew task, it surpassed the FedBABU baseline by 15.18%. Beyond raw accuracy, Calibre significantly improved fairness, defined as the consistency of performance (lower variance) across all clients.
As shown in the figure above, Calibre variants (represented by red markers) consistently occupy the top-right quadrant of the plots, indicating a superior combination of high mean accuracy and low variance (high fairness) compared to baselines like FedAvg, APFL, and Ditto.
Conclusion
Calibre demonstrates that by incorporating prototype-based calibration, SSL can be effectively adapted for personalized federated learning without sacrificing its inherent fairness. While the approach introduces some computational overhead due to local clustering, the gains in accuracy and cross-client consistency provide a significant step forward for robust, decentralized machine learning.
Code repo: https://github.com/TL-System/plato/tree/main/examples/ssl/calibre
Summary updated