Federated learning is a way of training machine learning models without ever collecting the training data in one place. Instead of sending everyone’s data to a central server, the model travels to the data: it trains locally on phones, hospitals or banks, and only the lessons learned travel back. The raw data never leaves its home.
The idea matters because the old approach to machine learning has a growing problem. The most useful data is often the most sensitive: medical records, financial transactions, messages typed on a keyboard, photos on a phone. Federated learning offers a different deal — learn from the data without ever seeing it — and that is why it has moved from a research curiosity to a technology used in phones, hospitals and banks.
This guide explains federated learning in plain terms: what it is, how the training process actually works, the main types, where it helps and where it struggles, and how it compares with the alternatives.
Key takeaways
- Federated learning trains machine learning models across many devices or organisations while the raw data stays where it is; only model updates are shared.
- A central server coordinates the process, sending out a model, collecting updates from participants, and merging them into an improved model.
- It reduces privacy and compliance risk, but it does not remove it — model updates can still leak information if they are not protected.
- The main challenges are unreliable devices, uneven data, slow connections and the risk of malicious or faulty participants.
- It is already used in phone keyboards, hospitals, banks and car fleets, and it is most valuable wherever data cannot legally or practically be centralised.
| Aspect | What it means |
|---|---|
| Core idea | Train a shared model on data that never leaves its owner |
| What travels | Model updates (numbers), not raw data |
| Coordinator | A central server that distributes the model and merges updates |
| Typical participants | Phones, hospitals, banks, vehicles, edge devices |
| Main benefit | Privacy and regulatory compliance |
| Main weakness | Slow, unreliable and unevenly distributed participants |
| Key protection | Encryption, secure aggregation and differential privacy |
| Best suited to | Sensitive, distributed or legally restricted data |
What is federated learning?
Federated learning is a machine learning technique in which a model is trained across many separate devices or organisations, with each participant keeping its own data local. The word federated is the key: a federation is a group of independent members that cooperate under a shared arrangement, and that is exactly how the training works. Nobody hands over their data. Instead, everyone trains the same model on their own data and shares only what the model learned.
To see why this is useful, consider the traditional alternative. In centralised machine learning, all the data is gathered into one place — a data centre, a cloud bucket, a company database — and the model trains there. That works well when the data is easy to move and nobody minds it being pooled. It works badly when the data is private, regulated, huge, or spread across millions of devices. Federated learning was designed for exactly these situations.
The technique was popularised by Google in 2016 and 2017, when its researchers described using it to improve the predictive keyboard on Android phones. The keyboard learns from what millions of people type, but the words themselves never leave the phone. If you are new to the field as a whole, our guide to what machine learning is covers the basics that federated learning builds on.
How federated learning works, step by step
The process runs in rounds, and each round follows the same pattern. First, a central server selects a group of participants — a sample of phones, or a set of hospitals that have agreed to take part — and sends them the current version of the model.

