Skip to main content
Engineering ••11 min read•

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.

Encrypted LLM inference lets a chatbot provider compute on prompts it can never read, the privacy guarantee and latency price this article weighs.

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

FHE inference overhead explains why every encrypted matrix multiply, bootstrapping step, and approximated nonlinearity makes transformer serving vastly costlier than plaintext.

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.

RungProtection scopeLatencyCost shapeOps burdenCompliance storyDominant failure mode
Contract + redaction (enterprise API tier, PII scrubbing)Payloads readable in provider memory during inferenceEffectively noneLowest; per-token pricingLowProvider promises not to lookPolicy drift, redaction misses
Self-hosting (vLLM or Ollama on your GPUs)Data never leaves your perimeterNativeGPU capex or reserved capacityHigh; serving, scaling, patchingData stays with usOps 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 excludedSmall, production-compatibleNear-native plus enclave overheadMedium; attestation, sealed imagesProvider is blind by hardware, verified at launchSide channels; hardware and firmware vendors remain trusted
FHE (Zama stack, Bel-0)Provider mathematically cannot read payloadsOrders of magnitude slower todayVery high per tokenHigh; applied crypto expertiseProvider could look and still learn nothingPerformance 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

TEE LLM inference on confidential-mode datacenter GPUs stays inside production latency and cost envelopes, unlike the orders-of-magnitude gap of fully encrypted serving.

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

  1. Sensitivity: public, internal, PII-bearing, or regulated (PHI, financial data, legal privilege).
  2. Latency budget: interactive (sub-second first token), near-real-time, or batch.
  3. Compliance posture: the sentence the story must survive. A promise, an attestation, or cryptographic blindness.

Five worked examples

These land on four different rungs:

WorkloadSensitivityLatencyCompliance barRung
Internal knowledge assistant over proprietary docs and sourceInternal, crown-jewel IPInteractiveData must not leave the perimeterSelf-hosting
Batch legal contract reviewPrivilegedBatchPromise plus audit trail acceptableContract + redaction
PII-heavy support copilotPII at volumeInteractiveAttested handling, no provider visibilityTEE confidential computing
Clinical documentation assistantRegulated PHINear-real-timeAuditors expect in-use protectionTEE, FHE if mandates tighten
Cross-organization analytics consortiumMulti-party regulatedBatchNo single party sees others' inputsFHE

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