Join our Newsletter — 33% off our NHI Course
Home› Guides› Federated Learning for Beginners: How AI Learns From…
Guide Privacy & Data Protection

Federated Learning for Beginners: How AI Learns From Data That Never Leaves Your Device

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 2 December 2026 10 min read
On this page

Federated learning is a way to train AI on many devices without collecting everyone's raw data in one place.

This guide is for anyone who has seen the term in a privacy notice or an AI news story. You do not need to build AI to be affected: the keyboard on your phone may already learn this way.

In short

  • Each phone or computer learns from its own data, then sends back only a small summary of what changed.
  • The service combines many summaries into one better shared model, and the raw data stays on the device.
  • Research shows the summaries, and the finished model, can still leak some training data.
  • Extra protections, such as combining updates securely and adding careful noise, are needed for strong privacy.

What you will learn

  • Explain federated learning in one or two sentences.
  • Describe the steps in one round of training.
  • Spot what federated learning protects, and what it does not.
  • Ask useful questions when a product says it uses it.

Status: correct as at 2 December 2026, based on Google Research and the joint NIST and UK government privacy blog series. Guidance changes; check the official sources.

This guide explains the topic in general terms and is not legal advice.

Pattern finder (model)
the trained program that makes a guess, such as the next word you will type.
Summary of changes (model update)
a small set of numbers that says how a device would adjust the model.
Combining (aggregation)
mixing many updates together into one result for the shared model.

What is federated learning?

Think of a recipe club. Each cook tries the club's recipe at home with their own ingredients, then posts only their tweaks, such as "a little less salt". Nobody hands over their kitchen cupboards.

Federated learning works in a similar way. Phones learn together to improve a shared model, while the training data stays on each phone [1]. Normal machine learning (software that learns patterns from examples) usually gathers all the examples in one central store first.

Google described the idea in 2017 and tested it in Gboard, its keyboard app for Android [1]. The phone used what you typed and tapped to help improve suggestions, without sending that history away.

Where the comparison stops working: a cook's tweak says little about their cupboards. A model update is a set of numbers, and researchers have shown it can sometimes be used to rebuild the data behind it [2].

Why does it matter?

Federated learning can reduce how much personal data is gathered in one place. But on its own it does not fully protect privacy [2].

If you use a phone or smart device

What could happen: you assume "your data never leaves your device" means nothing about you can ever be learned.

Check this: read the privacy settings for keyboard and voice features, and switch off what you do not want.

Next: AI and Privacy for Beginners

If you work in a hospital, bank or research team

What could happen: partners agree to train a model together and skip a privacy review because no records are shared.

Check this: ask which extra protections cover the updates and the finished model.

Next: Privacy Enhancing Technologies for Beginners

If you are new to security work

What could happen: a fake device joins training and sends bad updates, or a stolen device credential is reused.

Check this: ask how devices and servers taking part prove who they are.

Next: AI Security for Beginners

What does it look like?

Most people meet federated learning in a privacy notice. Here is a made-up example of the kind of wording you may see.

Example only. All values are made up.

EXAMPLE Keyboard - how we improve suggestions
Your typing stays on this device.                   (1)
Your phone sends small model updates to us.         (2)
Updates are combined with those from 0000+ phones.  (3)
We add noise so no one person stands out.           (4)
Turn off: Settings > EXAMPLE > Improve suggestions  (5)
  1. The raw data, here your typing, is not uploaded.
  2. Something still leaves the phone: a summary of what the model learned.
  3. In a real file, this line would contain how many devices must join before updates are combined.
  4. A sign of an extra protection, often called differential privacy.
  5. A switch to opt out. Look for one in any notice like this.

Why this is risky: a notice that says only "your data stays on your device" leaves out what is sent, and how it is protected.

The safer way: look for wording about combining updates and adding noise, plus a clear way to turn the feature off.

How does it work?

  1. The service sends out the model. Each device downloads the current shared model [1].
  2. Each device learns from its own data. In Google's design, this happens only when the phone is idle, charging and on a free Wi-Fi connection [1].
  3. Each device sends a small update. The update is a short summary of changes, sent over an encrypted (scrambled) connection [1].
  4. The service combines the updates. With secure aggregation, the server can only read the combined average, once hundreds or thousands of devices have joined [1].
  5. The better model goes back out. The round repeats, and the shared model slowly improves.
Diagram titled One round of federated learning. Four boxes in a row joined by arrows. Box 1, Send model: the service sends the current shared model to many phones. Box 2, Learn locally: each phone learns from its own data, often when idle, charging and on Wi-Fi. Box 3, Send update: each phone sends a small summary of changes, not the raw data. Box 4, Combine, in green: the service averages many updates into a better model. A note underneath says the raw typing, photos or records stay on the phone, and the round repeats with the improved model going back out to phones.
Figure 1. In each round, devices learn locally and share only updates.

Keeping data on devices is only part of the picture. Researchers working with NIST and a UK government unit have shown it is often possible to pull raw training data out of model updates [2].

The finished model can leak too. Trained models can remember parts of their training data, including whole images and snippets of text [3]. Attacks that try to recover hidden training data from a model are often called model inversion.

The strongest known protection for the finished model is differential privacy, which adds careful random noise during training [3]. More noise usually means better privacy but less accurate results [3].

