aNet.ai
Machine Learning/Learning path
0day streak0XP · Lv 1
← 17. Distributed ML
Lesson 6 of 7 8 min · 146 words

Challenges: privacy and heterogeneity

Non-i.i.d. data, unreliable clients and leaking information through updates.

  • Non-i.i.d. data: each client's data reflects its own user — one person types in Uzbek, another in English. Local models diverge, and the global model may serve no one well. Personalisation (fine-tuning the global model locally) helps.
  • System heterogeneity: clients have different hardware, battery and connectivity; many drop out mid-round. Algorithms must tolerate partial participation.
  • Communication cost: uploads from phones are slow and expensive; updates are compressed.

Privacy leakage: gradients can reveal training data — gradient inversion attacks can reconstruct images or text from shared updates, and membership inference can tell whether a person's data was used.

Defences: secure aggregation (the server sees only the sum of updates, not individual ones), differential privacy (clip each update and add calibrated noise), and trusted execution environments.

Formula to remember

Data-parallel gradient

Each worker computes a gradient on its shard; results are averaged.

Quick check · +5 XP

In federated learning, what leaves the client device?

Practice this topic
Saved in this browser as you type.
aNet.ai · Introduction to Machine Learning · NewUU course outlineProgress saved in this browser