Skip to content

Private Inference

Decision framing

Field Scope
Protected asset Client inference inputs; model confidentiality only if the selected protocol also provides it.
Adversary Model service or infrastructure operator, with distinct trust assumptions for HE, MPC, TEEs, and local execution.
Allowed output Predictions for authorized recipients; specify who decrypts or otherwise sees the result. See allowed output.
Leakage surface Outputs, confidence scores, repeated queries, traffic metadata, runtime logs, and client storage. See leakage.
Assumptions HE keys stay with approved key holders; MPC uses the stated corruption model; TEEs require verified attestation; clients remain trusted.
Non-goals Automatic model secrecy, output privacy, correct computation by a malicious service, or protection of compromised clients.

Evidence and assumptions

Evidence level: Expert judgment. Source quality: Unsourced / illustrative. The framing and recommendations are editorial design guidance, not a deployment security claim. Page-specific assumptions remain below. Sources attached to individual claims support only those claims. Cost, utility, performance, and mitigation effectiveness remain Needs evidence for your workload until measured. Use the Evidence Policy and benchmark scorecards to review a candidate.

Motivating Example

A fraud model provider wants banks to send transaction features for scoring without exposing plaintext inputs to the provider. The provider also wants to protect model IP and meet a strict latency target.

Problem

Private inference aims to protect sensitive information during prediction. Candidate approaches include homomorphic encryption, MPC, TEEs, and client-side inference. Governed hosted inference is an alternative when the service is allowed to see plaintext inputs. The shortlist depends on model architecture, latency, trust assumptions, and what the output reveals. (Evidence: Expert judgment. Source quality: Unsourced / illustrative. Reviewed 2026-09-18; this is a design shortlist, not a security ranking.)

When To Use

  • Client inputs are sensitive enough that the model service should not see them.
  • The output is allowed to be returned to the client.
  • The model can be adapted to the PET or the deployment accepts hardware trust.
  • Latency, throughput, and cost have been benchmarked end to end.

When Not To Use

  • Do not use HE for arbitrary modern ML workloads without checking latency and operator support. (Evidence: Expert judgment, 2026-06-10 — HE support for transformer-style operators is still limited; this page does not cite a cross-model benchmark. Needs evidence for any specific architecture.)
  • Do not use TEEs without understanding attestation and side-channel assumptions. (Evidence: Literature-backed, 2026-06-10 — Source quality: Peer-reviewed / academic. Foreshadow, USENIX Security 2018, demonstrated SGX data and attestation-key extraction. This evidence is platform-specific; it does not establish the vulnerability of every TEE or current configuration.)
  • Do not use private inference if the prediction itself reveals the sensitive fact and no output policy exists. (Evidence: Expert judgment, 2026-06-10 — output-leakage risk through confidence scores and repeated queries is documented in model-extraction literature; see Tramèr et al., "Stealing Machine Learning Models via Prediction APIs", USENIX Security 2016 (https://www.usenix.org/conference/usenixsecurity16/technical-sessions/presentation/tramer). Needs evidence for production mitigation effectiveness.)
  • Do not ignore client-side inference when the model can run locally and IP risk is acceptable.

Architecture

Option Flow Best fit
HE inference Client encrypts input, service evaluates on ciphertext, client decrypts output Narrow models, strict no-plaintext-input requirement
TEE inference Client verifies attestation, sends plaintext into confidential runtime, runtime scores model Broader models, lower latency, hardware trust acceptable
Client-side inference Provider ships model or adapter to client environment Small models, strong input privacy, manageable IP exposure
Governed hosted inference Client sends plaintext under contract and controls Lower-sensitivity inputs or high operational constraints

Threat Model

Actor Concern
Model provider Should not see plaintext client inputs
Client May try to extract model IP or learn sensitive model behavior
Cloud/platform operator May inspect runtime, logs, or metadata
External attacker May compromise API, keys, or logs
Output recipient May misuse or overinterpret predictions

Privacy Properties

  • HE can keep inputs encrypted during computation. (Evidence: Literature-backed, 2026-06-10 — Source quality: Primary / official. The Homomorphic Encryption Security Standard, 2018, describes scheme-specific security and parameters. The deployment also needs correct key handling and implementation.)
  • TEEs can restrict plaintext exposure to an attested runtime.
  • Client-side inference keeps inputs local but exposes more model material.
  • Output controls can reduce leakage from returned predictions.

Does not protect

  • Leakage through outputs, explanations, confidence scores, or repeated queries. (Evidence: Literature-backed, 2026-06-10 — model extraction via prediction APIs is demonstrated in Tramèr et al., USENIX Security 2016; membership inference via confidence scores is shown in Shokri et al., IEEE S&P 2017.)
  • Feedback from client decryption. Standard CKKS input protection alone does not cover all protocols that expose decryption feedback. Keep decrypted values, detailed errors, and result-dependent telemetry local unless a review of the chosen scheme and protocol supports sharing them. (Evidence: Literature-backed. Source quality: Peer-reviewed / academic. Li and Micciancio, EUROCRYPT 2021.)
  • Model extraction by adversarial clients.
  • TEE side channels or invalid attestation workflows.
  • HE parameter mistakes or unsupported model operations.

Tools And Building Blocks

  • HE libraries and HE-friendly model conversion.
  • Confidential-computing platforms and attestation clients.
  • Model quantization, pruning, and operator audits.
  • Key management and client SDKs.
  • Rate limits, output shaping, and monitoring.

Operational Complexity

Medium to high. HE is often harder to debug and optimize. TEEs are easier for model support but add attestation, runtime hardening, and hardware trust review. (Evidence: Expert judgment, 2026-06-10 — "medium to high" is based on practitioner reports and tool-ecosystem assessments; no common operational-effort benchmark exists. Needs evidence for specific toolchains.)

Cost Drivers

  • HE ciphertext size, bootstrapping, batching, and operator depth.
  • TEE instance pricing, enclave memory limits, and attestation integration.
  • Model redesign and accuracy recovery.
  • Client SDK support and key management.
  • Monitoring for abuse and output leakage.

Failure modes

  • HE latency makes the product unusable.
  • A model layer is unsupported or approximated badly.
  • Attestation is optional or ignored by clients.
  • Logs capture plaintext inputs or outputs.
  • Confidence scores allow repeated-query inference.
  • The provider protects inputs but leaks sensitive predictions to the wrong user.

Evaluation Checklist

  • What exact input is protected from whom?
  • Is the output allowed to reveal the prediction?
  • Are model layers compatible with the PET?
  • What is p50/p95/p99 latency including encryption and transfer?
  • How are keys generated, stored, rotated, and revoked? Can callbacks, telemetry, or errors disclose information about client decryption to the evaluator?
  • Does the client verify attestation on every relevant deployment version?
  • Are repeated queries and model extraction monitored?

Open Research Problems

  • HE model preflight analyzers.
  • Debugging tools for encrypted computation.
  • Benchmarks comparing HE, TEE, and client-side inference on the same workload.
  • Output-leakage tests for private inference APIs.