← Sat, Nov 28 digest

The Comprehensive Guide to Encrypted Inference with Tees

read article ↗ hn thread ↗

Nito details its encrypted AI inference architecture using hardware trusted execution environments and client-side encryption to prevent providers and routers from reading user prompts.

read it Provides solid technical depth on implementing CPU and GPU confidential computing, remote attestation, and end-to-end encryption for LLM inference.

summary

Nito outlines how its model router uses Trusted Execution Environments combining confidential VMs and NVIDIA GPU confidential computing to secure AI inference against provider breaches. By sealing requests on the user device to a cryptographically verified enclave key, the router only relays ciphertext without reading prompts. The guide walks through hardware attestation steps, protocol details, and the underlying trust model including physical attack limitations. Commenters discuss the performance tradeoffs compared to homomorphic encryption and vulnerabilities to physical access.

key points

  1. Requests are encrypted on the client device using HPKE and bound to a hardware attestation key, ensuring the router only handles ciphertext.
  2. Protection requires both CPU confidential VMs (AMD SEV-SNP or Intel TDX) and NVIDIA confidential computing mode for GPU memory isolation.
  3. Cryptographic attestation verifies firmware fingerprints against public release logs before any data is sent.
  4. The trust model shifts reliance from cloud provider policies and staff to hardware manufacturers and verified open-source builds.

who should read it

Engineers and architects building privacy-sensitive AI applications or evaluating confidential computing platforms.

discussion positive

consensus

Commenters appreciate the practical exploration of TEEs for AI and contrast them with fully homomorphic encryption, noting that TEEs offer near-native performance while trading trust in cloud operators for trust in chip vendors.

pushback

Technical critics note the post glosses over important distinctions between hardware architectures like SGX and NVIDIA confidential computing, and point out ongoing vulnerabilities to physical access attacks.

best comment by teraflop ↗

Well, yes, in theory. But the problem is that fully homomorphic encryption (currently) has extremely high overhead. It typically doesn't make sense to outsource a computation to somebody else if doing so is going to be 100x slower than you could perform it yourself.

This service instead uses hardware-level trusted execution. Basically that means step 1 is that the CPU/GPU performs the computation "natively", i.e. with full visibility of the plaintext, with only a small amount of overhead. Step 2 is that the hardware encrypts the output so only the intended recipient can read it. And the chip …

Explains the practical performance distinction between hardware-level TEEs and the intractable overhead of fully homomorphic encryption.

Generated by an LLM from the article and thread. Check the sources before relying on it.