Skip to main content
XenonStack

Data Foundry

XenonStack Blog Privacy-Preserving AI: Techniques and a Case Study

| Published | Updated

Privacy-Preserving AI: Techniques and a Case Study
6:53

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?

TechniqueWhat it doesMain trade-off
Federated learningEach party trains on its own data and shares only model updates, which a server aggregatesNot every problem fits; updates can still leak information, so aggregation needs protection
Differential privacyAdds calibrated noise so a result cannot be tied to the presence or absence of any individualNoise reduces accuracy, so the privacy setting must be chosen and tested
Homomorphic encryptionLets a system compute on data that stays encrypted, so only the data owner can read the answerComputation is heavier than on plain data
Secure multiparty computationSeveral parties compute a result together without revealing their inputs to each otherNeeds coordination and communication between parties
Trusted execution environmentHardware-isolated processing for sensitive steps such as aggregationDepends 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.

  1. 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.
  2. The updates are aggregated securely, for example inside a trusted execution environment, because updates can leak information about the underlying data.
  3. Differential privacy is applied during training so the model does not memorise details of individual records.
  4. 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.
  5. 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.

Two-column diagram. Training: federated learning, secure aggregation, differential privacy, trusted hardware. Inference: homomorphic encryption, encrypted result, multiparty computation, policy and audit.

What should you do first?

  1. Map which parties hold which data, and who has to trust whom today.
  2. List the decisions that need the data and the least data each one needs.
  3. Pick one technique for one use case, and test the accuracy cost before scaling.
  4. Add monitoring so you can see when model behaviour or data use drifts.
  5. 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.

Table of Contents

Dr. Jagreet Kaur

Dr. Jagreet Kaur

Chief AI Officer, XenonStack

LinkedIn profile

Dr. Jagreet Kaur is Chief AI Officer at XenonStack. With more than 20 years across academia and industry, she leads the company's agentic AI, research, organisation processes and transformation, and is the author of two books. She writes about agentic AI, AI governance and the responsible use of AI in regulated enterprises.

Get the latest articles in your inbox

Subscribe Now

Interested in solving your challenges with the XenonStack team?
Get Started

Tell us about you and your priorities so we can prepare the right conversation. It takes about 2 minutes.

Please Select your Industry
Banking
Fintech
Payment Providers
Wealth Management
Discrete Manufacturing
Semiconductor
Machinery Manufacturing / Automation
Appliances / Electrical / Electronics
Elevator Manufacturing
Defense & Space Manufacturing
Computers & Electronics / Industrial Machinery
Motor Vehicle Manufacturing
Food and Beverages
Distillery & Wines
Beverages
Shipping
Logistics
Mobility (EV / Public Transport)
Energy & Utilities
Hospitality
Digital Gaming Platforms
SportsTech with AI
Public Safety - Explosives
Public Safety - Firefighting
Public Safety - Surveillance
Public Safety - Others
Media Platforms
City Operations
Airlines & Aviation
Defense Warfare & Drones
Robotics Engineering
Drones Manufacturing
AI Labs for Colleges
AI MSP / Quantum / AGI Institutes
Retail Apparel and Fashion

Continue