Diagram titled What federated learning helps with, and what it does not, with two panels. The grey left panel, Still needs extra protection, lists: updates can sometimes be used to rebuild training data; the finished model can remember and leak parts of its training data; phones and accounts taking part still need to be trusted. The green right panel, What it helps with, lists: raw data stays on each device; the service does not need one big central store of everyone's data; combining updates from many devices hides any single one, with secure aggregation.
Figure 2. Federated learning helps privacy, but the updates and the model still need protection.

A worked example

Bruno Fairweather has just set up a new phone. The keyboard app asks if he wants to "help improve suggestions". The notice says his typing stays on his phone.

Bruno types a lot of private messages, including notes about his health. He wants to understand the choice before he says yes.

He opens the full privacy notice. It says the phone learns from his typing and sends small updates. The updates are combined with those from many other phones before anyone can read them.

That sounds better than uploading every message. Still, Bruno has read that updates and models can sometimes leak training data. He looks for any mention of extra noise being added, and finds a line about it.

He also checks when training happens. The notice says it runs while the phone is charging and on Wi-Fi, so it will not use his mobile data.

Bruno decides to leave the feature on.

He makes a note to check the settings again after the next big update. Features and default settings can change over time, so a quick check now and then is worth it.

Bruno did not need to understand the maths. He asked what leaves the phone, how it is combined and protected, and how to opt out.

Myths and mistakes

What people thinkWhat is true
If data stays on my device, nothing about me can be learned.Updates and the finished model can sometimes leak training data. Extra protections are needed.
Federated learning is a kind of encryption.It is a way of training. Encryption may protect the updates in transit, but it is a separate tool.
Combining updates solves every privacy problem.Secure combining hides single updates. The finished model can still remember data unless other steps, such as noise, are added.
More noise is always better.More noise usually means more privacy but less accurate results. It is a trade-off.
Only big tech firms use it.Groups such as hospitals or banks may also train together without pooling records.

What can I do this week?

  • Open your phone's keyboard and voice settings. Look for options to improve suggestions.
  • Read what each option sends from your phone. Switch off any you do not want.
  • If your work plans a shared AI project, ask how the updates are combined. Ask if noise is added.
  • Ask who looks after the keys that devices and servers use to join.

Checklist

  • I can explain that federated learning shares updates, not raw data.
  • I know updates and models can still leak some training data.
  • I have checked the learning settings on my phone's keyboard.
  • I look for secure combining of updates in any notice or proposal.
  • I look for differential privacy, or added noise, to protect the finished model.
  • I know how to opt out of features I do not want.
  • For work projects, I know who checks the devices and servers taking part.

Common questions

Does federated learning mean my data is private?

It helps, but not fully on its own. Your raw data stays on your device, which lowers some risks. Researchers have shown that updates and finished models can still leak training data, so good systems add protections such as secure combining and added noise.

What is sent from my phone?

A small update, which is a summary of how the model should change after learning from your data. In Google's design it travels over an encrypted connection and is combined with updates from many other phones. Your raw messages or photos are not sent.

Will it slow down my phone or use my data allowance?

Usually not much. Google's design trains only when the phone is idle, charging and on a free Wi-Fi connection. Other products may differ, so check the notice for when and how training happens.

How is it different from differential privacy?

They solve different problems and are often used together. Federated learning keeps raw data on devices during training. Differential privacy adds careful noise so the finished model is less likely to reveal any one person's data.

Can I turn it off?

Often, yes. Look in the settings of the app or feature, such as keyboard suggestions or voice typing, for an option about improving or personalising the service. If you cannot find one, the privacy notice should explain your choices.

Where next?

Ready for the detail? Read the practitioner guide: Federated Learning Privacy. It goes further into the main attacks on updates and models, how to choose protections for a project, and the checks a privacy team should run.

Also useful:

Related NHI Mgmt Group resources: Data Privacy for Beginners, AI Security for Beginners and Homomorphic Encryption for Beginners.

Key terms

Federated learning
A way to train a shared model on many devices, which send updates instead of raw data.
Machine learning
Software that learns patterns from examples instead of following only hand-written rules.
Training data
The examples a model learns from.
Secure aggregation
A way of combining updates so the server can read only the total, not any single device's update.
Differential privacy
A technique that adds careful random noise so individual records cannot easily be worked out from the results.
Model inversion
An attack that tries to recover sensitive information hidden in a model's training data.

Sources and further reading

  1. Google Research, "Federated Learning: Collaborative Machine Learning without Centralized Training Data", 6 April 2017. https://research.google/blog/federated-learning-collaborative-machine-learning-without-centralized-training-data/ (accessed 2 Dec 2026).
  2. Responsible Technology Adoption Unit and NIST, "Privacy Attacks in Federated Learning", RTAU Blog, GOV.UK, 24 January 2024. https://rtau.blog.gov.uk/2024/01/24/privacy-attacks-in-federated-learning/ (accessed 2 Dec 2026).
  3. Responsible Technology Adoption Unit and NIST, "Protecting Trained Models in Privacy-Preserving Federated Learning", RTAU Blog, GOV.UK, 15 July 2024. https://rtau.blog.gov.uk/2024/07/15/protecting-trained-models-in-privacy-preserving-federated-learning/ (accessed 2 Dec 2026).

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.