Skip to main content
QUICK REVIEW

[Paper Review] Confidential Inference via Ternary Model Partitioning

Zhongshu Gu, Heqing Huang|arXiv (Cornell University)|Jul 3, 2018
Adversarial Robustness in Machine LearningComputer Science40 references17 citations
TL;DR

This paper proposes Ternary Model Partitioning, a method that splits deep learning inference workloads into three secure components—trusted enclave, untrusted cloud, and client-side processing—using Intel SGX to protect input confidentiality. By analyzing information leakage in image classifiers and partitioning models vertically by layer, the system enables secure, high-performance inference with minimal performance overhead and strong privacy guarantees.

ABSTRACT

Today's cloud vendors are competing to provide various offerings to simplify and accelerate AI service deployment. However, cloud users always have concerns about the confidentiality of their runtime data, which are supposed to be processed on third-party's compute infrastructures. Information disclosure of user-supplied data may jeopardize users' privacy and breach increasingly stringent data protection regulations. In this paper, we systematically investigate the life cycles of inference inputs in deep learning image classification pipelines and understand how the information could be leaked. Based on the discovered insights, we develop a Ternary Model Partitioning mechanism and bring trusted execution environments to mitigate the identified information leakages. Our research prototype consists of two co-operative components: (1) Model Assessment Framework, a local model evaluation and partitioning tool that assists cloud users in deployment preparation; (2) Infenclave, an enclave-based model serving system for online confidential inference in the cloud. We have conducted comprehensive security and performance evaluation on three representative ImageNet-level deep learning models with different network depths and architectural complexity. Our results demonstrate the feasibility of launching confidential inference services in the cloud with maximized confidentiality guarantees and low performance costs.

Motivation & Objective

  • To address the risk of input data leakage in cloud-based deep learning inference, especially when running on untrusted third-party infrastructure.
  • To overcome the limitations of SGX, such as memory caps and performance constraints, by intelligently partitioning deep neural networks across trusted and untrusted components.
  • To minimize information leakage surfaces by analyzing the life cycle of inference inputs and identifying sensitive layers prone to reconstruction attacks.
  • To design a practical, deployable system that enables confidential AI inference with strong privacy guarantees and low performance cost.
  • To simplify client-side computation by offloading heavy inference to the cloud while preserving data confidentiality through hardware-based trusted execution environments.

Proposed method

  • The Ternary Model Partitioning mechanism divides deep neural networks into three components: a trusted enclave for sensitive layers, untrusted cloud for non-sensitive layers, and client-side for input preprocessing or final output handling.
  • The Model Assessment Framework performs offline, information-theoretic analysis of each layer to quantify potential information leakage and determine optimal partitioning points.
  • Infenclave, the cloud-side serving system, leverages Intel SGX to execute protected inference on encrypted inputs and model parameters within isolated, memory-encrypted enclaves.
  • Authenticated encryption is enforced to validate data sources and prevent tampering, ensuring end-to-end confidentiality.
  • The system uses vertical, layer-wise partitioning based on the hierarchical structure of deep networks, avoiding functional dependencies between components.
  • Non-sensitive computation is delegated to external hardware accelerators outside the enclave to improve performance, while sensitive operations remain within the trusted execution environment.

Experimental results

Research questions

  • RQ1How do input data leak through intermediate activations in deep learning inference pipelines when processed on untrusted cloud infrastructure?
  • RQ2What are the critical layers in a deep neural network that expose sensitive information through model interpretation or input reconstruction techniques?
  • RQ3How can deep learning models be partitioned across trusted and untrusted components to minimize information leakage while maintaining performance?
  • RQ4Can a hybrid model partitioning strategy combining SGX enclaves and offloaded computation achieve both strong confidentiality and acceptable inference latency?
  • RQ5What is the optimal trade-off between security, performance, and system complexity in deploying confidential AI services in the public cloud?

Key findings

  • The Ternary Model Partitioning mechanism successfully reduces information leakage surfaces by isolating sensitive layers within Intel SGX enclaves, preventing reconstruction attacks based on activation patterns.
  • The Model Assessment Framework enables automated, information-theoretic evaluation of layer-wise leakage, allowing users to make informed partitioning decisions before deployment.
  • Infenclave achieves low performance overhead by delegating non-sensitive computation to external accelerators while keeping only critical components within the enclave.
  • Evaluation on three ImageNet-level models shows that the system maintains high accuracy and low latency, with performance costs remaining within acceptable bounds for production use.
  • The approach effectively defends against both input reconstruction and attribution inference attacks, as demonstrated through comprehensive security analysis.
  • The system demonstrates feasibility and practicality for real-world deployment of confidential AI services in public cloud environments.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.