FedPDC:Federated Learning for Public Dataset Correction
Yuquan Zhang, Yongquan Zhang

TL;DR
FedPDC introduces a novel federated learning algorithm that improves global model accuracy in highly unbalanced data scenarios by optimizing local model aggregation and loss functions, all while preserving client privacy and maintaining communication efficiency.
Contribution
The paper proposes FedPDC, a new federated learning method that enhances model accuracy in Non-IID data environments through shared industry datasets and optimized aggregation.
Findings
Significant accuracy improvements in unbalanced data scenarios.
Maintains privacy of client data during training.
No additional communication costs introduced.
Abstract
As people pay more and more attention to privacy protection, Federated Learning (FL), as a promising distributed machine learning paradigm, is receiving more and more attention. However, due to the biased distribution of data on devices in real life, federated learning has lower classification accuracy than traditional machine learning in Non-IID scenarios. Although there are many optimization algorithms, the local model aggregation in the parameter server is still relatively traditional. In this paper, a new algorithm FedPDC is proposed to optimize the aggregation mode of local models and the loss function of local training by using the shared data sets in some industries. In many benchmark experiments, FedPDC can effectively improve the accuracy of the global model in the case of extremely unbalanced data distribution, while ensuring the privacy of the client data. At the same time,…
| layer name | output size | 18-layer | 50-layer |
|---|---|---|---|
| conv1 | 112112 | 77, 64, stride 2 | |
| conv2_x | 5656 | 33 max pool, stride 2 | |
| 2 | 3 | ||
| conv3_x | 2828 | 2 | 4 |
| conv4_x | 1414 | 2 | 6 |
| conv5_x | 77 | 2 | 3 |
| 11 | average pool, 1000-d fc, softmax | ||
| FLOPs | 1.8 | 3.8 | |
| Method | CNN, b=0.1 | CNN, b=0.3 | ResNet50, b=0.1 |
|---|---|---|---|
| FedPDC | 64.3% | 67.4% | 86.1% |
| MOON | 64.0% | 66.8% | 83.2% |
| FedAvg | 62.1% | 66.1% | 84.0% |
| FedProx | 62.9% | 66.3% | 84.2% |
| SOLO | 28.4% | \ | \ |
| Method | CNN, b=0.1 | CNN, b=0.3 | CNN, b=0.5 |
|---|---|---|---|
| FedPDC | 28.8% | 31.3% | 31.5% |
| MOON | 28.8% | 30.7% | 31.4% |
| FedAvg | 28.3% | 30.3% | 31.2% |
| FedProx | 28.0% | 29.5% | 31.2% |
| SOLO | 15.8% | \ | \ |
| Method | FedPDC | MOON | FedAvg | FedProx |
|---|---|---|---|---|
| resNet18, b=0.3 | 24.03% | 23.67% | 23.35% | 17.58% |
| Method | CIFAR-10 | CIFAR-100 | Tiny-Imagenet | |||
|---|---|---|---|---|---|---|
| #rounds | speedup | #rounds | speedup | #rounds | speedup | |
| FedAvg | 100 | 1 | 100 | 1 | 20 | 1 |
| FedProx | 56 | 1.8 | 95 | 1.1 | \ | <1 |
| MOON | 37 | 2.7 | 78 | 1.3 | 19 | 1.1 |
| FedPDC | 25 | 4 | 56 | 1.8 | 10 | 2 |
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsPrivacy-Preserving Technologies in Data · Internet Traffic Analysis and Secure E-voting · Age of Information Optimization
\floatsetup
[table]capposition=top \newfloatcommandcapbtabboxtable[][\FBwidth]
FedPDC:Federated Learning for Public Dataset Correction
Yuquan Zhang, Yongquan Zhang1
- Yongquan Zhang is the corresponding author.
Abstract
As people pay more and more attention to privacy protection, Federated Learning (FL), as a promising distributed machine learning paradigm, is receiving more and more attention. However, due to the biased distribution of data on devices in real life, federated learning has lower classification accuracy than traditional machine learning in Non-IID scenarios. Although there are many optimization algorithms, the local model aggregation in the parameter server is still relatively traditional. In this paper, a new algorithm FedPDC is proposed to optimize the aggregation mode of local models and the loss function of local training by using the shared data sets in some industries. In many benchmark experiments, FedPDC can effectively improve the accuracy of the global model in the case of extremely unbalanced data distribution, while ensuring the privacy of the client data. At the same time, the accuracy improvement of FedPDC does not bring additional communication costs.
Index Terms:
Federated Learning, shared data sets, extremely unbalanced data distribution
I Introduction
Deep learning has been widely used in many tasks involving images, video, voice and so on and has achieved great success. However, deep learning usually requires a lot of data to train the model, so as to obtain a better parameter model. At the same time, training at the same terminal also requires a lot of time and computing resources. Some small companies do not have so much data and computing power. Besides, with the development of big data, it has become a worldwide trend to pay attention to data privacy and security. Every time the public data is leaked, the media and the public will pay great attention to it. This is obviously a severe blow to our traditional machine learning, because the previous traditional machine learning relied on massive data to train a good model, but now there is a barrier between the data, which is the origin of the phenomenon of data islands.
How to design a machine learning framework under the premise of meeting the requirements of data privacy, security and supervision, so that artificial intelligence systems can use their own data more efficiently and more accurately, is an important topic in the current development of artificial intelligence. We propose to shift the research focus to how to solve the problem of data islands. We propose a feasible solution for privacy protection and data security both, called federated learning(FL)[1].
Federated learning is a kind of distributed machine learning, which is based on parallel computing. It differs from distributed machine learning in that it does not exchange data and gradients in the communication process of federal learning, which ensures participants’privacy. The goal of Federated learning is to solve the problems of data collaboration and privacy protection. The distribution of Federated learning’s data is not independent and identically distributed, because there are differences between users, and the amount of data may not be an order of magnitude. So it does not conform to the probability distribution of the independent identical distribution.
Federated learning is a distributed learning paradigm with two key challenges different from traditional distributed optimization[2]: (1) significant variability (system heterogeneity) in system characteristics on each device in the network, and (2) non uniformly distributed data (statistical heterogeneity) across the network.
In order to deal with heterogeneity and address high communication costs, optimization methods that allow local updating and low participation are a popular method of Federated learning. Such as FedAvg[1], FedProx[2] and so on. These methods effectively protect the privacy of participants, and under ideal conditions, the accuracy rate can be almost the same as that of centralized training. But sometimes the reality is that the data is extremely unbalanced, just like the chest X-ray of patients with COVID-19 infection. As we know COVID-19 is highly infectious and the incidence of infection is regional. As a result, hospitals in some regions almost have no lung X-ray films of infected persons as a reference, and these hospitals are unable to obtain lung X-ray films of infected persons in other hospitals based on the requirements of privacy protection, which makes it difficult to judge whether the patient is infected with COVID-19. However, these hospitals may receive some patients’ X-ray films from the World Health Organization or other public health departments. Therefore, our method can improve the prediction accuracy of the global model by using the accuracy of the local model on a small number of images with balanced data distribution.
Our contributions are primarily summarized as follows:
We propose FedPDC based on the model correction of the verification accuracy of the central server. The classification accuracy of each local model on the server is used for weighted average to obtain a new round of global model. And The accuracy is added to the training as the regular term of the loss function in the next round.
- *
Our approach is robust to typical challenges of federated learning including data heterogeneity and low client participation rate, and is applicable to various federated learning frameworks.
- *
We have proved through a large number of experiments that, compared with the most advanced federated learning algorithm, our architecture regularization technology consistently improves the accuracy and convergence speed.
II Related work
In federated learning, there are two main research directions: horizontal federated learning and vertical federated learning[4]. Among them, horizontal federal learning faces several challenges.
The model transmission between the client and the parameter server has a huge communication consumption.Mcmahan H B , Moore E , Ramage D , et al. proposed FedAvg[1], the number of local training epochs is increased to reduce communication consumption. So compared with FedSGD, FedAvg greatly reduces communication consumption while maintaining almost the same accuracy. And the convergence of FedAvg has been proved[17], which formally initiated the concept of federated learning. Zhu L , Lin H , Lu Y , et al. proposed DGA[5], The aggregation of the delay gradient is used to alleviate the long time of the aggregation global model caused by the high delay of some clients. Reisizadeh A , Mokhtari A , Hassani H , et al. proposed FedPAQ[7], the client in the network is allowed to perform local training before synchronizing with the central server, and only the updates of the active client are sent back to the central server, and only the quantized version of the local information is sent back. These algorithms have effectively saved the communication loss, and even some can avoid the training failure caused by some clients offline.
The uneven distribution of local data per client is another challenge[10]. In order to improve the classification accuracy of the global model on Non-IID data, there are three main categories of methods: (1) The update of the local model is corrected based on the update direction of the global model. (2) Grouping clients based on the similarity of local models. (3) Knowledge distillation.
The updating direction correction based on the global model needs to add its similarity to the loss function in the local model training process. Li T , Sahu A K , Zaheer M , et al. proposed FedProx[2]. In the local model training, the near term is added to regularize the local loss function. Li Q , He B , Song D proposed a new framework named MOON[3], it corrects local updates by maximizing the consistency between the current local model learning representation and the global model learning representation. Karimireddy S P , Kale S , Mohri M , et al. proposed a random control averaging scheme called scaffold [6], which can solve the problem of ”client drift” caused by data heterogeneity. However, the introduction of global control variables in scaffold will lead to higher communication overhead, which is twice that of fedavg.
FedEntropy[8] is a typical example of solving data heterogeneous problems by grouping. Grouping based on the maximum entropy variation and purposefully selecting clients. Duan M , Liu D , Chen X , et al. proposed Astraea[9], the local models are grouped based on the KL divergence of the data distribution of the local models to rearrange the training of the local models.
knowledge distillation originally proposed by Bucila, Caruana, and Niculescu-Mizil (2006) [20] and popularized by Hinton, Vinyals, and Dean(2015)[21]. Knowledge distillation compresses the knowledge of a large, computationally expensive model into a computationally efficient neural network. The idea of knowledge rectification is to train small models and students on a transfer set of soft targets provided by large models and teachers. Li et al. [19] proposed FedMD to tackle the heterogeneous models through knowledge distillation. Ganta D P et al. proposed a new knowledge distillation scheme and introduced the intermediate model of teaching assistant to improve the accuracy loss caused by the compression model[18].
In addition, federal learning also has personalized methods to solve some extremely unbalanced data problems[24, 25, 26, 27, 28, 29]. M G. Arivazhagan et al. proposed the algorithm of adding personalization layer in federated learning[22]. L. Collins et al. regard the data heterogeneous federation learning problem as n parallel learning tasks that may have some common structure, and learn and use this common representation to improve the quality of each client model[23].
Although the above FL methods are promising, they do not take into account the difference between the data distribution characteristics of devices and the overall data distribution characteristics, which can be used to further improve the classification performance in Non-IID scenarios. As far as we know, our work is the first attempt to apply a typical small amount of public data sets to the server to improve the accuracy of the global model. Since our method makes full use of the difference between the distribution of device data in Non-IID scenarios and that of IID data, it can not only improve the overall FL classification performance, but also not cause additional communication loss.
III Preliminaries
III-A Federated learning
Federated learning is a distributed machine learning technology that allows multiple parties to build models according to specified algorithms through local training sets. For example, In the medical field, we usually have stricter privacy protection requirements than in other fields. Suppose that in the prediction and prevention of the same disease, each hospital can not leak its users’ private data to each other, such as diagnosis and treatment records and X-rays. But local data from each hospital can be unbalanced, and the amount of data is too small to train a model that works well. At this point we use federated learning, where we treat each hospital as a client, and the data between each client is not communicative to each other. We set up a parameter server to receive, aggregate, and send each round of the model. This parameter server also does not receive any patient data, thus ensuring privacy. Federated learning aggregates locally trained models from each hospital to get a global model that predicts better.
Specifically, the federated learning process is that after the federated learning participants have trained the local data, the parameters and the models obtained from the training are uploaded to the server, and The server receives the models and aggregates it, distributing the aggregated model to each client. This is the process of a communication round of federated learning. The final convergence model is obtained after several communication rounds.
Therefore, we can simplify the main optimization of a federated learning as follows: considering clients where each client have a local dataset , federated learning is to learn a global model over the all dataset with the parameter server which have no local data .The optimization goal of federated learning can be defined as
[TABLE]
where denotes the cardinality of sets and is the expectation for the cross-entropy loss function of the client in classification problems. Here, denotes the input data and its corresponding label [1].
III-B Federated Averaging (FedAvg)
The Federated Average is one of the most classic Federated Learning algorithms, and it improved on top of FedSGD.FedSGD in each communication round, each client performs only one epoch local training. But since federated learning is in most cases subject to the latency of communication and the bandwidth of communication rather than the time required for local training. So FedSGD’s training efficiency is not high. FedAvg’s proposal alleviates this problem by letting the client train several epochs locally in each communication round and upload the last local model to the parameter server for aggregation.At the same time, in order to avoid all clients uploading the model when some clients are down or cause network traffic congestion, the rest of the clients can not train the next communication round, FedAvg set a hyperparameter , Only (when = 1, FedAvg equivalent to FedSGD)clients per communication round upload their local model of that last epoch to the parameter server.
In each communication round t, the parameter server randomly selects clients for this round of local training. The parameter server sends the global model of this communication round to these clients, and these clients locally use optimization algorithms such as SGD to train the model, and the iterative process is
[TABLE]
where represents the model of the ith client in the mth local epoch in the t+1th communication round, is the cross-entropy loss function or other loss function, and is the learning rate.
After times local updates, each client sents to the server which updates the global model as
[TABLE]
with .
IV Method
As mentioned above, in the federated learning of real problems, most of the data owned by the client has high heterogeneity and uneven distribution, which is also the main obstacle affecting the model accuracy in the federated learning. However, there are many common shared data in many industries and fields, and these data are often distributed evenly and have low heterogeneity.Therefore, in our algorithm, we make full use of these unbiased data to correct the local model, so that its update direction is closer to the global model and has higher accuracy.
Our algorithm uses the public data set in two aspects, the aggregation strategy optimization at the parameter server side and the loss function optimization during local training.
IV-A Global precision aggregation
In most classical federated learning algorithms, the aggregation algorithm of parameter server usually adopts the strategy of weighted average according to the data volume of each client. But these simple weighted averages also have obvious disadvantages, because most of the data owned by the client in the real task is unbalanced. If we simply use these unbalanced data to carry out simple weighted averaging, the model will only over learn those features that appear most frequently, and those features that appear less frequently will be further diluted. Using this biased global model to predict real problems will lead to a large deviation in the prediction results.
In our algorithm, in each communication round I, we use the existing unbiased data set to verify in the parameter server to correct the local model and obtain better robustness. Like Fedavg and other classical algorithms, every communication round , the parameter server sends the global model of the round to each client . Each client receives the global model and then conducts local training for epochs. After epochs of training, the local model of the th client is obtained . The selected client sends the local model to the parameter server. There is an unbiased small data set in the parameter server. Each local model was used to predict the data set, and the accuracy was . Then our aggregation strategy is:
[TABLE]
where is in the th communication round, the local model of the th client predicts the accuracy of the results of .
Because the model is trained in the local training data set, it can only fit the local data well, but cannot fit the global data well. Therefore, when there are few or no categories in the local dataset, the effect of model prediction will be poor. The aggregation method used by our algorithm is to weighted average the model through the verification accuracy on the public unbiased data set. This aggregation method effectively avoids the global model deviation caused by simple weighted average. Because the correction term used is the prediction accuracy from unbiased data sets, we can give more weight to more representative local models in aggregation. The local model trained by the clients with large amount of local data but single feature distribution will not occupy a large proportion as in the classical aggregation algorithm. Experiments show that the aggregation method can effectively improve the prediction accuracy of the global model.
IV-B Global precision loss
The classical federated learning algorithm fedavg mostly uses cross entropy loss when training image local models. Other algorithms add some penalty terms to correct the local model based on the cross entropy loss. Our algorithm also proposes a new loss based on the cross entropy loss.
As mentioned above, we bring the local model into the shared data set in the parameter server to predict and obtain the accuracy . can be regarded as a penalty term to measure the deviation between the local model and the expected good prediction model. At the same time, it can also represent the difference between local data and IID data, so it can be used as the penalty term of the loss function in local model training to make the local model suitable for the current local non independent identically distributed data approach the results of training under IID data during training. In our algorithm, these prediction accuracy and the global model of this round are sent to the next round of customers. After each communication round, it is necessary to reselect the client participating in this round of training, so sometimes a problem arises that we do not select the client selected in the previous round in this round. If the client selected in the next round is not selected in the previous round, the sending accuracy .
After that, each client has two loss functions. One is the traditional cross entropy loss , the other is the local accuracy loss .
[TABLE]
[TABLE]
will become smaller with the improvement of prediction accuracy to achieve the purpose of correcting the local model to be closer to the global model. At the same time, the accuracy of the global model in predicting those rare classes has been significantly improved. We combine the two loss functions to get
[TABLE]
[TABLE]
where is the sensitivity parameter used to adjust the degree of correction in the loss function to a smaller number of classes in the local model. We will further explore the adaptive sensitivity parameter in section 4 of this paper.
The specific algorithm of FedPDC is as algorithm2.
V Convergence analysis
Because FedPDC and FedAvg are architecturally nearly identical, they are also random algorithms, that is, only a few clients are selected to participate in the global aggregation in each communication wheel, and the update direction of the clients participating in the aggregation may be inaccurate. This results in FedPDC not using the same stable steps as non-random methods in the training process, but using a step-by-step reduction to converge to a stable point. So we need to quantify the difference in the local objective function between the clients.
V-A Local model differences
In real-world tasks, each client often has data that is not independently and equally distributed, resulting in large differences between local models. For this phenomenon, variable B is introduced to measure the similarity between local models.
Definition 1 (B-local model differences) . The local model are B-locally dissimilar, so we define . Because the model is obtained according to the gradient descent made by the loss function, it can be further obtained .
Here represents the server verification accuracy of the local model of the th client after the communication round. represents the verification accuracy of the current round of global model on the server. As a sanity check, when all the local model are the same, we have for all . However, in the federated setting, the data distributions are often heterogeneous and due to sampling discrepancies even if the samples are assumed to be IID. The more unbalanced the data distribution in the client, the lower the precision of the local model’s IID public dataset on the server, while the global model is relatively less affected. Thus, and the larger the value of , the larger is the dissimilarity among the local models.
Based on definition 1, we make a assumption that the local model is different, which will be used in the convergence analysis later. We can easily know that the verification accuracy and . So we have made the assumption that the model dissimilarity is bounded.
Assumption 1 (Bounded dissimilarity) . For some , there exists a such that for all the points , .
Although samples are not IID in real-world federated learning problems, they are still sampled from incompletely unrelated distributions. Therefore, it is reasonable to assume that the differences between local models are still limited throughout the training process.
V-B Non-convex FedPDC convergence analysis
Using the bounded dissimilarity assumption of the local model (Assumption 1), we now analyze the expected decrease in the objective function when performing a FedPDC step. Two other general assumptions is required before the convergence analysis.
Assumption 2 (The objective function is non convex) .
. In the th client, for all , there are always and to make the above inequality hold.
Assumption 3 (-Lipschitz smooth) . Assume the functions are L-Lipschitz smooth, and there exists , such that , with .
According to the above Assumptions 1,2,3, Theorem 1 (Non-convex FedPDC convergence) can be deduced.
Theorem 1 (Non-convex FedPDC convergence) **.**The local model are B-dissimilar, and . It can be concluded that
Then, during iteration t of Algorithm 2, our global goal is expected to decline:
Where is the set of devices selected during iteration .
Detailed steps are documented in Appendix A. The key step includes applying our bounded dissimilarity assumption to each subproblem, and allowing only devices to be active in each round. The last step specifically introduces , an expectation on equipment selection in round .
VI Experiment
VI-A Hardware and environment configuration
In this experiment, we set up 10 clients and one parameter server. In order to save the training and communication time, we adopted the process of simulating the training of 10 clients on a server. The specific configuration of the server is as follows:
CPU: Intel Xeon W-2235, 3.80GHz
GPU: NVIDIA GeForce RTX 3080, 10GB
RAM: DDR4 2666MHz 32GB 2
We use PyTorch [3] to implement FedPDC and the other baselines.
VI-B Experimental setup
We compare FedPDC with three state-of-the-art approaches including (1) FedAvg [1], (2) FedProx [2], and(3) MOON [3]. We also compare it to the baseline, Local-Training, means that all clients do not do federated learning, but only train their own local data. We conducted experiments in three classic datasets, CIFAR-10, CIFAR-100 and Tiny-Imagenet[11](100,000 images with 200 classes). As in the previous study[12, 13], we use the Dirichlet distribution to generate private Non-IID data partitions for each client. Specifically, our sample , where represents the occurrence probability of k-class samples, is the Dirichlet distribution with a concentration parameter (0.5 by default). In Fig 3 and Fig 4, we can see the local data distribution of CIFAR-10 and CIFAR-100 when = 0.1 and 0.3 respectively. As for Tiny-Imagenet, because the number of class in this dataset is too high, there are 200 classes. In practice, we often do not encounter the situation of =0.1, so we only use =0.3 in our experimentAnd means proportion of the instances of class k to client j. According to the above policy division data, our local data in each client is Non-IID distributed, and in some classes, each client can have relatively few or no data samples. As mentioned above, we set the number of clients to 10 by default.
In addition, we also use three networks with different architectures as the base encoder:
(1)CNN network: It has two 5x5 convolution layers followed by 2x2 max pooling (the first with 6 channels and the second with 16 channels) and two fully connected layers with ReLU activation (the first with 120 units and the second with 84 units).
(2)ResNet18[14]: See TABLE. I for specific network structure.
(3)ResNet50[14]: See TABLE. I for specific network structure.
For all datasets, like [15], we use a 2-layer MLP as the projection head. The output dimension of the projection head is set to 256 by default. Note that all baselines use the same network architecture as FedPDC (including the projection head) for fair comparison.
We used SGD with a learning rate of 0.01 for all methods. The SGD weight attenuation is set to 0.00001 and the SGD momentum is set to 0.9. The batch size is set to 64. The local epochs for solo is set to 300. For all federated learning methods, the number of local epochs is set to 10, unless explicitly specified.
VI-C Accuracy Comparison
For FedPDC, we tune hyperparameter from {0.1, 1, 5, 10} and find the best result is . We think this phenomenon occurs because our local model tends to converge in the middle and late training period, so we use a larger to correct the update direction, so we get better results. In MOON and FedProx, there are also hyperparameter that can be adjusted manually. We have also made a series of adjustments to achieve high accuracy. For FedProx, hyperparameter controls the weight of its proximal term (i.e., ). We tune µ from 0.001, 0.01, 0.1, 1(the range is also used in the previous paper [16]) and report the best result. For MOON, hyperparameter controls the penalty weight of the similarity between the local model and the global model(i.e., ). We tune from {0.1, 1, 5, 10} and report the best result.
Using the above settings, we obtained the test accuracy of each algorithm. See TABLE. II for details. As a result, our algorithm FedPDC maintains almost the highest accuracy compared to the rest of the algorithms when the data is Non-IID. And we can see that the more unbalanced the data distribution, the stronger the advantage of our algorithm. The accuracy of SOLO is much lower than that of other federated learning algorithms, which shows that all federated learning algorithms can effectively improve the model accuracy of the client. FedPDC offers a significant improvement in accuracy over FedAvg in all tasks. The overall accuracy of FedProx is similar to that of FedAvg, and even lower sometimes. This shows that the penalty term adopted by FedProx has little improvement in accuracy in actual experiments. Moreover, the convergence speed of FedProx is obviously slower than that of other algorithms, and the adjustment of hyperparameter has a great impact on the accuracy.
VI-D Communication Efficiency
Previous studies have shown that the main factors affecting the federated learning speed are the communication time and the size of the transmission model[5]. Therefore, compared with other algorithms, FedPDC does not add a large number of parameters to the transmission model, so the communication efficiency is the same as the above three algorithms.
In the figure below, we show the test accuracy curves of each round of the above three algorithms on each data set. Because FedPDC is not sensitive to the hyperparameter , we can see that its convergence rate is similar to FedAvg, especially on CIFAR-10 and CIFAR-100. In most cases, FedPDC converges faster than FedAvg due to the improvement of the aggregation method. But then FedPDC can get the corrected aggregation and data balance comparison loss from the server, so its subsequent convergence accuracy will be significantly higher than FedAvg.
VII Further work
In the above, our algorithm calculates the loss function in local training. A super parameter is involved. In order to improve the usability and robustness of our algorithm, we further propose an adaptive hyperparameter method. Generally, the test accuracy of our model will be greatly improved in the previous rounds of training. Therefore, in the early stage of training, we prefer the local model to learn as much as possible from the characteristics of the local data set, rather than rushing to do too much correction. In the middle of the training, the prediction accuracy of our model began to slow down with the increase of the number of rounds. At this time, we hope that the local model will be corrected more strongly than at the beginning of training, so the hyperparameter will become larger accordingly. At the end of the training, the model tends to converge, and the change range of prediction accuracy is very small. Therefore, we hope that the local model can be corrected most, that is, the hyperparameter is the largest in the whole training.
Because we found that the size of the hyperparameter is negatively related to the number of training rounds, we can simply make an adaptation according to the total number of training rounds:
[TABLE]
Indicates that this round is the th communication round. Therefore, the above algorithm can be further expressed as:
VIII Conclusion
Federated learning has become a hot research area with privacy as an important consideration, and has been widely used in medical, financial, and image recognition fields. Although there are many previous algorithms, such as MOON, FedProx and so on, to solve the non-independent and identical distribution of data in each client, the performance of FedPDC is significantly improved when the data distribution in the client is extremely unbalanced. FedPDC introduces a new federated learning concept, which verifies the local model on the server’s independent identically distributed data set, and aggregates and adds penalty items accordingly. Our extensive experiments have proved that FedPDC has greatly improved in image recognition tasks compared with other algorithms, and because FedPDC does not need to input images, it can also be used for various non image tasks. Finally, we also propose a simple adaptive scheme for the hyperparameters of FedPDC, which can get a simpler parameter adjustment process and a better model effect. At the same time, we also prove the convergence of FedPDC, and prove that its convergence has theoretical basis.
Appendix A Complete proof
A.1 Proof of Theorem 1
First, by definition, we have
[TABLE]
Then we can define , based on this definition, we can conclude that
[TABLE]
We further define , , so we can get
[TABLE]
Therefore,
[TABLE]
According to the boundedness assumption of , the above equation can be further deduced as
[TABLE]
Now we define , such that , so . We can bound :
[TABLE]
where the last inequality is also due to the bounded dissimilarity assumption. Based on the L-Lipschitz smoothness of and Taylor expansion, we have
[TABLE]
It can be seen from the above inequality that if we set the penalty parameter large enough, we can get the decrease of the target value of , which is proportional to . But this is not the way FedPDC works. In this algorithm, only some clients are selected to approximate . So we use the Lipschitz continuity of function to find .
[TABLE]
where is the Lipschitz continuous constant of the local function , then we have
[TABLE]
Therefore, if we take expectation with respect to the choice of devices in round we need to bound
[TABLE]
where . The expectation is the expectation of randomly selected clients.
[TABLE]
Then
[TABLE]
And from (A.5) we can further deduce
[TABLE]
The first inequality is to randomly select clients to get the result of , and the last inequality is due to the bounded dissimilarity assumption. Take it into equation (A.11) to get
[TABLE]
So we finally get
[TABLE]
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Mcmahan H B , Moore E , Ramage D , et al. Communication-Efficient Learning of Deep Networks from Decentralized Data[C]// 2016.
- 2[2] Li T , Sahu A K , Zaheer M , et al. Federated Optimization in Heterogeneous Networks[J]. 2018.
- 3[3] Li Q , He B , Song D . Model-Contrastive Federated Learning[J]. 2021.
- 4[4] Yang Q , Liu Y , Chen T , et al. Federated Machine Learning: Concept and Applications[J]. ACM Transactions on Intelligent Systems and Technology, 2019, 10(2):1-19.
- 5[5] Zhu L , Lin H , Lu Y , et al. Delayed Gradient Averaging: Tolerate the Communication Latency for Federated Learning[C]// Neural Information Processing Systems. 2021.
- 6[6] Karimireddy S P , Kale S , Mohri M , et al. SCAFFOLD: Stochastic Controlled Averaging for On-Device Federated Learning[J]. 2019.
- 7[7] Reisizadeh A , Mokhtari A , Hassani H , et al. Fed PAQ: A Communication-Efficient Federated Learning Method with Periodic Averaging and Quantization[C]// ar Xiv. ar Xiv, 2019.
- 8[8] Ling, Zhiwei et al. “Fed Entropy: Efficient Device Grouping for Federated Learning Using Maximum Entropy Judgment.” Ar Xiv abs/2205.12038 (2022): n. pag.
