Confidential LLM Inference: Performance and Cost Across CPU and GPU TEEs
Not on the map. Why?
Abstract (arXiv)
Large Language Models (LLMs) are increasingly deployed on converged Cloud and High-Performance Computing (HPC) infrastructure. However, as LLMs handle confidential inputs and are fine-tuned on costly, proprietary datasets, their heightened security requirements slow adoption in privacy-sensitive sectors such as healthcare and finance. We investigate methods to address this gap and propose Trusted Execution Environments (TEEs) as a solution for securing end-to-end LLM inference. We validate their practicality by evaluating these compute-intensive workloads entirely within CPU and GPU TEEs. On the CPU side, we conduct an in-depth study running full Llama2 inference pipelines (7B, 13B, 70B) inside Intel's TDX and SGX, accelerated by Advanced Matrix Extensions (AMX). We derive 12 insights, including that across various data types, batch sizes, and input lengths, CPU TEEs impose under 10% throughput and 20% latency overheads, further reduced by AMX. We run LLM inference on NVIDIA H100 Confidential Compute GPUs, contextualizing our CPU findings and observing throughput penalties of 4-8% that diminish as batch and input sizes grow. By comparing performance, cost, and security trade-offs, we show how CPU TEEs can be more cost-effective or secure than their GPU counterparts. To our knowledge, our work is the first to comprehensively demonstrate the performance and practicality of modern TEEs across both CPUs and GPUs for enabling confidential LLMs (cLLMs).
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 32 of its 76 references that are in the map. First posted on arXiv 23 Sep 2025.
Builds on
32 of 76 references.
References · 32
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2023A Survey of Large Language Modelscited by 2,576
- 2023Retrieval-Augmented Generation for Large Language Models: A Surveycited by 2,212
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2021BEIR: A Heterogenous Benchmark for Zero-shot Evaluation of Information Retrieval Modelscited by 1,252
- 2023BloombergGPT: A Large Language Model for Financecited by 939
- 2023NExT-GPT: Any-to-Any Multimodal LLMcited by 615
20 more
- 2022Efficiently Scaling Transformer Inferencecited by 539
- 2023Large Language Models Are State-of-the-Art Evaluators of Translation Qualitycited by 420
- 2019FinBERT: Financial Sentiment Analysis with Pre-trained Language Modelscited by 385
- 2023Can Sensitive Information Be Deleted From LLMs? Objectives for Defending Against Extraction Attackscited by 158
- 2017A Survey on Homomorphic Encryption Schemes: Theory and Implementationcited by 156
- 2021CrypTen: Secure Multi-Party Computation Meets Machine Learningcited by 131
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2018Slalom: Fast, Verifiable and Private Execution of Neural Networks in Trusted Hardwarecited by 102
- 2019DAWN: Dynamic Adversarial Watermarking of Neural Networkscited by 100
- 2020The Cost of Training NLP Models: A Concise Overviewcited by 98
- 2019[Extended version] Rethinking Deep Neural Network Ownership Verification: Embedding Passports to Defeat Ambiguity Attackscited by 88
- 2020A Systematic Review on Model Watermarking for Neural Networkscited by 52
- 2022Machine Learning with Confidential Computing: A Systematization of Knowledgecited by 15
- 2023Orion: A Fully Homomorphic Encryption Framework for Deep Learningcited by 15
- 2022Conflicting Interactions Among Protection Mechanisms for Machine Learning Modelscited by 12
- 2020Occlum: Secure and Efficient Multitasking Inside a Single Enclave of Intel SGXcited by 11
- 2023Intel TDX Demystified: A Top-Down Approachcited by 7
- 2018TimeCrypt: Encrypted Data Stream Processing at Scale with Cryptographic Access Controlcited by 4
- 2024Fortify Your Foundations: Practical Privacy and Security for Foundation Model Deployments In The Cloudcited by 4
- 2019On the Impact of Memory Allocation on High-Performance Query Processingcited by 3
Built on by
Citing papers per year: 2026: 5.
5 papers.
- 2026AlienLM: Alienization of Language for API-Boundary Privacy in Black-Box LLMscited by 2
- 2026When Agents Handle Secrets: A Survey of Confidential Computing for Agentic AIcited by 0
- 2026The Chronos Vulnerability: A Taxonomy of Temporal Persistence and Memory-Based Deception in Agentic AIcited by 0
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channelscited by 0
- 2026A Reproducible, License-Aware Distillation Recipe for CPUDeployable Safety Classificationcited by 0
- 2026A Reproducible, License-Aware Distillation Recipe for CPUDeployable Safety Classification21 Aug 2026
- 2026SparSEEty: Extracting Tokens from Sparsity-Exploiting LLM Serving Systems via Deterministic Side Channels4 Aug 2026
- 2026The Chronos Vulnerability: A Taxonomy of Temporal Persistence and Memory-Based Deception in Agentic AI20 Jul 2026
- 2026When Agents Handle Secrets: A Survey of Confidential Computing for Agentic AI4 May 2026
- 2026AlienLM: Alienization of Language for API-Boundary Privacy in Black-Box LLMs30 Jan 2026