Introduction
Federated Learning (FL) typically assumes a homogeneous environment where all participating clients utilize identical model architectures. However, real-world deployments often face Heterogeneous Federated Learning (HtFL) challenges, where clients possess diverse hardware capabilities or proprietary model designs. Prototype-based methods, such as FedProto, have emerged as a communication-efficient solution. Instead of sharing model weights, clients transmit class prototypes—mean feature vectors for each class. While effective, these methods suffer from a critical limitation: Prototype Margin Shrink.
The Prototype Margin Shrink Problem
The core issue identified by the authors is that simple averaging of client prototypes on the server leads to "mushy," overlapping global representatives. Because different model architectures extract features differently, their respective feature spaces are not naturally aligned. When the server averages these disparate vectors, the resulting global prototypes lose their discriminative power.
As shown in the figure above, even when individual clients achieve high feature separation (left), the aggregated global prototypes exhibit significantly reduced margins (right). This lack of separability provides poor guidance to clients in subsequent training rounds, hindering overall performance.
The FedTGP Framework
To address this, the authors propose FedTGP (Trainable Global Prototypes), which shifts the server's role from a passive aggregator to an active optimizer. The framework introduces three primary components:
- Trainable Global Prototypes (TGP): The server maintains a lightweight, two-layer fully connected network. This TGP model is trained to generate global prototypes that are optimized for the entire federation's feature space.
- Adaptive-Margin-Enhanced Contrastive Learning (ACL): The TGP is optimized using a contrastive loss function. This objective pulls global prototypes toward their corresponding client-side class representatives while simultaneously pushing them away from prototypes of different classes.
- Adaptive Margin Mechanism: To prevent "over-pushing" prototypes during early, noisy training stages, FedTGP employs an adaptive margin $\delta(t)$. This margin is dynamically calculated based on the maximum separation currently achieved by the clients, ensuring the server-side optimization remains synchronized with client-side capabilities.
Crucially, FedTGP maintains high privacy standards. Unlike previous methods, it does not require clients to share their local data distributions (sample counts per class), mitigating potential distribution inference attacks.
Experimental Evaluation
The researchers evaluated FedTGP against state-of-the-art (SOTA) methods using four image classification benchmarks: CIFAR-10, CIFAR-100, Flowers102, and Tiny-ImageNet. Testing covered both "Pathological" (extreme non-IID) and "Practical" (Dirichlet) data distributions across a heterogeneous model group (HtFE8) including CNNs, ResNets, GoogleNet, and MobileNetV2.
Key Results
FedTGP demonstrated significant performance gains:
- Accuracy Improvements: FedTGP outperformed SOTA methods by up to 9.08%.
- Superiority over FedProto: In highly heterogeneous settings, FedTGP surpassed its predecessor, FedProto, by 18.96%.
- Robustness: Performance remained stable even as the variety of client model architectures increased.
As illustrated in the figure above, FedTGP successfully preserves the margin in the global prototype space, ensuring that the global knowledge shared with clients remains highly discriminative.
Conclusion
FedTGP effectively resolves the prototype margin shrink problem in HtFL by introducing trainable server-side prototypes and adaptive contrastive learning. By treating the server as an active optimizer rather than a simple mailbox, FedTGP achieves substantial accuracy boosts with minimal communication overhead. Future work may explore extending this approach to non-image modalities such as NLP or time-series data.
Summary updated