What is Federated Learning?
Last Updated :
01 May, 2025
Traditional Machine Learning training relied on large datasets, which were stored in centralized locations like data centers, and the goal was to get accurate predictions and generate insights that would profit us in the end. But this approach came with challenges like data storage issues, privacy concerns, and processing. Recently, there has been a key development of the concept of federated learning, which is providing some groundbreaking solutions.
Federated LearningFederated Learning is a technique of training machine learning models on decentralized data, where the data is distributed across multiple devices or nodes, such as smartphones, IoT devices, edge devices, etc. Instead of centralizing the data and training the model in a single location, in Federated Learning, the model is trained locally on each device, and the updates are then aggregated and shared with a central server.
Types of Federated Learning
There are various strategies that are used for Federated Learning. Let's take a brief look at them.
1. Centralized Federated Learning
Here, a central server is used to perform different steps of the algorithm. The central system is subjected to selecting the nodes at the beginning of the training process and then it is also responsible for aggregating the model updates that we received from different nodes/devices. Here, all the selected nodes, send the updates to this central server and hence it is the bottleneck of the system. This method can cause bottleneck problems.
2. Decentralized Federated Learning
In Decentralized Federated Learning, the nodes themselves can coordinate to get the updated model. This approach can help in preventing the single server problems, that we can get from the centralized federated learning, as in this the model updates are shared between the interconnected nodes without the need of the central system. Here, the model's performance is totally dependent on what network topology we opt for.
3. Heterogeneous Federated Learning
This learning involves a large no of heterogenous clients e.g., mobile devices, and IoT devices. These devices can differ in software or hardware configurations. Recently, a Federated learning framework called HeteroFL has emerged, specifically designed to tackle the challenges posed by heterogeneous clients with varying computation and communication capabilities.
How Federated Learning work?
Let us understand federated learning in a more detailed manner, i.e. the steps. The base model is stored at the central server, and a copy of this model is stored on all devices. Whenever the user enters some information, the following step takes place:
- Step 1: The particular device will download the current model.
- Step 2: The model would make improvements from the new data that we got from the device.
- Step 3: The model changes are summarized as an update and communicated to the cloud. This communication is encrypted.
- Step 4: On the cloud, there are many updates coming in from multiple users. These all updates are aggregated and the final model is built.
So, there is no huge amount of data being uploaded to the cloud and also the model is trained with the different data. In this process, the trained data resides within your own smartphone/mobile device.
Real-Life Application of Federated Learning: Google Keyboard
- Data Collection: Google Keyboard (Gboard) collects data, like the names of restaurants you search for, but keeps it on your phone. Your personal data never leaves your device.
- Federated Learning in Action: The model is trained directly on your phone using the data (like your search history). No need to send your data to a central server, keeping it private.
- Model Updates: After training locally, the updates to the model are sent to a central server in an encrypted form. The server combines updates from different devices to improve the model.
- Better Suggestions: As more updates are gathered, the model gets better at suggesting things, like more accurate restaurant names or typing predictions based on your habits.
- Privacy and Efficiency: Your data stays private, and only model updates are shared. This helps save bandwidth and makes everything run more efficiently.
Advantages of Federated Learning
- Reduced Power Usage: Reduced data size means reduced computation time and hence less power usage.
- Guarantees Privacy: Data stays on the device, maintaining privacy without loss of training.
- No Device Performance Impact: Training is done only when the device is in idle or charging state, hence no impact on performance.
- Scalability: Scales with big, distributed datasets across multiple devices.
- Better Model Performance: Uses heterogeneous data from various devices to improve model accuracy.
- Real-time Updates: Allows real-time model updates on each device.
Disadvantages of Federated Learning
- Network Latency: The communication between the devices and the central server can be a bottleneck and may add latency to the training process.
- Heterogeneous devices: The devices can be heterogeneous in terms of hardware and software, which can make it difficult to ensure the compatibility and consistency of the models.
- Data Quality: The quality of data can vary across the devices, which can lead to poor model performance.
Read More:
Similar Reads
Machine Learning Tutorial Machine learning is a branch of Artificial Intelligence that focuses on developing models and algorithms that let computers learn from data without being explicitly programmed for every task. In simple words, ML teaches the systems to think and understand like humans by learning from the data.Machin
5 min read
Prerequisites for Machine Learning
Python for Machine Learning Welcome to "Python for Machine Learning," a comprehensive guide to mastering one of the most powerful tools in the data science toolkit. Python is widely recognized for its simplicity, versatility, and extensive ecosystem of libraries, making it the go-to programming language for machine learning. I
6 min read
SQL for Machine Learning Integrating SQL with machine learning can provide a powerful framework for managing and analyzing data, especially in scenarios where large datasets are involved. By combining the structured querying capabilities of SQL with the analytical and predictive capabilities of machine learning algorithms,
6 min read
Getting Started with Machine Learning
Advantages and Disadvantages of Machine Learning Machine learning (ML) has revolutionized industries, reshaped decision-making processes, and transformed how we interact with technology. As a subset of artificial intelligence ML enables systems to learn from data, identify patterns, and make decisions with minimal human intervention. While its pot
3 min read
Why ML is Important ? Machine learning (ML) has become a cornerstone of modern technology, revolutionizing industries and reshaping the way we interact with the world. As a subset of artificial intelligence (AI), ML enables systems to learn and improve from experience without being explicitly programmed. Its importance s
4 min read
Real- Life Examples of Machine Learning Machine learning plays an important role in real life, as it provides us with countless possibilities and solutions to problems. It is used in various fields, such as health care, financial services, regulation, and more. Importance of Machine Learning in Real-Life ScenariosThe importance of machine
13 min read
What is the Role of Machine Learning in Data Science In today's world, the collaboration between machine learning and data science plays an important role in maximizing the potential of large datasets. Despite the complexity, these concepts are integral in unraveling insights from vast data pools. Let's delve into the role of machine learning in data
9 min read
Top Machine Learning Careers/Jobs Machine Learning (ML) is one of the fastest-growing fields in technology, driving innovations across healthcare, finance, e-commerce, and more. As companies increasingly adopt AI-based solutions, the demand for skilled ML professionals is Soaring. Machine Learning JobsThis article delves into the Ty
10 min read