FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning
Jianqing ZhangYang LiuYang HuaJian Cao
Proposes a heterogeneous federated learning framework that replaces naive prototype averaging with server-side trainable global prototypes optimized through adaptive-margin contrastive learning, boosting classification accuracy across diverse client models while preserving communication efficiency and privacy.
Modern distributed artificial intelligence systems increasingly face two simultaneous challenges: protecting the privacy and intellectual property of participating clients while accommodating diverse local model architectures and skewed data distributions. While heterogeneous federated learning allows participants to collaborate without exposing their private models or raw data, existing lightweight prototype-based methods rely on naive weighted-averaging to aggregate class summaries. This conventional averaging causes separation margins between classes to shrink, degrades performance, and inadvertently leaks sensitive local data distribution information to the central server.
The article introduces and evaluates FedTGP, a novel framework designed to overcome these limitations by learning trainable global prototypes on the central server through adaptive-margin-enhanced contrastive learning. The primary objective is to demonstrate that FedTGP can enhance class separability and overall model accuracy across heterogeneous clients without increasing communication overhead or exposing private model weights and data distributions.
To establish credibility, the authors conducted extensive empirical evaluations across four standard image classification datasets (CIFAR-10, CIFAR-100, Flowers102, and Tiny-ImageNet) involving up to 100 simulated clients. The testing environment spanned twelve heterogeneous model architectures, including standard convolutional neural networks, GoogleNet, MobileNet v2, and various ResNet variants. The evaluations tested both pathological and practical non-uniform data splits, comparing FedTGP against six state-of-the-art baselines across varying feature dimensions, local training epochs, and partial client participation levels.
The empirical findings demonstrate substantial performance gains. First, FedTGP outperformed all baseline methods across every evaluated dataset, exceeding its primary prototype-based predecessor, FedProto, by up to 13.85% in standard setups and outperforming other leading approaches by up to 9.08% in accuracy. Second, in extreme heterogeneity scenarios where both feature extractors and classifiers differed across clients, FedTGP maintained its robustness, outperforming FedProto by 18.96%. Third, the framework demonstrated resilience to network scaling; under partial participation with 100 clients, FedTGP maintained a 5.48% accuracy lead over the best alternative. Finally, FedTGP maintained a minimal communication footprint of approximately 1.48 million parameters per round—substantially lower than distillation-based methods requiring up to 36.99 million parameters—while eliminating the need for clients to share sample counts.
These results demonstrate that server-side trainable prototype learning effectively decouples local model optimization from global aggregation while strengthening inter-class decision boundaries. For organizations deploying federated systems, adopting this approach mitigates data leakage risks, preserves proprietary model intellectual property, and reduces network bandwidth costs without sacrificing model accuracy, especially in complex classification tasks with many categories.
Organizations implementing federated learning across heterogeneous devices should consider adopting adaptive-margin prototype frameworks over standard averaging protocols or bandwidth-heavy knowledge distillation methods. When deploying FedTGP, engineering teams should tune server training iterations and distance thresholds to balance computational efficiency with prototype stability, noting that modest server training budgets (e.g., 100 epochs) yield near-optimal accuracy. While the experimental evidence is highly consistent across evaluated computer vision benchmarks, stakeholders should exercise cautious optimism and conduct targeted pilot tests before deploying the framework to non-vision modalities, real-world network latency conditions, or settings with extreme label corruption.
- Paper: Model-Contrastive Federated Learning, Qinbin Li et al. (2021). Introduces model-contrastive learning in federated settings to correct client drift under data heterogeneity, establishing the foundational paradigm that FedTGP extends to server-side trainable prototypes.
- Paper: Communication-Efficient Learning of Deep Networks from Decentralized Data, H. B. McMahan et al. (2016). Introduces FederatedAveraging (FedAvg), the canonical baseline for distributed local optimization whose limitations under severe data and model heterogeneity motivated prototype-based federated learning.
- Paper: Federated Optimization in Heterogeneous Networks, Tian Li et al. (2018). Presents FedProx to handle statistical and system heterogeneity via proximal regularization, framing the core challenges of client drift that prototype-based methods address.
- Paper: Ensemble Distillation for Robust Model Fusion in Federated Learning, Tao Lin et al. (2020). Develops ensemble distillation for model-heterogeneous federated learning, providing essential background on training across disparate client architectures without parameter averaging.
- Paper: Federated Learning with Personalization Layers, Manoj Ghuhan Arivazhagan et al. (2019). Proposes decoupling representation feature extractors from classifier heads in heterogeneous federated learning, laying groundwork for prototype sharing across non-identical clients.
- Paper: Federated Learning with Non-IID Data, Yue Zhao et al. (2018). Analyzes the mathematical mechanisms of weight divergence caused by non-IID client partitions, motivating the shift toward representation and prototype aggregation.
No sufficiently relevant recommendations were found.
