A First Look At Efficient And Secure On-Device LLM Inference Against KV Leakage
Not on the map. Why?
Abstract (arXiv)
Running LLMs on end devices has garnered significant attention recently due to their advantages in privacy preservation. With the advent of lightweight LLM models and specially designed GPUs, on-device LLM inference has achieved the necessary accuracy and performance metrics. However, we have identified that LLM inference on GPUs can leak privacy-sensitive intermediate information, specifically the KV pairs. An attacker could exploit these KV pairs to reconstruct the entire user conversation, leading to significant vulnerabilities. Existing solutions, such as Fully Homomorphic Encryption (FHE) and Trusted Execution Environments (TEE), are either too computation-intensive or resource-limited. To address these issues, we designed KV-Shield, which operates in two phases. In the initialization phase, it permutes the weight matrices so that all KV pairs are correspondingly permuted. During the runtime phase, the attention vector is inversely permuted to ensure the correctness of the layer output. All permutation-related operations are executed within the TEE, ensuring that insecure GPUs cannot access the original KV pairs, thus preventing conversation reconstruction. Finally, we theoretically analyze the correctness of KV-Shield, along with its advantages and overhead.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 13 of its 27 references that are in the map. First posted on arXiv 6 Sep 2024.
Builds on
13 of 27 references.
References · 13
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
- 2023Qwen Technical Reportcited by 3,344
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
- 2017A Survey on Homomorphic Encryption Schemes: Theory and Implementationcited by 156
- 2020DarkneTZ: Towards Model Privacy at the Edge using Trusted Execution Environmentscited by 58
- 2021TenSEAL: A Library for Encrypted Tensor Operations Using Homomorphic Encryptioncited by 52
- 2024TransLinkGuard: Safeguarding Transformer Models Against Model Stealing in Edge Deploymentcited by 11
- 2024LeftoverLocals: Listening to LLM Responses Through Leaked GPU Local Memorycited by 5
1 more
- 2018A Survey of Techniques for Improving Security of GPUscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 3; 2026: 4.
8 papers.
- 2025Shadow in the Cache: Unveiling and Mitigating Privacy Risks of KV-cache in LLM Inferencecited by 21
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversioncited by 17
- 2025Taming the Titans: A Survey of Efficient LLM Inference Servingcited by 16
- 2026SoK: Privacy-aware LLM in Healthcare: Threat Model, Privacy Techniques, Challenges and Recommendationscited by 3
- 2024Watermarking Large Language Models and the Generated Content: Opportunities and Challengescited by 2
- 2026Lever: Speculative LLM Inference on Smartphonescited by 2
- 2026Good-Enough LLM Obfuscation (GELO)cited by 0
- 2026When Agents Handle Secrets: A Survey of Confidential Computing for Agentic AIcited by 0
- 2026Lever: Speculative LLM Inference on Smartphones16 May 2026
- 2026When Agents Handle Secrets: A Survey of Confidential Computing for Agentic AI4 May 2026
- 2026Good-Enough LLM Obfuscation (GELO)5 Mar 2026
- 2026SoK: Privacy-aware LLM in Healthcare: Threat Model, Privacy Techniques, Challenges and Recommendations15 Jan 2026
- 2025Shadow in the Cache: Unveiling and Mitigating Privacy Risks of KV-cache in LLM Inference13 Aug 2025
- 2025Depth Gives a False Sense of Privacy: LLM Internal States Inversion22 Jul 2025
- 2025Taming the Titans: A Survey of Efficient LLM Inference Serving28 Apr 2025
- 2024Watermarking Large Language Models and the Generated Content: Opportunities and Challenges24 Oct 2024