<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>FedFisher: Leveraging Fisher Information for One-Shot Federated Learning</title></titleStmt>
			<publicationStmt>
				<publisher>Proceedings on Machine Learning Research</publisher>
				<date>05/03/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10516641</idno>
					<idno type="doi"></idno>
					<title level='j'>Proceedings of The 27th International Conference on Artificial Intelligence and Statistics</title>
<idno></idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Divyansh Jhunjhunwala</author><author>Shiqiang Wang</author><author>Gauri Joshi</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Standard federated learning (FL) algorithms typically require multiple rounds of communication between the server and the clients, which has several drawbacks, including requiring constant network connectivity, repeated investment of computational resources, and susceptibility to privacy attacks. One-Shot FL is a new paradigm that aims to address this challenge by enabling the server to train a global model in a single round of communication. In this work, we present FedFisher, a novel algorithm for one-shot FL that makes use of Fisher information matrices computed on local client models, motivated by a Bayesian perspective of FL. First, we theoretically analyze FedFisher for two-layer over-parameterized ReLU neural networks and show that the error of our one-shot FedFisher global model becomes vanishingly small as the width of the neural networks and amount of local training at clients increases. Next, we propose practical variants of FedFisher using the diagonal Fisher and K-FAC approximation for the full Fisher and highlight their communication and compute efficiency for FL. Finally, we conduct extensive experiments on various datasets, which show that these variants of FedFisher consistently improve over competing baselines.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1">Introduction</head><p>Data collection and storage are becoming increasingly decentralized, both due to the proliferation of smart devices and privacy concerns stemming from transferring and storing data at a centralized location. Federated Learning (FL) is a framework designed to learn the parameters W &#8712; R d of a model f (W , &#8226;) on decentralized data distributed across a network of clients under the supervision of a central server <ref type="bibr">(Kairouz et al., 2021;</ref><ref type="bibr">Li et al., 2020a;</ref><ref type="bibr">Yang et al., 2019)</ref>. Formally, we formulate FL as the following distributed optimization problem:</p><p>where</p><p>Here, M is the number of clients, D i is the i-th client's local dataset consisting of input-label pairs {(x ij , y ij )} n j=1 where x &#8712; R p is the input and y &#8712; R C is the label, and n = |D i | is the dataset size. For simplicity, we consider the case where clients have equal amounts of data; our algorithm and analysis can easily be extended to the case where client objectives are unequally weighted based on their local dataset sizes. The loss function &#8467;(&#8226;, &#8226;) penalizes the difference between the prediction of the model f (W , x) and the true label y. We use D = {D i } M i=1 to denote the collection of data across all clients and N = M n to denote the total number of data samples across clients.</p><p>The fundamental challenge with learning in federated settings is data heterogeneity across clients <ref type="bibr">(Karimireddy et al., 2020;</ref><ref type="bibr">Li et al., 2020a)</ref>. In particular, while clients can independently train a model that fits their local data, it is unclear how the server can combine these local models to get a global model that works for all the clients. To tackle this problem, standard FL algorithms such as FedAvg <ref type="bibr">(McMahan et al., 2017)</ref> and FedProx <ref type="bibr">(Li et al., 2020b)</ref> resort to an iterative approach requiring multiple rounds of communication between clients and the server in order for the local models to reach a consensus. However, this multi-round approach has several drawbacks. First, clients need to frequently connect with the server to send and receive updates. Second, a client needs to invest computational resources repeatedly to update the global model every time it participates in training. Third, it increases susceptibility to attacks such as data and model poisoning since attackers can continuously modify and update their attacks based on the global model they receive from the server in each round.</p><p>To overcome these drawbacks, a recent line of work has focused on the paradigm of one-shot FL which aims to learn the parameters of the global model in a single round of communication between clients and the server. Existing work for one-shot FL can be broadly split into two categories: (i) knowledge distillation methods and (ii) neuron matching methods. Knowledge distillation methods treat the collection of client models as an ensemble and propose to distill the knowledge from this ensemble into a single global model. To perform the distillation step, some works assume that the server has access to an auxiliary public dataset <ref type="bibr">(Gong et al., 2021;</ref><ref type="bibr">Li et al., 2021;</ref><ref type="bibr">Lin et al., 2020)</ref>, which clearly simplifies the problem. Another set of works proposes training generative models such as GANs <ref type="bibr">(Zhang et al., 2022;</ref><ref type="bibr">Zhu et al., 2021)</ref> or variational autoencoders <ref type="bibr">(Heinbaugh et al., 2023)</ref> to artificially generate data using local models of the clients. This again raises privacy questions, since a sufficiently powerful generative model can simply reconstruct client data <ref type="bibr">(Hitaj et al., 2017)</ref>. Moreover, both the data generation and distillation steps impose a significant computation cost on the server and require careful hyperparameter tuning <ref type="bibr">(Kurach et al., 2019)</ref>, which is itself a challenge to implement in one-shot FL.</p><p>Neuron matching methods are based on the observation that neural networks (NNs) are permutation invariant, i.e., it is possible to create NNs that differ only in the ordering of weights while having the same output <ref type="bibr">(Ainsworth et al., 2023;</ref><ref type="bibr">Akash et al., 2022;</ref><ref type="bibr">Entezari et al., 2022;</ref><ref type="bibr">Jordan et al., 2023;</ref><ref type="bibr">Liu et al., 2022;</ref><ref type="bibr">Singh and Jaggi, 2020)</ref>. Based on this observation, these works propose to first align the weights of the client models according to a common ordering (called matching) and then average the aligned client models. Although this idea has been shown to work well when combining simple models like feedforward NNs, the performance drops considerably for more complex models such as CNNs <ref type="bibr">(Wang et al., 2020a)</ref>. Another line of work, termed as model fusion has looked at fusing the capabilities of multiple existing models into a single model <ref type="bibr">(Choshen et al., 2022;</ref><ref type="bibr">Ilharco et al., 2023;</ref><ref type="bibr">Jin et al., 2023;</ref><ref type="bibr">Matena and Raffel, 2022;</ref><ref type="bibr">Yadav et al., 2023)</ref>. While not explicitly designed for one-shot FL, some of these techniques, such as <ref type="bibr">Jin et al. (2023)</ref>; <ref type="bibr">Matena and Raffel (2022)</ref>; <ref type="bibr">Yadav et al. (2023)</ref> can be considered as an improvement over vanilla averaging. However, we note that these methods focus mostly on fusing pre-trained models and do not consider the effect of data heterogeneity used in training the models. We defer a more extensive discussion of such methods and other related work to Appendix A. Finally, we note that none of these existing works provide any theoretical guarantees for their proposed methods. Thus, motivated by the limitations of multi-round FL and current approaches for one-shot FL, we ask the following questions: Can we devise a one-shot FL method that is simultaneously communication and computation efficient (at both the server and clients), privacypreserving, and has good practical performance? Furthermore, can we provide theoretical guarantees for such a method? Our Contributions. In this work, we take a step towards providing an affirmative answer to both of the questions formulated above. To do so, we use the idea that Equation (1) can alternatively be reformulated as a posterior inference problem, specifically finding the mode of a global posterior over the model parameters <ref type="bibr">(Al-Shedivat et al., 2021;</ref><ref type="bibr">Guo et al., 2023)</ref>. While <ref type="bibr">Al-Shedivat et al. (2021)</ref> and <ref type="bibr">Guo et al. (2023)</ref> use this idea to propose a multi-round algorithm, our contribution lies in showing how this reformulation can yield a novel one-shot FL algorithm, which we term as FedFisher. Some highlights of our contribution are as follows.</p><p>&#8226; We propose FedFisher and show how the problem of finding the mode of a global posterior can be solved in a one-shot manner, using the local models at clients and some approximation of the Fisher information matrices computed at these local models (Section 2).</p><p>&#8226; We theoretically analyze FedFisher for the case of over-parameterized two-layer neural networks.</p><p>In particular, we show that when we utilize the full Fisher information in FedFisher, the error of our one-shot global model becomes vanishingly small as the width of the neural networks and the amount of local training at the clients increase (Section 3).</p><p>&#8226; We propose practical variants of FedFisher using the diagonal and K-FAC approximation, which we term as FedFisher(Diag) and FedFisher(K-FAC), respectively, and highlight the communication and compute efficiency of these variants along with their compatibility with secure aggregation (Section 4).</p><p>&#8226; We evaluate FedFisher(Diag) and FedFisher(K-FAC) on a range of one-shot FL tasks using deep neural networks and show that they give a consistent 5 -10% improvement in global model accuracy compared to competing one-shot baselines involving knowledge distillation, neuron matching, or model fusion (Section 5).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">Proposed Algorithm: FedFisher</head><p>To begin our discussion, we first state the following standard assumption on the loss function &#8467;(&#8226;, &#8226;), which is true for most common loss functions such as the squared loss and the cross-entropy loss.</p><p>Assumption 1. Given z = f (W , x), we assume that &#8467;(z, y) is proportional to the negative log likelihood of y under some exponential-family probabilistic model, i.e., &#8467;(z, y) &#8733; -log P(y|z) where P(y|z) = h(y) exp(z &#8868; T (y) -A(z)) and h(y), T (y), A(z) are some real-valued functions.</p><p>Let us define the likelihood for a data point (x, y) for a given W as P((x, y)|W ) = P(x)P(y|x, W ) &#8733; q(x) exp(-&#8467;(f (W , x ij ), y)), where q(&#8226;) is some prior on x, independent of W . Given this definition, we can adopt a Bayesian viewpoint and try to find the maximum a posteriori probability (MAP) estimate, i.e., find W where the posterior likelihood P(W |D) &#8733; P(D|W )P(W ) is maximized with P(W ) being some prior belief over W . Our motivation to do so comes from the following proposition. Proposition 1 tells us that as long as clients compute and send their local posteriors P(W |D i ) to the server, no further server-client communication is needed to find the global MAP estimate or equivalently a minimizer to our FL objective, giving us a one-shot inference procedure. However, doing so is challenging since P(W |D i ) typically does not have an analytical expression. To get a tractable solution, we propose to use some approximate inference techniques, as discussed below.</p><p>Mode of Local Posterior. To apply the approximate inference techniques detailed below, clients first need to compute Wi &#8776; arg max W P(W |D i ), an estimate of the mode of their local posterior under the flat prior. Note that this corresponds to a minimizer of L i (W ) under Assumption 1 and therefore Wi can be obtained using standard gradient-based optimizers.</p><p>Laplace Approximation for Local Posterior. Now using a second order Taylor expansion around Wi , we can get the following approximation for the log-posterior at the i-th client:</p><p>where we additionally use</p><p>Here</p><p>is the Hessian of the negative log-posterior at client i computed at Wi . Thus, we see that the local posterior of a client is now parameterized by Wi and H i .</p><p>Approximating Hessian with Fisher. The Fisher information matrix F i (for brevity, we refer to it as "the Fisher" in the rest of the paper) of the local model Wi at client i is defined as follows:</p><p>computed at W = Wi . Now, under Assumption 1 and assuming Wi fits the data at client i perfectly, i.e.,</p><p>it can be shown that the Hessian at Wi corresponds exactly to the Fisher, i.e., H i = F i <ref type="bibr">(Martens, 2020;</ref><ref type="bibr">Singh and Alistarh, 2020)</ref>. The latter condition usually holds true for modern overparameterized deep learning models when trained for sufficient epochs. Motivated by this observation, we can further approximate H i with F i . This approximation is useful since, unlike the Hessian, the Fisher is guaranteed to be positive semi-definite, a condition required for tractable inference at the global server. However, computing (and communicating) the full Fisher would require O(d 2 ) bits, which is infeasible when the models are neural networks with d in the order of millions. In practice, clients can replace the full Fisher F i with another computationally tractable approximation Fi such as the diagonal Fisher or K-FAC (Grosse and <ref type="bibr">Martens, 2016)</ref>, which preserves the positive semi-definiteness of F i (see discussion in Section 4). Thus we have</p><p>Computing Mode of Global Posterior. Now assuming clients compute and send back Wi and Fi to the server, we can use Proposition 1, Equation (2) and Equation (4) to approximate the logarithm of the global posterior as</p><p>Algorithm 1 FedFisher 1: Input: initial W 0 , no. of iterations K, T , client and server step sizes &#951; and &#951; S respectively 2: Global server does:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>3:</head><p>Communicate W 0 to all clients; 4: Clients i &#8712; [M ] in parallel do:</p><p>For k = 0, . . . , K -1 iterations:</p><p>Compute Fi ; // Approximation to true Fisher 10:</p><p>Communicate Wi and Fi to the server; 11: Global server does:</p><p>For t = 0, . . . , T -1 iterations:</p><p>With this approximation, finding a mode of the global posterior can be written as the following optimization problem:</p><p>Since each Fi is positive semi-definite, a global minimizer of Equation ( <ref type="formula">6</ref>) can be found by simply setting the derivative of the objective to zero. Doing so, we have the following proposition.</p><p>Proposition 2. Any W that satisfies</p><p>For over-parameterized models, i.e, d &#8811; N , the rank of M i=1 Fi will be smaller than d and therefore the system of equations ( M i=1 Fi )W = M i=1 F i Wi will not have a unique solution. To resolve this, we propose to use the solution that minimizes the sum of distances from the local models Wi of each client, i.e., mini-</p><p>. Such a constraint ensures fairness of the FedFisher objective towards all clients and prevents the solution from drifting too far away from the local models of each client. We express this mathematically as follows.</p><p>FedFisher objective:</p><p>We refer to the minimizer W * of Equation ( <ref type="formula">7</ref>) as the FedFisher global model in the rest of our discussion. We now show that W * can be easily computed using gradient descent (GD) with proper initialization and learning rate conditions via the following lemma.</p><p>Lemma 1. Let W (1) , W (2) , . . . be the iterates generated by running the following gradient descent (GD) procedure:</p><p>Proofs for all lemmas and theorems in this paper can be found in Appendix B. This concludes our discussion of the proposed algorithm FedFisher. An algorithm outline for FedFisher can be found in Algorithm 1, with practical implementation considerations discussed in Section 4. Next, we analyze the performance of FedFisher for over-parameterized two-layer networks.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3">Theoretical Analysis for Two-layer</head><p>Over-parameterized Neural Network</p><p>In this section, we characterize the performance of the FedFisher global model W * , on the true global objective L(W ) when f (W , &#8226;) is a two-layer overparameterized neural network.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Sources of Error for</head><p>FedFisher. We see that the mismatch between FedFisher objective L(W ) in Equation (7) and L(W ) can be characterized into the following sources of error: (i) the suboptimality of Wi , i.e, &#8711;L i ( Wi ) &#824; = 0, (ii) the Laplace approximation, i.e., neglecting higher order terms in the Taylor expansion in Equation (2), and (iii) the error introduced by approximating the true Fisher F i with Fi in Equation ( <ref type="formula">4</ref>). The error introduced by (iii) is orthogonal to (i) and (ii) and depends on the specific approximation used. Moreover, commonly used approximations, such as the diagonal and K-FAC, are primarily empirically motivated and have limited theoretical guarantees. Therefore, to simplify our analysis, we assume that clients send their full Fisher and focus on bounding the error due to the first two sources.</p><p>Novelty of Analysis. While the error due to (i) can be thought of as a function of the number of local training steps K, it is less clear how the error due to (ii) can be bounded. In this analysis, we show that for over-parameterized two-layer ReLU NNs, the error due to (ii) can be controlled using the width of the network. Intuitively, the quality of the approximation in Equation (2) depends on the distance between the weights of the FedFisher global model W * and clients' local models Wi ; the larger the distance the greater will be the effect of the higher-order terms and hence worse the approximation. Our contribution lies in showing that for a sufficiently wide model, this distance decreases as O(1/m) where m is the width of the model. Doing so requires a careful analysis of the trajectory of iterates generated by the optimization procedure in Lemma 1 and novel bounds on the smallest and largest eigenvalues of the aggregated Fisher M i=1 F i /M (see proofs in Appendix B). We believe that our analysis can also be extended to deeper NNs as future work.</p><p>We begin by modeling a two-layer ReLU NN as follows:</p><p>Here, m is the number of hidden nodes in the first layer, {w r } M r=1 are the weights of the first layer, {a r } m r=1 are the weights of the second layer, and &#963;(x) = max{x, 0} is the ReLU function. We use W = vec(w 1 , w 2 , . . . , w m ) to parameterize the weights of the first layer. Similar to <ref type="bibr">Du et al. (2019)</ref>, we consider a r 's to be fixed beforehand (initialized to be +1 or -1 uniformly at random) and only consider the case where w r 's are trained. We also consider the squared loss function &#8467;(z, y) = 1 2 (y -z) 2 . Recall that D is the collection of data across all the clients.</p><p>Define {(x k , y k )} N k=1 = {(x 11 , y 11 ), (x 12 , y 12 ), . . . , (x M n , y M n )} to be an ordering of the data in D. We state some definitions and assumptions that will be needed in our analysis. </p><p>Assumption 2. (Data normalization) For any (x, y) &#8712; D, we have &#8741;x&#8741; 2 = 1 and |y| &#8804; C, where C is some positive constant. Assumption 3. (Data uniqueness) For any (x, y), (x &#8242; , y &#8242; ) &#8712; D, we have &#8741;x -x &#8242; &#8741; 2 &#8805; &#981;, where &#981; is some strictly positive constant.</p><p>Assumption 4. (Full Fisher) Clients compute and send their full Fisher, i.e, Fi = F i .</p><p>Note on Definition and Assumptions. The rate of convergence of GD for two-layer ReLU neural networks depends closely on H &#8734; and &#955; 0 as shown in <ref type="bibr">Du et al. (2019)</ref>. Assumption 2 and Assumption 3 are standard in NN optimization literature <ref type="bibr">(Allen-Zhu et al., 2019a,b;</ref><ref type="bibr">Du et al., 2019;</ref><ref type="bibr">Zou and Gu, 2019)</ref> and are needed to ensure bounded loss at initialization and &#955; 0 &gt; 0, respectively. Assumption 4 is specific to our setting, as discussed at the start of this section.</p><p>Theorem 1. Under Assumptions 2, 3, 4, for m &#8805; poly(N, &#955; -1 0 , &#948; -1 , &#954; -1 ), and i.i.d Gaussian initializa-tion weights of W 0 as w 0,r &#8764; N (0, &#954;), and initializing the second layer weights a r = {-1, 1} with probability 1/2 for all r &#8712; [m], for step sizes &#951; = O(&#955; 0 /N 2 ), &#951; S = O(&#955; 0 /N 2 ) and for a given failure probability &#948; &#8712; (0, 1), the following is true with probability 1 -&#948; over the random initialization:</p><p>&#951;&#955;0 log(N/&#948;&#1013;) , then for failure probability &#948; &#8712; (0, 1) and target error &#1013; &#8712; (0, 1), the global loss L(W * ) &#8804; &#1013; with probability 1 -&#948;.</p><p>Takeaways. Theorem 1 shows that for sufficiently wide networks, L(W * ) can be decomposed into two distinct sources of error. The first term is the local optimization error, which measures how well Wi fits the data at the i-th client, and the second term corresponds to the error introduced by the Laplace approximation in Equation (2). While the overall error always decreases as the width m increases, there is a trade-off in the number of local optimization steps K. In particular, a larger K reduces the local optimization error but increases the Laplace error as each local model Wi drifts further away from W * . Corollary 1 shows that by setting m and K large enough, the total training error can be made vanishingly small in just one round.</p><p>Effect of Data Heterogeneity. Note that our result does not make any explicit assumptions on the heterogeneity of data across clients such as bounded dissimilarity <ref type="bibr">(Karimireddy et al., 2020;</ref><ref type="bibr">Wang et al., 2020b)</ref>. We find that the notion of heterogeneity that implicitly appears in our analysis is the distance between the weights of any two local models, i.e, &#8741; wi,rwj,r &#8741; 2 for any i &#824; = j. For two-layer neural networks this quantity can be bounded as follows: &#8741; wi,rwj,r &#8741; 2 &#8804; &#8741; wi,rw 0,r &#8741; 2 + &#8741; wj,r -w0,r &#8741; 2 &#8804; O(1/ &#8730; m) (see first part of Lemma 6 in Appendix B), where w 0,r are the weights of the common initialization point across clients. This bound is agnostic to the correlation of data across clients and shows that &#8741; wi,rwj,r &#8741; 2 always decreases as the width of the model increases. Improving this bound by incorporating the effects of data correlation can be an interesting direction for future work.</p><p>Empirical Validation. We conduct experiments on a synthetic dataset with M = 2 clients, p = 2 dimensions, and n = 100 samples to verify our theoretical findings. This setting allows us to ensure that the conditions in Theorem 1, such as computing the full Fisher, are computationally tractable. The synthetic data is generated following a similar procedure as <ref type="bibr">Li et al. (2020b)</ref>. Further details of the experimental setup can be found in Appendix D. In Figure <ref type="figure">1a</ref> we fix the number of local steps K = 2048 and vary the width of the model. As predicted by our theory, we see that the training error for FedFisher monotonically decreases as we increase the width of the model. In Figure <ref type="figure">1b</ref> we fix the width of the model to m = 512 and vary the number of local steps. Here we see a trade-off in the effect of local steps -the error initially decreases as clients do more local steps and then rises again, as predicted by our theory. Figure <ref type="figure">1</ref>: Empirical validation of Theorem 1 in a synthetic setting. For a fixed number of local steps (Figure <ref type="figure">1a</ref>), the error for FedFisher decreases as the width of the model increases. For a fixed width (Figure <ref type="figure">1b</ref>), the error first decreases and then increases as local steps increases.</p><p>Generalization Bounds. Motivated by Arora et al.</p><p>(2019), we can also provide generalization bounds on the performance of the FedFisher global model by bounding &#8741;W * -W 0 &#8741; 2 , which is the total distance between the weights of W * and the initialization point W 0 . We provide these bounds and subsequent discussion in Appendix B.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">A Practical Implementation of FedFisher</head><p>Two of the most popular approximations for the Fisher are the diagonal Fisher and the Kronecker Factored Approximate Curvature (K-FAC). The diagonal Fisher simply approximates the full Fisher with its diagonal elements and has been used in previous work for applications such as network pruning <ref type="bibr">(LeCun et al., 1989)</ref> and transfer learning <ref type="bibr">(Kirkpatrick et al., 2017)</ref>.</p><p>The K-FAC introduced by Grosse and Martens (2016); <ref type="bibr">Martens and Grosse (2015)</ref> uses two approximations: (i) it assumes that the Fisher is block diagonal where each block corresponds to the Fisher of a particular layer, and (ii) it approximates the Fisher of each block as the Kronecker product of two smaller matrices, i.e, F &#8776; A &#8855; B. Thus, storing (and communicating) the K-FAC only takes O (dim(A) + dim(B)) bits instead of O (dim(A) &#8226; dim(B)) bits. Using these approximations as a substitute for the true Fisher in Equation ( <ref type="formula">4</ref>), we get two practical variants of FedFisher, which we term as FedFisher(Diag) and FedFisher(K-FAC), respectively. We highlight the computation and communication efficiency of these variations along with their compatibility with secure aggregation below.</p><p>Computation Efficiency. To compute their diagonal Fisher or K-FAC, clients need to perform an additional forward-backward pass over the data, i.e., an additional epoch of training, plus some small overhead cost. This is a reasonable cost for FL setups, since most of the computation cost goes into computing Wi , which requires multiple local epochs. This is demonstrated in Table <ref type="table">1</ref>, where we see that FedFisher(Diag) and FedFisher(K-FAC) add less than 14.5% of the total computational cost of FedAvg at clients for our FL setups described in Section 5. Communication Efficiency. The communication cost of FedFisher depends on the number of parameters in the approximate Fisher. For the diagonal Fisher this is exactly d, while for the K-FAC it is model specific, but usually less than 10d. We find that the total communication cost of both FedFisher(Diag) and FedFisher(K-FAC) (including local models) can be easily reduced to match that of FedAvg using a mix of standard compression techniques such as quantization and low-rank decomposition without significantly affecting the accuracy of the final one-shot model. We discuss more details about this compression in Appendix C. For all our experiments in Section 5, we ensure that the communication cost of FedFisher(Diag) and FedFisher(K-FAC) matches that of FedAvg.</p><p>Compatibility with Secure Aggregation. In theory, the server optimization in FedFisher just needs the aggregate quantities  preventing the server from accessing individual Wi 's and Fi 's and improving privacy. For K-FAC, however, while the server does not need access to individual Wi 's, it does need access to individual Fi 's. This is because there does not exist a summation operation over K-FAC matrices that preserves the Kronecker factorization property. In other words, to compute matrix vector products of the form M i=1 Fi x, the server needs to store each Fi and individually compute and sum up Fi x. However, we argue that having access to Fi can be more private than having access to local models Wi , where the latter is needed for knowledge distillation and neuron matching baselines. We discuss this in more detail, including an experiment on measuring privacy using model inversion attacks <ref type="bibr">(Zhang et al., 2020)</ref>, in Appendix E.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5">Experiments</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1">Setup</head><p>We evaluate the performance of FedFisher in comparison to state-of-the-art (SOTA) neuron matching, knowledge distillation, and model fusion baselines across a range of image recognition tasks in a FL setting. The datasets that we use are (i) Fashion-MNIST <ref type="bibr">(Xiao et al., 2017)</ref>, (ii) SVHN <ref type="bibr">(Netzer et al., 2011)</ref>, (iii) CIFAR10 <ref type="bibr">(Krizhevsky et al., 2009)</ref> and (iv) CINIC10 <ref type="bibr">(Darlow et al., 2018)</ref>. Our code is available at <ref type="url">https://github.com/Divyansh03/FedFisher</ref>.</p><p>Baselines. We compare FedFisher with 6 other oneshot baselines. FedAvg is the de facto baseline in all our experiments. The other baselines that we compare with are (i) PFNM <ref type="bibr">(Wang et al., 2020a;</ref><ref type="bibr">Yurochkin et al., 2019)</ref>, (ii) OTFusion (Singh and Jaggi, 2020), (iii) DENSE (Zhang et al., 2022), (iv) FisherMerge (Matena and Raffel, 2022) and (v) <ref type="bibr">RegMean (Jin et al., 2023)</ref>. PFNM and OTFusion are popular neuron matching methods that first permute the weights of local models and then average them, rather than directly averaging the weights. DENSE is a SOTA method for one-shot FL based on data-free knowledge distillation that uses GANs to artificially generate data for distillation at the server. FisherMerge and RegMean are SOTA model fusion baselines. We note that, similar to FedFisher(Diag), FisherMerge also proposes using the diagonal Fisher when merging models. However, our application of the diagonal Fisher differs in how we compute the Fisher averaged model (Lemma 1) and additional regularization (Equation ( <ref type="formula">7</ref>)). We defer a more detailed discussion on the difference between the algorithms to Appendix A. We avoid comparing with baselines that need auxiliary data or maintain an ensemble of local models <ref type="bibr">(Diao et al., 2023;</ref><ref type="bibr">Guha et al., 2019)</ref> at the server to ensure fairness of comparison. We also avoid comparing with algorithms that are inherently multi-round in nature such as FedProx <ref type="bibr">(Li et al., 2020b)</ref>, SCAFFOLD (Karimireddy et al., 2020) and adapative variants of FedAvg such as FedAdam <ref type="bibr">(Reddi et al., 2021)</ref> since their performance would be similar to FedAvg for one round.</p><p>Models and Other Details. For FashionMNIST we use the LeNet architecture <ref type="bibr">(LeCun et al., 1998)</ref>; for other datasets we use a CNN model proposed in <ref type="bibr">Wang et al. (2020a)</ref>. To simulate data heterogeneity among the client datasets, we split our original image dataset into M partitions using a Dirichlet sampling procedure with parameter &#945; <ref type="bibr">(Hsu et al., 2019;</ref><ref type="bibr">Reddi et al., 2021)</ref>, with a lower value of &#945; implying a more heterogeneous split. The local optimization procedure is the same  across all algorithms. In particular, clients perform E = 30 epochs of local training using the SGD optimizer with local learning rate &#951; = 0.01, batch size 64 and momentum factor 0.9. To compute the Fisher diagonal and Fisher K-FAC we use the nngeometry package (George, 2021). Further details, including how we tuned hyperparameters, can be found in Appendix D.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2">Results</head><p>FedFisher outperforms baselines across varying heterogeneity. As a first step, we seek to understand the impact of data heterogeneity on the performance of FedFisher and other one-shot baselines. To do so, we fix the number of clients M = 5 and vary &#945; in the range {0.05, 0.1, 0.2} which can be considered moderate to high data heterogeneity. Table <ref type="table">2</ref> summarizes the results obtained by the algorithms across the various datasets. We see that FedFisher variants, especially FedFisher(K-FAC), consistently outperform baselines and give almost 10 -20% improvement over vanilla averaging in most cases. This highlights the effectiveness of FedFisher as a one-shot algorithm that can tackle data heterogeneity in FL settings while being computation and communication efficient.</p><p>FedFisher outperforms baselines across varying number of clients. In Appendix D, we provide experimental results in which we fix heterogeneity &#945; = 0.3 and vary the number of clients as M = {10, 20, 30}.</p><p>Our results show that FedFisher(K-FAC) continues to outperform baselines across different M with up to 10% improvement in some cases like CIFAR10.</p><p>Extension to Few-Shot Settings. A natural question to consider is if we can gain additional utility from FedFisher by extending it to the few shot setting, i.e., using a few more rounds of local training and aggregation. Figure <ref type="figure">2</ref> presents the results of performing 5 rounds of aggregation with different algorithms with &#945; = 0.1 and M = 5. We omit comparison with OTFusion here because we did not find the performance to be competitive with FedAvg after the second round.</p><p>We also omit comparison with PFNM as it modifies the global model architecture, leading to increased client computation and communication in every round. We see that while the use of multiple rounds improves the performance of all algorithms, FedFisher variants continue to show the greatest improvement, especially for CINIC10 which can be considered the hardest dataset in our experiments. This highlights the additional utility offered by FedFisher in few-shot settings.</p><p>Using Pre-trained Models. As motivated by recent literature in FL <ref type="bibr">(Chen et al., 2022;</ref><ref type="bibr">Nguyen et al., 2022;</ref><ref type="bibr">Tan et al., 2022)</ref>, in many cases the server might have access to a model pre-trained on a large public dataset. We consider a setting where the server has a ResNet-18 <ref type="bibr">(He et al., 2016)</ref> pre-trained on Tiny-ImageNet <ref type="bibr">(Le and Yang, 2015)</ref> and wants to fine-tune this model. The fine-tuning datasets that we consider are CIFAR10, CINIC10, GTSRB <ref type="bibr">Stallkamp et al. (2011)</ref> and CIFAR100. In all cases we split the fine-tuning dataset across M = 5 clients with &#945; = 0.1 heterogeneity. We focus on full fine-tuning, i.e., clients update all weights in the model, for E = 30 local epochs for CIFAR100 and E = 10 local epochs for the rest. We also use a smaller step size of &#951; = 0.001 in this setting. We omit comparison with PFNM since it does not support ResNet-like architectures. Table <ref type="table">3</ref> summarizes the results of one-shot aggregation in this setting. We see that algorithms that use Fisher information, including FisherMerge, improve on FedAvg and other baselines by almost 20%, with our methods achieving the highest accuracy. We attribute this large improvement to the reduced distance between weights of the local models when starting from a pre-trained model, which in turn reduces the approximation error in Fisher averaging as discussed in Section 3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6">Conclusion</head><p>In  <ref type="formula">2023</ref>) discusses how we can improve the prediction of this ensemble when the label distribution across client data is highly skewed. Another line of work proposes that clients send some distilled form of their data to the server <ref type="bibr">(Shin et al., 2020;</ref><ref type="bibr">Zhou et al., 2020)</ref>. However, the privacy guarantees of such methods is unclear. The work of <ref type="bibr">Garin et al. (2022)</ref> proposes techniques to optimize the weights of given to the local models when aggregating them at the server to improve one-shot performance. However, their analysis is limited to simple linear models and does not consider combing neural networks. We also note the existence of works that propose to perform clustering in a one-shot manner in FL setting <ref type="bibr">(Armacki et al., 2022;</ref><ref type="bibr">Dennis et al., 2021)</ref>; these approaches our orthogonal to our problem of finding a global minimizer in a one-shot manner.</p><p>Convergence of overparameterized NNs in FL. Comparison with (Matena and Raffel, 2022). We note that, similar to FedFisher(Diag), FisherMerge (Matena and Raffel, 2022) also proposes using the diagonal Fisher when merging models. However, there are several key differences which we would like to mention. Firstly our problem is more well-defined in the sense that we have an explicit objective in Equation ( <ref type="formula">1</ref>) that we are trying to solve with Fisher merging. This theoretical formulation is what leads us to propose the additional regularization in FedFisher in Equation ( <ref type="formula">7</ref>) (and also FedFisher(Diag) subsequently) and guarantees for two-layer networks. Matena and Raffel (2022) on the other hand does not provide any theoretical guarantees. Also note that the procedure to compute the Fisher averaged model is different (gradient descent in our work versus diagonal Fisher inversion in Matena and Raffel ( <ref type="formula">2022</ref>)). Finally, on a practical side, Matena and Raffel (2022) do not consider the effect of data heterogeneity in their experiments and focus on fusing two models whereas we explicitly account for data heterogeneity in our model training and aggregate up to thirty local models in our experiments (see results in Figure <ref type="figure">3</ref>). </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B Proofs</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof.</head><p>We have,</p><p>Also, arg max</p><p>B.2 Proof of Proposition 2.</p><p>Proposition 2. Any W which satisfies</p><p>Proof.</p><p>This implies that G(W ) is a convex function. Therefore any W which satisfies &#8711;G(W ) = 0 is a minimizer of G(W ). We have,</p><p>Setting &#8711;G(W ) = 0 we get</p><p>Lemma 1. Let W (1) , W (2) , . . . be the iterates generated by running the following gradient descent (GD) procedure:</p><p>Fi W (t) -Fi Wi with W (0) = M i=1 Wi /M and &#951; S &#8804; 1/&#955; max where &#955; max is the maximum eigenvalue of M i=1 Fi . Then, lim T &#8594;&#8734; W (T ) = W * .</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof.</head><p>Recall,</p><p>. Therefore, the expression for W * can be simplified as,</p><p>Since F is symmetric and PSD (see Equation ( <ref type="formula">12</ref>)), we have by the spectral decomposition of F ,</p><p>Here V &#8712; R (d&#215;d) is an orthogonal matrix consisting of the eigenvectors of F , and &#931; is a diagonal matrix consisting of all the eigenvalues of F . &#931; 1 is a diagonal matrix consisting of only the positive eigenvalues. V 1 consists of the eigenvectors corresponding to the positive eigenvalues while V 2 consists of the eigenvectors corresponding to the zero eigenvalues. Also note that we have V &#8868; 1 V 2 = 0. We first observe that for any W * 1 and W * 2 such that F W * 1 = F W * 2 = b we have,</p><p>Next we observe,</p><p>The proof for this follows via simple contradiction argument as follows. Suppose</p><p>leading to a contradiction.</p><p>According to the GD step in Lemma 1 we have,</p><p>Therefore,</p><p>In the limit T &#8594; &#8734; and with &#951; S &#8804; 1/&#955; max (&#931; 1 ), we have,</p><p>Thus,</p><p>This completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.4 Proof of Theorem 1</head><p>In this subsection, we provide the proof for Theorem 1 in Section 3 of our work. To do so, we first introduce some additional notation and basic results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.4.1 Additional Notation and Basic Results</head><p>Recall the two-layer ReLU NN is modeled as follows,</p><p>We can write the output of the neural network alternatively as,</p><p>where</p><p>Initialization. Recall W 0 is the common initialization point for all the local models before they perform local optimization, i.e., W</p><p>Wi /M is the initialization point for the server optimization.</p><p>Definition 2. (Matrices A 0 , &#195;, H 0 , H) Matrices A 0 and &#195; are defined as follows:</p><p>and,</p><p>Furthermore we define H 0 = A 0 A &#8868; 0 , H = &#195; &#195;&#8868; &#8712; R N &#215;N . Definition 3. (Vector of true labels y and vector of predicted outputs &#7929;)</p><p>The vector of true labels y is defined as follows,</p><p>Given local models W1 , W2 , . . . , WM , the vector of predicted outputs &#7929; is defined as follows,</p><p>Definition 4. (Proxy output and vector of proxy outputs at iteration t)</p><p>Given local models W1 , W2 , . . . , WM , the proxy output f (W , x ij ) for any W &#8712; R d and for any</p><p>Let W (0) , W (1) , . . . be the sequence of iterates generated by the global optimization process in FedFisher (Algorithm 1 Lines 12-14). We define f (t) as follows:</p><p>Proof.</p><p>Firstly observe that,</p><p>We have,</p><p>Claim 2. (Fisher closed-form expression) Under the squared loss &#8467;(z, y) = 1 2 (y -z) 2 , the Fisher at client i simplifies to,</p><p>Proof.</p><p>Under the squared loss, we have</p><p>Thus,</p><p>where (a) uses P(y|f</p><p>to be a vector such that x(i-1)&#215;n+1:i&#215;n = x and zero everywhere else. Then x&#8868;</p><p>Also define</p><p>where H &#8734; i is defined in Claim 3 and H &#8734; is defined in Definition 1.</p><p>Proof. This follows from an application of Claim 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.4.2 Key Lemmas</head><p>Before moving to the theorem proof, we first state some key lemmas and their proofs. Note that the probabilities of all events in this proof are over the random initialization of W 0 .</p><p>Lemma 2 is used to bound the local optimization at clients. Note that since the local optimization at each client is independent of all other clients, we can consider them to be M instances of centralized optimization starting from the same initialization. Thus we can use existing results in the centralized setting to give these bounds. and &#951; = O &#955;0 N 2 , then with probability at least 1 -&#948; over the random initialization of W 0 , for all clients i &#8712; [M ] simultaneously, we have</p><p>where wi,r denotes the r-th weight in the local model of the i-th client and w 0,r denotes the r-th weight of the randomly initialized model W 0 .</p><p>Firstly note that the local optimization at client i depends on H &#8734; i . Here we are using the result in Claim 3 which shows that &#955; min (H &#8734; i ) &#8805; &#955; min (H &#8734; ) = &#955; 0 . Also note that using Arora et al. ( <ref type="formula">2019</ref>) we can only guarantee that the above event holds at a single client with probability 1 -&#948;. In order for this event to hold simultaneously with probability 1 -&#948; for all clients, we use the union bound and set the failure probability at each client to be &#948; &#8242; = &#948;/M . This leads the bound to have a dependence on N instead of n as in the single client case. Also note that substituting the bound in part (1) in part (3), we have the following upper bound on R 0 :</p><p>Lemma 3 and Lemma 4 are standard in two-layer NN optimization and are adopted as is.</p><p>Lemma 3. (Lemma 3.2 in Du et al. ( <ref type="formula">2019</ref>)) For a given R, define the following event:</p><p>We have Pr(A ijr (R)) &#8804; 2R &#8730; 2&#960;&#954; where the randomness is over the initialization of w 0,r . Lemma 4. (Lemma 3.1 in Du et al. ( <ref type="formula">2019</ref></p><p>The (k, l)-th entry of H &#8712; R N &#215;N is given by,</p><p>where</p><p>We have,</p><p>where (a) uses</p><p>follows from the definition of A ijr in Lemma 3 and definition of R 0 in Lemma 2, (c) uses the result in Lemma 3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Thus we have,</head><p>By Markov's inequality, with probability 1 -&#948;, we have</p><p>Thus,</p><p>This implies,</p><p>using Lemma 4 and substituting m = &#8486;</p><p>in the upper bound on R 0 in ??.</p><p>We also have,</p><p>and &#951; = O &#955;0 N 2 , then with probability at least 1 -&#948; over the random initialization of W 0 , we have</p><p>Proof.</p><p>Part (1).</p><p>We have,</p><p>where (a) uses Cauchy-Schwartz and a r I x &#8868; ij wi,r &#8805; 0 x ij 2 &#8804; 1.</p><p>The GD step that the central server performs for FedFisher can be written as,</p><p>We have,</p><p>Therefore,</p><p>Part (3).</p><p>From Equation (50) we have,</p><p>where in (a) we use the notation A x:y to denote the submatrix of A having row numbers x to y.</p><p>Therefore,</p><p>With probability 1 -&#948; over the initialization, we have</p><p>where R 0 is defined in Lemma 2 and R 1 is defined in Lemma 6.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof.</head><p>We have,</p><p>where (a) uses union bound, (b) uses Lemma 3 and &#8741;w * r -w 0,r &#8741; 2 &#8804; w * r -w</p><p>Thus, using Markov's inequality, with probability at least 1 -&#948;, we have for any i &#8712; [M ] and j &#8712; [n],</p><p>Setting the failure probability as &#948;/N in Equation ( <ref type="formula">56</ref>), we have with probability 1 -&#948;, for all i &#8712; [M ] and j &#8712;</p><p>This implies,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.4.3 Proof of Theorem 1</head><p>We first state the full theorem statement with the exact dependence of m on (N, &#955; -1 0 , &#948; -1 , &#954; -1 ).</p><p>Theorem 1. Under Assumptions 2, 3, 4, for m = &#8486; N 9 &#955; 8 0 &#948; 4 &#954; 2 , and i.i.d Gaussian initialization weights of W 0 as w 0,r &#8764; N (0, &#954;), and initializing the second layer weights a r = {-1, 1} with probability 1/2 for all r &#8712; [m], for step sizes &#951; = O(&#955; 0 /N 2 ), &#951; S = O(&#955; 0 /N 2 ) and for a given failure probability &#948; &#8712; (0, 1), the following is true with probability 1 -&#948; over the random initialization:</p><p>Proof.</p><p>Note that the conditions on m, &#951; and &#951; S in Lemma 2, Lemma 4, Lemma 5 and Lemma 6 are satisfied by setting</p><p>) and hence we can now apply these lemma results for our proof. Furthermore, we can scale down the failure probability in these lemmas by a constant factor to ensure that all the results in the lemmas hold simultaneously with high probability via union bound.</p><p>First observe that setting t &#8594; &#8734; in Lemma 6 part (2), we have,</p><p>Now,</p><p>T 2 measures how well the local models fit their local data and can be bounded as</p><p>using the result from Lemma 2.</p><p>We now bound T 1 as follows:</p><p>where (a) follows from the definition of S &#8869; ij in Lemma 7. (b) uses the observation that since r &#8712; S &#8869; ij we have sign</p><p>Now substituting the bounds in Equation ( <ref type="formula">62</ref>) and Equation ( <ref type="formula">63</ref>) in Equation ( <ref type="formula">61</ref>), we have,</p><p>which completes the proof.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.5 Generalization Guarantees</head><p>In this subsection we provide generalization guarantees for the FedFisher global model. To do so, we first introduce some additional assumptions and definitions.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.5.1 Additional Assumptions and Definitions</head><p>Definition 5.</p><p>from D, with probability at least 1 -&#948;, we have &#955; min (H &#8734; ) &#8805; &#955; 0 &gt; 0.</p><p>Assumption 5. Let &#958; be the distribution from which the test data points are sampled. &#958; is a (&#955; 0 , &#948;/3, N )-nondegenerate distribution and the data samples {(x k , y k )} N k=1 &#8712; D are i.i.d samples from &#958;. Remark 1. Note that in Assumption 5, we are only assuming that the collection of local data across clients is drawn i.i.d from some distribution &#958;. This does not imply that the data at any particular client i is drawn from &#958;, i.e., D i &#8764; &#958; or that the data at client i is i.i.d with the data at client j for i &#824; = j. The data in D can be partitioned arbitrarily across clients and we make no assumptions on this. For instance, consider the case with M = 2 clients, Given the test data distribution &#958;, for a function f : R d &#8594; R, we have the following definitions of population loss L&#958;(f ) and empirical loss L(f ):</p><p>Definition 6. (Rademacher complexity) Given N samples, x 1 , x 2 , . . . , x N , the Rademacher complexity of a function class F that maps from R d to R is defined as,</p><p>where each &#1013; i is sampled independently from the Rademacher distribution unif({-1, 1}).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.5.2 Key Lemmas</head><p>We now state some key lemmas that will be used in the generalization proof.</p><p>We begin with the following lemma from Arora et al. ( <ref type="formula">2019</ref>) which bounds the Rademacher complexity of the class of two-layer neural network functions with bounded distance from initialization.</p><p>Lemma 8. (Lemma 5.4 in Arora et al. ( <ref type="formula">2019</ref>)) Given R &gt; 0, with probability at least 1 -&#948; over the random initialization of (W 0 , a), simultaneously for every B &gt; 0, the function class</p><p>Lemma 9 is standard in generalization theory and used to bound the population loss in terms of the empirical loss and Rademacher complexity of the class of functions to which our estimator belongs. N 2 , then with probability at least 1 -&#948; over the random initialization, we have</p><p>where y i = vec(y i1 , y i2 , . . . , y in ) and H &#8734; i is defined in Claim 3.</p><p>Note that in order to ensure that part (2) holds simultaneously for all i &#8712; [M ] we set the failure probability to be &#948;/M in Lemma 5.3 in <ref type="bibr">Arora et al. (2019)</ref>.</p><p>The following lemmas are our contribution and used to bound the distance of the FedAvg model from initialization and the FedFisher model from the FedAvg model respectively.</p><p>Lemma 11. (Bounding distance of FedAvg model from initialization)</p><p>Assuming the conditions in Lemma 10 hold true we have,</p><p>(70)</p><p>Proof. We have,</p><p>Thus we have,</p><p>This completes the proof. then with probability at least 1 -&#948; over the random initialization, we have,</p><p>Proof.</p><p>We have,</p><p>For (a) we use the following argument. Let H = V DV &#8868; be the eigen decomposition of H. We see that</p><p>which follows from Lemma 5.</p><p>For (b) we use the following argument,</p><p>where (c) follows from Lemma 10 part (2), Lemma 11 and setting &#954; = O &#955;0&#948; N . Thus,</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>B.5.3 Generalization Theorem and Proof</head><p>We first state the generalization bound and then provide the proof below.</p><p>Theorem 2. Fix a failure probability &#948; &#8712; (0, 1). Under Assumptions 2, 3, 5, if we let &#954; = O &#955;0&#948; N , m &#8805; &#954; -2 poly(N, &#955; -1 0 , &#948; -1 ), K = &#8486; 1 &#951;&#955;0 log(N/&#948;) then with probability at least 1 -&#948; over the random initialization and sampling of training data points, we have comes from bounding the distance of the FedFisher model from FedAvg, i.e., W * -W (0) 2 and can be seen as the additional error incurred in the federated setting by FedFisher. In particular, to bound W * -W (0) 2 we need to bound f (0) -&#7929; 2 (see Lemma 11). Clearly, if the data across clients is similar then f (0) -&#7929; 2 will be small. However, our current approach does not make any bounded heterogeneity assumptions leading to a pessimistic O &#8730; N &#955;0</p><p>bound. We conjecture that this bound can be improved by explicitly incorporating bounded data heterogeneity assumptions; however we leave the investigation of this as future work.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Proof.</head><p>As a first step, we bound the distance of the W * from W 0 . We have,</p><p>where the last line follows from setting &#954;</p><p>Next we aim to bound &#8741;w * r -w 0,r &#8741; 2 for any r &#8712; [m]. Recall we already bounded this quantity in Equation ( <ref type="formula">63</ref>) as follows,</p><p>We now use a similar argument as the proof of theorem 5.1 in <ref type="bibr">Arora et al. (2019)</ref> to provide the generalization guarantee. Under Assumption 5 we have D &#8764; &#958;, where &#958; is a (&#955; 0 , &#948;/3, N ) non-degenerate distribution. This implies with probability 1 -&#948;/3 we have &#955; min (H &#8734; ) &#8805; &#955; 0 &gt; 0. Assuming this event holds, we note that the following events hold with probability 1 -&#948; over the random initialization.</p><p>i)</p><p>which follows from Theorem 1 by setting m = &#8486; poly(N,</p><p>which follows from Equation (77) and Equation ( <ref type="formula">78</ref>) respectively.</p><p>iii</p><p>where the last inequality follows from setting m &#8805; poly(N, &#955; -1 0 , &#948; -1 , &#954; -1 ), &#954; = O &#955;&#948; N and Equation (77). Also note that f W * ,a &#8712; F W0,a R,B * k . iv) Using Lemma 9 and a union bound over all k &#8712; {0, 1, 2, O(N/&#948;)} we have,</p><p>Note that we can scale down the failure probabilities in each of the above events to ensure that all the above events hold simultaneously with probability 1 -&#948;, via union bound. Now assuming all the above conditions hold simultaneously, we have, <ref type="formula">80</ref>) and Equation ( <ref type="formula">81</ref>))</p><p>which completes the proof. Specifically each A l and B l is first compressed to the SVD decomposition corresponding to maintaining the top l v vectors. This ensures that the communication cost of (A l , B l ) is 32(2m l-1 l v + 2m l l v + 2l v ). This SVD decomposition is then further compressed using s q quantization compression to ensure that the communication cost is (32/s q )(2m l-1 l v + 2m l l v + 2l v ). We set s q and l v such that L l=1 (32/s q )(2m l-1 l v + 2m l l v + 2l v ) &#8804; 16d. The corresponding s v is then defined as &#8968;m/2l v &#8969;. Table <ref type="table">5</ref> summarizes the results obtained by different levels of s q and s v for the FashionMNIST and CIFAR datasets respectively. We see that keeping s q = 4 and setting s v accordingly usually gives the best performance and hence we use this setting for all our experiments.  </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.2 Experiment on Varying Number of Clients</head><p>Figure <ref type="figure">3</ref> shows the result our experiment where we keep the heterogeneity to be fixed as &#945; = 0.3 and vary the number of clients M = {10, 20, 30}. Note that as the total dataset size is fixed, as we increase M , each client gets assigned fewer data samples. Thus as M increases, local models have a larger tendency to overfit the data they are trained on, making it harder to aggregate such models to achieve a global model with good performance. Nonetheless we see that FedFisher variants, especially FedFisher(K-FAC), continue to outperform baselines even for large M with up to 8% improvement in some cases such as CIFAR-10. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.3 Hyperparameter Details</head><p>For hyperparameter tuning we assume that the server has access to a dataset of 500 samples, sampled uniformly from the original training set. We describe the hyperparameters tuned for each of the algorithms below.</p><p>FedFisher(Diag) and FedFisher(K-FAC). While Algorithm 1 performs the server optimization with GD, this can be replaced with any other suitable GD optimizer. We choose to use the Adam optimizer here. We set &#951; S = 0.01, &#946; 1 = 0.9, &#946; 2 = 0.99 and &#1013; = 0.01 for the Adam optimizer and number of steps T = 2000 for all our experiments. We measure the validation performance after every 100 steps and use the model which achieves the best validation performance as the final FedFisher model.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>PFNM.</head><p>For PFNM we use the version applicable for CNNs whose code is available at <ref type="url">https://github.com/IBM/ FedMA</ref>. We keep the default values of the hyperparameters &#963; = 1, &#963; 0 = 1 and &#947; = 7 as in the original code in all our experiments.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>DENSE.</head><p>For DENSE we use the default settings as described in Section 3.1.4 of <ref type="bibr">Zhang et al. (2022)</ref> and official code implementation available at <ref type="url">https://github.com/zj-jayzhang/DENSE</ref>. In particular we set T G = 30, &#955; 1 = 1, &#955; 2 = 0.5 and train the server model with SGD optimizer with learning rate &#951; S = 0.01 and momentum factor 0.9. We use the validation data to determine the model which achieves the best validation performance during the server training and use this as the final model.</p><p>OTFusion. The official code for OTFusion available at <ref type="url">https://github.com/sidak/otfusion</ref> contains more than 15 hyperparameters, making it hard to tune each of these parameters. Among these we found that the correction and past-correction hyperparameter affect performance most and hence we focus on tuning these hyperparameters for our experiments. In particular we vary correction &#8712; {True, False} and past-correction &#8712; {True, False} in our experiments and choose the model which achieves the best validation performance.</p><p>RegMean. For RegMean, we keep all parameters the same as the official code available at <ref type="url">https://github.com/ bloomberg/dataless-model-merging</ref> and only tune &#945; in the range {0.1, 0.9} using validation data as suggested by the authors.</p><p>FisherMerge. For FisherMerge, we compute the diagonal Fisher at each client using the entire dataset available at each client with a batch size of 1 and set &#955; i = p i where p i is the proportion of data available at client i. We also keep the fisher-floor variable to be 10 -6 as in the official code implementation available at <ref type="url">https://github.com/mmatena/model_merging/tree/master/model_merging</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>D.4 Computation Details</head><p>Experiments in Table <ref type="table">2</ref>, Table <ref type="table">4</ref>, Table <ref type="table">5</ref> and Figure <ref type="figure">3</ref> were averaged over 5 seeds and run on a NVIDIA TitanX GPU. Results in Figure <ref type="figure">2</ref> and Table <ref type="table">3</ref> were averaged over 3 seeds and run on NVIDIA A100 GPU.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>E Measuring Privacy Using Inversion Attacks</head><p>Measuring Privacy using Inversion Attacks. As discussed in Section 4, for FedFisher(K-FAC), while the local models can be securely aggregated, the server does need access to individual K-FAC information at clients to perform the global optimization. We argue, however, that this is more privacy-preserving than having access to the local models which is needed for knowledge distillation and neuron matching baselines. We demonstrate this empirically via the following inversion attack on the MNIST dataset LeCun (1998).</p><p>We consider a setup where client 1 has all the images corresponding to label 3 along with 1000 randomly sampled images. The remaining data is then split among 9 clients with &#945; = 0.1. The objective at the server is to reconstruct the data at client 1 corresponding to label 3. To do so, we adopt the attack strategy outlined in Zhang et al. ( <ref type="formula">2020</ref>), a popular model inversion attack using GANS. We assume that the server has access to auxiliary data of size 5000 that is randomly sampled from the data belonging to clients 2 to 10. Note that this ensures that the server does not have any samples corresponding to label 3. We now consider three cases (i) server has access to the local model at client 1 (DENSE, OTFusion, PFNM) (ii) server has access to the aggregate of local models (FedAvg) and (iii) server has access to the aggregate of local model plus the K-FAC computed by client 1 (FedFisher(K-FAC)). To modify the attack to include the K-FAC information, we add an additional loss term that penalizes the difference between the K-FAC on the generated data and the given K-FAC. In particular, we use the squared loss between the elements of the generated K-FAC and given K-FAC, summed over all elements.</p><p>Table <ref type="table">6</ref> summarizes the attack accuracy in the different cases. Figure <ref type="figure">4</ref> shows the generated images for the first and third case. We see that while adding the K-FAC information slightly improves the attack accuracy compared to case (ii), the overall accuracy is still much lower than case (i) as also evidenced by the generated images. This hints at the difficulty of inverting the K-FAC to generate meaningful client data, especially when we do not have access to the local models themselves. We acknowledge that there could be more sophisticated attacks designed especially for inverting the K-FAC; however we leave a investigation of such methods to future work. </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Algorithm Attack Accuracy</head><p>OTFusion, PFNM, DENSE 78.4&#177;3.0 FedAvg 5.0&#177;1.0 FedFisher(K-FAC) 9.6&#177;2.9 </p></div></body>
		</text>
</TEI>
