Skip to content

AI Outlooks

News and viewpoints on the latest in AI security

Primary Menu
  • Home
  • What’s new in AI
    • AI Security News
    • Agentic AI News
    • AI Regulation News
    • AI Research News
    • AI Model News
  • Solutions
  • Cybersecurity
    • AI security
    • OWASP
    • Ransomware
    • Shadow AI
  • Learn
    • AI security
    • LLM security
    • AI governance
    • AI compliance
    • Agentic AI
    • AI infrastructure
    • AI data security
  • Home
  • LLMs
  • What is federated learning?
  • Glossary
  • LLMs

What is federated learning?

Federated learning addresses data privacy concerns while enabling the development of powerful AI models.
Staff September 3, 2025
federated-learning

Federated learning is a machine learning technique where multiple parties collaboratively train a model without ever pooling their raw data in one place. Each participant trains locally — on a phone, a hospital server, a factory edge device — and only model updates (gradients or weights) leave the device. The raw data stays put. A central aggregator (or, in newer setups, a peer-to-peer network) combines those updates into a shared global model.

Think less “upload your data to the cloud” and more “the model travels to the data.”

How federated learning actually works

The process is a loop. Same steps, round after round, until the model stops meaningfully improving.

Round zero. A server initializes a base model. For example, a neural network for predicting the next word on a smartphone keyboard. It broadcasts the architecture and initial weights to all participating devices.

Local training. Each device downloads that model, then trains it using only its own local data. Your phone trains on your typing, not anyone else’s. The hospital server trains on its own patient records. Nobody sees anyone else’s data.

Discard raw data. After training (maybe one epoch, maybe several), the device discards the raw data from memory. What it sends back are parameter deltas, the difference between the old weights and the new ones. Even if you intercepted these updates, you couldn’t reconstruct the underlying data. Not easily, anyway.

Aggregation. The server collects updates from however many devices completed the round. It could be hundreds, or it could be millions. The dominant algorithm here is Federated Averaging (FedAvg), which computes a weighted average of all received model updates, biasing toward clients with more training examples. Newer alternatives like FedProx add a proximal term to handle stragglers and non-IID data. FedDyn goes further, dynamically regularizing each node’s loss function so local optimization doesn’t drift away from the global objective.

Repeat. The server pushes the updated global model back down, and the cycle restarts. A typical FL deployment might run thousands of rounds. Some converge in 50. Some never quite get there.

An important thing most explainers skip: in practice, you rarely train on all available clients. You sample. Maybe 100 devices out of 10,000 per round. This is partly about bandwidth, partly about adding stochasticity that actually helps generalization — same principle as mini-batch SGD.

The types that matter

Federated learning splits into categories that determine what hardware you need and what assumptions you can make.

Cross-device vs. cross-silo. Cross-device means phones, IoT sensors, wearables — unreliable connections, limited compute, unpredictable availability. Cross-silo means servers or data centers with stable links and real horsepower. A healthcare consortium training across hospital systems is cross-silo. Google’s Gboard keyboard training on Android phones is cross-device.

Horizontal vs. vertical. Horizontal FL means different samples, same features. Two hospitals with the same lab test formats but different patient populations. Vertical FL means same samples, different features. A bank and an insurer sharing customers — the bank has transaction history, the insurer has claims data. Vertical FL needs entity alignment (who matches whom?) before training even starts, which is its own headache.

Centralized vs. decentralized. Centralized has a coordinating server. Decentralized is peer-to-peer — nodes gossip updates among themselves. Decentralized avoids a single point of failure and fits use cases where no party should hold disproportionate control. The tradeoff: convergence gets messier, and network topology starts mattering in ways it doesn’t in centralized setups.

Federated transfer learning. When local datasets are too small or different to train useful models from scratch, you transfer a pre-trained model and adapt it federated-style. This pattern is exploding with LLMs — more on that below.

Why bother: privacy, regulation, and real leverage

