arXiv:2606.23370cs.CRcs.LG2026-06被引 1

让手机端大模型推理又快又安全,突破硬件隔离的性能瓶颈

FlexServe: A Fast and Secure LLM Serving System for Mobile Devices with Flexible Resource Isolation

  • 分离资源访问与管理权限,让普通系统能控制安全资源却不越界
  • 实测推理首字延迟速度提升10.05倍,远超传统信任区方案
  • 适合需要隐私保护的移动端AI应用开发者或研究者

设备端大型语言模型(LLMs)发展迅速,相比云端方案具备更强隐私性与可用性。推理过程中,模型权重和用户数据均具价值,攻击者可能通过入侵操作系统内核窃取信息。ARM TrustZone是移动设备上主流的硬件级隔离技术,用于保护敏感应用免受被攻破的系统影响。然而,利用TrustZone保护LLM推理会带来显著开销,源于两个挑战:资源隔离不灵活、安全资源管理效率低。本文提出FlexServe,一种面向移动设备的快速且安全的LLM推理系统。核心思想是将安全资源的访问权限与管理权限解耦,使正常世界操作系统无法访问这些资源,但仍可像以往一样进行管理。首先,FlexServe引入可召回资源隔离机制,构建可召回的安全内存(Flex-Mem)与可召回的安全NPU(Flex-NPU),仅限安全世界访问,但可由普通世界操作系统高效分配与回收。基于此,进一步提出FlexServe框架,在安全世界中运行安全推理,并与普通世界操作系统协同完成安全内存管理。我们实现了一个原型系统,与两种基于TrustZone的基准设计对比,结果表明,FlexServe在平均TTFT(首令牌时间)上相较基线提升10.05倍,相较优化后基线提升2.44倍。

原文摘要 · Abstract (English)

Device-side Large Language Models (LLMs) have grown explosively, offering stronger privacy and higher availability than their cloud-side counterparts. During LLM inference, both the model weights and the user data are valuable, and attackers may compromise the OS kernel to steal them. ARM TrustZone is the de facto hardware-based isolation technology on mobile devices, used to protect sensitive applications from a compromised OS. However, protecting LLM inference with TrustZone incurs significant overhead to both the secure inference and the normal aplications, due to two challenges: the inflexible resource isolation and the inefficient secure resource management. To address these challenges, this paper presents FlexServe, a fast and secure LLM inference system for mobile devices. The key idea is to decouple the access permission from the management permission of secure resources, so that the normal-world OS cannot access them but can still manage them as usual. First, FlexServe introduces a Recallable Resource Isolation mechanism to construct Recallable Secure Memory (Flex-Mem) and a Recallable Secure NPU (Flex-NPU). They can only be accessed by the secure world, but can be efficiently allocated and reclaimed by the normal-world OS. Based on them, FlexServe further introduces a FlexServe Framework to run secure LLM inference in the secure world. It works together with the normal-world OS to perform cooperative secure memory management. We implement a prototype of FlexServe and compare it with two TrustZone-based strawman designs. The results show that FlexServe achieves average TTFT speedups of 10.05X over the strawman and 2.44X over an optimized strawman.

大模型推理安全隔离移动端AI

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。