{"slug": "bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference", "title": "Bifrost: Privacy-Preserving Transformer and LLM Serving Hybrid Tee–FHE Inference", "summary": "A paper submitted to arXiv on 16 June 2026 presents Bifrost, a hybrid TEE-FHE serving architecture that provisions secrets only to an attested CPU trusted execution environment while keeping the accelerator, device memory, driver/runtime stack and host software outside the trusted computing base. Bifrost uses FHE (CKKS) to delegate projection and feed-forward linear layers to the accelerator, while non-linear operators, attention-side control logic, KV-state transitions and decrypt-then-encrypt refresh run inside the CPU TEE; Bifrost+ adds a prefill/decode split that builds prompt-side KV state in the CPU TEE. In an estimator-style comparison matching Euston's methodology, Bifrost reduces projected latency by 9.25x on GPT-2 (1.5B) and 9.91x on LLaMA 3 (8B), and in direct CKKS/FHE deployments Bifrost+ cuts time-to-first-token by 14.6-45.8x on GPT-2 (124M) and 15.3-53.4x on Qwen3 (0.6B).", "body_md": "# Computer Science > Cryptography and Security\n\n  [Submitted on 16 Jun 2026]\n\n# Title:Bifrost: Hybrid TEE-FHE Inference for Privacy-Preserving Transformer and LLM Serving\n\n[View PDF](https://arxiv.org/pdf/2606.17421)\n\n[HTML (experimental)](https://arxiv.org/html/2606.17421v1)\n\nAbstract:Cloud-hosted transformer and large language model (LLM) inference creates a direct confidentiality problem: user prompts may contain sensitive code, business data, personal information, or regulated documents, yet remote serving exposes intermediate state to the cloud software stack and accelerator runtime. Fully homomorphic encryption (FHE) keeps accelerator-side execution ciphertext-only, but end-to-end LLM inference remains expensive because linear layers are interleaved with non-linear, cache-state, and refresh-sensitive operators. CPU trusted execution environments (TEEs) can execute those operators natively, but a CPU TEE alone does not define how an untrusted accelerator should participate.\n\nWe present Bifrost, a hybrid TEE-FHE serving architecture in which secrets are provisioned only to an attested CPU TEE, while the accelerator, device memory, driver/runtime stack, and host software remain outside the trusted computing base. Bifrost uses FHE as a secure delegation mechanism for projection and feed-forward linear layers on accelerator-backed CKKS, while non-linear operators, attention-side control logic, KV-state transitions, and decrypt-then-encrypt refresh execute inside the CPU TEE.\n\nBifrost+ further applies a prefill/decode split: prompt-side KV state is built inside the CPU TEE, and only decode-side state enters the hybrid ciphertext path. In an estimator-style comparison matching Euston's methodology, Bifrost reduces projected latency by 9.25x on GPT-2 (1.5B) and 9.91x on LLaMA 3 (8B). In direct CKKS/FHE deployments, Bifrost+ reduces TTFT by 14.6-45.8x on GPT-2 (124M) and 15.3-53.4x on Qwen3 (0.6B). The systems lesson is selective encrypted execution: use FHE only where ciphertext-only accelerator delegation is required, and keep non-linear, refresh, and prompt-side work inside the CPU TEE.\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer \n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers \n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps \n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations \n\n*(*[What are Smart Citations?](https://www.scite.ai/))\n# Code, Data and Media Associated with this Article\n\nalphaXiv \n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers \n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub \n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub \n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face \n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast \n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))\n# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower \n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender \n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))\n# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth 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.\n\nHave an idea for a project that will add value for arXiv's community? [**Learn more about arXivLabs**](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference", "canonical_source": "https://arxiv.org/abs/2606.17421", "published_at": "2026-11-28 16:32:06+00:00", "updated_at": "2026-11-28 16:42:54.088895+00:00", "lang": "en", "topics": ["ai-safety", "ai-research", "large-language-models", "ai-infrastructure"], "entities": ["Bifrost", "Bifrost+", "arXiv", "GPT-2", "LLaMA 3", "Qwen3", "Euston", "CKKS"], "also_reported_by": [], "takeaway": "Encrypt only the projection and feed-forward linear layers with CKKS FHE on the accelerator and keep non-linear, KV-refresh and prompt-side prefill work in the CPU TEE; Bifrost+ cut TTFT by 14.6-45.8x on GPT-2 (124M) and 15.3-53.4x on Qwen3 (0.6B) versus direct CKKS/FHE deployments.", "recommendation": {"advice": "For confidential LLM serving, delegate only linear layers to FHE on the accelerator and run non-linear, refresh and prefill KV work in the CPU TEE; Bifrost+ reported 15.3-53.4x lower TTFT on Qwen3 (0.6B).", "playbook": "inference-serving", "playbook_url": "https://wpnews.pro/playbooks/inference-serving"}, "alternates": {"html": "https://wpnews.pro/news/bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference", "markdown": "https://wpnews.pro/news/bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference.md", "text": "https://wpnews.pro/news/bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference.txt", "jsonld": "https://wpnews.pro/news/bifrost-privacy-preserving-transformer-and-llm-serving-hybrid-tee-fhe-inference.jsonld"}}