The obvious draw is privacy. Your data doesn’t move. For GDPR, that’s a big deal — federated learning is one of the few architectures that can credibly claim data minimization and purpose limitation as design principles rather than compliance theater. The European Data Protection Supervisor has explicitly recognized FL as a Privacy-Enhancing Technology.

But there’s a less obvious reason that’s arguably more important: access to data that was previously untouchable.

Hospitals can’t pool patient data across borders without regulatory hell. Banks can’t share transaction records with competitors. Telecoms can’t merge customer location data. Federated learning opens those vaults. You train on datasets that, combined, dwarf what any single organization could assemble — without triggering the legal and competitive barriers that block centralization.

That’s the real prize. Privacy is table stakes. Data access at previously impossible scale is the differentiator.

There’s a bandwidth argument too. Model updates are kilobytes to megabytes. Raw training data is gigabytes to terabytes. If you’re running inference on edge devices anyway, pushing a small gradient vector is dramatically cheaper than shipping raw logs back to a data lake.

What goes wrong

Federated learning sounds elegant, but it can break in specific, predictable ways.

Non-IID data will mess with you. Your phone’s typing is nothing like my phone’s typing. A hospital in Tokyo sees different patient demographics than a clinic in Nairobi. When local data distributions diverge, the aggregated model can degrade. You get a model that’s mediocre for everyone instead of excellent for anyone. FedProx and FedDyn help. Personalization helps more — training a shared base model then fine-tuning per-client.

Stragglers become the bottleneck. Synchronous FL waits for the slowest device in the round. If 999 phones finish local training in 3 seconds and one takes 45, everyone waits. Asynchronous aggregation relaxes this — you use stale updates weighted by recency — and sparse semi-asynchronous approaches like the Federated Tiny Training Engine (FTTE) push this further by enforcing a global memory budget based on the weakest device in the network, reducing memory usage by roughly 80% and speeding convergence by a similar margin.

Model poisoning is real. A malicious participant can inject poisoned updates that corrupt the global model. A backdoor attack might train the model to misclassify specific inputs — say, labeling all transactions from a certain account as non-fraudulent. Model defenses include anomaly detection on incoming updates, secure aggregation that prevents the server from inspecting individual contributions, and Byzantine-resilient aggregation algorithms that tolerate a certain fraction of adversarial nodes.

Inference attacks are real too. Even without seeing raw data, an attacker who can observe model updates over multiple rounds can sometimes reconstruct training examples. Model inversion attacks and membership inference attacks have demonstrated this with disturbing accuracy on image classifiers and language models. Countermeasures include differential privacy (adding calibrated noise to updates), homomorphic encryption (aggregating while updates remain encrypted), and Secure Multi-Party Computation (distributing trust so no single party can decrypt anything).

Communication overhead. A federation with millions of devices generates an enormous volume of parameter traffic. Compression schemes (quantization, sparsification) trade some accuracy for manageable bandwidth. Gradient sparsification — sending only the largest gradient values and zeroing the rest — can reduce transmission size by 99% with minimal accuracy loss in practice.

Where it’s actually in production

Federated learning isn’t just papers. It’s shipping.

Google Gboard. The most cited example for a reason. Android’s keyboard uses FL to improve next-word prediction and emoji suggestions. Model updates are processed locally, encrypted, and aggregated. Your text never leaves the device. The system handles hundreds of millions of devices, many of which are offline for hours at a time.

Healthcare consortia. The EXAM study across 20 hospitals demonstrated FL for COVID-19 outcome prediction, training on chest X-rays and EHR data without any institution sharing patient records. Owkin, a startup built around federated learning for drug discovery, has raised over $300M and partners with pharmaceutical companies to train on distributed clinical trial data.

Finance. WeBank (backed by Tencent) deployed FL for credit risk modeling across partner institutions. SWIFT has experimented with FL for cross-border fraud detection. The appeal is straightforward: fraud patterns emerge across banks, but nobody can legally share transaction logs.

