NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

SeSeMI: Secure Serverless Model Inference on Sensitive Data

Guoyu Hu, Yuncheng Wu, Gang Chen, Tien Tuan Anh Dinh, Beng Chin Ooi

TL;DR

This paper introduces SeSeMI, a novel system for secure serverless model inference on sensitive data. SeSeMI leverages trusted hardware (Intel SGX) to protect machine learning models and user data from untrusted cloud providers, achieving low latency and cost-effectiveness without modifying existing serverless infrastructure.

What Problem Does This Paper Address?

Machine learning (ML) models are increasingly used in cloud-based data analytics pipelines. However, existing cloud solutions for model inference face two major limitations: they are costly due to over-provisioning and slow scaling, and they lack robust privacy and access control. This means sensitive data and proprietary models are exposed to the cloud provider. Serverless computing offers a promising alternative with its elasticity and fine-grained pricing, but integrating it with trusted hardware for security introduces challenges related to direct communication, performance overhead, and handling infrequent workloads. SeSeMI aims to bridge this gap by providing a secure, efficient, and cost-effective serverless model inference system.

Methods

SeSeMI introduces three key components that work non-intrusively with existing serverless platforms:

  • KeyService: Acts as a secure bridge between users and serverless instances. It establishes secure channels, manages decryption keys, and enforces access control policies, ensuring only authorized enclaves can access models and data.
  • SeMIRT (Secure Serverless Model Inference Runtime): A specialized enclave runtime designed for serverless environments. It reuses enclave memory and state across multiple requests for the same model, enabling concurrent request execution and amortizing initialization costs.
  • FnPacker: A model management component that groups requests and routes them to suitable serverless endpoints. It optimizes resource sharing for infrequently accessed models and dedicates resources for high-demand models, improving efficiency and reducing cold starts.

These components leverage Intel SGX to create trusted execution environments (TEEs) called enclaves, which protect data and computation from the cloud provider.

Datasets

Not discussed in the paper. The paper focuses on evaluating SeSeMI using three representative machine learning models (MobileNet v1, ResNet101 v2, and DenseNet121) with two inference frameworks (TFLM and TVM).

Key Insights and Ideas

  • Serverless + Trusted Hardware is a Powerful Combination: The paper demonstrates that by combining the elasticity of serverless computing with the security guarantees of trusted hardware (Intel SGX), it's possible to build a highly secure and cost-effective model inference system.
  • Non-Intrusiveness is Key for Adoption: SeSeMI's design philosophy of not requiring changes to the underlying serverless infrastructure (like Apache OpenWhisk) is crucial for practical adoption by cloud providers and model owners.
  • Amortizing TEE Overhead is Essential: The performance overhead of setting up and running enclaves is significant. SeMIRT's ability to reuse enclave states and handle concurrent requests effectively amortizes these costs, leading to substantial performance gains.
  • Workload Characteristics Dictate Optimization: FnPacker's adaptive scheduling highlights how understanding and catering to different workload patterns (frequent vs. infrequent access) is vital for optimizing cost and performance in serverless environments.

Key Results

SeSeMI demonstrates significant improvements over baseline approaches:

  • Performance: Hot invocations in SeSeMI can achieve up to a 21x speedup over cold invocations for models like MBNET with TVM. SeSeMI also significantly reduces average latency, with an 81% improvement over the Iso-reuse baseline for DSNET under a mixed workload.
  • Cost-Effectiveness: SeMIRT's concurrent request handling leads to substantial memory savings, up to 86.2% for RSNET under TFLM with 8 threads. FnPacker reduces the cost of serving infrequent queries by intelligently managing serverless endpoints.
  • Security: SeSeMI protects model confidentiality and user request privacy by encrypting data and ensuring only authorized enclaves can decrypt it. Access control is enforced at the KeyService.

Limitations and Future Work

  • Side-Channel Attacks: The paper acknowledges that side-channel attacks are out of scope, a common assumption in TEE research. However, it notes that Intel routinely releases updates to mitigate such vulnerabilities and suggests that model-centric optimizations can help.
  • Model-Centric Attacks: Attacks like data reconstruction and model extraction are also out of scope. The authors suggest that restricting model access and using differential privacy techniques during training can mitigate these.
  • SGX Limitations: The paper mentions that SGX1's limited Enclave Page Cache (EPC) can be a bottleneck, while SGX2's larger EPC shifts the bottleneck towards CPU performance.
  • Future Work: The authors suggest integrating their techniques with other serverless platforms and exploring further optimizations for SGX2. They also mention the possibility of deploying multiple KeyServices for enhanced isolation.

Summary updated

BibTeX
@inproceedings{hu2025sesemi,
  author = {Guoyu Hu and Yuncheng Wu and Gang Chen and Tien Tuan Anh Dinh and Beng Chin Ooi},
  title = {{SeSeMI: Secure Serverless Model Inference on Sensitive Data}},
  booktitle = {ICDE},
  year = {2025},
  doi = {10.1109/icde65448.2025.00167},
}
Figure