Why Encrypted LLM Inference Breaks Latency Budgets
Encrypted LLM inference for builders: what FHE like Bel-0 does to latency and cost, and how to choose between FHE, TEEs, self-hosting, and contracts.

In this article
- 1.What Bel-0 Proved About Encrypted LLM Inference
- 2.Why Transformers Are Close to the Worst Case for FHE
- 3.Where the encrypted bill comes from
- 4.A sanity check on the compounding
- 5.What FHE Protects, and What It Leaves Exposed
- 6.The Four Privacy Rungs Compared
- 7.Cost and Latency, Rung by Rung
- 8.The Decision Rule: Sensitivity, Latency, Compliance
- 9.The three axes
- 10.Five worked examples
- 11.What Would Change the Calculus
- 12.A Checklist for Picking Your Rung
Bel-0 is the first chatbot whose serving provider mathematically cannot read your prompts. It is also, by early accounts, far too slow to ship. Both facts matter. The first is an existence proof for encrypted LLM inference. The second is the price tag, and it is the one builders have to act on.
Stay in the loop.
Get the latest posts and exclusive content delivered to your inbox.
Join 18 readers. No spam. Unsubscribe in one click, anytime.
This article turns that news into an engineering decision: why transformer inference is close to the worst case for fully homomorphic encryption, what FHE protects and what it leaves exposed, how it stacks up against confidential computing, self-hosting, and contract-plus-redaction controls, and a rule for assigning every LLM workload in your stack to the cheapest privacy rung it can safely occupy.
What Bel-0 Proved About Encrypted LLM Inference
Bel-0 is an end-to-end encrypted chatbot built on Zama's homomorphic encryption tooling: the prompt leaves your device as ciphertext, a transformer computes on that ciphertext, and only your device decrypts the result. The model is deliberately small and its answers deliberately limited, and neither limitation is the point. The point is that a full autoregressive transformer, the same architecture your production traffic runs on, completed an encrypted inference loop end to end for the first time, a landmark for private LLM inference.
How slow Bel-0 actually is belongs in your requirements column, not a trivia column. Reported response times for short replies sit in seconds to tens of seconds, and that delta is the distance between a demo and a product. A support copilot that waits ten seconds before its first token loses the user mid-sentence, which places Bel-0 outside any interactive serving budget today. The gap is the expected cost of the scheme, not a tuning issue the next release closes, and the mechanism behind it is the next section.
Four questions follow, one per section: why transformers are so expensive under FHE, what FHE actually protects (less than the name suggests), what the cheaper rungs cost, and how to choose between them.
Why Transformers Are Close to the Worst Case for FHE

