article

LLMGuard : Safeguarding Real-Time Inference for Large Language Models on Edge Devices

  • ACM Transactions on Software Engineering and Methodology
  • Association for Computing Machinery
Research footprint

At a glance

Citations
1
References
48
Comments
0
Paper overview

Abstract

TEE-shielded secure inference offers an efficient solution to protect valuable edge-deployed models from potential thefts. Nevertheless, existing methods are lack of theoretical security analysis, failing to achieve the optimal security. Furthermore, while feasible for small models, existing methods are excessively heavyweight for Large Language Models (LLM). For LLaMA-7B, they introduce GB-level secure memory requirement and hundredfold inference latency, severely compromising real-time utility. To solve these problems, we first present a Bayesian theory framework of Model Stealing (MS) attacks, which decomposes MS into prior and posterior knowledge leakage. Based on this framework, LLMGuard is proposed, which presents two components: First, Intrinsic Parameters Shielding is designed to shield all private parameters, preventing prior knowledge leakage. This approach significantly decreases the secure memory usage and achieves inference speedup. Second, since OTP is not applicable to LLMs, Random Slices Composition is developed to obfuscate intermediate distributions with no computational overhead, minimizing posterior knowledge leakage efficiently. Experimental results demonstrate that LLMGuard downgrades model to black-box inference with negligible accuracy loss, while delivering \(43\times\) inference speedup on LLaMA compared to fully-shielded methods. The proposed LLMGuard effectively addresses concerns related to intellectual property theft on edge, boosting the secure deployment of LLMs on untrusted devices.

Record transparency

Publication details

DOI
10.1145/3799230
OpenAlex
W7131426036
Document type
article
Language
EN
Source
ACM Transactions on Software Engineering and Methodology
Last metadata update
Community

Comments

Log in to join the discussion.

  1. No comments yet. Start the discussion.