Second, each participant trains the model locally, on its own data, using its own processor. This local training is the heart of the technique: the data is used, but it never moves. The device then computes an update — a set of numbers describing how the model should change based on what it learned — and sends that update back to the server.
Third, the server collects the updates from all the participants and merges them into a single improved model. The standard merging method is called federated averaging: the updates are averaged together, with larger datasets given more weight, to produce the next version of the model. The server then sends the improved model back out, and the next round begins. After many rounds, the model gradually improves, having learned from data it never saw directly.
The main types of federated learning
Not all federated learning looks the same, and the differences matter. The most common form is horizontal federated learning, where participants have the same kinds of data but different examples. Ten hospitals might all record the same fields — age, symptoms, test results, outcomes — but each hospital’s patients are different people. The model learns from a wider range of patients than any single hospital could offer, without any hospital sharing its records. Phone keyboards work the same way: same kind of data, different users.
Vertical federated learning is the mirror image. Here, participants hold different kinds of data about the same people. A bank and an online retailer might both have records about the same customers — the bank knows income and credit history, the retailer knows shopping habits — but neither side can share its data with the other. Vertical federated learning lets them train a joint model, such as a fraud-detection system, while each side keeps its own columns private.
The setting also changes the shape of the system. Cross-device federated learning involves huge numbers of unreliable participants, such as millions of phones, where any single device may vanish mid-round. Cross-silo federated learning involves a small number of reliable organisations, such as a dozen hospitals, where every participant is expected to show up for every round.
Benefits and risks
The biggest benefit is privacy. Because raw data never leaves its owner, federated learning sidesteps many of the risks of centralisation: there is no giant database to breach, no mass transfer of sensitive records, and no need to ask users to hand over data they would rather keep. It also helps with regulation. Laws such as the GDPR in Europe and health privacy rules in many countries restrict how personal data can be moved and pooled, and keeping data local makes compliance far simpler.
The risks are real, however, and the most important is that federated learning is not automatically private. Model updates are derived from the data, and a determined attacker can sometimes work backwards from an update to infer something about the data behind it — a technique known as a model inversion or inference attack. That is why serious deployments add protections such as differential privacy, which adds carefully calibrated noise to updates, and secure aggregation, which encrypts updates so the server only sees the combined result, never any individual contribution.
Other risks are operational. Data across participants is usually uneven — one hospital sees different patients from another, one phone user types differently from the next — and this uneven distribution can make training slower and less accurate. Devices are unreliable, connections are slow, and a malicious participant could deliberately send a poisoned update to corrupt the shared model. For a business-focused look at the trade-offs, see our article on what federated learning means for businesses.
Real-world uses of federated learning
The best-known example is the smartphone keyboard. Google’s Gboard uses federated learning to improve next-word prediction and autocorrect, learning from how millions of people type without ever uploading what they typed.
Healthcare is the second major field. Hospitals use federated learning to train diagnostic models on medical images and patient records that cannot legally leave the building. Several hospitals can jointly train a model to detect tumours in scans or predict patient deterioration, each contributing what its own patients taught the model, without any patient data crossing institutional boundaries. The same idea applies to running models locally on a personal machine, which is why the skills overlap with running a local large language model on a laptop — both keep data and computation close to the user.
Federated learning vs the alternatives
The most direct comparison is with centralised machine learning. Centralised training is simpler, faster and usually more accurate when the data can be pooled freely, because the training process has full access to everything and can be tuned as one system. Federated learning trades some of that simplicity and speed for privacy and compliance.
A closer cousin is on-device learning, where a model trains or adapts on a single device for that device alone. The difference is collaboration: on-device learning improves one device, while federated learning lets many devices improve a shared model together. Another related idea is split learning, in which a model is cut in half and the two halves train on different sides of a connection. Split learning can be more private per update, but it is slower and more fragile, so federated learning remains the more common choice.
Frequently asked questions
Is federated learning completely private?
No. It keeps raw data local, which removes the biggest privacy risk, but model updates can still leak information about the data they came from. Real deployments add differential privacy and secure aggregation to close that gap.
Does federated learning work without an internet connection?
Partly. Devices train locally without a connection, but they need to connect periodically to send updates and receive the improved model. Training rounds are usually scheduled for when the device is idle, charging and on Wi-Fi.
What is federated averaging?
Federated averaging is the standard method for combining updates from participants. The server averages the model updates it receives, weighting them by how much data each participant trained on, to produce the next version of the shared model.
How is federated learning different from normal machine learning?
In normal machine learning, data is collected in one place and the model trains there. In federated learning, the model is sent to where the data lives, trains locally, and only the learned updates are shared. The data never moves.
Which companies use federated learning?
Google uses it in Android keyboards and voice features, Apple uses on-device and federated techniques for personalisation, and hospitals, banks and carmakers use it for diagnostics, fraud detection and driver assistance.
Can small organisations use federated learning?
Yes, through open-source frameworks and managed platforms that handle the coordination, encryption and aggregation. The main costs are engineering time and the need for enough participants to make the shared model worthwhile.
The bottom line
Federated learning changes the bargain at the heart of machine learning. Instead of trading privacy for intelligence — handing over your data in exchange for a smarter model — it lets the model come to the data and learn there. For data that cannot be moved, whether because of law, ethics or sheer scale, it is often the only way to learn from it at all.
The practical lesson is to treat federated learning as a tool for specific problems, not a default. If your data can be centralised safely, centralised training remains simpler and faster. If it cannot — because it is medical, financial, personal or spread across millions of devices — federated learning is the way to train on it without giving it away.

