LoRO: Real-Time on-Device Secure Inference for LLMs via TEE-Based Low Rank Obfuscation

Gao-Jian Xiong, Yu Sun, Jian-Hua Liu, Jian Cui, Jian-Wei Liu
1/1/2025

No official code found. Best implementation: D1aoBoomm/LoRO (15 stars).

Abstract

While Large Language Models (LLMs) have gained remarkable success, they are consistently at risk of being stolen when deployed on untrusted edge devices. As a solution, TEE-based secure inference has been proposed to protect valuable model property.

Show full abstract

However, we identify a statistical vulnerability in existing protection methods, and furtherly compromise their security guarantees by proposed Model Stealing Attack with Prior. To eliminate this vulnerability, LoRO is presented in this paper, which leverages dense mask to completely obfuscate parameters. LoRO includes two innovations: (1) Low Rank Mask, which uses low-rank factors to generate dense masks efficiently. The computing complexity in TEE is hence reduced by an exponential amount to achieve inference speed up, while providing robust model confidentiality. (2) Factors Multiplexing, which reuses several cornerstone factors to generate masks for all layers. Compared to one-mask-per-layer, the secure memory requirement is reduced from GB-level to tens of MB, hence avoiding the hundred-fold latency introduced by secure memory paging. Experimental results indicate that LoRO achieve a 0 . 94 × Model Stealing (MS) accuracy, while SOTA methods presents 3 . 37 × at least. The averaged inference latency of LoRO is only 1 . 49 × , compared to the 112 × of TEE-shielded inference. Moreover, LoRO results no accuracy loss, and requires no re-training and structure modification. LoRO can solve the concerns regarding model thefts on edge devices in an efficient and secure manner, facilitating the wide edge application of LLMs.

DOISemantic Scholar

Code Implementations(1)

D1aoBoomm/LoROCommunity25%

Code for implementing "LoRO: Real-Time on-Device Secure Inference for LLMs via TEE-Based Low Rank Obfuscation" (NeurIPS 2025)

154

Similar Papers

Cite this paper

@article{xiong2025loro,
  title  = {LoRO: Real-Time on-Device Secure Inference for LLMs via TEE-Based Low Rank Obfuscation},
  author = {Gao-Jian Xiong and Yu Sun and Jian-Hua Liu and Jian Cui and Jian-Wei Liu},
  year   = {2025},
  doi    = {10.52202/085713-0645},
  url    = {https://doi.org/10.52202/085713-0645},
  journal = {Neural Information Processing Systems}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/d74fa6604576fbd111704afbb14fa72d8848ab96.svg)](https://codeofpaper.com/paper/d74fa6604576fbd111704afbb14fa72d8848ab96)

Discussion