Federated Learning: Definition and Examples
Federated Learning is an AI model training technique where data remains on users' local devices, only the model parameters are shared and aggregated on a central server.
Full definition
Federated Learning is a decentralized approach to training machine learning models. Unlike traditional methods that require centralizing all data on a single server, this technique allows training a model using data distributed across many devices (smartphones, hospitals, companies) without ever transferring them.
The process works in several steps: a global model is sent to each participant, who trains it locally on their own data. Only the model weight updates (the gradients) are sent back to the central server, which aggregates them to improve the global model. This cycle repeats until convergence. The best-known aggregation algorithm is FedAvg (Federated Averaging), proposed by Google in 2017.
The major benefit of Federated Learning lies in privacy protection. Sensitive data — whether medical records, personal messages, or financial data — never leaves the owner's device. This approach directly meets regulatory requirements such as the GDPR in Europe, while allowing to benefit from the power of large volumes of diverse data.
This technique is not without challenges: participants' data is often heterogeneous (non-IID), network connections can be unstable, and measures must be taken against poisoning attacks where a malicious participant tries to corrupt the global model. Complementary techniques such as differential privacy and homomorphic encryption are often combined with Federated Learning to strengthen privacy guarantees.
Etymology
The term "Federated Learning" was introduced by Google in 2016 in a research paper by McMahan et al. The word "federated" refers to a federation, i.e., a union of autonomous entities that collaborate toward a common goal while maintaining their independence — here, each device or organization retains control of its data while contributing to a shared model.
Concrete examples
Predictive keyboard on smartphone
Explain how Google uses Federated Learning in Gboard to improve word suggestions without collecting users' messages.
Multi-hospital medical research
Design a Federated Learning architecture allowing 5 hospitals to collaborate to train a tumor detection model without sharing patient data.
Bank fraud detection
How could several banks use Federated Learning to train a common fraud detection model while respecting banking secrecy? Detail the steps and precautions.
Practical usage
In prompt engineering, understanding Federated Learning allows you to formulate precise questions about decentralized model training and data protection. You can ask an AI to design federated architectures, compare aggregation algorithms (FedAvg, FedProx), or evaluate trade-offs between model performance and privacy. It is a key concept for any project involving sensitive data or data distributed across multiple organizations.
Related concepts
FAQ
What is the difference between Federated Learning and traditional centralized training?
Does Federated Learning fully guarantee data privacy?
What are the main use cases of Federated Learning today?
See also
How to use this prompt
- Copy the prompt with the button above.
- Paste it into ChatGPT, Claude or your favorite AI assistant.
- Replace the bracketed variables with your details, then refine the result.
About Prompt Guide
Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.
More definitions
Gemini Gem: Definition and Creation (Google)
Understand Google's Gemini Gems: preconfigured Gemini assistants. Creation, Google Workspace integration, comparison with Custom GPT and Claude Skills.
Gemini Pro: Definition and Examples
Gemini Pro is a multimodal language model developed by Google DeepMind, designed to handle complex tasks of reasoning, text generation,
Grouped Query Attention: Definition and Examples
Attention mechanism that groups multiple query heads to share the same keys and values, thereby reducing memory and computational cost during inference.
Inference: Definition and Examples
Inference refers to the process by which an AI model generates a response or prediction from a given input, leveraging the knowledge acquired during its training.
Model Registry: Definition and Examples
A Model Registry is a centralized system for storing, versioning, and managing machine learning models throughout their lifecycle, from training to production deployment.
Negative Prompting: Definition and Examples
Negative prompting is a technique that involves explicitly telling an AI model what it should not generate, thereby refining the results by excluding undesirable elements.
Get new prompts every week
Join our newsletter.