What is privacy-preserving machine learning?
Privacy-preserving machine learning is the set of methods that keep personal or sensitive data from exposure to other parties or through the model itself during training and inference; its main tools are differential privacy, federated learning, homomorphic encryption, secure multi-party computation, trusted execution environments and synthetic data.
Differentially Private Stochastic Gradient Descent is one training method limiting how far a model memorises and leaks training data; this field addresses all risks from moving, processing and leaking data through models. Federated learning keeps data in place but gives no privacy guarantee alone.
- Topic
- AI security
- Also known as
- PPML
How privacy-preserving machine learning works
- Training without moving data: in federated learning data stays with participants and only model updates are shared.
- Limiting leakage from the model: training with differential privacy measurably restricts memorising individual records.
- Encrypted or isolated computation protects data during processing.
- Transforming data: anonymisation, masking and synthetic data keep real individuals' details out of training.
In more detail
The privacy budget (epsilon, delta) and the privacy and accuracy balance
Differential privacy quantifies privacy loss using a privacy budget (epsilon, ε and delta, δ): smaller ε values enforce stronger protection against membership inference and data extraction, at the cost of injecting more noise during training and reducing model accuracy. Without setting and tracking ε across repeated training runs, claiming "differential privacy" offers no verifiable bound.
Privacy attacks it targets: membership inference, gradient and embedding inversion
PPML defends against concrete ML privacy threats such as membership inference attacks (determining whether a specific record was in the training set), model inversion or attribute inference, training data extraction from LLMs and embedding inversion attacks against RAG vector databases.
What is realistic for LLMs: confidential GPUs versus the cost of FHE and MPC
While fully homomorphic encryption and multi-party computation remain orders of magnitude too slow for large-scale LLM training or token generation, hardware-based Confidential Computing (combining CPU TEEs such as Intel TDX / AMD SEV-SNP with Confidential GPUs and cryptographic remote attestation) has emerged as the primary low-overhead mechanism to protect sensitive prompts and weights in use.
Commonly confused terms
| Term | How it differs |
|---|---|
| Differential privacy (DP-SGD) | PPML is the overarching field covering all cryptographic, statistical, architectural and synthetic methods for protecting data in training and inference; differential privacy (DP) is one specific mathematical framework within PPML that bounds individual record leakage via calibrated noise. |
| Federated learning | Federated learning is a distributed training topology where raw data stays local and gradients/weights are shared; without DP or secure aggregation, those updates can still be inverted to reconstruct raw training samples. |
| Confidential computing versus homomorphic encryption | Confidential computing uses hardware Trusted Execution Environments (TEEs such as confidential GPUs and CPUs) to protect data in use; homomorphic encryption protects data mathematically during computation without trusting hardware, at a far higher speed penalty. |
Why privacy-preserving machine learning matters for on-premises AI
In health, banking and government the most valuable data is also the most sensitive; privacy-preserving methods make using it possible. Each has a cost: differential privacy lowers accuracy and encrypted computation lowers speed, while federated learning has its own risks such as gradient inversion and poisoning. Methods are therefore combined and chosen by risk. Running models in-house is also a basic layer.
The companies of a banking group want to develop a fraud model without passing customer data to each other; they combine federated learning with update clipping and differential privacy, aggregate updates securely and run the model on each company's own infrastructure.
Common questions
Which methods does privacy-preserving machine learning use?
Differential privacy, federated learning, homomorphic encryption, secure multi-party computation, trusted execution environments, anonymisation and synthetic data.
Does federated learning alone protect privacy?
No. Data stays in place, but it can be reconstructed from shared updates. Extra controls such as differential privacy and secure aggregation are needed.
Related terms
- Differentially Private Stochastic Gradient Descent
- Federated learning
- Confidential AI
- Membership inference attack
- AI privacy
- Synthetic data
Sources
- Xu et al., Privacy-Preserving Machine Learning: Methods, Challenges and Directions, 2021
- Abadi et al., Deep Learning with Differential Privacy, 2016
In the glossary: Glossary, M to Q