AdaFed: Fair Federated Learning via Adaptive Common Descent Direction
Abstract
Federated learning (FL) is a promising technology via which some edge devices/clients collaboratively train a machine learning model orchestrated by a server. Learning an unfair model is known as a critical problem in federated learning, where the trained model may unfairly advantage or disadvantage some of the devices. To tackle this problem, in this work, we propose AdaFed. The goal of AdaFed is to find an updating direction for the server along which (i) all the clients’ loss functions are decreasing; and (ii) more importantly, the loss functions for the clients with larger values decrease with a higher rate. AdaFed adaptively tunes this common direction based on the values of local gradients and loss functions. We validate the effectiveness of AdaFed on a suite of federated datasets, and demonstrate that AdaFed outperforms state-of-the-art fair FL methods.
1 Introduction
Conventionally, a machine learning (ML) model is trained in a centralized approach where the training data is available at a data center or a cloud server. However, in many new applications, devices often do not want to share their private data with a remote server. As a remedy, federated learning (FL) was proposed in McMahan et al. (2017) where each device participates in training using only locally available dataset with the help of a server. Specifically, in FL, devices share only their local updates with the server, and not their raw dataset A well-known setup to carry out such decentralized training is FedAvg McMahan et al. (2017) which combines local stochastic gradient descent (SGD) on each client with iterative model averaging. The server sends the most recent global model to some selected clients (Eichner et al., 2019; Wang et al., 2021a), and then these clients perform a number of epochs of local SGD on their local training data and send the local gradients back to the central server. The server then finds the (weighted) average of the gradients to update the global model, and the process repeats.
In FedAvg, the vector of averaged gradients computed by the server is in fact a common direction along which the global model is updated. However, finding the common direction in this manner may result in a direction which is not descent for some clients. Consequently, the learnt model could perform quite poorly once applied to the private dataset of the clients, yielding an unfair global model (Li et al., 2019a; Bonawitz et al., 2019; Kairouz et al., 2021); that is, although the average accuracy might be high, some clients whose data distributions differ from the majority of the clients are prone to perform poorly on the learnt model.
One possible method to find a direction that is descent for all the clients is to treat the FL task as a multi-objective minimization (MoM) problem Hu et al. (2022). In this setup, a Pareto-stationary solution of the MoM yields a descent direction for all the clients. However, having a common descent direction is not enough per se to train a fair model with uniform test accuracies across the clients111Similarly to other fields like ML (Barocas et al., 2017), communications (Huaizhou et al., 2013), and justice (Rawls, 2020), the notion of fairness does not have a unique definition in FL. However, following (Li et al., 2019a; 2021), we use standard deviation of the clients’ test accuracies—and some other metrics discussed in Section 7—to measure how uniform the global model performs across the clients. Please refer to Appendix C for more in-depth discussions.. This is because data heterogeneity across different clients makes the local loss functions vary significantly in values, and therefore those loss functions with larger values should decrease with a higher rate to learn a fair model.
To address the above-mentioned issues and to train a fair global model, in this work, we propose AdaFed. The aim of AdaFed is to help the sever to find a common direction (i) that is descent for all the clients, which is a necessary condition to decrease the clients’ loss functions in the SGD algorithm; and (ii) along which the loss functions with larger values decrease with higher rates. The latter is to enforce obtaining a global model with uniform test accuracies across the clients.
We note that if the directional derivatives of clients’ loss functions along the normalized common direction are all positive, then is a common descent direction for all the clients. As such, AdaFed adaptively tunes such that these directional derivatives (i) remain positive over the course of FL process, and (ii) are larger for loss functions with higher values enforcing them to decrease more during the global updation by the server.
The contributions of the paper are summarized as follows:
-
•
We introduce AdaFed, a method to realize fair FL via adaptive common descent direction.
-
•
We provide a closed-form solution for the common direction found by AdaFed. This is in contrast with many existing fair FL methods which deploy iterative or generic quadratic programming methods.
-
•
Under some common assumptions in FL literature, we prove the convergence of AdaFed under different FL setups to a Pareto-stationary solution.
-
•
By conducting thorough experiments over seven different datasets (six vision datasets, and a language one), we show that AdaFed can yield a higher level of fairness among the clients while achieving similar prediction accuracy compared to the state-of-the-art fair FL algorithms.
-
•
The experiments conducted in this paper evaluate many existing fair FL algorithms over different datasets under different FL setups, and therefore can pave the way for future researches.
2 Related Works
There are many different perspectives in the literature to combat the problem of fairness in FL. These methods include client selection (Nishio & Yonetani, 2019; Huang et al., 2020a; 2022; Yang et al., 2021), contribution Evaluation (Zhang et al., 2020; Lyu et al., 2020; Song et al., 2021; Le et al., 2021), incentive mechanisms (Zhang et al., 2021; Kang et al., 2019; Ye et al., 2020; Zhang et al., 2020), and the methods based on the loss function. Specifically, our work falls into the latter category. In this approach, the goal is to attain uniform performance across the clients in terms of test accuracy. To this end, the works using this approach target to reduce the variance of test accuracy across the participating clients. In the following, we briefly review some of these works.
One of the pioneering methods in this realm is agnostic federated learning (AFL) (Mohri et al., 2019). AFL optimizes the global model for the worse-case realization of weighted combination of the user distributions. Their approach boils down to solving a saddle-point optimization problem for which they used a fast stochastic optimization algorithm. Yet, AFL performs well only for a small number of clients, and when the size of participating clients becomes large, the generalization guarantees of the model may not be satisfied. Du et al. (2021) deployed the notation of AFL and proposed the AgnosticFair algorithm. Specifically, they linearly parametrized model weights by kernel functions and showed that AFL can be viewed as a special case of AgnosticFair. To overcome the generalization problem in AFL, q-fair federated learning (q-FFL) (Li et al., 2019a) was proposed to achieve more uniform test accuracy across users. The main idea of q-FFL stemmed from fair resource allocation methods in wireless communication networks (Huaizhou et al., 2013; Hamidi et al., 2019). Afterward, Li et al. (2020a) developed TERM, a tilted empirical risk minimization algorithm which handles outliers and class imbalance in statistical estimation procedures. Compared to q-FFL, TERM has demonstrated better performance in many FL applications. Deploying a similar notion, Huang et al. (2020b) proposed using training accuracy and frequency to adjust weights of devices to promote fairness. Furthermore, FCFC Cui et al. (2021) minimizes the loss of the worst-performing client, leading to a version of AFL. Later, Li et al. (2021) devised Ditto, a multitask personalized FL algorithm. After optimizing a global objective function, Ditto allows local devices to run more steps of SGD, subject to some constraints, to minimize their own losses. Ditto can significantly improve testing accuracy among local devices and encourage fairness.
Our approach is more similar to FedMGDA+ (Hu et al., 2022), which treats the FL task as a multi-objective optimization problem. In this scenario, the goal is to minimize the loss function of each FL client simultaneously. To avoid sacrificing the performance of any client, FedMGDA+ uses Pareto-stationary solutions to find a common descent direction for all selected clients.
3 Notation and Preliminaries
3.1 Notation
We denote by the set of integers . In addition, we define for a scalar/function . We use bold-symbol small letters to represent vectors. Denote by the -th element of vector . For two vectors , we say iff for , i.e., two vectors are compared w.r.t. partial ordering. In addition, denote by their inner product, and by the projection of onto the line spanned by .
3.2 Preliminaries and Definitions
In Hu et al. (2022), authors demonstrated that FL can be regarded as multi-objective minimization (MoM) problem. In particular, denote by the set of local clients’ objective functions. Then, the aim of MoM is to solve
(1) |
where the minimization is performed w.r.t. the partial ordering. Finding could enforce fairness among the users since by setting setting , it is not possible to reduce any of the local objective functions without increasing at least another one. Here, is called a Pareto-optimal solution of Equation 1. In addition, the collection of function values of all the Pareto points is called the Pareto front.
Although finding Pareto-optimal solutions can be challenging, there are several methods to identify the Pareto-stationary solutions instead, which are defined as follows:
Definition 3.1.
Pareto-stationary (Mukai, 1980): The vector is said to be Pareto-stationary iff there exists a convex combination of the gradient-vectors which is equal to zero; that is, , where , and .
Lemma 3.2.
(Mukai, 1980) Any Pareto-optimal solution is Pareto-stationary. On the other hand, if all ’s are convex, then any Pareto-stationary solution is weakly Pareto optimal 222 is called a weakly Pareto-optimal solution of Equation 1 if there does not exist any such that ; meaning that, it is not possible to improve all of the objective functions in . Obviously, any Pareto optimal solution is also weakly Pareto-optimal but the converse may not hold..
There are many methods in the literature to find Pareto-stationary solutions among which we elaborate on two well-known ones, namely linear scalarization and Multiple gradient descent algorithm (MGDA) (Mukai, 1980; Fliege & Svaiter, 2000; Désidéri, 2012).
Linear scalarization: this approach is essentially the core principle behind the FedAvg algorithm. To elucidate, in FedAvg, the server updates by minimizing the weighted average of clients’ loss functions:
(2) |
where the weights are assigned by the server and satisfy . These fixed are assigned based on some priori information about the clients such as the size of their datasets. We note that different values for yield different Pareto-stationary solutions.
Referring to Definition 3.1, any solutions of Equation 2 is a Pareto-stationary solution of Equation 1. To perform FedAvg, at iteration , client , sends its gradient vector to the server, and server updates the global model as
(3) |
However, linear scalarization can only converge to Pareto points that lie on the convex envelop of the Pareto front (Boyd & Vandenberghe, 2004). Furthermore, the weighted average of the gradients with pre-defined weights yields a vector whose direction might not be descent for all the clients; because some clients may have conflicting gradients with opposing directions due to the heterogeneity of their local datasets (Wang et al., 2021b). As a result, FedAvg may result in an unfair accuracy distribution among the clients (Li et al., 2019a; Mohri et al., 2019).
MGDA: To mitigate the above issue, (Hu et al., 2022) proposed to exploit MGDA algorithm in FL to converge to a fair solution on the Pareto front. Unlike linear scalarization, MGDA adaptively tunes by finding the minimal-norm element of the convex hull of the gradient vectors defined as follows (we drop the dependence of to for ease of notation hereafter)
(4) |
Denote the minimal-norm element of by . Then, either (i) , and therefore based on Lemma 3.2 is a Pareto-stationary point; or (ii) and the direction of is a common descent direction for all the objective functions (Désidéri, 2009), meaning that all the directional derivatives are positive. Having positive directional derivatives is a necessary condition to ensure that the common direction is descent for all the objective functions.
4 Motivation and Methodology
We first discuss our motivation in Section 4.1, and then elaborate on the methodology in Section 4.2.
4.1 Motivation
Although any solutions on the Pareto front is fair in the sense that decreasing one of the loss functions is not possible without sacrificing some others, not all of such solutions impose uniformity among the loss functions (see Figure 1a). As such, we aim to find solutions on the Pareto front which enjoy such uniformity.
First we note that having a common descent direction is a necessary condition to find such uniform solutions; but not enough. Additionally, we stipulate that the rate of decrease in the loss function should be greater for clients whose loss functions are larger. In fact, the purpose of this paper is to find an updation direction for the server that satisfies both of the following conditions at the same time:
-
•
Condition (I): It is a descent direction for all , which is a necessary condition for the loss functions to decrease when the server updates the global model along that direction.
-
•
Condition (II): It is more inclined toward the clients with larger losses, and therefore the directional derivatives of loss functions over the common direction are larger for those with larger loss functions.
To satisfy Condition (I), it is enough to find using MGDA algorithm (as Hu et al. (2022) uses MGDA to enforce fairness in FL setup). Nevertheless, we aim to further satisfy Condition (II) on top of Condition (I). To this end, we investigate the direction of , and note that it is more inclined toward that of . For instance, consider the simple example depicted in Figure 1b, where . The Convex hull and the are depicted for and . As seen, the direction of is mostly influenced by that of .
However, this phenomenon is not favourable for satisfying Condition (II) since after some rounds of communication between the server and clients, the value of becomes small for those objective functions which are close to their minimum points. Consequently, the direction of is mostly controlled by these small ’s, which is undesirable. Note that represents how fast changes if changes in the direction of . In fact, the direction of should be more inclined toward the gradients of those clients with larger loss functions.
One possible solution could be to naively normalize by their norm to obtain whose convex hull is denoted by , and then use this normalized set of gradients to find . Yet, the normalization makes all the equal (see Figure 1c) which is still undesirable as the rate of decrease becomes equal for all .
Based on these observations, the gradient vectors should be somehow if one aims to also satisfy Condition (II). Finding such factor is not straight-forward in general. To tackle this issue, and to be able to find a closed-form formula, we find the minimal-norm vector in the convex hull of mutually-orthogonal scaled gradients instead, and prove that this yields a common direction for which both Conditions (I) and (II) are satisfied.
4.2 Methodology
To devise an appropriate scaling as explained above, we carry out the following two phases.
4.2.1 Phase 1, orthogonalization
In order to be able to find a closed-form formula for the common descent direction, in the first phase, we orthogonalize the gradients.
Once the gradient updates are transmitted by the clients, the server first generates a mutually orthogonal 333Here, orthogonality is in the sense of standard inner product in Euclidean space. set that spans the same -dimensional subspace in as that spanned by . To this aim, the server exploits a modified Gram–Schmidt orthogonalization process over in the following manner 444The reason for such normalization is to satisfy Conditions I and II. This will be proven later in this section.
(5) | ||||
(6) |
where is a scalar.
Why such orthogonalization is possible?
First, note that the orthogonalization approach in phase 1 is feasible if we assume that the gradient vectors are linearly independent. Indeed, this assumption is reasonable considering that (i) the gradient vectors are vectors in -dimensional space, and for the current deep neural networks (DNNs)555Also, note that to tackle non-iid distribution of user-specific data, it is a common practice that server selects a different subset of clients in each round (McMahan et al., 2017).; and (ii) the random nature of the gradient vectors due to the non-iid distributions of the local datasets. The validity of this assumption is further confirmed in our thorough experiments over different datasets and models.
4.2.2 Phase 2, finding optimal
In this phase, we aim to find the minimum-norm vector in the convex hull of the mutually-orthogonal gradients found in Phase (I).
First, denote by the convex hull of gradient vectors obtained in Phase 1; that is,
(7) |
In the following, we find the minimal-norm element in , and then we show that this element is a descent direction for all the objective functions.
Denote by the weights corresponding to the minimal-norm vector in . To find the weight vector , we solve
(8) |
which accordingly finds . For an element , we have
(9) |
where we used the fact that are orthogonal.
To solve Equation 8, we first ignore the inequality , for , and then we observe that this constraint will be automatically satisfied. Therefore, we make the following Lagrangian to solve the minimization problem in Equation 8:
(10) |
Hence,
(11) |
and by setting Equation 11 to zero, we obtain:
(12) |
On the other hand, since , from Equation 12 we obtain
(13) |
from which the optimal is obtained as follows
(14) |
Note that , and therefore the minimum norm vector we found belongs to .
Using the found in (14), we can calculate as the minimum norm element in the convex hull . In the following (Theorem 4.1), we show that the negate of satisfies both Conditions (I) and (II).
Theorem 4.1.
The negate of satisfies both Conditions (I) and (II).
Proof.
We find the directional derivatives of loss functions over . For we have
(15) | ||||
(16) | ||||
(17) | ||||
(18) |
where (i) Equation 15 is obtained by using definition of in Equation 6, (ii) Equation 16 follows from the orthogonality of vectors, and (iii) Equation 17 is obtained by using Equation 12.
As seen in Equation 18, the directional derivatives over are positive, meaning that the direction of is descent for all . In addition, the value of these directional derivatives are proportional to . This implies that if the server changes the global model in the direction of , the rate of decrease is higher for those functions with larger loss function values. Thus, satisfies both Conditions (I) and (II). ∎
Remark 4.2.
As seen, Equation 14 yields a closed-form formula to find the optimal weights for the orthogonal scaled gradients , based on which the common direction is obtained. On the contrary, FedMGDA+ (Hu et al., 2022) solves an iterative algorithm to find the updating directions. The complexity of such algorithms is greatly controlled by the size of the model (and the number of participating devices). As the recent DNNs are large in size, deploying such iterative algorithms slows down the FL process. Furthermore, we note that the computational cost of proposed algorithm is negligible (see Appendix F for details).
5 The AdaFed algorithm
At iteration , the server computes using the methodology described in Section 4.2, and then updates the global model as
(19) |
Similarly to the conventional GD, we note that updating the global model as (19) is a necessary condition to have . In Theorem 5.1, we state the sufficient condition to satisfy .
Theorem 5.1.
Assume that are L-Lipschitz smooth. If the step-size , then , and equality is achieved iff .
Proof.
If all the are -smooth, then
(20) |
Now, for client , by using the update rule Equation 19 in Equation 20 we obtain
(21) |
To impose , we should have
(22) | ||||
(23) | ||||
(24) |
Therefore, if the step-size , then . ∎
Lastly, similar to many recent FL algorithms McMahan et al. (2017); Li et al. (2019a); Hu et al. (2022), we allow each client to perform a couple of local epochs before sending its gradient update to the server. In this case, the pseudo-gradients (the opposite of the local updates) will be abusively used as the gradient vectors. It is important to note that we provide a convergence guarantee for this scenario in Section 5.1. We summarize AdaFed in Algorithm 1.
Remark 5.2.
When , an alternative approach is to use the accumulated loss rather than the loss from the last iteration in line (9) of Algorithm 1. However, based on our experiments, we observed that using the accumulated loss does not affect the overall performance of the algorithm, including its convergence speed, accuracy and fairness. This stands in contrast to the use of pseudo-gradients, which serves clear purposes of accelerating convergence and reducing communication costs.
5.1 Convergence results
In the following, we prove the convergence guarantee of AdaFed based on how the clients update the local models: (i) using SGD with , (ii) using GD with , and (iii) using GD with . Of course the strongest convergence guarantee is provided for the latter case.
Theorem 5.3 ( & local SGD).
Assume that are l-Lipschitz continuous and L-Lipschitz smooth, and that the global step-size satisfies the following three conditions: (i) , (ii) , and (iii) ; where is the variance of stochastic common descent direction. Then
(25) |
Theorem 5.4 ( & local GD).
Assume that are l-Lipschitz continuous and L-Lipschitz smooth. Denote by and the global and local learning rates, respectively. Also, define , where is the optimum weights obtained from pseudo-gradients after local epochs. We have
(26) |
if the following conditions are satisfied: (i) , (ii) , (iii) , (iv) , and (v) .
Before introducing Theorem 5.5, we first introduce some notations. Denote by the Pareto-stationary solution set666In general, the Pareto-stationary solution of multi-objective minimization problem forms a set with cardinality of infinity (Mukai, 1980). of minimization problem . Then, denote by the projection of onto the set ; that is, .
Theorem 5.5 ( & local GD).
Assume that are l-Lipschitz continuous and -convex, and that the global step-size satisfies the following two conditions: (i) , and (ii) . Then almost surely ; that is,
(27) |
where denotes the probability of event .
The proofs for Theorems 5.3, 5.4 and 5.5 are provided in Sections A.1, A.2 and A.3, respectively, and we further discuss that the assumptions we made in the theorems are common in the FL literature.
Note that all the Theorems 5.3, 5.4 and 5.5 provide some types of convergence to a Pareto-optimal solution of optimization problem in Equation 1. Specifically, diminishing in Theorems 5.3 and 5.4 implies that we are reaching to a Pareto-optimal point (Désidéri, 2009). On the other hand, Theorem 5.5 explicitly provides this convergence guarantee in an almost surely fashion.
6 AdaFed features and a comparative analysis with FedAdam
6.1 AdaFed features
Aside from satisfying fairness among the users, we mention some notable features of AdaFed in this section.
The inequality gives motivation to the clients to participate in the FL task as their loss functions would decrease upon participating. In addition, since the common direction is more inclined toward that of the gradients of loss functions with bigger values, a new client could possibly join the FL task in the middle of FL process. In this case, for some consecutive rounds, the loss function for the newly-joined client decreases more compared to those for the other clients.
The parameter is a hyper-parameter of AdaFed. In fact, different values yield variable levels of fairness. Thus, should be tuned to achieve the desired fairness level777Most (if not all) of the fair FL methods introduce an extra hyper-parameter to tune in order to establish a trade-off between fairness and accuracy, for instance: (i) in FEDMGDA+ (Hu et al., 2022), (ii) in Q-FFL & q-FFL (Li et al., 2019a), and (iii) in TERM (Li et al., 2020a). Similarly, AdaFed introduces a new parameter to make this trade-off.. In general, a moderate value enforces a larger respective directional derivative for the devices with the worst performance (larger loss functions), imposing more uniformity to the training accuracy distribution.
6.2 Comparison with FedAdam and its variants
Similarly to AdaFed, there are some FL algorithms in the literature in which the server adaptively updates the global model. Despite this similarity, we note that the purpose of AdaFed is rather different from these algorithms. For instance, let us consider FedAdam (Reddi et al., 2020); this algorithm changes the global update rule of FedAvg from one-step SGD to one-step adaptive gradient optimization by adopting an Adam optimizer on the server side. Specifically, after gathering local pseudo-gradients and finding their average as , the server updates the global model by Adam optimizer:
(28) | |||
(29) | |||
(30) |
where and are two hyper-parameters of the algorithm, and is used for numerical stabilization purpose. We note that other variants of this algorithm, such as FedAdagrad and FedYogi (Reddi et al., 2020) and FedAMSGrad (Tong et al., 2020), involve slight changes in the variance term .
The primary objective of FedAdam (as well as its variants) is to enhance convergence behavior (Reddi et al., 2020); this is achieved by retaining information from previous epochs, which helps prevent significant fluctuations in the server update. In contrast, AdaFed is designed to promote fairness among clients. Such differences could be confirmed by comparing Algorithm 1 with Equations 28, 29 and 30.
7 Experiments
In this section, we conclude the paper with several experiments to demonstrate the performance of AdaFed, and compare its effectiveness with state-of-the-art alternatives under some performance metrics.
Datasets: We conduct a thorough set of experiments over seven datasets. The results for four datasets, namely CIFAR-10 and CIFAR-100 (Krizhevsky et al., 2009), FEMNIST (Caldas et al., 2018) and Shakespear (McMahan et al., 2017) are reported in this section; and those for Fashion MNIST (Xiao et al., 2017), TinyImageNet (Le & Yang, 2015), CINIC-10 (Darlow et al., 2018) are reported in Appendix D. Particularly, in order to demonstrate the effectiveness of AdaFed in different FL scenarios, for each of the datasets reported in this section, we consider two different FL setups. In addition, we tested the effectiveness of AdaFed over a real-world noisy dataset, namely Clothing1M (Xiao et al., 2015), in Appendix I.
Benchmarks: We compare the performance of AdaFed against various fair FL algorithms in the literature including: q-FFL (Li et al., 2019a), TERM (Li et al., 2020a), FedMGDA+ (Hu et al., 2022), AFL (Mohri et al., 2019), Ditto (Li et al., 2021), FedFA (Huang et al., 2020b), and lastly FedAvg (McMahan et al., 2017). In our experiments, we conduct a grid-search to find the best hyper-parameters for each of the benchmark methods including AdaFed. The details are reported in Appendix E, and here we only report the results obtained from the best hyper-parameters.
Performance metrics: Denote by the prediction accuracy on device . We use as the average test accuracy of the underlying FL algorithm, and use as the standard deviation of the accuracy across the clients (similarly to (Li et al., 2019a; 2021)). Furthermore, we report worst 10% (5%) and best 10% (5%) accuracies as a common metric in fair FL algorithms (Li et al., 2020a).
Notations: We use bold and underlined numbers to denote the best and second best performance, respectively. We use and to represent the number of local epochs and that of clients, respectively.
7.1 CIFAR-10
CIFAR-10 dataset (Krizhevsky et al., 2009) contains 40K training and 10K test colour images of size , which are labeled for 10 classes. The batch size is equal to 64 for both of the following setups.
Setup 1: Following (Wang et al., 2021b), we sort the dataset based on their classes, and then split them into 200 shards. Each client randomly selects two shards without replacement so that each has the same local dataset size. We use a feedforward neural network with 2 hidden layers. We fix and . We carry out 2000 rounds of communication, and sample 10% of the clients in each round. We run SGD on local datasets with stepsize .
Setup 2: We distribute the dataset among the clients deploying Dirichlet allocation (Wang et al., 2020) with . We use ResNet-18 (He et al., 2016) with Group Normalization (Wu & He, 2018). We perform 100 communication rounds in each of which all clients participate. We set , and .
Results for both setups are reported in Table 1. Additionally, we depict the average accuracy over the course of training for setup 1 in Section G.1.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 5% | Best 5% | Worst 10% | Best 10% | ||||
FedAvg | 46.85 | 3.54 | 19.84 | 69.28 | 63.55 | 5.44 | 53.40 | 72.24 |
q-FFL | 46.30 | 3.27 | 23.39 | 68.02 | 57.27 | 5.60 | 47.29 | 66.92 |
FedMGDA | 45.34 | 3.37 | 24.00 | 68.51 | 62.05 | 4.88 | 52.69 | 70.77 |
FedFA | 46.40 | 3.61 | 19.33 | 69.30 | 63.05 | 4.95 | 48.69 | 70.88 |
TERM | 47.11 | 3.66 | 28.21 | 69.51 | 64.15 | 5.90 | 56.21 | 72.20 |
Ditto | 46.31 | 3.44 | 27.14 | 68.44 | 63.49 | 5.70 | 55.99 | 71.34 |
AdaFed | 46.42 | 3.01 | 31.12 | 69.41 | 64.80 | 4.50 | 58.24 | 72.45 |
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
FedAvg | 30.05 | 4.03 | 25.20 | 40.31 | 20.15 | 6.40 | 11.20 | 33.80 |
q-FFL | 28.86 | 4.44 | 25.38 | 39.77 | 20.20 | 6.24 | 11.09 | 34.02 |
FedMGDA | 29.12 | 4.17 | 25.67 | 39.71 | 20.15 | 5.41 | 11.12 | 33.92 |
AFL | 30.28 | 3.68 | 25.33 | 39.45 | 18.92 | 4.90 | 11.29 | 28.60 |
TERM | 30.34 | 3.51 | 27.03 | 39.35 | 17.88 | 5.98 | 10.09 | 31.68 |
Ditto | 29.81 | 3.79 | 26.90 | 39.39 | 17.52 | 5.65 | 10.21 | 31.25 |
AdaFed | 31.42 | 3.03 | 28.91 | 40.41 | 20.02 | 4.45 | 11.81 | 34.11 |
7.2 CIFAR-100
CIFAR-100 (Krizhevsky et al., 2009) contains the same number of samples as those in CIFAR-10, yet it contains 100 classes instead.
The model for both setups is ResNet-18 (He et al., 2016) with Group Normalization (Wu & He, 2018), where all clients participate in each round. We also set and . The batch size is equal to 64. The results are reported in Table 2 for both of the following setups:
Setup 1: We set and for Dirichlet allocation, and use 400 communication rounds.
Setup 2: We set and for Dirichlet allocation, and use 200 communication rounds.
Additionally, we perform the same experiments with more local epochs, specifically as presented in Appendix H.
7.3 FEMNIST
FEMNIST (Federated Extended MNIST) Caldas et al. (2018) is a federated image classification dataset distributed over 3,550 devices by the dataset creators. This dataset has 62 classes containing -pixel images of digits (0-9) and English characters (A-Z, a-z) written by different people.
For implementation, we use a CNN model with 2 convolutional layers followed by 2 fully-connected layers. The batch size is 32, and for both of the following setups:
FEMNIST-original: We use the setting in Li et al. (2021), and randomly sample devices (from the 3550 ones) and train models using the default data stored in each device.
FEMNIST-skewed: Here . We first sample 10 lower case characters (‘a’-‘j’) from Extended MNIST (EMNIST), and then randomly assign 5 classes to each of the 100 devices.
Similarly to (Li et al., 2019a), we use two new fairness metrics for this dataset: (i) the angle between the accuracy distribution and the all-ones vector denoted by Angle (), and (ii) the KL divergence between the normalized accuracy and uniform distribution denoted by KL (). Results for both setups are reported in Table 3. In addition, we report the distribution of accuracies across clients in Section G.2.
FEMNIST-original | FEMNIST-skewed | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Angle () | KL () | Angle () | KL () | ||||
FedAvg | 80.42 | 11.16 | 10.18 | 0.017 | 79.24 | 22.30 | 12.29 | 0.054 |
q-FFL | 80.91 | 10.62 | 9.71 | 0.016 | 84.65 | 18.56 | 12.01 | 0.038 |
FedMGDA | 81.00 | 10.41 | 10.04 | 0.016 | 85.41 | 17.36 | 11.63 | 0.032 |
TERM | 81.08 | 10.32 | 9.15 | 0.015 | 84.29 | 13.88 | 11.27 | 0.025 |
AFL | 82.45 | 9.85 | 9.01 | 0.012 | 85.21 | 14.92 | 11.44 | 0.027 |
Ditto | 83.77 | 10.13 | 9.34 | 0.014 | 92.51 | 14.32 | 11.45 | 0.022 |
AdaFed | 82.26 | 6.58 | 8.12 | 0.009 | 92.21 | 7.56 | 9.44 | 0.011 |
7.4 Text Data
We use The Complete Works of William Shakespeare (McMahan et al., 2017) as the dataset, and train an RNN whose input is 80-character sequence to predict the next character. In this dataset, there are about 1,129 speaking roles. Naturally, each speaking role in the play is treated as a device. Each device stored several text data and those information will be used to train a RNN on each device. The dataset is available on the LEAF website (Caldas et al., 2018). We use , and let all the devices participate in each round. The results are reported in Table 4 for the following two setups:
Setup 1: Following McMahan et al. (2017), we subsample 31 speaking roles, and assign each role to a client () to complete 500 communication rounds. We use a model with two LSTM layers (Hochreiter & Schmidhuber, 1997) and one densely-connected layer. The initial with decay rate of 0.95.
Setup 2: Among the 31 speaking roles, the 20 ones with more than 10000 samples are selected, and assigned to 20 clients (). We use one LSTM followed by a fully-connected layer. , and the number of communication rounds is 100.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
FedAvg | 53.21 | 9.25 | 51.01 | 54.41 | 50.48 | 1.24 | 48.20 | 52.10 |
q-FFL | 53.90 | 7.52 | 51.52 | 54.47 | 50.72 | 1.07 | 48.90 | 52.29 |
FedMGDA | 53.08 | 8.14 | 52.84 | 54.51 | 50.41 | 1.09 | 48.18 | 51.99 |
AFL | 54.58 | 8.44 | 52.87 | 55.84 | 52.45 | 1.23 | 50.02 | 54.17 |
TERM | 54.16 | 8.21 | 52.09 | 55.15 | 52.17 | 1.11 | 49.14 | 53.62 |
Ditto | 60.74 | 8.32 | 53.57 | 55.92 | 53.12 | 1.20 | 50.94 | 55.23 |
AdaFed | 55.65 | 6.55 | 53.79 | 55.86 | 52.89 | 0.98 | 51.02 | 54.48 |
7.5 Analysis of Results
Based on Tables 1, 2, 3 and 4, we can attain some notable insights. Compared to other benchmark models, AdaFed leads to significantly more fair solutions. In addition, the average accuracy is not scarified, yet interestingly, for some cases it is improved. We also note that the performance of AdaFed becomes more superior when the level of non-iidness is high. For instance, by referring to FEMNIST-skewed in Table 3, we observe a considerable superiority of AdaFed. Note that the average accuracy of Ditto over FEMNIST is greater than that of AdaFed. This is comprehensible, since Ditto provides a personalized solution to each device, while AdaFed only returns a global parameter .
We also observe a similar trend in three other datasets reported in Appendix D. We further analyse the effect of hyper-parameter in AdaFed in Appendix E.
7.5.1 Percentage of improved clients
We measure the training loss before and after each communication round for all participating clients and report the percentage of clients whose loss function decreased or remained unchanged, as defined below
(31) |
where is the participating clients in round , and is the indicator function. Then, we plot versus communication rounds for different fair FL benchmarks, including AdaFed. The curves for CIFAR-10 and CIFAR-100 datasets are reported in Figure 2a and Figure 2b, respectively. As seen, both AdaFed and FedMGDA+ consistently outperform other benchmark methods in that fewer clients’ performances get worse after participation. This is a unique feature of these two methods. We further note that after enough number of communication rounds, curves for both AdaFed and FedMGDA+ converge to 100% (with a bit of fluctuation).
7.5.2 Rate of decrease in loss function
In this part, we observe the loss function values for two clients over the course of training to verify Theorem 4.1. This theorem asserts that the rate of decrease in the loss function is higher for clients with larger initial loss function values. To this end, we select two clients—one with a low initial loss function and one with a high initial loss function—and depict their respective training loss as a function of communication rounds.
The curves are illustrated in Figure 3a and Figure 3b for CIFAR-10 and CIFAR-100 datasets, respectively. As observed in both curves, the rate of decrease in the loss function of the client with a larger initial loss function is higher. Additionally, close to the end of the training task, the values for the loss function of the clients converge to almost the same value, indicating fairness among the clients.
7.5.3 Convergence of
In this part, we aim to observe the behaviour of over the course of training. Particularly, we consider three cases following Theorems 5.3, 5.4 and 5.5, namely (i) & local SGD, (ii) & local GD, and (iii) & local GD.
For training, we follow the setup in Section 7.1; however, we change and the local training method—either GD or SGD—to generated the three cases mentioned above. Then, for these three cases, we normalize , and depict it versus the communication rounds.
As observed in Figures 4a, 4b and 4c, in all the three cases, tends to zero. Nonetheless, the curve for & local GD is more smooth.
8 Conclusion
In this paper, we proposed a method to enforce fairness in FL task dubbed AdaFed. In AdaFed, the aim is to adaptively tune a common direction along which the server updates the global model. The common direction found by AdaFed enjoys two properties: (i) it is descent for all the local loss functions, and (ii) the loss functions for the clients with worst performance decrease with a higher rate along this direction. These properties were satisfied by using the notion of directional derivative in the multi-objective optimization task. We then derived a closed-form formula for such common direction, and proved that AdaFed converges to a Pareto-stationary point. The effectiveness of AdaFed was demonstrated via thorough experimental results.
References
- Barocas et al. (2017) Solon Barocas, Moritz Hardt, and Arvind Narayanan. Fairness in machine learning. Nips tutorial, 1:2017, 2017.
- Bonawitz et al. (2019) Keith Bonawitz, Hubert Eichner, Wolfgang Grieskamp, Dzmitry Huba, Alex Ingerman, Vladimir Ivanov, Chloe Kiddon, Jakub Konečnỳ, Stefano Mazzocchi, Brendan McMahan, et al. Towards federated learning at scale: System design. Proceedings of machine learning and systems, 1:374–388, 2019.
- Boyd & Vandenberghe (2004) Stephen P Boyd and Lieven Vandenberghe. Convex optimization. Cambridge university press, 2004.
- Caldas et al. (2018) Sebastian Caldas, Sai Meher Karthik Duddu, Peter Wu, Tian Li, Jakub Konečnỳ, H Brendan McMahan, Virginia Smith, and Ameet Talwalkar. Leaf: A benchmark for federated settings. arXiv preprint arXiv:1812.01097, 2018.
- Cui et al. (2021) Sen Cui, Weishen Pan, Jian Liang, Changshui Zhang, and Fei Wang. Addressing algorithmic disparity and performance inconsistency in federated learning. Advances in Neural Information Processing Systems, 34:26091–26102, 2021.
- Darlow et al. (2018) Luke N Darlow, Elliot J Crowley, Antreas Antoniou, and Amos J Storkey. Cinic-10 is not imagenet or cifar-10. arXiv preprint arXiv:1810.03505, 2018.
- Désidéri (2009) Jean-Antoine Désidéri. Multiple-gradient descent algorithm (MGDA). PhD thesis, INRIA, 2009.
- Désidéri (2012) Jean-Antoine Désidéri. Multiple-gradient descent algorithm (mgda) for multiobjective optimization. Comptes Rendus Mathematique, 350(5-6):313–318, 2012.
- Du et al. (2021) Wei Du, Depeng Xu, Xintao Wu, and Hanghang Tong. Fairness-aware agnostic federated learning. In Proceedings of the 2021 SIAM International Conference on Data Mining (SDM), pp. 181–189. SIAM, 2021.
- Eichner et al. (2019) Hubert Eichner, Tomer Koren, Brendan McMahan, Nathan Srebro, and Kunal Talwar. Semi-cyclic stochastic gradient descent. In International Conference on Machine Learning, pp. 1764–1773. PMLR, 2019.
- Fliege & Svaiter (2000) Jörg Fliege and Benar Fux Svaiter. Steepest descent methods for multicriteria optimization. Mathematical methods of operations research, 51(3):479–494, 2000.
- Hamidi & Damen (2024) Shayan Mohajer Hamidi and Oussama Damen. Fair wireless federated learning through the identification of a common descent direction. IEEE Communications Letters, pp. 1–1, 2024. doi: 10.1109/LCOMM.2024.3350378.
- Hamidi et al. (2019) Shayan Mohajer Hamidi, Sanjeewa Herath, Alireza Bayesteh, and Amir Keyvan Khandani. Systems and methods for communication resource usage control, May 30 2019. US Patent App. 15/824,352.
- He et al. (2016) Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770–778, 2016.
- Hochreiter & Schmidhuber (1997) Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8):1735–1780, 1997.
- Hu et al. (2022) Zeou Hu, Kiarash Shaloudegi, Guojun Zhang, and Yaoliang Yu. Federated learning meets multi-objective optimization. IEEE Transactions on Network Science and Engineering, 2022.
- Huaizhou et al. (2013) SHI Huaizhou, R Venkatesha Prasad, Ertan Onur, and IGMM Niemegeers. Fairness in wireless networks: Issues, measures and challenges. IEEE Communications Surveys & Tutorials, 16(1):5–24, 2013.
- Huang et al. (2020a) Tiansheng Huang, Weiwei Lin, Wentai Wu, Ligang He, Keqin Li, and Albert Y Zomaya. An efficiency-boosting client selection scheme for federated learning with fairness guarantee. IEEE Transactions on Parallel and Distributed Systems, 32(7):1552–1564, 2020a.
- Huang et al. (2022) Tiansheng Huang, Weiwei Lin, Li Shen, Keqin Li, and Albert Y Zomaya. Stochastic client selection for federated learning with volatile clients. IEEE Internet of Things Journal, 9(20):20055–20070, 2022.
- Huang et al. (2020b) Wei Huang, Tianrui Li, Dexian Wang, Shengdong Du, and Junbo Zhang. Fairness and accuracy in federated learning. arXiv preprint arXiv:2012.10069, 2020b.
- Kairouz et al. (2021) Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. Foundations and Trends® in Machine Learning, 14(1–2):1–210, 2021.
- Kang et al. (2019) Jiawen Kang, Zehui Xiong, Dusit Niyato, Han Yu, Ying-Chang Liang, and Dong In Kim. Incentive design for efficient federated learning in mobile networks: A contract theory approach. In 2019 IEEE VTS Asia Pacific Wireless Communications Symposium (APWCS), pp. 1–5. IEEE, 2019.
- Krizhevsky et al. (2009) Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
- Langley (2000) P. Langley. Crafting papers on machine learning. In Pat Langley (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), pp. 1207–1216, Stanford, CA, 2000. Morgan Kaufmann.
- Le et al. (2021) Tra Huong Thi Le, Nguyen H Tran, Yan Kyaw Tun, Minh NH Nguyen, Shashi Raj Pandey, Zhu Han, and Choong Seon Hong. An incentive mechanism for federated learning in wireless cellular networks: An auction approach. IEEE Transactions on Wireless Communications, 20(8):4874–4887, 2021.
- Le & Yang (2015) Ya Le and Xuan Yang. Tiny imagenet visual recognition challenge. CS 231N, 7(7):3, 2015.
- LeCun et al. (1998) Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, 1998.
- Li et al. (2019a) Tian Li, Maziar Sanjabi, Ahmad Beirami, and Virginia Smith. Fair resource allocation in federated learning. In International Conference on Learning Representations, 2019a.
- Li et al. (2020a) Tian Li, Ahmad Beirami, Maziar Sanjabi, and Virginia Smith. Tilted empirical risk minimization. In International Conference on Learning Representations, 2020a.
- Li et al. (2020b) Tian Li, Anit Kumar Sahu, Manzil Zaheer, Maziar Sanjabi, Ameet Talwalkar, and Virginia Smith. Federated optimization in heterogeneous networks. Proceedings of Machine Learning and Systems, 2:429–450, 2020b.
- Li et al. (2021) Tian Li, Shengyuan Hu, Ahmad Beirami, and Virginia Smith. Ditto: Fair and robust federated learning through personalization. In International Conference on Machine Learning, pp. 6357–6368. PMLR, 2021.
- Li et al. (2019b) Xiang Li, Kaixuan Huang, Wenhao Yang, Shusen Wang, and Zhihua Zhang. On the convergence of fedavg on non-iid data. arXiv preprint arXiv:1907.02189, 2019b.
- Lyu et al. (2020) Lingjuan Lyu, Xinyi Xu, Qian Wang, and Han Yu. Collaborative fairness in federated learning. Federated Learning: Privacy and Incentive, pp. 189–204, 2020.
- McMahan et al. (2017) Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In Artificial intelligence and statistics, pp. 1273–1282. PMLR, 2017.
- Mercier et al. (2018) Quentin Mercier, Fabrice Poirion, and Jean-Antoine Désidéri. A stochastic multiple gradient descent algorithm. European Journal of Operational Research, 271(3):808–817, 2018.
- Mohri et al. (2019) Mehryar Mohri, Gary Sivek, and Ananda Theertha Suresh. Agnostic federated learning. In International Conference on Machine Learning, pp. 4615–4625. PMLR, 2019.
- Mukai (1980) Hiroaki Mukai. Algorithms for multicriterion optimization. IEEE transactions on automatic control, 25(2):177–186, 1980.
- Nishio & Yonetani (2019) Takayuki Nishio and Ryo Yonetani. Client selection for federated learning with heterogeneous resources in mobile edge. In ICC 2019-2019 IEEE international conference on communications (ICC), pp. 1–7. IEEE, 2019.
- Rawls (2020) John Rawls. A theory of justice: Revised edition. Harvard university press, 2020.
- Reddi et al. (2020) Sashank J Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konečnỳ, Sanjiv Kumar, and Hugh Brendan McMahan. Adaptive federated optimization. In International Conference on Learning Representations, 2020.
- Song et al. (2021) Zhendong Song, Hongguang Sun, Howard H Yang, Xijun Wang, Yan Zhang, and Tony QS Quek. Reputation-based federated learning for secure wireless networks. IEEE Internet of Things Journal, 9(2):1212–1226, 2021.
- Tong et al. (2020) Qianqian Tong, Guannan Liang, and **bo Bi. Effective federated adaptive gradient methods with non-iid decentralized data. arXiv preprint arXiv:2009.06557, 2020.
- Wang et al. (2020) Hongyi Wang, Mikhail Yurochkin, Yuekai Sun, Dimitris Papailiopoulos, and Yasaman Khazaeni. Federated learning with matched averaging. arXiv preprint arXiv:2002.06440, 2020.
- Wang et al. (2021a) Jianyu Wang, Zachary Charles, Zheng Xu, Gauri Joshi, H Brendan McMahan, Maruan Al-Shedivat, Galen Andrew, Salman Avestimehr, Katharine Daly, Deepesh Data, et al. A field guide to federated optimization. arXiv preprint arXiv:2107.06917, 2021a.
- Wang et al. (2021b) Zheng Wang, Xiaoliang Fan, Jianzhong Qi, Chenglu Wen, Cheng Wang, and Rongshan Yu. Federated learning with fair averaging. arXiv preprint arXiv:2104.14937, 2021b.
- Wu & He (2018) Yuxin Wu and Kaiming He. Group normalization. In Proceedings of the European conference on computer vision (ECCV), pp. 3–19, 2018.
- Xiao et al. (2017) Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
- Xiao et al. (2015) Tong Xiao, Tian Xia, Yi Yang, Chang Huang, and Xiaogang Wang. Learning from massive noisy labeled data for image classification. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2691–2699, 2015.
- Xu et al. (2022) **gyi Xu, Zihan Chen, Tony QS Quek, and Kai Fong Ernest Chong. Fedcorr: Multi-stage federated learning for label noise correction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10184–10193, 2022.
- Yang et al. (2021) Miao Yang, Ximin Wang, Hongbin Zhu, Haifeng Wang, and Hua Qian. Federated learning with class imbalance reduction. In 2021 29th European Signal Processing Conference (EUSIPCO), pp. 2174–2178. IEEE, 2021.
- Ye et al. (2020) Dongdong Ye, Rong Yu, Miao Pan, and Zhu Han. Federated learning in vehicular edge computing: A selective model aggregation approach. IEEE Access, 8:23920–23935, 2020.
- Zhang et al. (2020) **gfeng Zhang, Cheng Li, Antonio Robles-Kelly, and Mohan Kankanhalli. Hierarchically fair federated learning. arXiv preprint arXiv:2004.10386, 2020.
- Zhang et al. (2021) **gwen Zhang, Yuezhou Wu, and Rong Pan. Incentive mechanism for horizontal federated learning based on reputation and reverse auction. In Proceedings of the Web Conference 2021, pp. 947–956, 2021.
Appendix A Convergence of AdaFed
In the following, we provide three theorems to analyse the convergence of AdaFed under different scenarios. Specifically, we consider three cases: (i) Theorem A.1 considers and using SGD for local updates, (ii) Theorem A.2 considers an arbitrary value for and using GD for local updates, and (iii) Theorem A.4 considers and using GD for local updates.
A.1 Case 1: & local SGD
Notations: We use subscript to indicate a stochastic value. Using this notation for the values we introduced in the paper, our notations used in the proof of Theorem A.1 are summarized in Table 5.
Notation | Description |
---|---|
Stochastic gradient vector of client . | |
Matrix of Stochastic gradient vectors . | |
Stochastic gradient vector of client after orthogonalization process. | |
Matrix of orthogonalized Stochastic gradient vectors . | |
Optimum weights obtained from Equation (14) using Stochastic gradients . | |
Optimum direction obtained using Stochastic ; that is, . |
Theorem A.1.
Assume that are l-Lipschitz continuous and L-Lipschitz smooth, and that the step-size satisfies the following three conditions: (i) , (ii) and (iii) ; where is the variance of stochastic common descent direction. Then
(32) |
Proof.
Since orthogonal vectors span the same -dimensional space as that spanned by gradient vectors , then
(33) |
Similarly, for the stochastic gradients we have
(34) |
Define , where the last equality is due to the definitions in Equations 33 and 34.
We can find an upper bound for as follows
(35) | ||||
(36) | ||||
(37) | ||||
(38) | ||||
(39) | ||||
(40) |
where (36) uses stochastic gradients in the updating rule of AdaFed, (37) is obtained from the definition in (34), (38) holds following the quadratic bound for smooth functions , and lastly (40) holds considering the Lipschits continuity of .
Assuming and taking expectation from both sides, we obtain:
(41) |
Using the assumptions (i) , and (ii) , the theorem will be concluded. Note that vanishing implies reaching to a Pareto-stationary point of original MoM problem. Yet, the convergence rate is different in different scenarios as we see in the following theorems. ∎
A.1.1 Discussing the assumptions
The assumptions over the local loss functions: The two assumptions l-Lipschitz continuous and L-Lipschitz smooth over the local loss functions are two standard assumptions in FL papers providing some sorts of convergence guarantee (Li et al., 2019b).
The assumptions over the step-size: The three assumptions we enforced over the step-size could be easily satisfied as explained in the sequel. For instance, one can pick for some constant such that is satisfied. Then even if has a extremely loose upper-bound, let’s say for a small and a constant number , then all the three assumptions over the step-size in the theorem will be satisfied. Note that the convergence rate of AdaFed depends on how fast diminishes which depends on how heterogeneous the users are.
A.2 Case 2: & local GD
The notations used in this subsection are elaborated in Table 6.
Notation | Description |
---|---|
Updated weight for client after local epochs at the -th round of FL. | |
; that is, the update vector of client after local epochs. | |
Matrix of update vectors . | |
Update vector of client after orthogonalization process. | |
Matrix of orthogonalized update vectors . | |
Optimum weights obtained from Equation (14) using . | |
Optimum direction obtained using ; that is, . |
Theorem A.2.
Assume that are l-Lipschitz continuous and L-Lipschitz smooth. Denote by and the global and local learning rate, respectively. Also, define , where is the optimum weights obtained from pseudo-gradients after local epochs. Then,
(42) |
if the following conditions are satisfied: (i) , (ii) and (iii) , (iv) , and (v) .
Proof.
As discussed in the proof of Theorem A.1, we can write
(43) | ||||
(44) |
To prove Theorem A.2, we first introduce a lemma whose proof is provided in Appendix B.
Lemma A.3.
Using the notations used in Theorem A.2, and assumming that are L-Lipschitz smooth, we have .
Using Lemma A.3, we have
(45) | ||||
(46) | ||||
(47) | ||||
(48) |
where Equation 45 follows triangular inequality, Equation 46 is obtained from Equations 43 and 44, and Equation 47 uses Lemma A.3.
As seen, if , and , then . Now, by writing the quadratic upper bound we obtain:
(49) | ||||
(50) | ||||
(51) |
Noting that , and utilizing telesco** yields
(52) |
Using , the Theorem A.2 is concluded. ∎
A.3 Case 3: & local GD
Denote by the Pareto-stationary solution set of minimization problem . Then, define .
Theorem A.4.
Assume that are l-Lipschitz continuous and -convex, and that the step-size satisfies the following two conditions: (i) and (ii) . Then almost surely ; that is,
(53) |
where denotes the probability of event .
Proof.
The proof is inspired from Mercier et al. (2018). Without loss of generality, we assume that all users participate in all rounds.
Based on the definition of we can say
(54) | ||||
(55) |
To bound the third term in Equation 55, we note that from Equation 23, we have:
(56) |
To bound the second term, first note that since orthogonal vectors span the same -dimensional space as that spanned by gradient vectors , then
(57) |
Using Equation 57 and the -convexity of we obtain
(58) | ||||
(59) | ||||
(60) | ||||
(61) | ||||
(62) |
Now, we return back to Equation 55 and find the conditional expectation w.r.t. as follows
(63) |
Assume that , taking another expectation we obtain:
(64) |
which is a recursive expression. By solving Equation 64 we obtain
(65) |
It is observed that if the limit of both First term and Second term in Equation 65 go to zero, then . For the First term, from the arithmetic-geometric mean inequality we have
(66) | ||||
(67) |
From Equation 67 it is seen that if , then the First term is also converges to zero as .
On the other hand, consider the Second term in Equation 65. Obviously, if , then the Second term converges to zero as .
Hence, if (i) and (ii) , then . Consequently, based on standard supermartingale (Mercier et al., 2018), we have
(68) |
∎
Appendix B Proof of Lemma A.3
Proof.
(69) | ||||
(70) |
Hence,
(71) |
∎
Appendix C More about fairness in FL
C.1 Sources of unfairness in federated learning
Unfairness in FL can arise from various sources and is a concern that needs to be addressed in FL systems. Here are some of the key reasons for unfairness in FL:
1. Non-Representative Data Distribution: Unfairness can occur when the distribution of data across participating devices or clients is non-representative of the overall population. Some devices may have more or less relevant data, leading to biased model updates.
2. Data Bias: If the data collected or used by different clients is inherently biased due to the data collection process, it can lead to unfairness. For example, if certain demographic groups are underrepresented in the training data of some clients, the federated model may not perform well for those groups.
3. Heterogeneous Data Sources: Federated learning often involves data from a diverse set of sources, including different device types, locations, or user demographics. Variability in data sources can introduce unfairness as the models may not generalize equally well across all sources.
4. Varying Data Quality: Data quality can vary among clients, leading to unfairness. Some clients may have noisy or less reliable data, while others may have high-quality data, affecting the model’s performance.
5. Data Sampling: The way data is sampled and used for local updates can introduce unfairness. If some clients have imbalanced or non-representative data sampling strategies, it can lead to biased model updates.
6. Aggregation Bias: The learned model may exhibit a bias towards devices with larger amounts of data or, if devices are weighted equally, it may favor more commonly occurring devices.
C.2 Fairness in conventional ML Vs. FL
The concept of fairness is often used to address social biases or performance disparities among different individuals or groups in the machine learning (ML) literature (Barocas et al., 2017). However, in the context of FL, the notion of fairness differs slightly from traditional ML. In FL, fairness primarily pertains to the consistency of performance across various clients. In fact, the difference in the notion of fairness between traditional ML and FL arises from the distinct contexts and challenges of these two settings:
1. Centralized vs. decentralized data distribution:
-
•
In traditional ML, data is typically centralized, and fairness is often defined in terms of mitigating biases or disparities within a single, homogeneous dataset. Fairness is evaluated based on how the model treats different individuals or groups within that dataset.
-
•
In FL, data is distributed across multiple decentralized clients or devices. Each client may have its own unique data distribution, and fairness considerations extend to addressing disparities across these clients, ensuring that the federated model provides uniform and equitable performance for all clients.
2. Client autonomy and data heterogeneity:
-
•
In FL, clients are autonomous and may have different data sources, labeling processes, and data collection practices. Fairness in this context involves adapting to the heterogeneity and diversity among clients while still achieving equitable outcomes.
-
•
Traditional ML operates under a centralized, unified data schema and is not inherently designed to handle data heterogeneity across sources.
We should note that in certain cases where devices can be naturally clustered into groups with specific attributes, the definition of fairness in FL can be seen as a relaxed version of that in ML, i.e., we optimize for similar but not necessarily identical performance across devices (Li et al., 2019a).
Nevertheless, despite the differences mentioned above, to maintain consistency with the terminology used in the FL literature and the papers we have cited in the main body of this work, we will continue to use the term “fairness" to denote the uniformity of performance across different devices.
Appendix D Additional three datasets
In this section, we evaluate the performance of AdaFed against some benchmarks over some other datasets, namely Fashion MNIST, CINIC-10, and TinyImageNet whose respective results are reported in Sections D.1, D.2 and D.3.
D.1 Fashion MNIST
Fashion MNIST (Xiao et al., 2017) is an extension of MNIST dataset (LeCun et al., 1998) with images resized to pixels.
We use a fully-connected neural network with 2 hidden layers, and use the same setting as that used in Li et al. (2019a) for our experiments. We set and use full batchsize, and use . Then, we conduct 300 rounds of communications. For the benchmarks, we use the same as those we used for CIFAR-10 experiments. The results are reported in Table 7.
By observing the three different classes reported in Table 7, we observe that the fairness level attained in AdaFed is not limited to a dominate class.
Algorithm | shirt | pullover | T-shirt | ||
---|---|---|---|---|---|
FedAvg | 80.42 | 3.39 | 64.26 | 87.00 | 89.90 |
q-FFL | 78.53 | 2.27 | 71.29 | 81.46 | 82.86 |
FedMGDA+ | 79.29 | 2.53 | 72.46 | 79.74 | 85.66 |
FedFA | 80.22 | 3.41 | 63.71 | 86.87 | 89.94 |
AdaFed | 79.14 | 2.12 | 72.49 | 79.81 | 86.99 |
D.2 CINIC-10
CINIC-10 (Darlow et al., 2018) has 4.5 times as many images as those in CIFAR-10 dataset (270,000 sample images in total). In fact, it is obtained from ImageNet and CIFAR-10 datasets. As a result, this dataset fits FL scenarios since the constituent elements of CINIC-10 are not drawn from the same distribution. Furthermore, we add more non-iidness to the dataset by distributing the data among the clients using Dirichlet allocation with .
For the model, we use ResNet-18 with group normalization, and set . There are 200 communication rounds in which all the clients participate with . Also, . Results are reported in Table 8.
Algorithm | Worst 10% | Best 10% | ||
---|---|---|---|---|
q-FFL | 86.57 | 14.91 | 57.70 | 100.00 |
Ditto | 86.31 | 15.14 | 56.91 | 100.00 |
AFL | 86.49 | 15.12 | 57.62 | 100.00 |
TERM | 86.40 | 15.10 | 57.30 | 100.00 |
AdaFed | 86.34 | 14.85 | 57.88 | 99.99 |
D.3 TinyImageNet
Tiny-ImageNet (Le & Yang, 2015) is a subset of ImageNet with 100k samples of 200 classes. We distribute the dataset among clients using Dirichlet allocation with
We use ResNet-18 with group normalization, and set . There are 400 communication rounds in which all the clients participate with . The results are reported in Table 9.
Algorithm | Worst 10% | Best 10% | ||
---|---|---|---|---|
q-FFL | 18.90 | 3.20 | 13.12 | 23.72 |
AFL | 16.55 | 2.38 | 12.40 | 20.25 |
TERM | 16.41 | 2.77 | 11.52 | 21.02 |
FedMGDA+ | 14.00 | 2.71 | 9.88 | 19.21 |
AdaFed | 18.05 | 2.35 | 13.24 | 23.08 |
Appendix E Experiments details, tuning hyper-parameters
For the benchmark methods and also AdaFed, we used grid-search to find the best hyper-parameters for the underlying algorithms. The parameters we tested for each method are as follows:
AdaFed: .
q-FFL: .
TERM: .
AFL: .
Ditto: .
FedMGDA+: .
FedFA: , .
To have a better understanding about how the parameter in AdaFed affects the performance of the FL task, we report the results for different values of in AdaFed in this section.
E.1 CIFAR-10
The best hyper-parameters for the benchmark methods are: for q-FFL, for FedMGDA+, and , for FedFA. The detailed results for different in AdaFed are reported in Table 10. We used as the best point for Table 1.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 5% | Best 5% | Worst 10% | Best 10% | ||||
45.44 | 3.43 | 20.18 | 68.04 | 59.88 | 4.89 | 48.12 | 70.62 | |
45.77 | 3.36 | 23.55 | 68.07 | 60.39 | 4.81 | 49.43 | 70.63 | |
46.01 | 3.18 | 27.12 | 68.12 | 60.98 | 4.70 | 50.91 | 70.70 | |
46.55 | 3.18 | 27.75 | 68.20 | 63.24 | 4.54 | 54.55 | 71.12 | |
46.42 | 3.01 | 31.12 | 67.73 | 64.80 | 4.50 | 58.24 | 72.45 | |
46.00 | 2.88 | 35.21 | 67.35 | 63.25 | 4.66 | 51.74 | 71.25 |
E.2 CIFAR-100
The best hyper-parameters for the benchmark methods are: for q-FFL, in TERM, and in AFL. In addition, the detailed results for different in AdaFed are reported in Table 11. We used as the best point for Table 2.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
29.41 | 4.45 | 24.41 | 39.21 | 17.05 | 6.71 | 10.04 | 27.41 | |
30.12 | 4.05 | 25.23 | 39.41 | 17.77 | 6.09 | 10.43 | 28.42 | |
31.05 | 3.52 | 26.13 | 40.12 | 19.51 | 4.95 | 10.89 | 32.10 | |
31.42 | 3.03 | 28.91 | 40.41 | 20.02 | 4.45 | 11.81 | 34.11 | |
31.23 | 2.95 | 28.12 | 40.20 | 19.79 | 4.31 | 11.86 | 33.67 | |
31.34 | 2.91 | 28.52 | 40.15 | 19.61 | 4.56 | 11.42 | 32.91 |
E.3 Fashion MNIST
The best hyper-parameters for the benchmark methods are: for FedMGDA+, for q-FFL, , for FedFA. The detailed results for different in AdaFed are reported in Table 12. We used as the best point for Table 7.
Algorithm | shirt | pullover | T-shirt | ||
---|---|---|---|---|---|
78.84 | 2.55 | 71.77 | 78.34 | 84.12 | |
78.88 | 2.41 | 71.73 | 78.66 | 85.62 | |
79.24 | 2.30 | 72.46 | 79.14 | 85.66 | |
79.14 | 2.12 | 72.33 | 79.81 | 83.99 | |
79.04 | 2.09 | 71.55 | 78.37 | 85.41 | |
78.91 | 1.96 | 71.43 | 78.04 | 85.82 |
E.4 FEMNIST
The best hyper-parameters for the benchmark methods are: for Ditto, for q-FFL, for TERM, for AFL. Also, the detailed results for different in AdaFed are reported in Table 3. We used as the best point for Table 13.
FEMNIST-original | FEMNIST-skewed | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Angle () | KL () | Angle () | KL () | ||||
81.32 | 13.59 | 10.85 | 0.019 | 84.39 | 13.54 | 11.32 | 0.024 | |
82.67 | 12.03 | 10.68 | 0.018 | 87.66 | 12.02 | 10.91 | 0.019 | |
81.60 | 8.72 | 9.23 | 0.011 | 88.62 | 10.59 | 10.75 | 0.017 | |
82.26 | 6.58 | 8.12 | 0.009 | 92.21 | 7.56 | 9.44 | 0.011 | |
80.10 | 5.16 | 7.29 | 0.007 | 90.12 | 5.82 | 7.31 | 0.009 | |
80.05 | 3.03 | 6.44 | 0.007 | 84.38 | 4.49 | 6.99 | 0.008 |
E.5 Shakespeare
The best hyper-parameters for the benchmark methods are: for q-FFL, for Ditto, and for AFL. Furthermore, the results obtained for different values in AdaFed are reported in Table 14. We used as the best point for Table 4.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
48.40 | 13.5 | 44.12 | 51.29 | 48.80 | 1.58 | 46.23 | 51.12 | |
53.55 | 8.01 | 50.96 | 54.46 | 51.67 | 1.10 | 48.71 | 53.16 | |
55.65 | 6.55 | 53.79 | 55.86 | 52.89 | 0.98 | 51.02 | 54.48 | |
53.91 | 5.10 | 51.94 | 54.06 | 51.44 | 1.06 | 50.88 | 54.52 | |
54.40 | 4.15 | 52.17 | 54.77 | 51.20 | 1.05 | 50.72 | 54.61 | |
54.56 | 4.22 | 52.20 | 54.73 | 51.19 | 1.07 | 50.70 | 54.01 |
E.6 CINIC-10
The best hyper-parameters for the benchmark methods are: for TERM, for q-FFL, for Ditto, and for AFL. Furthermore, the results obtained for different values in AdaFed are reported in Table 15. We used as the best point for Table 8.
Algorithm | Worst 10% | Best 10% | ||
---|---|---|---|---|
85.17 | 15.71 | 54.67 | 99.92 | |
85.87 | 15.54 | 56.12 | 99.95 | |
86.13 | 15.32 | 57.01 | 99.98 | |
86.34 | 14.85 | 57.88 | 99.99 | |
86.03 | 15.01 | 57.72 | 99.98 | |
85.49 | 15.08 | 57.23 | 99.99 |
E.7 TinyImageNet
The best hyper-parameters for the benchmark methods are: for FedMGDA+, for TERM, for q-FFL, and for AFL. Furthermore, the results obtained for different values in AdaFed are reported in Table 16. We used as the best point for Table 9.
Algorithm | Worst 10% | Best 10% | ||
---|---|---|---|---|
13.25 | 3.14 | 9.82 | 19.24 | |
14.38 | 2.72 | 10.12 | 19.97 | |
16.20 | 2.65 | 11.65 | 21.12 | |
18.05 | 2.35 | 13.24 | 23.08 | |
17.76 | 2.31 | 12.44 | 22.84 | |
17.05 | 2.38 | 12.58 | 23.67 |
E.8 The effect of parameter
In this section, we reported the results for AdaFed over different datasets when takes different values. Based on the tables reported in this section, we observe almost a similar trend over all the dataset. As a rule of thumb, a higher (lower) yields a higher (lower) fairness and slightly lower (higher) accuracy. Nevertheless, the best performance of AdaFed (in terms of establishing an appropriate trade-off between average accuracy and fairness) is achieved for a moderate value of . This is also consistent with the other fairness methods in the literature, where in most cases, the best hyper-parameter is a moderate one.
Appendix F Computation cost of Adafed
F.1 Comparing to FedMGDA+
First, note that AdaFed concept is built upon that of FedMGDA+ (Hu et al., 2022) (and FairWire in Hamidi & Damen (2024)), in that both use Pareto-optimal notion to enforce fairness in FL task. Note that the optimal solutions in MoM usually forms a set (in general of infinite cardinality). As discussed, what distinguishes FedMGDA+ and AdaFed is that to which point of this set these algorithms converge. Particularly, AdaFed converges to more uniform solutions Figure 1a. This is because FedMGDA+ algorithm only satisfies Condition (I), yet in AdaFed, both Conditions (I) and (II) are held.
Interestingly, the cost of performing AdaFed is less than that of performing FedMGDA+. To elucidate, FedMGDA+ also finds the minimum-norm vector in the convex hull of the gradients’ space in order to find a common descent direction. To this end, they used generic quadratic programming which entails iteratively finding the minimum-norm vector in the convex hull of the local gradients. One of the pros of AdaFed is that it finds the common descent direction without performing any iterations over the gradient vectors. Thus, AdaFed not only yields a higher level of fairness compared to FedMGDA+, but also solves its complexity issue.
F.2 Running time for AdaFed
Assume that the number of clients is , and the dimension of the gradient vectors is . Then, the orthogonalization for -th client, , needs operations (by operations we meant multiplications and additions). Hence, the total number of operations needed for orthogonalization process in equal to (Also note that Gram-Schmidt is the most efficient algorithm for orthogonalization).
In our experimental setup, we realized that the overhead of AdaFed is negligible, resulting almost the same overall running time for FedAvg and AdaFed. To justify this fact, please refer to FedMGDA+ paper where they discussed the overhead of their proposed method; as they claimed, the overhead is negligible yielding the same running time as FedAVG. On the other hand, as explained in Section F.1, the complexity of AdaFed is lower than that of FedMGDA+.
Appendix G Curves and histograms
G.1 Training curves for CIFAR-10 and CIFAR-100
In this subsection, we depict the average test accuracy over the course of training for CIFAR-10 dataset using setup one (see Section 7.1). In particular, we depict the average test accuracy across all the clients Vs. the number of communication rounds. Additionally, to demonstrate the convergence of the FL algorithms after 2000 communication rounds, we have depicted the training curve for 4000 rounds.
The curve for each method is obtained by using the best hyper-parameter of the respective method (we discussed the details of hyper-parameter tuning in Appendix E). Furthermore, the curves are averaged over five different seeds.
The results are shown in Figure 5 and Figure 6 for CIFAR-10 and CIFAR-100, respectively. Particularly in Figure 5, AdaFed converges faster than the benchmark methods. Specifically, AdaFed reaches average test accuracy of 40% after around 400 communication rounds; however, the benchmark methods reach this accuracy after around 900 rounds. Indeed, this is another advantage of AdaFed in addition to imposing fairness across the clients.
G.2 Histogram of accuracies
To better observe the spread of clients accuracy, we depict the histogram of accuracy across 500 clients for the Original FEMNIST dataset (the setup for the experiment is discussed in Section D.1). To this end, we depict the histogram of the clients’ accuracies for three different methods: (i) FedAvg, (ii) Q-FFL, and (iii) AdaFed; all using their well-tuned hyper-parameters. The result is depicted in Figure 7. As seen, the distribution of the accuracy is more concentrated (fair) for AdaFed.
Appendix H CIFAR-100 results with more local epochs
In this section, we want to test the performance of AdaFed using a larger number of local epochs . To this end, we use the same setups as those used in the main body of the paper to produce the results for CIFAR-100, but we change the number of local epochs to 10 and 20. 888We selected because these values have been commonly utilized in the literature for the CIFAR-100 dataset.. The results for and are reported in Table 17 and Table 18, respectively. We highlight two key observations from the tables:
-
•
AdaFed can still provide a higher level of fairness compared to the benchmark methods;
-
•
While increasing the number of local epochs from 1 to 10 results in higher average accuracy, this trend is not observed when further increasing to 20.
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
FedAvg | 31.14 | 4.09 | 25.30 | 40.54 | 20.54 | 6.42 | 11.12 | 33.47 |
q-FFL | 29.45 | 4.66 | 25.35 | 39.91 | 20.77 | 6.20 | 11.05 | 33.52 |
AFL | 31.17 | 3.69 | 25.12 | 39.52 | 19.32 | 4.85 | 11.23 | 28.93 |
TERM | 30.56 | 3.63 | 27.19 | 39.46 | 17.91 | 5.87 | 10.11 | 32.00 |
AdaFed | 31.19 | 3.14 | 28.81 | 40.42 | 20.41 | 4.71 | 11.39 | 34.08 |
Setup 1 | Setup 2 | |||||||
---|---|---|---|---|---|---|---|---|
Algorithm | Worst 10% | Best 10% | Worst 10% | Best 10% | ||||
FedAvg | 29.11 | 4.31 | 24.61 | 39.45 | 18.05 | 6.12 | 9.15 | 30.12 |
q-FFL | 29.15 | 4.23 | 25.12 | 39.67 | 19.02 | 6.15 | 8.41 | 31.66 |
AFL | 30.38 | 3.78 | 25.00 | 39.12 | 17.74 | 4.96 | 10.01 | 27.08 |
TERM | 31.15 | 3.62 | 27.02 | 40.41 | 15.81 | 5.68 | 8.17 | 29.26 |
AdaFed | 30.41 | 3.19 | 27.35 | 40.18 | 18.37 | 4.21 | 10.55 | 31.78 |
Appendix I Integration with a Label Noise Correction method
I.1 What is label noise in FL?
Label noise in FL refers to inaccuracies or errors in the ground truth labels associated with the data used for training. It occurs when the labels assigned to data points are incorrect or noisy due to various reasons. Label noise can be introduced at different stages of data collection, annotation, or transmission, and it can have a significant impact on the performance and reliability of FL models.
Label noise in FL is particularly challenging to address because FL relies on decentralized data sources, and participants may have limited control over label quality in remote environments. Dealing with label noise often involves develo** robust models and FL algorithms that can adapt to the presence of inaccuracies in the labels.
I.2 Are the fair FL algorithms robust against label noise?
The primary intention of the fair FL algorithms including AdaFed is to ensure fairness among the clients while maintaining the average accuracy across them. Yet, these algorithms are not robust against label noise (mislabeled instances).
Nonetheless, AdaFed could be integrated with label-noise resistant methods in the literature yielding an FL method which (i) satisfies fairness among the clients, and (ii) is robust against the label noise. In particular, among the label-noise resistant FL algorithms in the literature, we select FedCorr (Xu et al., 2022) to be integrated with AdaFed.
FedCorr introduces a dimensionality-based filter to identify noisy clients, which is accomplished by measuring the local intrinsic dimensionality (LID) of local model prediction subspaces. They demonstrate that it is possible to distinguish clean datasets from noisy ones by observing the behavior of LID scores during the training process (we omit further discussions about FedCorr, and refer interested readers to their paper for more details).
Similarly to FedCorr, we use a real-world noisy dataset, namely Clothing1M999Clothing1M contains 1M clothing images in 14 classes. It is a dataset with noisy labels, since the data is collected from several online shop** websites and include many mislabelled samples. (Xiao et al., 2015), and we use exactly the same setting as they used for this dataset101010https://github.com/Xu-**gyi/FedCorr. In particular, we use local SGD with a momentum of 0.5, with a batch size of 16, and five local epochs, and set the hyper-parameter in their algorithm. In addition, when integrated with AdaFed, we set for AdaFed.
The results are summarized in Table 19. As observed, the average accuracy obtained by AdaFed is around 2.2% lower than that obtained from FedCorr which shows that AdaFed is not robust against label-noise. Moreover, as expected AdaFed results in a more fair client accuracy. On the other hand, when AdaFed is combined with FedCorr, the average accuracy improves while maintaining satisfactory fairness among the clients.
Algorithm | Worst 10% | Best 10% | ||
---|---|---|---|---|
FedAvg | 70.49 | 13.25 | 43.09 | 91.05 |
FedCorr | 72.55 | 13.27 | 43.12 | 91.15 |
AdaFed | 70.35 | 5.17 | 49.91 | 90.77 |
FedCorr + AdaFed | 72.29 | 8.12 | 46.52 | 91.02 |