Most embedded AI devices perform inference using a model trained somewhere else.
Federated learning introduces a different model:
the device can contribute to training without uploading its raw local data.
This creates interesting possibilities for:
- smart sensors,
- mobile devices,
- industrial machines,
- edge gateways.
But federated learning is much harder than ordinary on-device inference.
Training requires:
- more memory,
- more computation,
- more energy,
- communication.
Fundamentals and Technology Overview
What Is Federated Learning?
Federated learning trains a global model across many distributed devices or organizations.
A typical process is:
- server sends current model,
- selected devices train locally,
- devices send model updates,
- server aggregates updates,
- improved model is redistributed.
Flower describes this as a server coordinating multiple client nodes that train on local data and return updated model parameters or gradients.
Why Federated Learning Is Attractive
Raw data can remain on the device.
This can reduce the need to centralize:
- personal data,
- industrial data,
- sensitive sensor records.
Privacy Is Not Automatic
Keeping raw data local is useful, but model updates can still leak information.
Additional mechanisms may include:
- secure aggregation,
- differential privacy,
- trusted execution.
Google's 2026 research continues developing federated-learning systems with stronger verifiable privacy guarantees.
Embedded Opportunity: Personalization
Devices can adapt to:
- individual user behavior,
- local environment,
- specific machine conditions.
Industrial Opportunity
A fleet of similar machines can improve a model using:
- distributed vibration data,
- operating history
without moving all raw sensor data to a central server.
Edge Gateway Opportunity
Gateways have more compute and memory than small MCUs.
They are practical FL participants.
Flower provides examples of federated learning across Raspberry Pi-class embedded devices.
Why Training Is Harder Than Inference
Inference performs a forward pass.
Training requires:
- forward pass,
- loss calculation,
- backward pass,
- gradient storage,
- weight update.
This significantly increases compute and memory.
Weight Memory
The device stores model parameters.
Gradient Memory
Training also needs gradients.
Optimizer State
Optimizers such as Adam require additional state, often multiple values per parameter.
This can multiply memory requirements.
Activation Storage
Backpropagation needs intermediate activations from the forward pass.
This makes training RAM much larger than inference RAM.
Technology Comparison and Selection
MCU Limitations
Small MCUs may have:
- hundreds of KB of SRAM.
That is often insufficient for conventional deep-network training.
Partial Training
One strategy is to train only:
- final layers,
- adapters,
- small parameter subsets.
This reduces memory and compute.
Tiny Federated Learning
Research and future hardware may enable federated learning on increasingly constrained devices using:
- smaller models,
- quantized training,
- sparse updates.
Communication Cost
Every training round requires transfer of:
- model weights,
- gradients,
- updates.
Communication can consume more energy than local compute.
Wireless Energy
For battery devices, radio transmission is expensive.
This limits how frequently a device should participate.
Client Selection
Federated systems normally select only a subset of devices per training round.
Flower notes that using every connected client is often unnecessary.
Intermittent Availability
Embedded devices may be:
- offline,
- asleep,
- busy.
Federated algorithms must tolerate partial participation.
Heterogeneous Hardware
A federation may include devices with different:
- CPU speed,
- memory,
- battery level.
This creates straggler problems.
Stragglers
Slow clients delay rounds if the system waits for them.
Aggregation systems need timeouts or asynchronous strategies.
Non-IID Data
Device data is often not identically distributed.
Example:
- one machine sees one operating condition,
- another sees a different one.
This makes federated optimization harder than centralized training.
Local Epochs
More local training reduces communication frequency but increases:
- device compute,
- energy.
Architecture and Operating Principles
Secure Aggregation
Secure aggregation allows the server to learn the combined update without seeing each individual client's update directly.
Differential Privacy
Differential privacy adds statistical protection to reduce leakage about individual records.
The trade-off can be reduced model utility.
Trusted Execution Environments
Google's 2026 work explores moving more computation to servers protected by trusted execution while maintaining verifiable privacy.
This can reduce client compute load.
Hardware Opportunity: NPUs
Most current NPUs focus on inference.
Future accelerators may increasingly support:
- training primitives,
- gradient operations.
Hardware Opportunity: Larger SRAM
On-device training benefits enormously from more local memory.
Hardware Opportunity: Compute-in-Memory
Training and inference both suffer from data-movement costs.
Future memory-centric architectures could improve efficiency.
Hardware Opportunity: Secure Enclaves
Federated clients need:
- key storage,
- secure boot,
- attestation.
Secure enclaves strengthen trust.
Flower Embedded Example
Flower demonstrates federated workloads on:
- Raspberry Pi 4,
- Raspberry Pi 5,
- similar edge systems.
These are far more capable than a tiny MCU, illustrating the current practical boundary.
MCU vs Embedded Linux Device
MCU
Strong for:
- inference,
- tiny adaptation.
Embedded Linux Device
Better for:
- full local training,
- larger models,
- federated client frameworks.
Thermal Limits
Training can sustain high utilization much longer than occasional inference.
Embedded systems may throttle.
Implementation, Testing, and Optimization
Battery Limits
Federated participation may be scheduled only when:
- charging,
- enough battery is available.
Network Scheduling
Updates can be sent only when:
- Wi-Fi is available,
- network cost is low.
Industrial FL Architecture
Sensor Node
Collects data and performs inference.
Gateway
Performs local training.
Server
Aggregates model updates.
This layered approach is often more practical than training on every sensor.
Security Threats
Federated systems face:
- poisoned updates,
- malicious clients,
- model inversion,
- compromised devices.
Model Poisoning
A malicious client may submit intentionally harmful updates.
Robust aggregation is important.
Version Management
Clients must agree on:
- model version,
- training configuration.
Common Mistake: Assuming FL Means No Privacy Risk
Model updates can still leak information.
Common Mistake: Ignoring Communication Energy
Radio traffic may dominate power.
Common Mistake: Treating All Devices as Equal
Hardware heterogeneity affects training speed.
Common Mistake: Trying Full Training on Tiny MCUs
Inference-capable hardware may still be incapable of practical backpropagation.
Deployment Workflow
- Decide whether local training is really needed.
- Identify device class.
- Measure training RAM.
- Measure local epoch time.
- Measure communication bytes.
- Estimate energy per round.
- Add security and privacy mechanisms.
- Design for dropout and stragglers.
- Validate non-IID performance.
- Monitor model quality.
Conclusion
Federated learning can bring collaborative model improvement to embedded devices while reducing raw-data centralization.
But it changes the hardware problem dramatically.
Compared with inference, federated training requires much more:
- memory,
- compute,
- energy,
- network communication.
Today, the most practical embedded FL clients are often:
- phones,
- gateways,
- Linux-class edge systems.
Tiny MCUs are better suited to:
- inference,
- limited local adaptation.
The future opportunity is in combining smaller models, more efficient training, secure hardware, and memory-centric accelerators.