Secure MLaaS with Temper: Trusted and Efficient Model Partitioning and Enclave Reuse
Open Access
- 4 December 2023
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 621-635
Abstract
Machine Learning as a Service (MLaaS) is becoming a highly available and cost-efficient way to embrace machine learning techniques in various domains. But it suffers from data privacy risks as user data must be uploaded to untrusted clouds. We propose a trusted and efficient MLaaS system, Temper, based on secure hardware enclaves such as Intel SGX. Temper significantly improves the performance without sacrificing the data security guarantees or the model inference accuracy. With the two key techniques of enclave reuse and model partitioning, it reduces the enclave initialization and model loading costs, and alleviates the secure paging overheads due to the limited hardware-protected memory capacity in SGX. We also provide rigorous security guarantees for enclave sharing and batched processing, by ensuring stateless, non-interference, and data-oblivious processing and data transfers across model partitions. Temper achieves on average 2.2 × and 1.8 × improvements over the state-of-the-art designs for latency and throughput, respectively, and within 2.1 × slowdown of untrusted native execution. Its distributed paradigm provides a more scalable way for future MLaaS with large models.Keywords
Funding Information
- National Natural Science Foundation of China (62072262)
This publication has 25 references indexed in Scilit:
- SEVered2018
- Oblivious Neural Network Predictions via MiniONN Transformations2017
- Regaining Lost Cycles with HotCalls2017
- A uror2016
- Preventing Page Faults from Telling Your Secrets2016
- Acoustic CryptanalysisJournal of Cryptology, 2016
- Large-scale cluster management at Google with Borg2015
- Quasar2014
- Using innovative instructions to create trustworthy software solutions2013
- Attack Surfaces: A Taxonomy for Attacks on Cloud Services2010