arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.19979cs.CRcs.LGcs.SE
收藏

SecureInfer:面向大语言模型部署的隐私关键张量的异构TEE-GPU架构

SecureInfer: Heterogeneous TEE-GPU Architecture for Privacy-Critical Tensors for Large Language Model Deployment

Florida International University(佛罗里达国际大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Tushar Nayan, Ziqi Zhang, Ruimin Sun

AI总结:

SecureInfer提出异构TEE-GPU架构,将隐私关键组件置于SGX飞地,加密后卸载线性运算至GPU,实现LLM安全且高性能的端侧推理。

摘要:

随着大语言模型(LLMs)在移动和边缘平台上的部署日益增多,保护其免受模型提取攻击已成为一个紧迫的问题。然而,在不牺牲不可信AI加速器(如GPU)性能优势的前提下保护模型隐私,是一个具有挑战性的权衡。在本文中,我们率先研究LLMs上的高性能执行,并提出了SecureInfer,一个利用异构可信执行环境(TEEs)-GPU架构的混合框架,用于隔离隐私关键组件,同时将计算密集型操作卸载到不可信的加速器上。基于外包方案,SecureInfer采用了一种信息论和威胁感知的划分策略:安全敏感组件,包括非线性层、注意力头投影、前馈神经网络(FNN)变换和LoRA适配器,在SGX飞地内执行,而其他线性操作(矩阵乘法)在加密后在GPU上执行,并在飞地内安全恢复。我们使用LLaMA-2模型实现了SecureInfer的原型,并在性能和安全性指标上进行了评估。我们的结果表明,SecureInfer在合理的性能下提供了强大的安全保证,为安全的设备端模型推理提供了一种实用的解决方案。

英文摘要:

With the increasing deployment of Large Language Models (LLMs) on mobile and edge platforms, securing them against model extraction attacks has become a pressing concern. However, protecting model privacy without sacrificing the performance benefits of untrusted AI accelerators, such as GPUs, presents a challenging trade-off. In this paper, we initiate the study of high-performance execution on LLMs and present SecureInfer, a hybrid framework that leverages a heterogeneous Trusted Execution Environments (TEEs)-GPU architecture to isolate privacy-critical components while offloading compute-intensive operations to untrusted accelerators. Building upon an outsourcing scheme, SecureInfer adopts an information-theoretic and threat-informed partitioning strategy: security-sensitive components, including non-linear layers, projection of attention head, FNN transformations, and LoRA adapters, are executed inside an SGX enclave, while other linear operations (matrix multiplication) are performed on the GPU after encryption and are securely restored within the enclave. We implement a prototype of SecureInfer using the LLaMA-2 model and evaluate it across performance and security metrics. Our results show that SecureInfer offers strong security guarantees with reasonable performance, offering a practical solution for secure on-device model inference.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