Halide Yılmaz
Writing
Privacy-Preserving Learning: Federated Learning and Differential Privacy
Privacy 2 min read

Privacy-Preserving Learning: Federated Learning and Differential Privacy

You can train a model without centralising the data. Federated learning, differential privacy, the privacy budget, and what these methods actually guarantee.

Halide Yılmaz
Computer engineer · Co-founder of HatsonTech and Caseon AI

The classical assumption in machine learning is that you can gather all the data in one place. In healthcare, finance and law that assumption often fails. Privacy-preserving learning offers ways to learn without moving the data or exposing the individual.

Federated learning

The idea is an inversion: instead of bringing the data to the model, bring the model to the data. A central server distributes the model to devices or institutions; each party trains locally on its own data and sends back only model updates. The server aggregates those updates and publishes a new version.

Raw data never leaves. That is a considerable relief both practically and from a regulatory standpoint.

Gradients leak too

A common misconception is that “if the raw data stays put, privacy is solved”. In fact model updates can carry a surprising amount of information about the training data; under certain conditions examples can be reconstructed. Federated learning alone is therefore not a privacy guarantee.

The right reading: federated learning keeps data in place; differential privacy hides an individual's contribution. They solve different problems and are usually combined.

Differential privacy

Differential privacy is a mathematical definition: adding or removing one person’s data from the dataset must not noticeably change the distribution of the output. In practice this is achieved by adding carefully calibrated noise to the computation.

Its strength is a guarantee that holds regardless of what an attacker already knows. Its cost is accuracy: more noise means more privacy and less utility.

The privacy budget

That trade-off is governed by a parameter called epsilon. A small epsilon means strong privacy and lower accuracy; a large one means the reverse. The critical point is that the budget accumulates: every query against the same data spends from it. Unlimited queries reduce privacy to nothing.

Which method, when

MethodWhat it solvesWhat it costs
Federated learningData is never centralisedCommunication and coordination
Differential privacyThe individual is not exposedLoss of accuracy
AnonymisationDirect identifiers removedRe-identification risk
Synthetic dataA shareable copyMemorisation and leakage risk

Frequently asked questions

Is anonymisation not enough?

Usually not. A combination of a few apparently harmless fields can re-identify a person. This weakness has been demonstrated repeatedly.

Is federated learning always slower?

Generally yes; communication cost and uneven data across devices make convergence harder. In exchange it removes the legal cost of moving the data.

Do these methods deliver regulatory compliance?

No technical method delivers compliance on its own. A lawful basis, purpose limitation and transparency are still required; these methods support those obligations rather than replacing them.


Privacy is not a feature bolted on later but an architectural constraint. Considered early it is cheap; retrofitted it is very expensive. For more, see synthetic data generation.

Halide Yılmaz
Author
Halide Yılmaz

In short: I co-founded two technology companies. I use my engineering background to build, together with our teams, AI products that organisations can use with confidence.

Related posts