Key takeaway
- Privacy-preserving AI trains models on sensitive data without exposing it. See federated learning, differential privacy, encryption and a fraud example.
Privacy-preserving AI is the set of techniques that let organisations train and use machine learning models on sensitive data while limiting what anyone else can learn about the people in that data. The main building blocks are federated learning, differential privacy, homomorphic encryption and trusted execution environments.
This guide is for data, security and AI leaders in sectors such as banking and healthcare who want to use data held by several parties. It explains why anonymisation and encryption alone fall short, how each technique works, how they combine in a fraud detection example, and how AI agents change the picture. It links to our guides on machine learning observability and monitoring and the data preparation roadmap.
Why is privacy-preserving AI needed?
Machine learning systems are shaped by data that is increasingly private and sensitive, and the useful data often sits with different organisations that do not fully trust one another. A model may need training data from one party, inference data from another, and infrastructure from a third. Each handover is a point where trust is required, and the chain of trust gets harder to manage as it lengthens.
Why are anonymisation and encryption not enough?
Removing names and addresses does not by itself guarantee that records cannot be tied back to people. Encryption protects data at rest and in transit, but a model has to compute on data, which usually means decrypting it at some point and creating a new exposure. Privacy-preserving techniques exist to close that gap.
What are the building blocks of privacy-preserving machine learning?
| Technique | What it does | Main trade-off |
|---|---|---|
| Federated learning | Each party trains on its own data and shares only model updates, which a server aggregates | Not every problem fits; updates can still leak information, so aggregation needs protection |
| Differential privacy | Adds calibrated noise so a result cannot be tied to the presence or absence of any individual | Noise reduces accuracy, so the privacy setting must be chosen and tested |
| Homomorphic encryption | Lets a system compute on data that stays encrypted, so only the data owner can read the answer | Computation is heavier than on plain data |
| Secure multiparty computation | Several parties compute a result together without revealing their inputs to each other | Needs coordination and communication between parties |
| Trusted execution environment | Hardware-isolated processing for sensitive steps such as aggregation | Depends on trusting the hardware and its configuration |
Google's research blog on federated learning describes the loop: a device downloads the current shared model, improves it using its own data, summarises the change as a small focused update, and sends only that update using encrypted communication, where it is averaged with other users' updates. The same post explains that Secure Aggregation uses cryptography so the server can decrypt only the average, and notes that federated learning cannot solve all machine learning problems.
For differential privacy, NIST describes it as "a privacy-enhancing technology that quantifies privacy risk to individuals when their information appears in a dataset". Its publication SP 800-226, released in March 2025, helps readers evaluate the promises made, and not made, when deploying it, including in privacy-preserving machine learning.
How do the techniques combine in a fraud detection example?
Take an illustrative case. A bank wants a fraud model, an AI company has data scientists but no data, and several retailers hold relevant data they cannot hand over. The sequence below shows how the techniques fit together.
- The AI company releases an initial model to the retailers, which improve it with their private data using federated learning and send back only updates.
- The updates are aggregated securely, for example inside a trusted execution environment, because updates can leak information about the underlying data.
- Differential privacy is applied during training so the model does not memorise details of individual records.
- The bank encrypts each transaction with homomorphic encryption before it is scored, so the answer comes back encrypted and only the bank can read it.
- Where the bank does not want the retailers to see the model, secure multiparty computation keeps it separate.
This is a worked scenario, not a report of a deployment, and each step needs engineering and review before use on real data.
How do AI agents change privacy-preserving AI?
Agents widen the number of systems that touch data, because one agent can call many tools in a single task. Privacy then depends on which data an agent may see, which action it may take, and whether the decision can be audited afterwards. That points to controls outside the model: policy on what data may be used for which purpose, access rules, and a record of each decision. ElixirData is XenonStack's Context OS, built around governed context for agent decisions. The privacy techniques above protect the data, and governance decides who may use it and for what.

What should you do first?
- Map which parties hold which data, and who has to trust whom today.
- List the decisions that need the data and the least data each one needs.
- Pick one technique for one use case, and test the accuracy cost before scaling.
- Add monitoring so you can see when model behaviour or data use drifts.
- Record the policy and the decision trail for each use.
To map one decision your agents make, and the data and policy it depends on, book a Context Workshop. See what happens in the workshop.
Frequently asked questions
What is privacy-preserving AI?
It is a set of techniques that let organisations build and use machine learning on sensitive data while limiting what others can learn about the individuals in it.
What is federated learning?
Federated learning trains a shared model across many parties, each using its own data, and sends back only model updates that a server aggregates.
What is differential privacy?
NIST describes differential privacy as a privacy-enhancing technology that quantifies privacy risk to individuals when their information appears in a dataset.
What is homomorphic encryption?
It is encryption that lets a system compute on data while it stays encrypted, so only the data owner can read the result.
Do these techniques remove the need for governance?
No. They protect data during computation, while policy, access control and audit trails decide who may use data and for what purpose.
Follow XenonStack on LinkedIn: XenonStack on LinkedIn for new guides on agentic AI, data and platform engineering.
Ready to put AI agents to work? Explore ElixirClaw, the agentic OS platform to build, orchestrate and govern AI agents.
Explore the XenonStack platform family: ElixirData · ElixirClaw · ElixirHub · NexaStack · MetaSecure · Neural AI · AgentGRC · AgentSRE · AgentAnalyst · AgentInstruct · AgentRAI · AgentScrum · AgentSearch · AgentForce · AI Aviator · SAIF Aviator · CohortIQ · XenonStack AI · XenonStack UAE