Safety & security

Federated Learning

AI-assisted editorial review:

Federated learning is a way to train a shared machine learning model without collecting the training data in one place. In the classic on-device design, the data stays on each device or at each organization; participants train locally and send only model updates, which a central server combines into a shared model. Google researchers (McMahan and colleagues) coined the term in a 2016 paper that also introduced the Federated Averaging (FedAvg) algorithm.[1] Because raw data does not leave its owner, the approach is used where personal or confidential data is involved, such as smartphones, hospitals and drug research. Its core value is that several organizations can build one model together without handing over their data.[9]

What does Federated Learning mean in simple terms?

Federated learning sends the training to the data instead of sending the data to the training.[12] Each phone or hospital server learns from its own data and sends back only a summary of what it learned (a model update), not the data itself. The server averages these updates into a shared model and sends the improved model back out, and the cycle repeats.[2][12] Because people and organizations can learn together without exporting raw data, the approach draws attention in fields with strict privacy rules. Federated learning on its own, however, does not guarantee privacy, so it is usually combined with other protections (see Limits).[7]

How can Federated Learning be explained with an analogy?

Instead of every branch office mailing its customer files to headquarters, each branch studies its own files and sends only its takeaways. Headquarters combines the takeaways into one shared playbook and sends it back to every branch.

Where is Federated Learning used?

Case 1

Google — Gboard keyboard predictions

Google announced federated learning in April 2017, when it was testing the method for search-query suggestions in Gboard, its Android keyboard.[2] A 2018 Google paper then trained Gboard's next-word prediction model with federated learning: about 1.5 million devices processed 600 million sentences over 3,000 training rounds.[3] Phones took part only when they were charging, idle and on an unmetered network, to reduce interference with the user's experience.[2][3]
Result: Top-1 next-word recall about 5% higher in relative terms (0.8 points absolute) than the same model trained on a server, measured on data held on users' devices.[3]

Case 2

Mass General Brigham, NVIDIA and partners — COVID-19 oxygen needs across 20 institutions

Twenty institutions on four continents trained a model called EXAM without sharing patient data.[4] Using vital signs, lab results and chest X-rays from a patient's arrival at the emergency department, it predicts how much oxygen support the patient will need 24 and 72 hours later.[4] The sites prepared 16,148 cases in total for training, validation and testing; the model was developed at Mass General Brigham and trained with NVIDIA's Clara Train SDK.[4]
Result: Average AUC above 0.92, a 16% improvement in average AUC and a 38% average gain in generalizability compared with models each site trained on its own data (Nature Medicine, 2021).[4]

Case 3

Apple — On-device personalization for news and speech recognition

Apple described a system that runs federated evaluation and tuning on users' devices, and later added support for federated learning of deep neural networks.[5] In news personalization, it used federated tuning to optimize the parameters of an on-device ranking algorithm and tested the result in a live A/B experiment.[5] In speech recognition, it tuned an on-device personalization method that adapts to each user's own vocabulary.[5] These results come from federated tuning, a close relative of federated learning that adjusts settings rather than training a full model.
Result: Daily article views up 1.98% in a live A/B test (no significant change in time spent), and a 16.4% relative reduction in word error rate on utterances containing user-specific vocabulary.[5]

Case 4

K-MELLODDY (South Korea) — Drug discovery AI without pooling data

Korea's Ministry of Science and ICT and Ministry of Health and Welfare jointly launched the K-MELLODDY project; its project office opened on April 17, 2024 at the Korea Pharmaceutical and Bio-Pharma Manufacturers Association.[6] Drug companies, hospitals and research institutes keep their data in-house while jointly training FAM (Federated ADMET Model), which predicts a drug candidate's absorption, distribution, metabolism, excretion and toxicity.[6] The work is split into 36 sub-projects: one for the platform, 20 for data supply and use, and 15 for AI models.[6]
Result: KRW 34.8 billion budget over five years from 2024; the cited 2024 launch report gave no model performance figures.[6]

