Federated learning is a way to train an AI model without collecting everyone’s raw data in one place. Instead of sending photos, messages or health readings to a central server, each device or organisation trains a copy of the model on its own data and sends back only an update. The server combines the updates into a better shared model. The idea matters because the most useful data is often the most private, and moving it creates cost, legal duties and risk.
This guide explains federated learning in plain words. It covers how a training round works, where the approach is used, the difference between cross-device and cross-silo setups, the privacy tools that usually accompany it, the technical difficulties, the limits of its privacy promise and how it relates to other ideas such as on-device AI and synthetic data. It is written for readers who use AI tools and want to understand what a privacy claim really means.
Federated learning in one paragraph
In ordinary training, data is gathered into a central store and the model learns from the whole pile. In federated learning, the model travels to the data. A server sends the current model to many participants. Each participant improves it a little using local data, then returns the change, not the data. The server averages the changes into a new model and starts another round. After many rounds, the shared model has learned from everyone without anyone’s raw data leaving their device or building. The term was popularised by researchers at Google around 2016, and the overview in the article on federated learning gives a short history.
How one training round works
A round has the same steps in most systems.
- Select participants. The server picks a group of devices or organisations that are available, for example phones that are charging and on Wi-Fi.
- Send the model. Each participant receives the current model parameters.
- Train locally. The participant runs a few training steps on its own data, which never leaves the place where it is stored.
- Return the update. The participant sends back the change in the parameters, often compressed and sometimes protected with extra privacy steps.
- Aggregate. The server combines the updates, commonly by averaging them with weights based on how much data each participant has. This approach is called federated averaging.
- Repeat. The new model goes out in the next round until performance stops improving.
Each step uses ideas from ordinary training. If you want the basics of how a model improves from data, our article on neural networks and the one on pretraining give the background.
Where federated learning is used
The best-known example is keyboard prediction on phones, where the model learns which words people type without uploading their messages. Other uses follow the same logic: sensitive data that is useful but hard to move.
- Mobile keyboards and voice. Next-word suggestions and wake-word detection improve from usage on millions of devices.
- Healthcare. Hospitals can train a model on scans or records without sharing patient files with each other.
- Finance. Banks can improve fraud detection using patterns from several institutions, within legal limits.
- Industrial and IoT systems. Machines or sensors learn from local readings and share improvements.
- Research collaborations. Groups with data they may not legally pool can still build a shared model.
In each case, the promise is the same: the learning moves, the data stays. Whether that promise is complete depends on the design, as the next sections show.
Cross-device and cross-silo federated learning
Two settings are common, and they behave very differently.
| Feature | Cross-device | Cross-silo |
|---|---|---|
| Participants | Millions of phones or small devices | A handful of organisations, such as hospitals or banks |
| Availability | Unreliable: devices drop out often | Reliable servers, scheduled training |
| Data per participant | Small, personal | Large, curated |
| Main challenge | Scale, bandwidth, battery and uneven data | Legal agreements, data format differences and trust |
| Typical example | Keyboard suggestions | Medical imaging models across hospitals |
Knowing which setting a claim refers to helps you judge it. A promise about millions of phones involves very different risks and controls from a research project with five hospitals and a contract.
Privacy tools that go with it
Keeping raw data local is a good start, but the updates themselves can leak information. Researchers have shown that, in some conditions, details about training examples can be inferred from model updates. For this reason, serious systems add further protections.
- Secure aggregation. A cryptographic method that lets the server see only the combined update from many participants, not any single participant’s update.
- Differential privacy. Carefully calibrated noise is added so that the presence or absence of one person’s data has a limited effect on the result. The idea is described in the article on differential privacy.
- Clipping updates. Limiting how much any one participant can change the model reduces both leakage and the damage from a bad participant.
- Trusted hardware. Some designs run the aggregation inside protected environments that are checked from outside.
These tools have costs. Noise lowers accuracy, secure aggregation adds computation and communication, and clipping can slow learning. A good system states which protections it uses and what privacy level it targets. Our AI privacy checklist turns that thinking into questions you can ask a vendor.
A worked example: next-word suggestions
Imagine a keyboard that suggests the next word. Each phone holds a small history of what its owner types. In a round, the server sends the current suggestion model to a few thousand phones that are idle and charging. Each phone runs a short training pass on its own typing and computes how the model’s numbers should change. The phone clips the change so that no single phone has too much influence, adds protection, and sends it back. The server sees only a blend of thousands of updates and averages them into a slightly better model. Over many rounds the suggestions improve for everyone, including for new slang that no central team had listed, and nobody’s messages were uploaded. The example also shows the costs: the training happens on the user’s battery, the update uses bandwidth and the developer must trust that the protections work as described.
Technical difficulties
Federated learning is harder to run than ordinary training, for several reasons.
- Uneven data. Each participant’s data is different. One person’s typing, one hospital’s patient mix or one factory’s sensors does not look like the average. This mismatch, often called non-IID data, can slow learning or bias the model toward the loudest participants.
- Communication cost. Sending model updates is expensive, especially over mobile networks. Compression and fewer rounds help.
- Unreliable participants. Devices go offline, run out of battery or finish at different speeds.
- Hard debugging. You cannot inspect the data to find out why the model failed on a group, because you never see it.
- Security risks. A malicious participant can send poisoned updates that damage the model or plant a hidden behaviour, so the server needs defences.
These issues explain why many models are still trained centrally, and why federated learning appears where privacy or legal limits make central collection very hard.
What federated learning does not guarantee
It is tempting to read “your data never leaves your device” as complete privacy. That statement is only partly true. The raw data stays local, but the model that results can still memorise rare details, updates can be attacked, metadata such as which devices took part can reveal facts and the owner of the system still decides how the model is used. Privacy depends on the full design, not on the label.
When you evaluate a product that mentions federated learning, ask five questions. What exactly stays on the device? What leaves it? Is there secure aggregation or differential privacy, and with what parameters? Who controls the final model? Can users opt out? Our article on opting out of AI training explains why the answer to the last question matters.
How it relates to other privacy-friendly ideas
Several terms are easy to confuse. Federated learning trains one shared model across many data holders. On-device AI runs a model on your phone or laptop, with no network required, and the model may or may not have been trained in a federated way. Synthetic data creates artificial records that mimic real ones, so teams can share examples without exposing real people. Anonymisation removes identifiers from records before they are used, and our guide on anonymising text before AI covers it in practice. Many real systems combine several of these.
Questions to ask about any federated claim
Marketing pages sometimes use the term loosely, so a short list of questions helps you separate a real design from a slogan. Ask whether the training truly happens on the participants’ side or whether only a small part of the pipeline is local. Ask how many participants join each round, because aggregation over a handful of devices protects far less than aggregation over thousands. Ask whether a privacy budget is published and who audited the system. Ask how the provider detects poisoned or faulty updates. A clear, specific answer is a good sign, and vague wording about “advanced privacy technology” is a reason to read the documentation more closely.
What this means when you use an AI assistant
Most chat assistants, including general ones, are trained centrally on large collections of text, and then served to you. Federated learning is rare there. For you as a user, the useful questions are different: does the provider train on your conversations, can you delete your chats and where is the data processed. Federated learning is one possible answer to a privacy question, not a feature you must look for in every tool.
Mio is one assistant with Chat, Write, Research, Code and Design modes, and you never pick a model: Mio routes each request to one suited to the task. Your chats and files remain yours, they are not used to train models and you can export or delete them at any time, and Ask Mio runs on its own servers. You can test how an assistant explains a technical topic on the free plan, which includes Chat and Write modes and 600 points a month. A normal chat reply costs 1 point, so exploring a question such as this one costs little.
Frequently Asked Questions
Is federated learning the same as on-device AI?
No. On-device AI means a model runs on your own device when you use it. Federated learning is a way of training a model across many devices or organisations without collecting their raw data. A model trained this way can later run on a device, but the two ideas answer different questions.
Does federated learning make my data completely private?
Not by itself. Raw data stays local, but model updates can reveal information, and trained models can memorise rare details. Strong systems add secure aggregation and differential privacy, and they limit who can see updates. Treat the label as one useful safeguard and ask what else the provider does.
Why not just train on a central server?
Central training is simpler and often gives better accuracy, so it is the default. Federated learning is chosen when data is too sensitive, too large to move or legally restricted. It trades extra complexity and some accuracy for keeping data where it was created.
What is federated averaging?
It is the common method for combining updates. Each participant trains the model locally and sends back its new parameters or the change. The server averages them, usually weighting each participant by how much data it used, and the average becomes the next shared model. The process repeats for many rounds.
Where would I meet federated learning as a normal user?
Most often in phone features such as keyboard suggestions, voice detection and photo grouping, where the system improves from many users without uploading their content. Providers usually describe it in privacy notes or settings pages. Check those notes for what is collected, what stays on the device and how to opt out.
The Bottom Line
Federated learning explained simply: the model goes to the data, learns locally and returns only updates, which a server combines into a shared model. It helps when data is private, large or legally hard to move, and it works best together with secure aggregation and differential privacy. It is not a guarantee of perfect privacy, so ask what leaves the device and who controls the result. To explore technical topics with an assistant, start on the free plan and compare options on the Ask Mio pricing page.
