Bifrost: Privacy-Preserving Transformer and LLM Serving Hybrid Tee–FHE Inference 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). Computer Science Cryptography and Security Submitted on 16 Jun 2026 Title:Bifrost: Hybrid TEE-FHE Inference for Privacy-Preserving Transformer and LLM Serving View PDF https://arxiv.org/pdf/2606.17421 HTML experimental https://arxiv.org/html/2606.17421v1 Abstract: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. We 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. Bifrost+ 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. References & Citations Loading... Bibliographic and Citation Tools Bibliographic Explorer What is the Explorer? https://info.arxiv.org/labs/showcase.html arxiv-bibliographic-explorer Connected Papers What is Connected Papers? https://www.connectedpapers.com/about Litmaps What is Litmaps? https://www.litmaps.co/ scite Smart Citations What are Smart Citations? https://www.scite.ai/ Code, Data and Media Associated with this Article alphaXiv What is alphaXiv? https://alphaxiv.org/ CatalyzeX Code Finder for Papers What is CatalyzeX? https://www.catalyzex.com DagsHub What is DagsHub? https://dagshub.com/ Gotit.pub What is GotitPub? http://gotit.pub/faq Hugging Face What is Huggingface? https://huggingface.co/huggingface ScienceCast What is ScienceCast? https://sciencecast.org/welcome Demos Recommenders and Search Tools Influence Flower What are Influence Flowers? https://influencemap.cmlab.dev/ CORE Recommender What is CORE? https://core.ac.uk/services/recommender arXivLabs: experimental projects with community collaborators 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 https://info.arxiv.org/labs/index.html .