Try it today

  1. Read the "five steps" in Flower's "What is Federated Learning?" tutorial and sketch the loop on one page: initialize, send, train locally, return updates, aggregate, repeat.[12]
  2. Put the tutorial's one-liner, "move the computation to the data", into your own words for a colleague.[12]
  3. Work through the next Flower tutorial ("Get started with Flower") to run a small federated training job on sample data.[12]
  4. List three reasons your organization cannot put certain data in one place (regulation, contracts, walls between departments or partners), and mark where federated learning could help.
  5. Check how a production deployment pairs federated learning with differential privacy: Google now requires differential privacy guarantees for all Gboard neural language models.[8]

Limits and direction

Three limits stand out. First, communication cost: the system exchanges updates with many devices over slow links, and the original paper's main contribution was cutting the number of communication rounds by 10–100x compared with synchronized SGD.[1] Second, uneven data: each device or institution has a different data distribution (non-IID data), which the original paper calls a defining feature of the setting and a later survey treats as a major open problem.[1][9] Third, privacy is not automatic. Research has shown that shared gradients can leak training data, in some tests recovering images pixel by pixel and text token by token.[10] Google also notes that federated learning on its own does not stop a model from memorizing individual users' data.[7]

The direction, therefore, is to combine federated learning with other protections. In February 2022, Google deployed a production Gboard model (Spanish next-word prediction) trained with federated learning and a formal differential privacy guarantee.[7] By 2023, all of Gboard's neural next-word prediction models had differential privacy guarantees, and future launches must have them.[8] In October 2026, Google announced a new system that uses trusted execution environments (TEEs) so that outside parties can verify its privacy guarantees; Gboard already uses it for English and Japanese next-word prediction.[11] In healthcare, multi-institution projects such as EXAM are leading examples [4], and Korea launched K-MELLODDY in 2024 to test federated learning in drug discovery.[6]

Google’s 2026 TEE system is an extension of the classic design: clients upload encrypted training examples for policy-controlled processing inside server TEEs, which release anonymized results. It does not mean all federated learning now exports raw data, nor does a TEE eliminate all hardware and side-channel limitations.[11]

Which sources explain Federated Learning?

  1. arXiv (Google) — McMahan et al.: Communication-Efficient Learning of Deep Networks from Decentralized Data (2016-02-17) — https://arxiv.org/abs/1602.05629
  2. Google Research Blog — Federated Learning: Collaborative Machine Learning without Centralized Training Data (2017-04-06) — https://research.google/blog/federated-learning-collaborative-machine-learning-without-centralized-training-data/
  3. arXiv (Google) — Hard et al.: Federated Learning for Mobile Keyboard Prediction (2018-11-08, rev. 2019-02-28) — https://arxiv.org/abs/1811.03604
  4. Nature Medicine — Dayan et al.: Federated learning for predicting clinical outcomes in patients with COVID-19 (2021-09-15) — https://www.nature.com/articles/s41591-021-01506-3
  5. arXiv (Apple) — Paulik et al.: Federated Evaluation and Tuning for On-Device Personalization: System Design & Applications (2021-02-16) — https://arxiv.org/abs/2102.08503
  6. 의협신문 (Doctors News) — 연합학습 기반 신약 개발 첫 발 뗐다 [K-MELLODDY project office opens] (2024-04-17) — https://www.doctorsnews.co.kr/news/articleView.html?idxno=154332
  7. Google Research Blog — Federated Learning with Formal Differential Privacy Guarantees (2022-02-28) — https://research.google/blog/federated-learning-with-formal-differential-privacy-guarantees/
  8. arXiv (Google) — Xu et al.: Federated Learning of Gboard Language Models with Differential Privacy (2023-05-29) — https://arxiv.org/abs/2305.18465
  9. arXiv — Kairouz et al.: Advances and Open Problems in Federated Learning (2019-12-10, rev. 2021-03-09) — https://arxiv.org/abs/1912.04977
  10. arXiv (NeurIPS 2019) — Zhu, Liu, Han: Deep Leakage from Gradients (2019-06-21) — https://arxiv.org/abs/1906.08935
  11. Google Research Blog — Toward provably private learning from federated data (2026-10-02) — https://research.google/blog/toward-provably-private-learning-from-federated-data/
  12. Flower Framework Docs — What is Federated Learning? — https://flower.ai/docs/framework/tutorial-series-what-is-federated-learning.html