O&O ConsultingBook a free call

Home / Insights / AI Risk and Governance

Differential Privacy and Federated Learning

Two techniques for learning from data while exposing less of it.

O&O Consulting · · 2 min read

Code implementing a privacy technique

Can we learn from many people's data without learning about any one of them? Two ideas address different parts of the question.

Differential privacy

Introduced by Cynthia Dwork and colleagues, differential privacy is a mathematical guarantee: the output of an analysis should be almost equally likely whether or not any single individual's data is included. It is achieved by adding carefully calibrated random noise. A parameter, usually called epsilon, sets the privacy budget: smaller values give stronger protection and noisier results.

For training neural networks, a common method clips each example's influence on the gradient and adds noise. The United States Census Bureau applied differential privacy to products of the 2020 Census.

Federated learning with added privacyIllustrative diagram, not data
Data stays on each deviceDevices compute model updatesUpdates are clipped and noisedA server combines themThe improved model is shared
Data stays on each deviceDevices compute model updatesUpdates are clipped and noisedA server combines themThe improved model is shared

Diagram by O&O Consulting.

Federated learning

Federated learning, described by McMahan and colleagues, keeps data where it is, for example on phones. Each participant trains locally and sends model updates, which a server averages. Raw records are not centralised.

What each does not do

Federated learning alone is not a privacy guarantee: updates can leak information about the underlying data. It is often combined with secure aggregation, so the server sees only totals, and with differential privacy.

Differential privacy limits inference about individuals. It does not stop conclusions about groups, nor make an inappropriate use appropriate.

Practical difficulties

Noise reduces accuracy, particularly for small groups, which can raise fairness concerns. Choosing epsilon is a policy decision with no universal value. Federated systems must cope with devices that differ in data and availability, and with participants who may send malicious updates.

Limitations and open questions

These methods require expertise to implement correctly, and errors can silently remove the protection. Use reviewed libraries, state the guarantee precisely and avoid describing a system as "anonymous" or "private" without saying against what.

References

This article is general information, not financial, legal or investment advice. AI research and rules change quickly; check the cited sources for the current position.