Glossary termTechnique

Federated Learning

Also known as: Collaborative learning

Machine learning approach that trains a shared model across many devices or organizations without collecting their raw data in one place.

Federated learning trains a machine learning model on data that stays where it was created. Instead of uploading photos, messages or medical records to a central server, each participating device or organization downloads the current model, improves it locally on its own data and sends back only the resulting model update. A coordinating server aggregates the updates, typically by averaging them, into an improved shared model, and the cycle repeats. The approach supports cross-device settings with millions of phones and cross-silo settings with a few institutions such as hospitals or banks.

Researchers at Google introduced the term in work published in 2016 and 2017, including the federated averaging algorithm, and used the technique to improve predictive text on the Gboard mobile keyboard. Other technology companies adopted similar methods for on-device features, and medical researchers have used federated learning to train models across hospitals that cannot share patient records. The approach is often combined with secure aggregation, so that the server sees only combined updates, and with differential privacy, which adds calibrated noise to limit what can be learned about any individual.

Federated learning supports privacy by design and data minimization, since raw data never leaves its owner. It is not a complete privacy guarantee, however: model updates can leak information about the underlying data, and malicious participants can submit poisoned updates, a form of data poisoning. Training is also complicated by devices with unreliable connections and by data that varies widely between participants. Combined with edge computing, it reflects a broader shift toward keeping personal data and computation on users' own devices.

Key points

  • Federated learning sends models to the data rather than collecting raw data centrally.
  • Google researchers introduced the approach in 2016 and 2017 and used it for mobile keyboard prediction.
  • Secure aggregation and differential privacy are often added to strengthen privacy protection.
  • Model updates can still leak information, and malicious participants can poison the shared model.

Related entries

Glossary term

Privacy by Design

OPSECProgramming

Approach to building systems and organizations in which privacy protections are embedded from the outset and enabled by default rather than added later.

Glossary term

Principle that organizations and individuals should collect, keep and share only the personal data strictly necessary for a specific purpose.

Glossary term

Edge Computing

DevOpsHardware

Distributed computing approach that processes data near where it is produced or used, rather than sending everything to distant centralized data centers.

Glossary term

Data Poisoning

AICybersecurity

Attack that corrupts a machine learning model by inserting manipulated examples into its training data, degrading it or planting hidden behaviors.

Glossary term

Machine Learning

AIProgramming

Branch of artificial intelligence in which computer systems improve at tasks by learning patterns from data rather than following explicitly programmed rules.

Glossary term

Artificially generated data that mimics the statistical properties of real data, used to train and test models when real data is scarce or sensitive.

Glossary term

Self-Hosting

OPSECFOSSDevOps

Practice of running one's own servers and software for services such as email, file storage or media instead of relying on third-party platforms.