Hafizul Islam Chowdhuryy

DeepIvy: Toward Accelerator-Speed Secure Model Inference via CPU-Side TEEs

Modern deep neural networks (DNNs) are prohibitively costly to build, making model intellectual property (IP) protection critical in computing systems. Trusted execution environments (TEEs) provide hardware-enforced data protection and are widely supported on CPUs, but comparable support remains limited on DNN accelerators, including GPUs. Existing TEE-based model-protection schemes improve inference performance by outsourcing computation from CPU TEEs to untrusted accelerators. However, their runtime and offline security-protocol overheads leave a substantial performance gap relative to native accelerator execution. This paper presents DeepIvy, an end-to-end system framework that protects model confidentiality while enabling efficient CPU-accelerator inference using CPU-side TEE support. DeepIvy employs privacy-aware model construction to train a unidirectional private adapter (UPA) attached to a frozen public model. The lightweight UPA is shielded inside the CPU enclave and receives features only from the public model executing on an untrusted accelerator. This design uniquely addresses key performance and security challenges of prior TEE-outsourcing techniques: (i) its unidirectional feature flow removes back-and-forth layer dependencies across devices, unleashing high CPU-GPU parallelism; and (ii) because transferred features originate only from the public model, DeepIvy eliminates input/output masking for TEE-resident layers and avoids costly offline mask computation and storage. DeepIvy further combines TEE-aware adapter search (TAS), which minimizes the UPA, with a system-level zero-copy technique that reduces tensor-copy overhead across enclave boundaries. We implement DeepIvy on an SGX2-based server and evaluate it on representative vision and NLP models. DeepIvy achieves TEE-GPU inference speedups of up to 22.2x and 9.8x over two state-of-the-art schemes while retaining up to 87.5% and 90.7% of native GPU-Only throughput for vision and NLP models, respectively. It provides strong hardware-backed model-weight protection and exhibits black-box-level robustness against query-based model-extraction attacks. Our work highlights the promise of accelerator-speed secure inference through model-architecture and system co-design.

Download paper here

Recommended citation: K. Cai, M. H. I. Chowdhuryy, W. Wen, and F. Yao, “DeepIvy: Toward Accelerator-Speed Secure Model Inference via CPU-Side TEEs,” in ACM SIGSAC Conference on Computer and Communications Security (CCS), 2026.