Skip to main content
QUICK REVIEW

[Paper Review] FedProc: Prototypical Contrastive Federated Learning on Non-IID data

Xutong Mu, Yulong Shen|arXiv (Cornell University)|Sep 25, 2021
Privacy-Preserving Technologies in DataComputer Science11 citations
TL;DR

FedProc proposes a novel federated learning framework that uses global class prototypes as global knowledge to correct local model training on non-IID data. By introducing a prototypical contrastive loss and a hybrid local network architecture, FedProc aligns local objectives with global optima, achieving state-of-the-art accuracy improvements of 1.6% to 7.9% across CIFAR-10, CIFAR-100, and Tiny-ImageNet with acceptable computational cost.

ABSTRACT

Federated learning allows multiple clients to collaborate to train high-performance deep learning models while keeping the training data locally. However, when the local data of all clients are not independent and identically distributed (i.e., non-IID), it is challenging to implement this form of efficient collaborative learning. Although significant efforts have been dedicated to addressing this challenge, the effect on the image classification task is still not satisfactory. In this paper, we propose FedProc: prototypical contrastive federated learning, which is a simple and effective federated learning framework. The key idea is to utilize the prototypes as global knowledge to correct the local training of each client. We design a local network architecture and a global prototypical contrastive loss to regulate the training of local models, which makes local objectives consistent with the global optima. Eventually, the converged global model obtains a good performance on non-IID data. Experimental results show that, compared to state-of-the-art federated learning methods, FedProc improves the accuracy by $1.6\%\sim7.9\%$ with acceptable computation cost.

Motivation & Objective

  • To address the performance degradation in federated learning caused by non-i.i.d. data distributions across clients.
  • To improve model generalization and convergence by aligning local training objectives with global optima.
  • To leverage client-specific knowledge through global class prototypes for better representation learning.
  • To maintain computational efficiency while significantly outperforming existing state-of-the-art FL methods on non-IID benchmarks.

Proposed method

  • FedProc introduces a global prototypical contrastive loss that pulls each sample’s representation toward its global class prototype and pushes it away from other class prototypes.
  • The framework uses a hybrid local network architecture that jointly optimizes feature learning and classification using a weighted combination of contrastive and cross-entropy losses.
  • Global class prototypes are computed on the server by aggregating client-level prototypes and then broadcast back to clients for local training correction.
  • The loss function dynamically adjusts the trade-off between feature learning and classifier learning via a coefficient α = 1 - t/T, favoring representation learning early in training.
  • Clients use the global prototypes as inductive bias to stabilize local training and reduce drift from the global optimum.
  • The method is compatible with standard FedAvg communication protocols, enabling seamless integration into existing FL pipelines.
Figure 1: Federated learning process.
Figure 1: Federated learning process.

Experimental results

Research questions

  • RQ1Can global class prototypes serve as effective inductive bias to correct local model drift in non-IID federated learning?
  • RQ2How does prototypical contrastive learning improve generalization and convergence in federated settings with skewed data?
  • RQ3What is the impact of dynamically adjusting the loss weighting between representation and classification learning in local training?
  • RQ4How does FedProc scale with increasing numbers of clients and communication rounds on non-IID data?

Key findings

  • On CIFAR-100 with 100 clients, FedProc achieves 70.6% top-1 accuracy, significantly outperforming the previous state-of-the-art method (MOON) at 61.8%.
  • FedProc improves accuracy by 7.9% on Tiny-ImageNet and 1.6% on CIFAR-10 compared to existing SOTA methods.
  • The method maintains low computational overhead, with training time per round comparable to FedAvg and superior to SCAFFOLD and MOON on larger datasets like Tiny-ImageNet.
  • FedProc demonstrates excellent scalability, achieving 72.5% accuracy on CIFAR-100 with 100 clients and 500 communication rounds, outperforming MOON by 9.3%.
  • Ablation studies confirm that the dynamic loss weighting (α = 1 - t/T) improves performance over fixed or two-stage training strategies.
  • The global prototypical contrastive loss effectively aligns local objectives with global optima, reducing model drift and enhancing generalization on non-IID data.
Figure 3: Overview of the local network architecture in FedProc. The feature extraction network (including the base encoder and the projection head) extracts the representation $z$ , which is used to calculate the global prototypical contrastive loss $\ell_{gpc}$ . By inputting the representation $z
Figure 3: Overview of the local network architecture in FedProc. The feature extraction network (including the base encoder and the projection head) extracts the representation $z$ , which is used to calculate the global prototypical contrastive loss $\ell_{gpc}$ . By inputting the representation $z

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.