FedAWARE: Maximizing Gradient Diversity
for Heterogeneous Federated Server-side Optimization
Abstract
Federated learning (FL) is a distributed learning framework where numerous clients collaborate with a central server to train a model without sharing local data. However, the standard federated optimization in real-world applications faces both statistical and system heterogeneity challenges, which result in unfavorable convergence behavior. The previous works attempted to modify the local training process (client-side) to tackle heterogeneity challenges. However, they ignored that the updates on the server side can coordinate the diverse local updates efficiently. This work explores the effect of server-side updates against heterogeneity issues. We first introduce the gradient diversity maximization direction findings, suggesting the global model moves continuously in this direction for fast and stable convergence. Then, we derive a novel server-side optimizer FedAWARE with rigorous convergence analysis for general non-convex settings. Our extensive experiments across multiple heterogeneous federated settings using four datasets showcase that FedAWARE achieves competitive convergence performance in comparison to state-of-the-art adaptive federated optimizers. Furthermore, our results show that FedAWARE can enhance the performance of FL algorithms as a plug-in module. Our source code is available at https://github.com/dunzeng/FedAWARE.
1 Introduction
We study a standard cross-device federated learning (FL) task [15], which minimizes a finite sum of local empirical objectives:
(1) |
where is parameters of machine learning model, is the global objective weighted by , , is stochastic batch data, and denotes dataset on the -th client (}). The federated optimization framework that minimizes the global objective involves client optimization and server optimization procedures [35], as shown in Figure 1 and Algorithm 2. Take the FedAvg [33] as a example:
(2) |
where denotes stochastic gradients over a mini-batch of samples, denotes client ’s model after the local update steps at the -th communication round, and is the client learning rate. The federated optimization framework is powerful and covers a broader range of FL algorithms [33, 35, 45, 41]. However, it suffers from two major optimization challenges [25, 26].
Statistical heterogeneity is a crucial challenge, resulting the local updates to divergence direction. This problem majorly arises from data being non-identically distributed (Non-IID) among devices. System heterogeneity represents another critical challenge, that causes unbalanced local update steps of clients [26, 42] due to the varying hardware specifications, operating systems, and software configurations during cross-device training [13]. Hence, faster clients may perform more local update steps than slower clients within a fixed wall-clock time interval. The unbalanced local updates will further enlarge the variance of local updates. These two challenges result in unfavorable convergence behavior of FL, further inducing communication inefficiency and model performance degeneration. For a more in-depth discussion of FL and the challenges, we defer to works [15, 41].
To address the statistical heterogeneity, previous federated optimization algorithms propose to manipulate local updates, such as inducing control variates [16], momentum terms [10, 35], dynamic regularization [1], or local penalty terms [26] to client-side optimization. On the other hand, some works [16, 33, 35] assume that the number of local updates is constant and balanced across all clients , thereby ignoring the system heterogeneity impacts. For alleviating the unbalanced local update steps impacts, these algorithms [26, 42, 1] primarily modified client-side optimization or used advanced local solvers. For example, FedProx [26] proposes using local penalty terms to prevent large local updates . And, FedNova [42] clips the local updates based on the local update steps for optimization objective consistency. However, the potential of server-side optimization is not fully explored, as most algorithms only update the global model via vanilla averaged gradient descent.
In this paper, we argue that the server can be powerful enough to handle the heterogeneity challenges without using advanced local solvers. To this end, we explore the impacts of such hybrid heterogeneity (i.e., statistical heterogeneity with unbalanced local updates), particularly on the server-side optimization in federated optimization framework (2). Our results answer a critical question:
How can server-side aggregation of local updates mitigate the impacts of heterogeneity?
Contributions. The main contributions of this work can be summarised as follows:
-
•
We first propose the gradient diversity maximization direction, that is, the aggregation results with the minimal norm of linearly combined local updates. Our findings suggest that the global model moves continuously in the gradient diversity maximization direction with fast and stable convergence. Besides, we highlight gradient diversity as new training dynamics for FL and find that stationary points with higher gradient diversity tend to achieve better test accuracy.
-
•
We introduce a novel federated server-side optimization method called Federated Adaptive Weighted AggREgator (FedAWARE), which adapts the direction of global model updates to enlarge gradient diversity. We provide rigorous convergence guarantees for gradient diversity maximization theory and the effectiveness of FedAWARE for tackling heterogeneity issues.
-
•
We show that FedAWARE is orthogonal with existing algorithms and can be a plug-in module for enhancing the state-of-the-art FL algorithms. In detail, we modify the gradient descent direction of the algorithms to maximize their gradient diversity dynamics and find their accuracy is improved.
-
•
We assess our findings on various degrees of hybrid heterogeneity settings across four datasets. Intensive empirical evidence demonstrates that FedAWARE consistently outperforms baseline optimization algorithms. The results support our findings about gradient diversity and emphasize the importance of adaptivity in heterogeneous federated optimization.
2 Preliminaries
Related works. This paper is related to a broader range of federated optimization algorithms against heterogeneity issues as discussed in Appendix A. Representative adaptive optimization algorithms [35, 52, 1] are the most relevant to our work. Because they can be viewed as server-side optimization works, incorporating adaptive momentum to achieve fast convergence against heterogeneity issues. We justify our method optimizes different terms in Section 4, which can further enhance their performance in Section 5.
Settings. In this paper, we allow the number of local steps to be not necessarily equal for denoting system heterogeneity. Typically, the number of local update steps depends on factors such as the chosen batch size, training epoch, and the number of data samples, which can vary across clients. Different devices in cross-device federated learning may have varying computational abilities and data quantities. Therefore, more powerful devices may perform local training with larger batch sizes and more epochs [26]. Besides, clients typically run multiple steps of local SGD and only upload their updates, and the FL server only accesses the uploaded information. We focus on the non-convex optimization problem for (1), typically covering the training of neural networks. Therefore, our analyses rely on common non-convex optimization assumptions [35, 45, 1] on local objectives and we use to denote norm as default:
Assumption 2.1 (Smoothness)
Each objective for all is -smooth, inducing that for all , it holds .
Assumption 2.2 (Unbiasedness and Bounded Local Variance)
For each and , we assume the access to an unbiased stochastic gradient of client’s true gradient , i.e.,. The function have -bounded (local) variance i.e.,.
3 Analysis of Statistical Heterogeneity and System Heterogeneity Impacts
This section provides our theoretical insights into the general impacts of hybrid heterogeneity on federated optimization. In Section 3.1, we discussed the theoretical measurement of statistical heterogeneity and highlighted the power of gradient diversity. Then, we showed a loose upper bound of averaged local updates and discussed how previous works minimize it in Section 3.2. Moreover, we propose the gradient diversity maximization direction, which is the aggregation results with the minimal norm of linearly combined local updates. Proofs can be found in Appendix B.
3.1 Gradient Diversity is a Fine-Grained Measurement of Statistical Heterogeneity Impacts
We propose using gradient diversity to measure the degrees of statistical heterogeneity status. The definition of gradient diversity is provided below:
Similar definitions have been proposed for differing purposes [26, 51, 9]. Gradient diversity quantifies the degree to which individual gradients diverge from each other. Specifically, corresponds to the independent and identically distributed (IID) settings, such that all the local functions converge in the same direction. In particular, gradient diversity is large when the gradients are almost orthogonal, or in opposite directions. Therefore, a larger value of indicates more statistical heterogeneity among the local functions. In federated optimization, FedProx [26] and subsequent works [50, 43, 5] introduce an assumed upper bound of gradient diversity to convergence rate for representing the greatest statistical heterogeneity.
Analogous to gradient diversity, recent works have commonly made assumptions about measuring statistical heterogeneity by first-order gradients. For example, Assumption 3.1 is used by recent works[12, 46, 23], while Assumption 3.2 is used by works[50, 43, 5]. It is important to note that these terminologies are relevant to each other, as shown in Lemma 3.1.
Assumption 3.1 (Bounded global variance)
We assume the averaged global variance is bounded, i.e., for all .
Assumption 3.2 (Bounded gradient dissimilarity)
There exist constants such that for all .
Lemma 3.1 (Heterogeneity assumption equivalence)
Corollary 3.1 (Bounded gradient diversity)
Theoretical observation: the evolution of gradient diversity is ignored. In the FL training, previous works only focus on the upper bound of gradient diversity implicitly using Assumption 3.2, 3.1. Moreover, these works typically suggest their convergence rate is negatively related to a larger upper bound of gradient diversity. However, the gradient diversity measures the diversity information in local updates during training, which is not considered. Therefore, it is important to understand how the evolution of affects a federated optimization process. Following previous works, we use Assumption 3.1 as the implicit upper bound of in this paper. And, our convergence analysis in Section 4 additionally focuses on the evolution of in the FL training process.
3.2 Hybrid Heterogeneity Causes Loose Upper Bound of Averaged Local Updates
This section shows that additional system heterogeneity will further enhance the impacts of statistical heterogeneity in federated optimization. We begin our analysis by examining the scenario where all clients run the same steps of local updates. This is captured in the following lemma:
Lemma 3.2 (Upper bound of balanced local updates [35])
Then, we further extend the lemma to a more general scenario where clients run unbalanced local update steps. Corollary 3.2 discusses a loose upper bound on the averaged local updates:
Corollary 3.2 (Loose upper bound of unbalanced local updates)
Remark 3.1
We do not assume a bound of local dissimilarity in . Therefore, when the number of local update steps becomes unbalanced, the upper bound (4) is replaced by (5) with the induced hybrid heterogeneity term . There will always be at least a client such that , making Assumption 3.1 inapplicable. Consequently, the term is enlarged due to the unbalanced local steps, making (5) a very loose bound. Consequently, this can negatively impact the performance of federated optimization.
Theoretical observation: alleviating hybrid heterogeneity by minimizing (5). Typically, previous works in federated optimization implicitly minimize a few terms in the upper bound (5) to improve optimization performance. For example, FedProx [26] leverages a penalty term to reduce the local updates in Corollary 3.2. Similarly, SCAFFOLD [16], FedAvgM [10], and FedDyn [1] correct the local updates using variance regularization terms to narrow the variance and . FedNova [42] clips local updates based on the local steps to reduce the scale effects of . Therefore, minimizing the upper bound of (5) can efficiently mitigate hybrid heterogeneity, while previous works achieve this by manipulating local updates. Recall that the non-convex federated optimization decreases the from to , while we propose the term can be further minimized by the server at each round for a tight bound (5). And, previous convergence analysis of FedAvg variants [26, 16, 42] expected a low upper bound of gradient diversity (discussed in Appendix D.7) for better convergence rate. However, minimizing potentially enlarge the upper bound of gradient diversity by Corollary 3.2. Therefore, gradient diversity in Corollary 3.1 and hybrid heterogeneity in Corollary 3.2 reveal that both their upper bounds are related to the global gradient , revealing an interesting trade-off in convergence analysis.
Empirical observation: gradient diversity of FedAvg. Since the ultimate goal of a FL system is to train a well-generalized global model, it is important to identify the relation among gradient diversity, global gradient, and model quality. To this end, we conduct observation experiments of FedAvg on heterogeneous federated CIFAR10 (detailed in Section 5). We show the training dynamics of test accuracy, gradient diversity, and global first-order gradient in Figure 2. Higher test accuracy curves correspond to trajectory points with higher gradient diversity. Hence, larger gradient diversity values of a federated optimization do not create a worse convergence performance. The observation empirically reveals a positive relationship between gradient diversity dynamics and model quality.
3.3 Gradient Diversity Maximization for Tighter Averaged Local Updates
We consider the simple and effective federated weighted averaging form on server-side optimization for a tighter (5) (i.e., minimizing ). The weight typically represents the importance of each local function in the global objective. Local function reweighting scheme has been adopted to improve the fairness [27, 34], robustness [24], and generalization [28] via adjusting for FedAvg.
Analogously, we use an dynamical weights to study a surrogate global objective [2, 42, 43]: . We focus on the adaptive global objective with appropriate adaptive weights . This is technically different from previous work that considers the global objective to be deterministic for a fixed [33, 35, 45]. Then, we replace the global gradient of (3) with the surrogate global gradient:
Definition 3.2 (Surrogate gradient diversity)
The surrogate gradient diversity is defined as:
(6) |
is the surrogate global gradient. And, we keep the for local gradients in numerator.
We provide the gap between surrogate gradient diversity and original gradient diversity in Appendix D.4. This modification allows us to capture the convergence differences between the practically applied weights and theoretically assume weights as elaborated in Section 4.
Deriving gradient diversity maximization direction. Since the FL server cannot directly access local data samples due to privacy concernss [58], it relies solely on the local updates uploaded from clients at each round. the objective of server-side gradient diversity maximization is to minimize the denominator of (6), with the numerator determined by the local updates. We provide an illustration case with in Appendix D.1. For a general case, the local updates are observed by the FL server at the -th round. We can find a minimum of the norm of weighted averaged global gradients . Therefore, our gradient diversity maximization direction becomes:
(7) |
where . The constrained minimization problem is finding a minimum-norm point in the convex hull of the set of input gradients. As the dimension of gradients can be millions, we use the Frank-Wolfe algorithm [14] to solve it. Importantly, we highlight that the gradient diversity maximization direction is a non-zero vector (i.e., from (7)) in the practice of non-convex optimization as discussed in Appendix D.5. Besides, (7) is a similar sub-problem from multi-objective optimization works [14, 38, 60]. We clarify the differences in Appendix D.2.
4 Methodology and Convergence Guarantee of FedAWARE
In this section, we present a simple yet effective server-side optimizer FedAWARE as shown in Algorithm 1. Especially, Algorithm 1 can also involve an optional extension of FedAWARE to other server-side optimizers as shown in green. We provide convergence analysis of FedAWARE (without using extention) details in Appendix C. And, we discuss the implications of our novel extension in Remark 4.2.
Support for partial participation. Solving (7) typically requires access to all local first-order gradients from clients, which is often infeasible in FL systems. To overcome this limitation, FedAWARE approximates the local updates using the history momentum of clients, denoted as . The update rule of momentum is controlled by a constant in Line 10, Algorithm 1.
Lemma 4.1
We provide the Lemma 4.1 to theoretically demonstrate the upper bound of the momentum approximation, which highlights that this can stabilize the (5) with a proper . In this paper, we set and to be the same for all clients. Our detailed analyses in the Appendix C show the FedAWARE can be further improved by designing and for each client, which we will study in future work. Then, we present the convergence guarantee of Algorithm 1:
Theorem 4.1 (Convergence to the stationary points of Algorithm 1)
Remark 4.1
The terms reflect the impact of hybrid heterogeneity on the convergence rate. In other words, large heterogeneity terms increase the convergence error, resulting in worse optimization performance. Our convergence analysis evaluates the feasibility of updating the global model along with the gradient diversity maximization direction. Concretely, Algorithm 1 minimizes a surrogate global objective given by , while using term to denote the difference between the surrogate objective and the original objective (See details in Lemma C.2 from Appendix). Specially, the surrogate objective (1) is dynamically determined by the in Algorithm 1. Hence, the convergence rate denotes the status of the final stationary point and the speed of reaching it. It suggests that Algorithm 1 tends to make the model converge to a point with large gradient diversity. Besides, if we let decay with communication rounds, our convergence rate matches the best-known rate in non-convex optimization works [45, 16].
The implications of surrogate gradient diversity dynamics. Theorem 4.1 describes the convergence behavior of a broad class of FedAvg variants. The final term in (8) suggests the convergence performance is related to overall surrogate gradient diversity dynamics of the optimization trajectory . In other words, our gradient diversity maximization findings suggest the heterogeneous federated optimization algorithms should create a trajectory , resulting in a higher curve of gradient diversity . We evaluate this point in comparison with other algorithms in Figure 3 and plug-in experiments in Figure 4. Besides, as gradient diversity quantifies the conflicts of individual gradients, surrogate gradient diversity maximization (minimizing objective 7) can be intuitively viewed as adjusting the local functions’ conflicts.
FedAWARE as a plug-in module. FedAWARE uses a novel adaptive weighted aggregation that only induces the surrogate gradient diversity terms in the convergence rate. Therefore, FedAWARE can be applied to other optimization works, as we minimize different terms (discussed in Appendix D.7). We present a novel extension of FedAWARE and evaluate it in Section 5:
Remark 4.2 (Extention of FedAWARE)
If global estimates outputted by arbitrary federated optimization algorithm (Line 14, Algorithm 1), we project the to the direction of (Line 15, Algorithm 1):
(9) |
This procedure modifies the gradient descent direction of applied algorithms to the direction of implicitly enlarged gradient diversity and maintains the advantages of original algorithms. Please see Figure 4 9 for empirical evidence.
This extension allows FedAWARE to be a plug-in module to enhance the applied algorithms.
5 Experiments
We evaluate our theoretical findings and proposed algorithms in standard heterogeneous federated settings and show the hybrid heterogeneity damaging federated optimization algorithms. We show the error bars over three independent runs with different random seeds.
Experiment Setup. We compare baseline algorithms that follow the federated optimization framework in Figure 1. Our baselines includes FedAvg [33], FedProx [26], SCAFFOLD [16], FedDyn [1], FedNova [42] for the regularization-based algorithms. And, we also compare with FedAvgM [10] for the momentum-based algorithms. For the adaptive federated optimization algorithms, we compare with FedYogi [35], and FedAMS [45]. Due to page limitation, we report the results of training a 5-layer CNN network on the CIFAR-10 dataset [20] in the main paper. And, we provide convergence experiments on MNIST/Fashion-MNIST in Appendix E.2 and extension experiments on text dataset AGNews [57] with model Pythia [3] with details in Appendix E.3.
Data partition. We construct experiments on various heterogeneous settings: (1) Pathological: We adopt the identical Non-IID setup from FedAvg [33]. We sort the data that is sampled by labels, partition them into 200 blocks of equal size, and assign 100 clients with 2 blocks each. In this setting, we set a constant data batch size and local epoch for all clients, hence the number of local steps are balanced across clients. (2) Dirichlet: We create federated datasets for 100 clients following the latent Dirichlet allocation over labels [10]. The hyper-parameter of the Dirichlet distribution is set to 0.1, indicating extreme statistical heterogeneity. In this setting, we maintain a fixed data batch size and a local training epoch for all clients. The number of local steps differs amongst clients, resulting in system heterogeneity. (3) Pathological+/Dirichlet+: Based on the data partition described above, we set the local epoch , and the batch size at round randomly for each selected client . Here, denotes uniform distribution. Therefore, the local steps are unstable. Each client conducts local mini-batch SGD with multiple local epochs to update the model. More details are provided in Appendix E.1.
Main results: convergence behavior of FedAWARE. We provide the training dynamics of testing accuracy, gradient diversity, and the training loss in Figure 3. Training loss curves prove a comparable convergence rate of FedAWARE with state-of-the-art federated optimizers. Furthermore, the testing accuracy curve showcases that FedAWARE is more stable (fewer jitters and lower variance) than other baselines. Besides, the gradient diversity dynamics indicate that FedAWARE converges to stationary points with larger gradient diversity. Notably, FedAvgM and FedYogi have lower gradient diversity while achieving a relatively high testing accuracy. This does not break our theory as gradient diversity is not the only factor in rate (8) as further elaborated in Appendix D. Moreover, designing a better global update direction that maximizes gradient diversity can potentially achieve higher performance. We justify the point by the following gradient projection experiments.
Main results: gradient projection extension of FedAWARE. We plug FedAWARE into standard baselines (FedAvg, FedAvgM) and the state-of-the-art adaptive optimizers (FedAMS, and FedYogi) following Remark 4.2, and the experiments are shown in Figure 4. The loss curves show that gradient projection maintains the convergence rate of applied algorithms. Besides, the gradient projection modifies the model updating direction and successfully enlarges gradient diversity dynamics. Hence, the applied algorithms obtain more stable test accuracy curves.
Observation: adaptivity in federated optimization is important. Our experiments highlight the importance of adaptivity in federated optimization. For example, standard federated optimization algorithms (e.g., FedAvg, SCAFFOLD) suffer from performance degeneration in Pathological+/Dirichlet+ settings. In comparison, adaptive federated optimization algorithms (FedYogi, FedDyn, FedAMS, and FedAWARE) maintain high convergence quality in such extreme heterogeneous settings. Moreover, our gradient diversity findings suggest a new adaptivity in FL.
6 Conclusion
This paper explores an initial exploration of gradient diversity maximization in federated server-side optimization. We examine this issue through the lens of FL server optimization and conclude that pursuing gradient diversity maximization in the global update direction helps mitigate hybrid heterogeneity. Following theoretical findings, we propose a simple yet effective server-side optimizer applicable in scenarios exhibiting extreme hybrid heterogeneity. Beyond FL settings, we believe the gradient diversity maximization can also be applied to the general finite-sum optimization task (1), especially when handling finite-sum of conflict objectives.
References
- [1] Durmus Alp Emre Acar, Yue Zhao, Ramon Matas, Matthew Mattina, Paul Whatmough, and Venkatesh Saligrama. Federated learning based on dynamic regularization. In International Conference on Learning Representations, 2020.
- [2] Peter L Bartlett, Michael I Jordan, and Jon D McAuliffe. Convexity, classification, and risk bounds. Journal of the American Statistical Association, 101(473):138–156, 2006.
- [3] Stella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley, Kyle O’Brien, Eric Hallahan, Mohammad Aflah Khan, Shivanshu Purohit, USVSN Sai Prashanth, Edward Raff, et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, pages 2397–2430. PMLR, 2023.
- [4] Collin Burns, Pavel Izmailov, Jan Hendrik Kirchner, Bowen Baker, Leo Gao, Leopold Aschenbrenner, Yining Chen, Adrien Ecoffet, Manas Joglekar, Jan Leike, et al. Weak-to-strong generalization: Eliciting strong capabilities with weak supervision. arXiv preprint arXiv:2312.09390, 2023.
- [5] Michael Crawshaw, Yajie Bao, and Mingrui Liu. Federated learning with client subsampling, data heterogeneity, and unbounded smoothness: A new algorithm and lower bounds. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
- [6] Li Deng. The mnist database of handwritten digit images for machine learning research. IEEE Signal Processing Magazine, 29(6):141–142, 2012.
- [7] Robert Mansel Gower, Nicolas Loizou, Xun Qian, Alibek Sailanbayev, Egor Shulgin, and Peter Richtárik. Sgd: General analysis and improved rates. In International conference on machine learning, pages 5200–5209. PMLR, 2019.
- [8] Werner H Greub. Linear algebra, volume 23. Springer Science & Business Media, 2012.
- [9] Farzin Haddadpour and Mehrdad Mahdavi. On the convergence of local descent methods in federated learning. arXiv preprint arXiv:1910.14425, 2019.
- [10] Tzu-Ming Harry Hsu, Hang Qi, and Matthew Brown. Measuring the effects of non-identical data distribution for federated visual classification. arXiv preprint arXiv:1909.06335, 2019.
- [11] Zeou Hu, Kiarash Shaloudegi, Guojun Zhang, and Yaoliang Yu. Federated learning meets multi-objective optimization. IEEE Transactions on Network Science and Engineering, 9(4):2039–2051, 2022.
- [12] Minhui Huang, Dewei Zhang, and Kaiyi Ji. Achieving linear speedup in non-iid federated bilevel learning. In ICML, volume 202 of Proceedings of Machine Learning Research, pages 14039–14059. PMLR, 2023.
- [13] Ahmed Imteaj, Urmish Thakker, Shiqiang Wang, Jian Li, and M Hadi Amini. A survey on federated learning for resource-constrained iot devices. IEEE Internet of Things Journal, 9(1):1–24, 2021.
- [14] Martin Jaggi. Revisiting frank-wolfe: Projection-free sparse convex optimization. In International conference on machine learning, pages 427–435. PMLR, 2013.
- [15] 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.
- [16] Sai Praneeth Karimireddy, Satyen Kale, Mehryar Mohri, Sashank Reddi, Sebastian Stich, and Ananda Theertha Suresh. Scaffold: Stochastic controlled averaging for federated learning. In International Conference on Machine Learning, pages 5132–5143. PMLR, 2020.
- [17] Ahmed Khaled, Konstantin Mishchenko, and Peter Richtárik. First analysis of local gd on heterogeneous data. arXiv preprint arXiv:1909.04715, 2019.
- [18] Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
- [19] Polina Kirichenko, Pavel Izmailov, and Andrew Gordon Wilson. Last layer re-training is sufficient for robustness to spurious correlations. arXiv preprint arXiv:2204.02937, 2022.
- [20] Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
- [21] Chengxi Li, Gang Li, and Pramod K Varshney. Federated learning with soft clustering. IEEE Internet of Things Journal, 9(10):7773–7782, 2021.
- [22] Daliang Li and Junpu Wang. Fedmd: Heterogenous federated learning via model distillation. arXiv preprint arXiv:1910.03581, 2019.
- [23] Junbo Li, Ang Li, Chong Tian, Qirong Ho, Eric P Xing, and Hongyi Wang. Fednar: Federated optimization with normalized annealing regularization. arXiv preprint arXiv:2310.03163, 2023.
- [24] Tian Li, Ahmad Beirami, Maziar Sanjabi, and Virginia Smith. Tilted empirical risk minimization. In International Conference on Learning Representations, 2020.
- [25] Tian Li, Anit Kumar Sahu, Ameet Talwalkar, and Virginia Smith. Federated learning: Challenges, methods, and future directions. IEEE signal processing magazine, 37(3):50–60, 2020.
- [26] 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, 2020.
- [27] Tian Li, Maziar Sanjabi, Ahmad Beirami, and Virginia Smith. Fair resource allocation in federated learning. arXiv preprint arXiv:1905.10497, 2019.
- [28] Zexi Li, Tao Lin, Xinyi Shang, and Chao Wu. Revisiting weighted aggregation in federated learning with neural networks. In International Conference on Machine Learning, pages 19767–19788. PMLR, 2023.
- [29] Shiyu Liu, Shaogao Lv, Dun Zeng, Zenglin Xu, Hui Wang, and Yue Yu. Personalized federated learning via amortized bayesian meta-learning. arXiv preprint arXiv:2307.02222, 2023.
- [30] Guodong Long, Ming Xie, Tao Shen, Tianyi Zhou, Xianzhi Wang, and **g Jiang. Multi-center federated learning: clients clustering for better personalization. World Wide Web, 26(1):481–500, 2023.
- [31] Xiaodong Ma, Jia Zhu, Zhihao Lin, Shanxuan Chen, and Yangjie Qin. A state-of-the-art survey on solving non-iid data in federated learning. Future Generation Computer Systems, 135:244–258, 2022.
- [32] Othmane Marfoq, Giovanni Neglia, Aurélien Bellet, Laetitia Kameni, and Richard Vidal. Federated multi-task learning under a mixture of distributions. Advances in Neural Information Processing Systems, 34:15434–15447, 2021.
- [33] 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, pages 1273–1282. PMLR, 2017.
- [34] Mehryar Mohri, Gary Sivek, and Ananda Theertha Suresh. Agnostic federated learning. In International Conference on Machine Learning, pages 4615–4625. PMLR, 2019.
- [35] Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konečnỳ, Sanjiv Kumar, and H Brendan McMahan. Adaptive federated optimization. arXiv preprint arXiv:2003.00295, 2020.
- [36] Sashank J Reddi, Satyen Kale, and Sanjiv Kumar. On the convergence of adam and beyond. arXiv preprint arXiv:1904.09237, 2019.
- [37] Felix Sattler, Klaus-Robert Müller, and Wojciech Samek. Clustered federated learning: Model-agnostic distributed multitask optimization under privacy constraints. IEEE transactions on neural networks and learning systems, 32(8):3710–3722, 2020.
- [38] Ozan Sener and Vladlen Koltun. Multi-task learning as multi-objective optimization. Advances in neural information processing systems, 31, 2018.
- [39] Virginia Smith, Chao-Kai Chiang, Maziar Sanjabi, and Ameet S Talwalkar. Federated multi-task learning. Advances in neural information processing systems, 30, 2017.
- [40] Alysa Ziying Tan, Han Yu, Lizhen Cui, and Qiang Yang. Towards personalized federated learning. IEEE Transactions on Neural Networks and Learning Systems, 2022.
- [41] 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, 2021.
- [42] Jianyu Wang, Qinghua Liu, Hao Liang, Gauri Joshi, and H Vincent Poor. Tackling the objective inconsistency problem in heterogeneous federated optimization. Advances in neural information processing systems, 33:7611–7623, 2020.
- [43] Lin Wang, YongXin Guo, Tao Lin, and Xiaoying Tang. Delta: Diverse client sampling for fasting federated learning. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
- [44] Shiqiang Wang, Tiffany Tuor, Theodoros Salonidis, Kin K Leung, Christian Makaya, Ting He, and Kevin Chan. Adaptive federated learning in resource constrained edge computing systems. IEEE journal on selected areas in communications, 37(6):1205–1221, 2019.
- [45] Yujia Wang, Lu Lin, and **ghui Chen. Communication-efficient adaptive federated learning. In International Conference on Machine Learning, pages 22802–22838. PMLR, 2022.
- [46] Xidong Wu, Jianhui Sun, Zhengmian Hu, Aidong Zhang, and Heng Huang. Solving a class of non-convex minimax optimization in federated learning. arXiv preprint arXiv:2310.03613, 2023.
- [47] Han Xiao, Kashif Rasul, and Roland Vollgraf. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
- [48] Cong Xie, Oluwasanmi Koyejo, Indranil Gupta, and Haibin Lin. Local adaalter: Communication-efficient stochastic gradient descent with adaptive learning rates. arXiv preprint arXiv:1911.09030, 2019.
- [49] Pan Xu, Zheng Wen, Handong Zhao, and Quanquan Gu. Neural contextual bandits with deep representation and shallow exploration. arXiv preprint arXiv:2012.01780, 2020.
- [50] Rui Ye, Mingkai Xu, Jianyu Wang, Chenxin Xu, Siheng Chen, and Yanfeng Wang. Feddisco: Federated learning with discrepancy-aware collaboration. In ICML, volume 202 of Proceedings of Machine Learning Research, pages 39879–39902. PMLR, 2023.
- [51] Dong Yin, Ashwin Pananjady, Max Lam, Dimitris Papailiopoulos, Kannan Ramchandran, and Peter Bartlett. Gradient diversity: a key ingredient for scalable distributed learning. In International Conference on Artificial Intelligence and Statistics, pages 1998–2007. PMLR, 2018.
- [52] Manzil Zaheer, Sashank Reddi, Devendra Sachan, Satyen Kale, and Sanjiv Kumar. Adaptive methods for nonconvex optimization. Advances in neural information processing systems, 31, 2018.
- [53] Dun Zeng, Xiang**g Hu, Shiyu Liu, Yue Yu, Qifan Wang, and Zenglin Xu. Stochastic clustered federated learning. arXiv preprint arXiv:2303.00897, 2023.
- [54] Dun Zeng, Siqi Liang, Xiang**g Hu, Hui Wang, and Zenglin Xu. Fedlab: A flexible federated learning framework. Journal of Machine Learning Research, 24(100):1–7, 2023.
- [55] Shenglai Zeng, Zonghang Li, Hongfang Yu, Yihong He, Zenglin Xu, Dusit Niyato, and Han Yu. Heterogeneous federated learning via grouped sequential-to-parallel training. In International Conference on Database Systems for Advanced Applications, pages 455–471. Springer, 2022.
- [56] Jianqing Zhang, Yang Hua, Jian Cao, Hao Wang, Tao Song, Zhengui Xue, Ruhui Ma, and Haibing Guan. Eliminating domain bias for federated learning in representation space. Advances in Neural Information Processing Systems, 36, 2024.
- [57] Xiang Zhang, Junbo Zhao, and Yann LeCun. Character-level convolutional networks for text classification. Advances in neural information processing systems, 28, 2015.
- [58] Yifei Zhang, Dun Zeng, **glong Luo, Zenglin Xu, and Irwin King. A survey of trustworthy federated learning with perspectives on security, robustness, and privacy. arXiv preprint arXiv:2302.10637, 2023.
- [59] Yue Zhao, Meng Li, Liangzhen Lai, Naveen Suda, Damon Civin, and Vikas Chandra. Federated learning with non-iid data. arXiv preprint arXiv:1806.00582, 2018.
- [60] Shiji Zhou, Wenpeng Zhang, Jiyan Jiang, Wenliang Zhong, **jie Gu, and Wenwu Zhu. On the convergence of stochastic multi-objective gradient manipulation and beyond. Advances in Neural Information Processing Systems, 35:38103–38115, 2022.
- [61] Ligeng Zhu, Zhijian Liu, and Song Han. Deep leakage from gradients. Advances in neural information processing systems, 32, 2019.
- [62] Zhuangdi Zhu, Junyuan Hong, and Jiayu Zhou. Data-free knowledge distillation for heterogeneous federated learning. In International conference on machine learning, pages 12878–12889. PMLR, 2021.
[sections] \printcontents[sections]l1
Appendix A Related Works
Plenty of studies have been proposed to address statistical heterogeneity issues in the FL literature [31], including multi-task federated learning [32, 39], personalized federated learning [40, 29], knowledge distillation [62, 22], and client clustering [37, 53, 55]. In contrast, this paper primarily focuses on federated optimization algorithms that train a robust global model against heterogeneity issues, as shown in Algorithm 2.
The pioneering federated optimization algorithm, FedAvg [33], significantly reduces communication costs. Subsequent works built upon FedAvg to address challenges related to convergence guarantees and heterogeneity issues. For example, some approaches introduced a regularization term in the client objectives [26], while others incorporated server momentum [10]. Several studies have analyzed the convergence rate of FedAvg and demonstrated its degradation with system heterogeneity [26, 44] and statistical heterogeneity [59, 17]. SCAFFOLD [16] utilizes control variates to mitigate client drift and achieve convergence rates independent of the level of heterogeneity. FedNova [42] addresses objective inconsistency issues arising from system heterogeneity through local update regularization. For more detailed comparisons, we refer to the survey [15]. Besides, adaptive methods [52, 36, 48] have proven to be effective in non-convex optimizations. In the context of federated optimization, FedYogi [35, 52] and FedAMS [1] are representative adaptive federated optimization algorithm that incorporates Adam-like momentum and adaptive terms to address heterogeneity issues. These related works demonstrate the ongoing efforts to address heterogeneity issues in FL, with various approaches focusing on different aspects of the problem.
Appendix B Proof of Lemmas and Corollaries
Corollary 1 (Proof of Corollary 3.1)
Let Assumption 3.1 hold. Then, in the case of bounded variance, i.e.,, it follows that .
Proof 1
Lemma 1 (Proof of Lemma 3.2and Corollary 3.2)
Let Assumption 2.2 3.1 hold. For all client with arbitrary local iteration steps , the local updates can be bounded as follows,
Proof 2
For , we have
Unrolling the recursion, we obtain
(10) | ||||
where we use the fact that for .
Lemma B.1 (Upper bound of balanced local updates, [35])
Appendix C Convergence Analysis of FedAWARE
This section provides detailed proof of Theorem 4.1. Our theory examines the impacts of gradient diversity in federated optimization and matches the convergence of classic aggregation-based methods, such as FedAvg. The Algorithm 1 manipulates the aggregation results with momentum approximation and adaptive weight strategies in a different manner with FedAvg.
Proof 3
Using the smoothness, we have:
Taking full expectation over randomness at time step on both sides, we have:
(13) |
Now, we are about to bound and respectively.
Bounding . By Cauchy-Schwartz inequality, we get
where we use Cauchy-Schwartz inequality to decompose the from norms.
Then, using the fact that , we have
Letting , we have
(14) |
Bounding . By the definitions and triangle inequality, we can decompose the ,
(15) | ||||
where we also use Cauchy-Schwartz inequality to decompose .
Investigating momentum approximation. Observing (14) and (15), we need to bound the approximation error of local momentum. We present our analysis in the following lemma.
Lemma C.1 (Bound of local momentum)
For any and , letting and , the gap between momentum and gradient can be bounded:
(16) |
Proof 4
Note that the term denotes the heterogeneity brought by the local computation. For , term can be bounded,
(17) | ||||
And, using (15) to bound the second term, we have
(18) | ||||
Combining the equations, we have
(19) | ||||
As the last term of (19) typically vanishes over time due to factors and , we omit the last term and mainly focus on the effects of the second term. Unrolling the recursion for , we have
(20) | ||||
where we let and . To further optimize the upper bound, we let and to conclude the proof:
(21) |
Remark. The denotes non-error initialization of server-saved local momentum. Typically, this can be implemented via once full participation in the first round of FL. Otherwise, it only induces an additional constant factor on approximation without breaking our analyses. Besides, can be easily implemented by setting and .
Then, substituting the momentum approximation with (21) and reorganising the terms, we have
(22) | ||||
Inducing gradient diversity. In the main paper, we discussed the gradient diversity related to the status of statistical heterogeneity and optimization quality. To demonstrate the relation, our idea is to induce the gradient diversity into our convergence rate by replacing the first-order global gradient on the right-hand side of (22). However, the Algorithm 1 is minimizing an surrogate objective , which is determined by . Therefore, we are to clarify the convergence relation between the surrogate objective and the original objective , as we discussed in the lemma below.
Lemma C.2 (Surrogate convergence relation)
For all , the differences between the primary gradient and surrogate gradient can be bounded:
Proof 5
According to the definition, we have
(23) | ||||
Then, we investigate
Therefore, we have
(24) | ||||
Remark. The (24) shows the convergence relation, which is greatly determined by and . Importantly, we are interested about the case that , indicating that the cases that is better than . In these cases, we can minimize the right-hand side of (24) by tuning . In contrast, the cases that indicates that Algorithm 1 converges to stationary points with lower surrogate gradient. According to the non-convex analysis theory, it denotes a better optimization result.
In this paper, we can assume that is the best weight for federated optimization, which always induces . Therefore, we can connect the surrogate gradient diversity with the original objective:
Corollary C.1
Inducing inequality (25) to (22), we rearrange the terms
(26) | ||||
where the last inequality replaces the averaged local updates term with Corollary 3.2.
Then, rearranging the above equation, we have
(27) | ||||
where we let for notation brevity.
Finally, taking full expectation on both sizes, summarizing terms from time to and rearranging terms, we have
(28) | ||||
where we use to absorb vanishing terms in (27) and .
Summary. Analogous to previous non-convex analyses, the term in (22) will result in a sub-linear convergence rate with proper setting of , which is omitted in the final bound. Differently, we focus on the impacts of heterogeneity terms on the convergence results. Convergence to the stationary points with large mitigate the convergence error included by heterogeneity terms .
Appendix D Discussion
D.1 Case illustration on gradient diversity maximization direction
To better illustrate this concept, we consider an FL system with two clients, where the gradient diversity is computed as follows:
(29) |
We note that the server cannot access local data samples. For each round, it only observes the local updates uploaded from clients. Hence, given a fixed point , maximizing gradient diversity at the server is equivalent to minimizing the denominator of (6). As a result, a global gradient direction that maximizes the gradient diversity leads to the solution222We exclude special solutions that if , and if . They indicate a low degree of statistical heterogeneity. in Figure 5.
D.2 Connection with multi-objective optimization (MOO)
We note that (7) is relevant to a sub-problem from MOO literature [38, 11, 60]. However, Algorithm 1 presents a federated optimization algorithm differently. Specifically, FedAWARE violates the basic Pareto partial order restriction in MOO. Besides, FedAWARE meets basic protocols in FL, including partial client participation and decoupled server/client optimization procedure, while MOO requires full participation and local first-order gradients in the FL context. In the FL literature, FedMGDA+ [11] also involves a variant of (7) in federated optimization, however, focusing on FL fairness rather than heterogeneity. We found it is inefficient against hybrid heterogeneity issues as shown in Figure 6.
D.3 Limitations and feasible solutions.
The main limitation is that running Algorithm 1 requires the server to store the local momentum, while the FL server typically has sufficient storage and computing resources in FL practice. Besides, we argue this memory consumption is worth using FedAWARE to enhance other algorithms. Moreover, we discuss additional engineering optimizations in Appendix D.3 for alleviating the hardware requirements.
In practical settings, especially cross-silo settings, the FL server typically has sufficient storage and computing resources. Besides, this concern can be alleviated by the following options:
D.4 What is the gap between gradient diversity and surrogate gradient diversity?
The gap is dynamically changing in practice. We explain it from empirical and theoretical perspectives. Empirically, please refer to the curves of FedAWARE and FedAvg in Figure 3 for the empirical gap. Theoretically, we provide the explicit bound of the gap (related to Lemma C.2), if we assume is the optimal weight (), we have
where . This inequality shows that the gap is primarily decided by the global objectives with different weights or .
D.5 The implications of zero vector in FedAWARE
As FedAWARE is finding the minimum of during training, the cases such that indicates that all the momentum vectors are linearly dependent [8]. This case means that we found a saddle point of local optimum (possibly global optimum) for the surrogate objective. Following stochastic optimization theories, non-convex optimizers [18, 7] typically use stochasticity and Nesterov momentum to let the model escape from the saddle points. Analogously, FedAWARE uses random client sampling and local momentum to guarantee the convergence quality. Moreover, we note that the client-side optimization typically directly uses non-convex optimizers. Therefore, it can collaboratively help the server-side optimization escape from the saddle points.
D.6 Feasibility of combining with faster local solvers
Enhancing the convergence rate can be achieved through a combination of improved local computing methods, as our server-side optimizer operates independently of the local update modification process. For instance, FedNova [42] has explored the benefits of employing faster local solvers, such as those leveraging proximal gradients, gradient tracking, adaptive learning rates, momentum, and more, within the context of FedAvg. While our work primarily addresses server-side optimization in the presence of unbalanced local updates from local SGD, determining the optimal combination of local solvers remains a direction for future research.
D.7 Discussion on novelty
This work is the first to propose gradient diversity maximization on server-side optimization against heterogeneity issues in FL. We provide additional discussion in the section to clarify our novelty.
Novelty in tackling heterogeneity. FedAWARE addresses hybrid heterogeneity by adjusting the denominator factor in Theorem 4.1. In contrast, previous works are reducing the numerator terms corresponding with Theorem 4.1, which captures the impacts of hybrid heterogeneity. As discussed in Section 3.2, previous works minimize the upper bound of (5) to improve optimization quality. These works typically reduce the hybrid heterogeneity impacts by manipulating the local computation process. FedAWARE innovatively captures the gradient diversity trends and utilizes it to design global updates without manipulating local updates. This approach provides a promising perspective on addressing heterogeneity issues in FL.
Novelty in convergence analyses. The convergence analysis of FedAWARE introduces novel elements compared to previous federated optimization algorithms. While previous algorithms, such as FedAvg [33], FedProx [26], and FedYogi [35], assume a static global objective with uniform weights, FedAWARE analyzes the convergence of a surrogate objective with weights based on stored momentum information. We use the term to highlight the differences to differentiate from traditional federated optimization objectives. Furthermore, since FedAWARE does not manipulate the local computation process, we focus on the unbalanced local update steps, which absorb factors such as local training batch size, epochs, and local datasets. This approach allows us to address the concerns raised by FedNova [42] regarding objective inconsistency.
Suggesting training dynamics of gradient diversity. In our analysis, we first demonstrate the importance of gradient diversity dynamics in the convergence analysis. Moreover, it is important to note that gradient diversity is not the sole factor for mitigating the impacts of heterogeneity. According to the convergence result in Theorem 4.1, the upper bound is determined by multiple factors, where gradient diversity is one feasible factor to minimize the upper bound. Furthermore, we have established a connection between gradient diversity and common assumptions on statistical heterogeneity in Section 3.1. It is worth mentioning that previous works [26, 16, 42] take the upper bound of gradient diversity as a negative factor in the convergence analysis333please refer to the notation of Theorem 4 in FedProx, notation of Theorem 1 in SCAFFOLD, and notation of Theorem 1 in FedNova for evidence.. Therefore, while they address heterogeneity issues differently, they ignore the evolution of gradient diversity.
Future works. In this paper, we only apply the gradient diversity maximization findings to server-side optimization. Further collaboration of server-side and client-side optimization for gradient diversity maximization is left to future works. Moreover, we found that FedAWARE achieves better generalization performance. We plan to explain the theoretical relation between the generalization performance and the gradient diversity dynamics in the generalization theories.
Appendix E Additional Experiments
E.1 Experiment Details
Platform. The experiment implementations are supported by FedLab [54]. Our experiments run on a Linux server with 4*2080Ti GPU.
Datasets and Model. Our experiments mainly follow prior works [45, 1, 35, 56], including image classification datasets MNIST, Fashion-MNIST, CIFAR10, and text classification dataset AGNews [57] datasets. For MNIST and Fashion-MNIST tasks, we use fully connected neural network architectures with 2 hidden layers. For the CIFAR10 task, we use a CNN model, similar to [33], consisting of 3 convolutional layers with 64 33 filters followed by 2 fully connected layers with 1024 and 64 neurons, and a softmax layer. For the AGNews task, we choose the Pthyia-70M from GPT2-based large language models Pythia [3].
Hyperparameters. For the server, we set the rate of client participation to be , and use for FedAvg, FedAvgM, FedProx, SCAFFOLD, FedNova, FedDyn, and FedAWARE. For the momentum parameter of FedAvgM, we set it from following the original paper. For weights of the penalty term in FedProx, we tune it from grid . For FedYogi, we set momentum parameter , a second-moment parameter , and adaptivity following the original paper. Besides, We select for FedYogi by grid-searching tuning from . The parameter of FedDyn is chosen among from the original paper. For FedAMS, we set follows the original paper. Then, we grid search for the best global learning rate and the best stabilization term . For FedAWARE, we set . We set learning rate for local training parameters, batch size , and local epoch for all clients with the pathological and Dirichlet settings. We report the best performance of these algorithms.
Implementation of gradient diversity dynamics. To fairly compare the gradient diversity dynamics of all algorithms, we estimate the gradient diversity as follows:
(30) |
where is the selected client set at the -th round and is the uploaded local updates from selected clients. And, we report the evaluation of estimated value in our experiment figures. This estimate is applicable in practice for matching the client sampling protocol in federated learning and avoiding accessing local first-order gradient (privacy issue [61]). Besides, we argue that share a similar ability to capture the direction relation among local updates. For example, it is large when the inner products between the local updates taken for different clients are small. In particular, estimated gradient diversity is large when the gradients are almost orthogonal, or even in opposite directions. Most importantly, As the gradient diversity dynamics of all algorithms are computed the same, their values faithfully indicate the stationary points in their landscape.
E.2 Experiments on MNIST/FashionMNIST
We provide additional experiments on MNIST [6] and FashionMNIST [47] datasets using the same data partition settings as CIFAR10 experiments. The results of the MNIST task are shown in Figure 7; the results of the FashionMNIST task are shown in Figure 8.
Discussion on MNIST task. According to the training loss, FedAWARE is slightly slower than FedYogi and FedAMS in the MNIST task. Besides, FedAWARE converges to comparable stationary points with similar training loss and test accuracy at the end of training. Most importantly, the training dynamics of gradient diversity curves show that FedAWARE finds a series of stationary points with large gradient diversity.
Discussion on FashionMNIST task. The main conclusions of the FashionMNIST task are similar to the MNIST task. Most differently, FedAWARE achieves comparable convergence speed with FedYogi and FedAMS.
Overall, our conclusions in the main paper still hold on federated MNIST/FashinMNIST tasks.
E.3 Experiments on AGNews
We choose the famous GPT2-based pretrained large language model Pythia-70M [3] for the AGNews task [57]. AGNews is a text classification task with 4 labels consisting of 119,999 train samples and 7,599 test samples. We partition the AGNews dataset into 100 clients using the Dirichlet partition strategy with the hyperparameter of 0.1. For the training hyper-parameters, we set local batch size 32, epoch 1, learning rate and for FedAWARE. We conduct the gradient projection experiment, and the results are shown in Figure 4.