Where the encrypted bill comes from
Fully homomorphic encryption lets a provider compute directly on encrypted inputs without decrypting them. What makes deep circuits possible is bootstrapping, the operation that refreshes the noise ciphertexts accumulate as they are multiplied together. Bootstrapping is also a dominant cost in deep FHE workloads: it is expensive on its own, and a circuit deep enough to run a neural network needs it over and over.
Map a transformer onto that machinery and three costs stack:
- Matrix multiplication volume. Attention and MLP layers are enormous matrix multiplies. Under FHE every multiply-accumulate runs on ciphertext, so one forward pass becomes billions of encrypted operations, each pricier than its plaintext counterpart because of ciphertext size and noise bookkeeping.
- Approximated nonlinearities. Softmax, GELU, and LayerNorm are nonlinear, and FHE natively supports only addition and multiplication. Each function must be swapped for a polynomial approximation, which costs accuracy and consumes multiplicative depth, forcing bootstrapping between layers to reset the noise budget.
- Autoregressive decoding. Each generated token requires another round of encrypted computation, so the bill for encrypted LLM inference scales with sequence length. Encrypted chat is therefore strictly harder than single-pass encrypted classification of one fixed input: generation multiplies the encrypted cost by reply length, and per-token attention cost grows with the prompt behind it.
A sanity check on the compounding
Suppose, for the arithmetic only, that a scheme achieves 1,000x compute overhead on the operations a transformer needs, a plausible midpoint given that published FHE results span orders of magnitude. A model streaming at 20 milliseconds per token in plaintext now costs 20 seconds of compute per token, before charging for context growth or bootstraps. Even an optimistic 100x with no bootstrap charge turns a 20 ms stream into 2 seconds per token, which lands in the seconds-to-tens-of-seconds regime reported for Bel-0. Research attacks the constant rather than the exponent: recent low-rank linearization work cuts the cost of the matrix multiplies that dominate transformer FHE inference overhead, and the speeds it reports are batch-scale, not interactive.
What FHE Protects, and What It Leaves Exposed
Deciding whether a rung is defensible in review is a threat-model question, not a cipher question, so pin down exactly what Bel-0's design buys. What homomorphic encryption does not protect turns out to matter as much as what it does:
- Protected: the prompt and output while in use. The provider holds ciphertext, computes on ciphertext, returns ciphertext. A curious or compromised provider learns nothing about content.
- Not protected: the weights.Bel-0's announcement ships the model openly, so the scheme says nothing about weight confidentiality. Fine for a demo; a non-starter if the model itself is the asset.
- Not protected: traffic metadata. Who calls whom, when, how often, and the sizes and timing of messages stay visible on the network. In regulated settings, the pattern of queries can itself be sensitive.
- Out of scope: your endpoints. A compromised client reads plaintext before encryption ever helps, and a provider misusing results obtained elsewhere is a policy problem, not a cryptographic one.
Stated as one sentence for the design review: FHE defends against a provider reading your payloads, and nothing else. Each cheaper rung gets held to the same sentence, because the rungs differ in who they defend against, not only in strength. Contract terms defend against a provider that fears liability. TEEs defend against curious or compromised provider staff and host software. FHE defends against a provider that can look deliberately and still learns nothing. None of these rungs hides traffic metadata by itself; that takes network-level protections.
The Four Privacy Rungs Compared
An LLM privacy architecture is best chosen as a ladder: each rung buys a stronger claim about who can read your data and charges for it in latency, cost, and operations. The FHE vs confidential computing comparison for LLM workloads, next to self-hosting and plain contracts, looks like this on the axes a design review actually grades.
| Rung | Protection scope | Latency | Cost shape | Ops burden | Compliance story | Dominant failure mode |
|---|---|---|---|---|---|---|
| Contract + redaction (enterprise API tier, PII scrubbing) | Payloads readable in provider memory during inference | Effectively none | Lowest; per-token pricing | Low | Provider promises not to look | Policy drift, redaction misses |
| Self-hosting (vLLM or Ollama on your GPUs) | Data never leaves your perimeter | Native | GPU capex or reserved capacity | High; serving, scaling, patching | Data stays with us | Ops and access misconfiguration |
| TEE confidential computing (AWS Nitro Enclaves, Azure Confidential VMs, NVIDIA H100 confidential mode) | Attested in-use protection; host OS and provider staff excluded | Small, production-compatible | Near-native plus enclave overhead | Medium; attestation, sealed images | Provider is blind by hardware, verified at launch | Side channels; hardware and firmware vendors remain trusted |
| FHE (Zama stack, Bel-0) | Provider mathematically cannot read payloads | Orders of magnitude slower today | Very high per token | High; applied crypto expertise | Provider could look and still learn nothing | Performance kills the product; metadata leaks |
Two calibrations keep the table honest. On rung three, confidential computing's trusted computing base includes the hardware and firmware vendors, and published side-channel research has repeatedly challenged enclave guarantees, so treat attestation as a strong control rather than a proof. On rung one, OpenAI's data controls state that API inputs and outputs are not used for training models by default, and enterprise tiers add retention controls; that satisfies the most common compliance requirement, a DPA and audit review, at near-zero latency cost, while payloads remain readable in provider memory. That last clause is the honest price of the cheapest rung: the provider promises not to look, and it can.
Cost and Latency, Rung by Rung

