cd /news/artificial-intelligence/open-source-e2e-fhe-implementation-f… · home › topics › artificial-intelligence › article
[ARTICLE · art-140620] src=arxiv.org ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

Open-Source E2E FHE Implementation for Privacy-Preserving Llama 3 8B Inference

Researchers Yuhang Fan and colleagues posted Odin, described as the first open-source end-to-end GPU CKKS implementation of Llama-3, to arXiv on 11 Sep 2026 (revised 16 Sep 2026), reporting server-side fully homomorphic encryption inference over all 32 Transformer layers of Llama-3-8B on a single NVIDIA H100 80 GB GPU. With a 128-token input, Odin completes end-to-end FHE evaluation in 366.4 s at 58.9 GiB peak device memory, a 4.51x speedup over the THOR-style baseline's 1651.9 s under identical model, input, CKKS parameters and hardware. Odin's gains come from a feature-major cross-layer ciphertext packing layout, transient intra-operator layouts for linear projections and attention, and minimax polynomial approximation with input-range control for nonlinear operations.

read2 min views1 publishedSep 27, 2026
Open-Source E2E FHE Implementation for Privacy-Preserving Llama 3 8B Inference
Image: source
  [Submitted on 11 Sep 2026 (

[v1](https://arxiv.org/abs/2609.12378v1)), last revised 16 Sep 2026 (this version, v2)]

[View PDF](https://arxiv.org/pdf/2609.12378)

[HTML (experimental)](https://arxiv.org/html/2609.12378v2)

Abstract:Cloud LLM services typically require users to send prompts to a model provider, creating a privacy risk. Fully homomorphic encryption (FHE) lets a server perform inference without decrypting the input, but representing data as ciphertexts adds storage and computational overhead. In CKKS-based LLM inference, the packing scheme maps logical tensors to ciphertexts and slots. It therefore determines the ciphertext count and the homomorphic cost of linear layers, and it constrains how data pass between linear layers, attention, and nonlinear computation. As models and sequences grow, inefficient layouts accumulate encoding, compute, and layout-conversion overhead.

We present Odin, an FHE inference system that co-designs ciphertext packing and model execution for Llama. Starting from a THOR-style baseline whose bottleneck is weight encoding, Odin uses a feature-major cross-layer layout to unify residual connections and layer interfaces, and builds transient intra-operator layouts for linear projections and attention. This reduces redundant plaintext encoding of weights in wide projections. Within attention, QK^T produces scores that Softmax can consume directly, and PV consumes the resulting probabilities, avoiding intermediate repacking. For nonlinear ops, we use minimax polynomial approximation with input-range control and joint error allocation guided by model quality, reducing polynomial degree and multiplicative depth. To our knowledge, Odin is the first open-source end-to-end GPU CKKS implementation of Llama-3.

With Llama-3-8B weights and a 128-token input, Odin evaluates all 32 Transformer layers on a single NVIDIA H100 80 GB GPU. Server-side end-to-end FHE evaluation takes 366.4 s and 58.9 GiB peak device memory. Under the same model, input, CKKS parameters, and hardware, THOR takes 1651.9 s, a 4.51x speedup.

Submission history #

From: Yuhang Fan [
[view email](https://arxiv.org/show-email/b3af3443/2609.12378)]

**Fri, 11 Sep 2026 02:51:44 UTC (74 KB)**

[\[v1\]](https://arxiv.org/abs/2609.12378v1)
**[v2]** Wed, 16 Sep 2026 07:01:10 UTC (74 KB)

References & Citations

...

Bibliographic Explorer

(What is the Explorer?) Connected Papers

(What is Connected Papers?) Litmaps

(What is Litmaps?) scite Smart Citations

(What are Smart Citations?) alphaXiv

(What is alphaXiv?) CatalyzeX Code Finder for Papers

(What is CatalyzeX?) DagsHub

(What is DagsHub?) Gotit.pub

(What is GotitPub?) Hugging Face

(What is Huggingface?) ScienceCast

(What is ScienceCast?) Influence Flower

(What are Influence Flowers?) CORE Recommender

(What is CORE?) arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.

Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.

Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs.

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @odin 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/open-source-e2e-fhe-…] indexed:0 read:2min 2026-09-27 · —