Edge manufacturing. BMW uses FL across factories to train quality inspection models without centralizing production line data — each plant’s tolerances and defect patterns stay local, but the shared model improves across the fleet.

The FedLLM wave

The thing shaking up federated learning in 2025–2026 isn’t a new algorithm. It’s LLMs.

Fine-tuning a 7B-parameter model on a single device is already a stretch. Full-parameter fine-tuning in a federated setting is basically impossible — you’d be transmitting gigabytes per round. Parameter-Efficient Fine-Tuning (PEFT) changed the math. Instead of shipping entire model weights, you federate only the LoRA adapters — small matrices that bolt onto frozen base layers. A few megabytes instead of tens of gigabytes.

Federated LoRA works. Multiple groups have demonstrated instruction-tuning and domain adaptation of open models (LLaMA, Gemma, Mistral) across distributed data pools without centralizing any text. This is the path to enterprise LLM customization where legal and compliance teams would never approve uploading proprietary documents to an external API.

The orchestration layer is shifting too. Instead of a central server coordinating everything, newer peer-to-peer architectures let heterogeneous agents — potentially running different model backbones — share knowledge through dynamically constructed interaction graphs. An online learning approach builds and maintains these graphs as nodes join and leave. You get collective intelligence without collective data and without a single point of control.

Frameworks and tools

You have options. The landscape moved fast in the last two years.

Flower remains the most flexible open-source framework. Hardware-agnostic, works with PyTorch, TensorFlow, JAX. Strong for research-to-production transitions.

NVIDIA FLARE is the pick if your stack is already NVIDIA-heavy. Built-in workflows for FedAvg, FedProx, FedDyn. Good management tooling for deployment orchestration.

TensorFlow Federated is Google’s framework, two-layer API (high-level for standard tasks, low-level for custom algorithms). Tight integration with the TF ecosystem but limited outside it.

IBM Federated Learning targets enterprise. Supports fairness constraints, broad algorithm coverage, and is designed for cross-organizational governance — which matters more than people realize when multiple legal entities are jointly training.

OpenFL (Linux Foundation) focuses on privacy guarantees with built-in differential privacy and trusted execution environment support.

Federated Tiny Training Engine (FTTE) is newer and specialized for edge-constrained environments. If you need FL on microcontrollers or severely memory-limited IoT, this is where to look.

For FedLLM specifically: Flower and NVFlare both have PEFT examples. The ecosystem around federated fine-tuning is still immature, but the primitives work today.

What’s next in federated learning

The trajectory splits into three tracks.

Track one: regulatory inevitability. GDPR enforcement is tightening. The EU AI Act classifies certain ML training patterns as high-risk. Federated learning transitions from “nice to have” to “only way to legally train on distributed sensitive data.” Organizations that build FL capability now will have a multi-year head start when centralizing data becomes legally untenable.

Track two: edge-first computing. The chip trend is toward more on-device compute, not less. Apple Silicon Neural Engine, Qualcomm AI Engine, Google TPU Edge — these are FL nodes waiting to happen. When every device can train locally, the architecture flips from “send data to the model” to “send the model to the data” by default.

Track three: open-weight LLMs meet private data. The train-and-release model for foundation models runs into a wall when enterprises have real, sensitive, proprietary data they want to fine-tune on. Federated PEFT bridges that gap. The organizations that figure out multi-party LLM governance — who owns what, who contributes what, how value is allocated when the model improves — will capture value the rest can’t reach.

None of this is solved. But the direction is clearer than it was a year ago.


FAQs

What is federated learning in simple terms?

Federated learning trains machine learning models across multiple devices or servers without moving raw data to a central location. Each participant trains locally on their own data, then shares only model updates — not the data itself — with an aggregator that combines them into a shared model.

How is federated learning different from distributed machine learning?