No single responsible number exists for FHE overhead on transformer workloads: published results span orders of magnitude depending on scheme, parameters, and model size, so the calibrated claim is the range, not a figure. What the multiplier does to unit economics is plain arithmetic:
- Cost per million tokens scales with the overhead. An API tier priced at a few dollars per million tokens becomes thousands of dollars per million at 1,000x, before the applied-crypto salaries.
- Latency budgets die first. Interactive products need tens of milliseconds per token; batch pipelines can absorb seconds. That split, not average speed, decides whether encrypted LLM inference is even a candidate for a workload.
- TEE LLM inference stays inside production envelopes. Confidential modes on current datacenter GPUs are engineered for production serving, and their documented overheads are small next to FHE's gap. Treat vendor documentation as the source of truth for your configuration.
- Contracts plus redaction cost engineering time, not latency. The bill is a good scrubber pipeline and its false-positive rate.
The pattern worth internalizing: the rungs differ less in whether they are secure than in what the compliance story can survive. A promise survives an audit. An attestation survives a provider that could look if it tried. Only cryptography survives a provider that can look.
The Decision Rule: Sensitivity, Latency, Compliance
If you have been unsure how to choose an LLM privacy architecture without over-paying or under-protecting, the rule is deliberately boring: score the workload on three axes, then take the lowest rung that passes all three. Higher rungs are available, never required.
The three axes
- Sensitivity: public, internal, PII-bearing, or regulated (PHI, financial data, legal privilege).
- Latency budget: interactive (sub-second first token), near-real-time, or batch.
- Compliance posture: the sentence the story must survive. A promise, an attestation, or cryptographic blindness.
Five worked examples
These land on four different rungs:
| Workload | Sensitivity | Latency | Compliance bar | Rung |
|---|---|---|---|---|
| Internal knowledge assistant over proprietary docs and source | Internal, crown-jewel IP | Interactive | Data must not leave the perimeter | Self-hosting |
| Batch legal contract review | Privileged | Batch | Promise plus audit trail acceptable | Contract + redaction |
| PII-heavy support copilot | PII at volume | Interactive | Attested handling, no provider visibility | TEE confidential computing |
| Clinical documentation assistant | Regulated PHI | Near-real-time | Auditors expect in-use protection | TEE, FHE if mandates tighten |
| Cross-organization analytics consortium | Multi-party regulated | Batch | No single party sees others' inputs | FHE |
The consortium row is where FHE earns its cost: multi-party or strongly regulated settings in which the compliance story must survive a provider that can look, not one that promises not to. Everywhere else the lower rungs win on every axis a product team actually measures.
What Would Change the Calculus
Three research directions could move the numbers, and none of them ships on a supportable timeline today:
- FHE hardware acceleration.DARPA's DPRIVE program funds custom silicon aimed squarely at the bootstrapping bottleneck that dominates deep encrypted circuits.
- FHE-friendly model design. Architecture and training choices that shrink multiplicative depth and matmul size, in the lineage of the linearization research above, reduce how often bootstrapping runs at all.
- Maturing GPU TEEs. As confidential computing for AI becomes a default across datacenter GPU fleets, rung three's compliance story strengthens with no work on your side.
What to monitor, concretely: per-token latency figures from FHE papers on realistic model sizes, bootstrapping throughput on any shipping accelerator, and confidential-computing defaults in cloud GPU offerings. Refuse timeline promises, including your own. Nothing published today supports a credible date for interactive encrypted LLM inference, and a roadmap that invents one will not survive a security review.
A Checklist for Picking Your Rung
Run this in the design review, one workload at a time:
- Classify the payload: public, internal, PII, regulated, or multi-party.
- Write the latency budget in milliseconds per token, first token included.
- Write the compliance sentence the design must survive: promise, attestation, or blindness.
- Check the provider's data-handling terms against that sentence first; policy pages are the cheapest control you will ever audit.
- Take the lowest rung that passes all three, and record why the rung below it failed.
- Note the revisit triggers: a change in payload sensitivity, in latency budget, or in the compliance mandate.
The default, in one line: buy the cheapest privacy rung that survives sensitivity, latency, and compliance, and revisit only when one of those three inputs changes. Bel-0 proved the top of the ladder exists. It did not make it the place to stand.
Stay in the loop.
Get the latest posts and exclusive content delivered to your inbox.
Join 18 readers. No spam. Unsubscribe in one click, anytime.
About the author
Megan Caldwell
AI Engineering Lead
Megan has spent the last eight years building production ML systems, from recommendation engines to today's language model pipelines. She writes about the engineering that holds up under real load: retrieval, evaluation, and the unglamorous parts of shipping AI software.
Related Posts
AI Coding Agent Token Costs Hide an Amnesia Tax
AI coding agent token costs hide an amnesia tax. Price it, then pick the right lever from caching, indexing, experience reuse, or distillation.
Agent Host Protocol Moves the Transport, Not the State
The Agent Host Protocol as a build spec: the state your app must externalize before sessions hop devices, and what a roaming session costs to secure.
AI Agents for Data Science Lost to a 76.5% Baseline
AI agents for data science lost to a two-line Titanic baseline, scoring 72.96% in one hour. See why tabular ML breaks coding agents and what to keep.


