mlsanityData to 14 Oct 2026

A First Look At Efficient And Secure On-Device LLM Inference Against KV Leakage

arXiv 2409.04040 ↗First posted 6 Sep 2024cs.CR cs.AIcited by 8

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
  4. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  5. 2018MobileNetV2: Inverted Residuals and Linear Bottleneckscited by 4,795
  6. 2023Qwen Technical Reportcited by 3,344
  7. 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,121
  8. 2017A Survey on Homomorphic Encryption Schemes: Theory and Implementationcited by 156
  9. 2020DarkneTZ: Towards Model Privacy at the Edge using Trusted Execution Environmentscited by 58
  10. 2021TenSEAL: A Library for Encrypted Tensor Operations Using Homomorphic Encryptioncited by 52
  11. 2024TransLinkGuard: Safeguarding Transformer Models Against Model Stealing in Edge Deploymentcited by 11
  12. 2024LeftoverLocals: Listening to LLM Responses Through Leaked GPU Local Memorycited by 5
1 more
  1. 2018A Survey of Techniques for Improving Security of GPUscited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 1; 2025: 3; 2026: 4.

8 papers.