Confidential AI

Also known as: confidential inference

On this page 7

Confidential AI is the practice of running machine learning training and inference inside hardware-based trusted execution environments, so that prompts, training data, outputs and model weights remain encrypted and isolated while in use, even from the cloud operator and system administrators. In AI privacy, it extends the familiar protection of data at rest and in transit to the third state that conventional encryption leaves exposed: data during processing.

The approach is also called confidential inference when it focuses on serving model responses. Its value rests on two properties working together: memory isolation enforced by the processor, and remote attestation, which lets a client verify cryptographically which code is running before sending any sensitive data.

How confidential AI protects data in use

Confidential AI works by placing the model and its data inside a trusted execution environment (TEE), a region of CPU or GPU memory that is encrypted with keys held by the processor itself. The host operating system, the hypervisor and the cloud staff cannot read or modify that memory, even with full administrative rights over the machine.

Before a client releases a prompt or a dataset, the environment produces an attestation report: a signed measurement of the hardware, firmware and software stack. The client or a key management service compares that measurement with an expected value and releases decryption keys only if the environment matches an approved configuration.

The table below lists the main building blocks and what each contributes to the overall guarantee.

ComponentRoleProtects against
CPU trusted execution environmentIsolates and encrypts the virtual machine or enclave memoryHost, hypervisor and operator access
GPU confidential computing modeEncrypts transfers and isolates accelerator memorySnooping on the CPU to GPU bus
Remote attestationProves which hardware and code are runningSubstituted or tampered software
Attestation-gated key releaseReleases keys only to verified environmentsData decryption on unapproved systems
Encrypted transportTerminates sessions inside the protected environmentInterception before data reaches the TEE
Core components of a confidential AI deployment

Hardware platforms and deployment models

Confidential AI depends on specific processor features, and the choice of platform determines the size of the trusted computing base and the performance cost. Modern deployments generally favor confidential virtual machines over small process-level enclaves, because large models need gigabytes of memory and standard software stacks.

TechnologyIsolation unitTypical use in AI
Intel SGXProcess-level enclaveSmall models, key handling, data preprocessing
Intel TDXConfidential virtual machineHosting inference servers and pipelines
AMD SEV-SNPConfidential virtual machineHosting inference servers and pipelines
Arm CCARealmEmerging edge and mobile deployments
NVIDIA H100 confidential computingProtected GPU memory and encrypted transfersTraining and large language model inference
Common hardware technologies used for confidential AI

Typical deployment models include confidential inference services, where a provider serves a model to many users without seeing their prompts; confidential training, where a model is trained on sensitive records; and multi-party collaboration, where several organizations pool data that none of them may reveal to the others. Vendor-operated private cloud services for assistants, such as Apple Private Cloud Compute and Google Private AI Compute, apply the same principles at consumer scale.

Confidential AI compared with other privacy-preserving techniques

Confidential AI is one of several privacy-preserving machine learning techniques, and it protects a different thing than its neighbors. A TEE protects data from the infrastructure, whereas differential privacy protects individuals from what the model itself might reveal.

TechniqueWhat it protectsMain costLeaves open
Confidential AIData and weights during processingTrust in hardware vendorsLeakage through model outputs
Federated learningRaw data stays on local devicesCoordination and communicationGradient and update leakage
DP-SGDIndividuals in the training setSome loss of model accuracyExposure to the infrastructure
Homomorphic encryptionData under mathematical encryptionVery high computational overheadLimited practical model size
Zero data retentionLong-term storage of promptsRelies on contractual promisesAccess during processing
Comparison with related privacy-preserving approaches

These methods are complementary rather than competing. A strong design might train with DP-SGD inside a confidential environment, so that neither the operator nor later users of the model can recover individual records.

Where confidential AI is used

Confidential AI is most useful where regulated or highly sensitive data must be processed on shared infrastructure. Healthcare, financial services and the public sector are typical adopters, because legal obligations or professional secrecy restrict who may access the data.

  • Clinical model inference on patient records hosted in a public cloud.
  • Fraud and anti-money-laundering models trained jointly by several banks without sharing raw transactions.
  • Protecting proprietary model weights when a vendor deploys a model on customer premises.
  • Private assistant features that send personal context to cloud models with verifiable privacy guarantees.
  • Data clean rooms where advertisers and publishers match audiences without exposing customer lists.

For data controllers, confidential AI can support data protection by design and help address cross-border transfer concerns, since the cloud provider cannot technically access the plaintext. It does not, however, replace a lawful basis, purpose limitation or a data protection impact assessment.

Limitations and common misconceptions

Confidential AI narrows the set of parties who must be trusted, but it does not eliminate trust. Users still depend on the chip manufacturer, the correctness of the firmware and the honesty of whoever defines the approved software measurements.

MisconceptionRealityPractical consequence
A TEE makes the system unbreakableSide-channel attacks on TEEs have been demonstrated repeatedlyApply firmware updates and defense in depth
Attestation proves the code is safeIt proves only which code runsAudit and publish the attested software
Outputs are protected as wellThe model can still memorize and reveal dataCombine with output filtering and DP
Performance cost is prohibitiveOverhead is often modest but workload dependentBenchmark the specific model and batch size
Misconceptions and the actual situation

Another limitation is verifiability for end users. Attestation is meaningful only when someone actually checks it, so credible services publish their software images and allow independent researchers to inspect them. Without that transparency, confidential AI risks becoming a marketing label rather than a verifiable guarantee.

Put simply

Normally, a computer must unlock data before it can work with it, and anyone who controls that computer could look at the unlocked data. Confidential AI puts the AI model in a sealed room inside the processor. The data is unlocked only inside that room, and not even the company running the servers can see in.

Before you hand over your information, the sealed room shows a tamper-proof certificate describing exactly what software is inside. If the certificate does not match, your data is never sent. The key idea is protection while the data is being used.

In practice

A regional hospital group wants to use a large language model to summarize discharge notes, but it cannot send patient records to an external provider who could read them. The group deploys the model in a confidential virtual machine with a GPU in confidential mode at a public cloud provider.

Each request from the hospital network first checks an attestation report against the approved image hash. Only after that check does the key management service release the key that decrypts the notes inside the protected environment. Prompts and summaries are never stored outside the enclave, and logs contain no clinical content.

The privacy officer documents the setup in the impact assessment, noting that the remaining risks are hardware side channels and model output errors. Clinicians receive summaries within a few seconds, and the cloud operator never gains access to patient data, which allows the project to proceed under the hospital’s confidentiality obligations.