[Paper Review] Prototype Helps Federated Learning: Towards Faster Convergence
This paper proposes a prototype-based federated learning framework that enhances model inference by aggregating class prototypes from clients in the final training round, replacing reliance on the classifier head. By computing and averaging prototypes from the penultimate layer of local models, the method achieves at least 1% higher test accuracy and faster convergence than FedAvg and Local baselines under non-IID data settings on MNIST and Fashion-MNIST.
Federated learning (FL) is a distributed machine learning technique in which multiple clients cooperate to train a shared model without exchanging their raw data. However, heterogeneity of data distribution among clients usually leads to poor model inference. In this paper, a prototype-based federated learning framework is proposed, which can achieve better inference performance with only a few changes to the last global iteration of the typical federated learning process. In the last iteration, the server aggregates the prototypes transmitted from distributed clients and then sends them back to local clients for their respective model inferences. Experiments on two baseline datasets show that our proposal can achieve higher accuracy (at least 1%) and relatively efficient communication than two popular baselines under different heterogeneous settings.
Motivation & Objective
- Address the challenge of poor model inference in federated learning due to non-IID data distributions across clients.
- Reduce bias in model predictions caused by classifier layers in FL, especially under data heterogeneity.
- Improve convergence speed and test accuracy without modifying the standard FL training pipeline except in the final round.
- Introduce a communication-efficient method that leverages class prototypes for inference, minimizing additional overhead.
- Demonstrate that prototype-based inference outperforms standard classifier-based inference in heterogeneous FL settings.
Proposed method
- Clients compute prototypes for each class by averaging the penultimate layer features of samples in the same class from their local data.
- In the final global round, clients upload both their model parameters and class prototypes to the server for aggregation.
- The server computes global prototypes by averaging client-provided prototypes across all clients for each class using Equation (3).
- For inference, the model predicts the class with the minimum L2 distance between the input’s penultimate layer output and the global prototypes, as defined in Equation (4).
- The method integrates seamlessly into standard FL: only the final round modifies the standard communication and inference process.
- The framework uses a 4-layer CNN with two convolutional and two fully connected layers on MNIST and Fashion-MNIST for evaluation.
Experimental results
Research questions
- RQ1Can prototype-based inference improve model accuracy in federated learning under non-IID data distributions?
- RQ2Does aggregating class prototypes in the final round lead to faster convergence compared to standard FL methods?
- RQ3How does the proposed method compare to FedAvg and Local training in terms of accuracy and communication efficiency under varying data skewness?
- RQ4Can prototype aggregation mitigate the bias introduced by the classifier layer in FL models?
- RQ5Is the prototype-based inference strategy effective across different datasets and levels of data heterogeneity?
Key findings
- On MNIST with α = 0.05, the proposed method achieved 18.9% higher accuracy than Local and 2.4% higher than FedAvg.
- On MNIST with α = 0.1, the method achieved 31.5% higher accuracy than Local and 1.0% higher than FedAvg.
- On Fashion-MNIST with α = 0.05, the method achieved 1.4% higher accuracy than Local and 14.3% higher than FedAvg.
- On Fashion-MNIST with α = 0.1, the method achieved 18.4% higher accuracy than Local and 7.4% higher than FedAvg.
- The proposed method consistently achieved at least 1% higher test accuracy than both baselines across all tested non-IID settings.
- The method demonstrated a relatively faster convergence rate in terms of test accuracy per communication round, indicating improved communication efficiency.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.