Amulet:面向设备模型保护的快速TEE防护推理
Amulet: Fast TEE-Shielded Inference for On-Device Model Protection
AI总结:
Amulet提出了一种快速TEE防护的设备端推理框架,通过混淆方法保护模型隐私,显著降低推理延迟并提升效率。
摘要:
在设备端进行机器学习(ML)引入了关于模型隐私的新安全问题。将有价值的训练好的ML模型存储在用户设备上,使其面临被对手提取的潜在风险。目前,设备端模型保护的主流解决方案是存储权重并在受信任执行环境(TEEs)中进行推理。然而,由于受限的受信任内存无法容纳整个模型,大多数现有方法采用分片策略,将模型分成多个部分,按顺序加载到TEEs中。这种频繁的受信与非受信世界之间的交互显著增加了推理延迟,有时甚至增加数个数量级。在本文中,我们提出了Amulet,一种用于ML模型保护的快速TEE防护设备端推理框架。Amulet集成了专门针对常见神经网络架构设计的一系列混淆方法。在TEEs中进行混淆后,整个转换后的模型可以安全地存储在非受信内存中,允许推理过程直接在非受信内存中执行,并利用GPU加速。对于每个推理请求,仅需两次最小开销的受信与非受信内存之间的交互即可处理输入样本并输出结果。我们还从信息论的角度提供了理论证明,表明混淆后的模型不会泄露原始权重的信息。我们使用从ResNet-18到GPT-2的各种模型架构对Amulet进行了全面评估。我们的方法的推理延迟仅为未保护模型的2.8-4.8倍,精度损失可忽略不计,相较于完全在TEEs中执行推理的基线方法,实现了8-9倍的速度提升,并且比最先进的基于混淆的方法快约2.2倍。
英文摘要:
On-device machine learning (ML) introduces new security concerns about model privacy. Storing valuable trained ML models on user devices exposes them to potential extraction by adversaries. The current mainstream solution for on-device model protection is storing the weights and conducting inference within Trusted Execution Environments (TEEs). However, due to limited trusted memory that cannot accommodate the whole model, most existing approaches employ a partitioning strategy, dividing a model into multiple slices that are loaded into the TEE sequentially. This frequent interaction between untrusted and trusted worlds dramatically increases inference latency, sometimes by orders of magnitude. In this paper, we propose Amulet, a fast TEE-shielded on-device inference framework for ML model protection. Amulet incorporates a suite of obfuscation methods specifically designed for common neural network architectures. After obfuscation by the TEE, the entire transformed model can be securely stored in untrusted memory, allowing the inference process to execute directly in untrusted memory with GPU acceleration. For each inference request, only two rounds of minimal-overhead interaction between untrusted and trusted memory are required to process input samples and output results. We also provide theoretical proof from an information-theoretic perspective that the obfuscated model does not leak information about the original weights. We comprehensively evaluated Amulet using diverse model architectures ranging from ResNet-18 to GPT-2. Our approach incurs inference latency only 2.8-4.8x that of unprotected models with negligible accuracy loss, achieving an 8-9x speedup over baseline methods that execute inference entirely within TEEs, and performing approximately 2.2x faster than the state-of-the-art obfuscation-based method.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。