# Federated learning

> Canonical: https://skillalmanac.com/glossary/federated-learning | Last verified: 2026-11-25 | Index status: index-eligible

Federated learning trains models using data held by multiple participants without pooling the raw training data. Participants exchange model information; a central server can aggregate updates, but decentralized arrangements also exist.

Also called: federated machine learning, federated learning AI, FL, federated training.

## In plain language

In centralized-data training, records are collected in one place. Federated learning instead keeps training data with multiple participants. Each phone, hospital or company trains the shared model on data that stays with them, and sends back only the update, meaning the small changes to the model's numbers. In a common server-coordinated design, a server aggregates the local updates. Decentralized designs instead coordinate among participants without one central server. It is like a class where each student studies from their own notebook and only the study notes are pooled. It does not make data automatically safe: according to IBM, updates can still be attacked, and methods such as differential privacy are added to make it harder to tell who contributed what. It also requires communication among participants and, in server-coordinated designs, the server.

## Technical definition

McMahan and colleagues (arXiv, submitted 17 February 2016) describe training a model by aggregating updates computed locally on each device, with data kept on the devices. They present a method based on iterative model averaging and report that it holds up on unbalanced and non-IID data, meaning data whose distribution differs between devices. They state that communication costs are the principal constraint. IBM classifies federated learning as cross-device (mobile and IoT devices) or cross-silo (a limited number of servers or data centres), and as horizontal (shared features, different samples) or vertical (shared samples, different features), and lists adversarial attacks, communication overhead and heterogeneity as challenges.

## How it shows up when you use agents

Federated learning does not usually appear inside a coding agent session. It is a training technique, so you meet it when a team decides how a model will learn from data that cannot be pooled, for example data held on phones or in separate organisations. Coding agents may write the code for a client or server, but the design choices are yours.

What breaks when it is misunderstood: people hear that data stays local and assume the privacy question is closed. IBM's page lists adversarial attacks such as data poisoning among the challenges, and says methods such as differential privacy are used to make it harder to tell which node contributed an update. Updates are derived from the data, so treat them as sensitive until a review says otherwise. See [AI privacy](/glossary/ai-privacy) and [data poisoning](/glossary/data-poisoning).

A second break is cost. The original paper says communication costs are the principal constraint, so the number of rounds between devices and server matters as much as the model.

Next actions: write down who holds the data, what is sent, and who can see it; decide whether this is cross-device or cross-silo; and keep a plain centralised baseline to compare against. The catalogue has no federated-learning skill, so the examples are contrast cases about privacy and data hygiene. Related background: [machine learning](/glossary/machine-learning), [edge AI](/glossary/edge-ai) and [training data](/glossary/training-data).

## Common confusions

- **Federated learning versus distributed training.** Federated learning is a form of distributed learning. Unlike conventional distributed training over centrally collected data, it trains with data held by participants; its coordination may be server-based or decentralized.
- **Federated learning versus differential privacy.** They are different tools. IBM describes differential privacy as a method that can be added to federated learning, not as part of its definition.
- **Cross-device versus cross-silo.** IBM uses the first for many mobile and IoT devices and the second for a limited number of servers or data centres.
- **Myth: the server learns nothing about the data.** The server receives updates computed from the data. IBM's page lists attacks and notes privacy methods as additions, so the risk is reduced by design choices, not removed by the architecture.

## Worked examples in this catalogue

### [sensitive-data-redaction](https://skillalmanac.com/skills/skill-almanac/sensitive-data-redaction)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Emails, phones, cards, IBANs, keys, IPs and listed names in a file replaced with consistent placeholders before you share it.

Why it exercises the concept: A contrast case. Federated learning keeps raw data where it is. This skill takes the other route to privacy, removing identifiers from data before it leaves your hands. It does not run federated training.

### [pdf-metadata-privacy-check](https://skillalmanac.com/skills/skill-almanac/pdf-metadata-privacy-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: A PDF's document metadata checked for personal names, e-mail addresses and local file paths before the file is shared.

Why it exercises the concept: A contrast case. It shows a privacy habit for files that must be shared, which federated learning aims to avoid for training data. It does not train or aggregate models.

### [split-leakage-check](https://skillalmanac.com/skills/skill-almanac/split-leakage-check)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: Train, validation and test files checked for duplicates, shared groups, time leakage and label leakage, with the result printed as JSON.

Why it exercises the concept: A contrast case. Each federated participant still needs a clean split of its own local data. The catalogue has no federated-learning skill, so this checks a neighbouring step.

### [Self-Hosting an AI Agent: What You Take On](https://skillalmanac.com/learn/self-hosted-ai-agent-considerations)

Status: illustrative example from the item's own documentation, not executed for this page.

What you see: What you own when an AI agent runs on your machine: model memory, network exposure, file access and vetting skills, as a checklist with decision points.

Why it exercises the concept: Adjacent. Both ideas move work to hardware you control, but this guide is about running agents, not training models.

## Related terms

- [Machine learning (ML)](https://skillalmanac.com/glossary/machine-learning.md)
- [AI privacy](https://skillalmanac.com/glossary/ai-privacy.md)
- [Data poisoning](https://skillalmanac.com/glossary/data-poisoning.md)
- [Edge AI](https://skillalmanac.com/glossary/edge-ai.md)
- [Training data](https://skillalmanac.com/glossary/training-data.md)
- [Model training (AI)](https://skillalmanac.com/glossary/ai-model-training.md)

## Sources

- [Communication-Efficient Learning of Deep Networks from Decentralized Data](https://arxiv.org/abs/1602.05629), arXiv (McMahan et al.) (accessed 2026-11-24)
- [What Is Federated Learning?](https://www.ibm.com/think/topics/federated-learning), IBM Think (accessed 2026-11-24)
- [Fully Decentralized Federated Learning](https://bayesiandeeplearning.org/2018/papers/140.pdf), Lalitha et al. (accessed 2026-11-25)

Definitions are written by Skill Almanac from the sources above and checked against them on 2026-11-25. [Glossary index](https://skillalmanac.com/glossary.md).
