FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning

Jianqing Zhang, Yang Liu, Yang Hua, Jian Cao
1/6/2024
cs.LGcs.CRcs.DC

Official code: TsingZ0/FedTGP (76 stars, Apache-2.0, last commit 2024-12-27).

Abstract

Recently, Heterogeneous Federated Learning (HtFL) has attracted attention due to its ability to support heterogeneous models and data. To reduce the high communication cost of transmitting model parameters, a major challenge in HtFL, prototype-based HtFL methods are proposed to solely share class representatives, a.k.a, prototypes, among heterogeneous clients while maintaining the privacy of clients' models. However, these prototypes are naively aggregated into global prototypes on the server using weighted averaging, resulting in suboptimal global knowledge which negatively impacts the performance of clients. To overcome this challenge, we introduce a novel HtFL approach called FedTGP, which leverages our Adaptive-margin-enhanced Contrastive Learning (ACL) to learn Trainable Global Prototypes (TGP) on the server. By incorporating ACL, our approach enhances prototype separability while preserving semantic meaning. Extensive experiments with twelve heterogeneous models demonstrate that our FedTGP surpasses state-of-the-art methods by up to 9.08% in accuracy while maintaining the communication and privacy advantages of prototype-based HtFL. Our code is available at https://github.com/TsingZ0/FedTGP.

View on arXivView PDF

Code Implementations(1)

TsingZ0/FedTGPOfficial100%
Apache-2.0

AAAI 2024 accepted paper, FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning

768Shell, PythonDec 17, 20231 years agoApache-2.0
colloborationcommunication-efficientcontrastive-learningfederated-learningheterogeneity+4 more

Similar Papers

Cite this paper

@article{zhang2024fedtgp,
  title  = {FedTGP: Trainable Global Prototypes with Adaptive-Margin-Enhanced Contrastive Learning for Data and Model Heterogeneity in Federated Learning},
  author = {Jianqing Zhang and Yang Liu and Yang Hua and Jian Cao},
  year   = {2024},
  eprint = {2401.03230},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2401.03230v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2401.03230.svg)](https://codeofpaper.com/paper/2401.03230)

Discussion