Federated learning
Intermediate
What you need first. Nothing else on this path comes first. This page is part of Statistical learning.
In statistical learning, federated learning is training a shared model from records that stay on the devices or at the sites that collected them. A phone, a hospital, or a sensor can collect the records a model needs and still be a bad place to empty those records into one warehouse. Federated learning trains the shared model by moving updates, not the records.[1] [2]
Federated learning
| Fact | Value |
|---|---|
| Topic | Statistical learning |
| Listed on | Statistical learning |
| Worked example | 1 |
Motivating example
Two clinics measure the same outcome. The first has two cases, values and , so its local mean is . The second has one case, value , so its local mean is . The mean of all three cases is . The unweighted mean of the two local means is . The gap is . A server that averages client summaries as if the clinics were the same size has answered a different question from the pooled sample. The records never left the clinics. The arithmetic of the average still has to know how many records each clinic held.[1] [2]
Intuition
Each client keeps its own sample and computes a step that would improve the current shared model on that sample. The server collects those steps, or the updated local models, and folds them into the next shared model. The communication is the scarce resource: the records are large or sensitive, and the update is smaller. The samples are not a random split of one well-mixed file. One phone’s typing is not another phone’s typing, and one clinic may contribute a handful of cases while another contributes thousands.[1] [2]
Definition
Federated learning trains a statistical model from data that remain on the remote devices or in the separate sites that collected them. A central coordinator sends out the current model. A subset of clients updates it on local data and returns the update. The coordinator incorporates the updates and repeats. The local training sets are not uploaded.[1] [2]
The setting was introduced for mobile devices coordinated by a server, under the name of a loose federation of clients. The problems for which it is aimed have three features: the real on-device data are more useful than a proxy data set sitting in a data centre; those data are private or large, so copying them for the sake of training is unattractive; and, for a supervised task, the label can be read off the user’s own interaction with the device.[1]
The optimisation problem inside that protocol is not ordinary distributed optimisation on a cluster. The local samples are typically not identically distributed, the clients are unbalanced, and communication dominates the cost. The Federated Averaging procedure runs local stochastic gradient steps on each selected client and averages the resulting models at the server.[1]
Properties
If client has observations with mean , the pooled mean is . An unweighted mean of the equals the pooled mean when the are equal, and not in general otherwise. In the clinic numbers, , , , . The pooled mean is . The unweighted mean is . The difference is .
If the second clinic also has two cases equal to , then and both averages equal . Equal client sizes, not equal client means, are what make the unweighted average of means agree with the pooled mean.[1]
A reported empirical comparison, on deep networks and several data sets, found that this style of local updating and averaging cut the number of communication rounds by a factor of to relative to a synchronised stochastic gradient step after every small batch. That factor is a statement about those experiments. It is not an identity like .[1]
The protocol is a way to fit a shared predictor, such as a next-word model on phones, when centralising the text is both a privacy risk and a heavy transfer. Each round, some devices train locally on their own, non-identical data and return an update; the server returns a new global model. Supervised learning is still the learning problem on each device when the device can form its own labels. The federation changes where the fit is computed and how the fits are merged.[2] [1]
Weighting an average of local means by is the merge that recovers the pooled mean. The same caution applies to a model average: a client with a handful of cases should not automatically pull the shared model as hard as a client with thousands, unless the goal really is an average across clients rather than across cases.[1]
Worked example
Clinic 1 contributes and , hence and . Clinic 2 contributes , hence and . The pooled mean is
The unweighted mean of the clinic means is . The excess is .
Your turn. If clinic 2 instead contributes two observations, both equal to , what is the pooled mean, and what is the unweighted mean of the two clinic means?
Both means equal . The pooled mean is , and the unweighted mean of and is also .
Assumptions and limits
The useful case assumes that a shared objective can be written as a sum of local objectives, that clients can compute a local update, and that the coordinator can form a global model from those updates. If the decision really needs one client’s raw records, the protocol does not apply. If clients drop out, or if only a fraction participate in each round, the average is an average over whoever answered.[1] [2]
The to fold drop in communication rounds is an experimental report about particular networks and data sets. A new model can communicate more, not less, if the local steps are unstable. The identity does not depend on that report.[1]
Keeping the records on the devices is not a proof that the updates reveal nothing about those records. The server still receives quantities computed from the local samples, and the formulation is explicit that some trust in the coordinator remains and that attacks on the updates are still possible. Privacy methods can be wrapped around the updates. They are an extra layer, not a consequence of the word federation.[1]
The average of client models is not automatically the fit one would have obtained by pooling the cases. The clinic calculation is the mean, the simplest fit, and already when the clinics have different sizes.[1]
A simulation that randomly splits one laboratory file across imaginary clients misses the feature the method was built for. The local distributions are allowed to differ, and in the intended applications they do.[1] [2]
Connections
On each client the fit is a machine learning problem, often a supervised learning problem when the label is observed locally. Classification of on-device examples is one such problem. The federation is orthogonal to the choice of loss: it constrains where the data sit and what may be transmitted. It is not cluster analysis, and it is not a dimensionality reduction of a single pooled matrix, because the matrix is never pooled.[2] [1]
The name and the mobile-device formulation, with local stochastic gradient steps and a server that averages models, were set out for deep networks trained on decentralised data, with an emphasis on communication cost and on unbalanced, non-identical local samples.[1] A later survey places the same idea in a wider set of remote devices and silos, including phones and hospitals, and treats the departure from ordinary distributed optimisation and from privacy-preserving analysis as the research problem the protocol creates.[2]
Check yourself
Try these questions before opening an answer.
Pooled mean
One site has values 1 and 3. Another has the single value 10. What is the pooled mean?
The pooled mean is 14/3.
Unweighted gap
How much larger is the unweighted mean of the two site means than that pooled mean?
The gap is 4/3.
Equal sizes
If the second site instead has two values, both 10, what is the pooled mean?
The pooled mean is 6.
See also
Line chart · Apriori algorithm · Asymptotic analysis · Average treatment effect · Base rate · Bayesian inference · Bayesian model · Bayesian probability
References
- ^ a b c d e f g h i j k l m n o p q a. (p. 1) b. (pp. 1–2) c. (pp. 1–2) d. (p. 1) e. (pp. 1–2) f. (pp. 1–2) g. (pp. 1–2) h. (p. 1) i. (pp. 1–2) j. (pp. 1–2) k. (pp. 1–2) l. (p. 1) m. (pp. 1–2) n. (pp. 1–2) o. (pp. 1–2) p. (pp. 1–2) q. (pp. 1–2) McMahan, H. B., Moore, E., Ramage, D., Hampson, S. & Agüera y Arcas, B. (2017). Communication-Efficient Learning of Deep Networks from Decentralized Data. Proceedings of the 20th International Conference on Artificial Intelligence and Statistics. https://arxiv.org/pdf/1602.05629
- ^ a b c d e f g h i a. (p. 1) b. (p. 1) c. (p. 1) d. (p. 1) e. (p. 1) f. (p. 1) g. (p. 1) h. (p. 1) i. (p. 1) Li, T., Sahu, A. K., Talwalkar, A. & Smith, V. (2019). Federated Learning: Challenges, Methods, and Future Directions. arXiv. https://arxiv.org/pdf/1908.07873
Cite this page
StatWiki (2026). "Federated learning." StatWiki. Last updated 2 December 2026. https://www.statwiki.io/articles/federated-learning.html
@misc{statwiki_federated_learning,
author = {{StatWiki}},
title = {{Federated learning}},
year = {2026},
url = {https://www.statwiki.io/articles/federated-learning.html},
urldate = {2026-12-02},
note = {StatWiki, last updated 2 December 2026}
}