Distributed ML splits training across multiple machines that all have access to the same dataset. It’s about parallelizing compute. Federated learning assumes each node has its own separate, private dataset. It’s about privacy and data access at scale — the datasets are different, not sharded copies of the same thing.

What are federated learning’s biggest security risks?

Model poisoning (malicious participants corrupting the global model through crafted updates), inference attacks (reconstructing training data from observed gradients), and membership inference (determining whether a specific record was used in training). Defenses include differential privacy, secure aggregation, homomorphic encryption, and anomaly detection on incoming updates.

Can federated learning work with LLMs?

Yes — through Parameter-Efficient Fine-Tuning (PEFT). Instead of federating full model weights, you federate LoRA adapters (small weight matrices) that are a few megabytes per update. This makes federated LLM fine-tuning viable on current hardware and bandwidth.

What’s the biggest practical challenge with federated learning?

Non-IID data distribution. Real-world data across clients is almost never identically distributed, and training on heterogeneous distributions degrades model quality. Techniques like FedProx, FedDyn, and personalized FL mitigate this but don’t eliminate it.

Continue Reading

Previous: What is a large language model (LLM)?
Next: What is automated machine learning (AutoML)?

More in AI security

  • Guide

The agentic AI security checklist: 12 controls to verify before you deploy

Staff September 4, 2026
Twelve controls to verify before you deploy an AI agent, each mapped to an OWASP ASI risk...
Read more Read more about The agentic AI security checklist: 12 controls to verify before you deploy
LLM jailbreak defense: techniques that actually stop attacks Jailbreak defense
  • Cybersecurity

LLM jailbreak defense: techniques that actually stop attacks

Staff July 28, 2026
How do enterprises secure AI data pipelines at production scale? safety
  • Cybersecurity

How do enterprises secure AI data pipelines at production scale?

Staff July 28, 2026
How companies can defend against AI model extraction attacks
  • Guide

How companies can defend against AI model extraction attacks

Staff July 23, 2026
What is a model inversion attack?
  • Glossary

What is a model inversion attack?

Staff July 22, 2026

Glossary

model router
  • LLMs

What is a model router for AI? A plain-English guide

Staff July 30, 2026
A model router for AI is a decision layer that picks which large language model answers each...
Read more Read more about What is a model router for AI? A plain-English guide
What is agentic SDLC?
  • Glossary

What is agentic SDLC?

Staff July 22, 2026
What is a model inversion attack?
  • Glossary

What is a model inversion attack?

Staff July 22, 2026
LLM system prompt leakage: what it is, how it works, and how to stop it agentic ai
  • Glossary

LLM system prompt leakage: what it is, how it works, and how to stop it

Staff July 15, 2026
What is LLM supply chain security? (OWASP LLM03:2025 explained) llm supply chain
  • Glossary

What is LLM supply chain security? (OWASP LLM03:2025 explained)

Staff July 14, 2026

Guides

The agentic AI security checklist: 12 controls to verify before you deploy
  • Guide

The agentic AI security checklist: 12 controls to verify before you deploy

Staff September 4, 2026
LLM jailbreak defense: techniques that actually stop attacks Jailbreak defense
  • Cybersecurity

LLM jailbreak defense: techniques that actually stop attacks

Staff July 28, 2026
How do enterprises secure AI data pipelines at production scale? safety
  • Cybersecurity

How do enterprises secure AI data pipelines at production scale?

Staff July 28, 2026
How companies can defend against AI model extraction attacks
  • Guide

How companies can defend against AI model extraction attacks

Staff July 23, 2026
What is a model inversion attack?
  • Glossary

What is a model inversion attack?

Staff July 22, 2026
How to prevent adversarial attacks on AI models
  • Guide

How to prevent adversarial attacks on AI models

Staff July 22, 2026
  • Home
  • What’s new in AI
  • Solutions
  • Cybersecurity
  • Learn
Copyright © All rights reserved. | by AF themes.