FedSSC: Shared Supervised-Contrastive Federated Learning

Sirui Hu, Ling Feng, Xiaohan Yang, Yongchao Chen
1/14/2023
cs.LG

No confident code implementation found for this paper.

Abstract

Federated learning is widely used to perform decentralized training of a global model on multiple devices while preserving the data privacy of each device. However, it suffers from heterogeneous local data on each training device which increases the difficulty to reach the same level of accuracy as the centralized training. Supervised Contrastive Learning which outperform cross-entropy tries to minimizes the difference between feature space of points belongs to the same class and pushes away points from different classes. We propose Supervised Contrastive Federated Learning in which devices can share the learned class-wise feature spaces with each other and add the supervised-contrastive learning loss as a regularization term to foster the feature space learning. The loss tries to minimize the cosine similarity distance between the feature map and the averaged feature map from another device in the same class and maximizes the distance between the feature map and that in a different class. This new regularization term when added on top of the moon regularization term is found to outperform the other state-of-the-art regularization terms in solving the heterogeneous data distribution problem.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{hu2023fedssc,
  title  = {FedSSC: Shared Supervised-Contrastive Federated Learning},
  author = {Sirui Hu and Ling Feng and Xiaohan Yang and Yongchao Chen},
  year   = {2023},
  eprint = {2301.05797},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2301.05797v1}
}

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/2301.05797.svg)](https://codeofpaper.com/paper/2301.05797)

Discussion