ShadowNet: A Secure and Efficient On-device Model Inference System for Convolutional Neural Networks Conference

Sun, Z, Sun, R, Liu, C et al. (2023). ShadowNet: A Secure and Efficient On-device Model Inference System for Convolutional Neural Networks . 2023-May 1596-1612. 10.1109/SP46215.2023.10179382

cited authors

  • Sun, Z; Sun, R; Liu, C; Chowdhury, AR; Lu, L; Jha, S

authors

abstract

  • With the increased usage of AI accelerators on mobile and edge devices, on-device machine learning (ML) is gaining popularity. Thousands of proprietary ML models are being deployed today on billions of untrusted devices. This raises serious security concerns about model privacy. However, protecting model privacy without losing access to the untrusted AI accelerators is a challenging problem. In this paper, we present a novel on-device model inference system, ShadowNet. ShadowNet protects the model privacy with Trusted Execution Environment (TEE) while securely outsourcing the heavy linear layers of the model to the untrusted hardware accelerators. ShadowNet achieves this by transforming the weights of the linear layers before outsourcing them and restoring the results inside the TEE. The non-linear layers are also kept secure inside the TEE. ShadowNet's design ensures efficient transformation of the weights and the subsequent restoration of the results. We build a ShadowNet prototype based on TensorFlow Lite and evaluate it on five popular CNNs, namely, MobileNet, ResNet-44, MiniVGG, ResNet-404, and YOLOv4-tiny. Our evaluation shows that ShadowNet achieves strong security guarantees with reasonable performance, offering a practical solution for secure on-device model inference.

publication date

  • January 1, 2023

Digital Object Identifier (DOI)

International Standard Book Number (ISBN) 13

start page

  • 1596

end page

  • 1612

volume

  • 2023-May