AdaPI: Facilitating DNN Model Adaptivity for Efficient Private Inference in Edge Computing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Zhou, Tong, Zhao, Jiahui, Luo, Yukui, Xie, Xi, Wen, Wujie, Ding, Caiwen, Xu, Xiaolin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911948361170944
author Zhou, Tong
Zhao, Jiahui
Luo, Yukui
Xie, Xi
Wen, Wujie
Ding, Caiwen
Xu, Xiaolin
author_facet Zhou, Tong
Zhao, Jiahui
Luo, Yukui
Xie, Xi
Wen, Wujie
Ding, Caiwen
Xu, Xiaolin
contents Private inference (PI) has emerged as a promising solution to execute computations on encrypted data, safeguarding user privacy and model parameters in edge computing. However, existing PI methods are predominantly developed considering constant resource constraints, overlooking the varied and dynamic resource constraints in diverse edge devices, like energy budgets. Consequently, model providers have to design specialized models for different devices, where all of them have to be stored on the edge server, resulting in inefficient deployment. To fill this gap, this work presents AdaPI, a novel approach that achieves adaptive PI by allowing a model to perform well across edge devices with diverse energy budgets. AdaPI employs a PI-aware training strategy that optimizes the model weights alongside weight-level and feature-level soft masks. These soft masks are subsequently transformed into multiple binary masks to enable adjustments in communication and computation workloads. Through sequentially training the model with increasingly dense binary masks, AdaPI attains optimal accuracy for each energy budget, which outperforms the state-of-the-art PI methods by 7.3\% in terms of test accuracy on CIFAR-100. The code of AdaPI can be accessed via https://github.com/jiahuiiiiii/AdaPI.
format Preprint
id arxiv_https___arxiv_org_abs_2407_05633
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle AdaPI: Facilitating DNN Model Adaptivity for Efficient Private Inference in Edge Computing
Zhou, Tong
Zhao, Jiahui
Luo, Yukui
Xie, Xi
Wen, Wujie
Ding, Caiwen
Xu, Xiaolin
Machine Learning
Cryptography and Security
Private inference (PI) has emerged as a promising solution to execute computations on encrypted data, safeguarding user privacy and model parameters in edge computing. However, existing PI methods are predominantly developed considering constant resource constraints, overlooking the varied and dynamic resource constraints in diverse edge devices, like energy budgets. Consequently, model providers have to design specialized models for different devices, where all of them have to be stored on the edge server, resulting in inefficient deployment. To fill this gap, this work presents AdaPI, a novel approach that achieves adaptive PI by allowing a model to perform well across edge devices with diverse energy budgets. AdaPI employs a PI-aware training strategy that optimizes the model weights alongside weight-level and feature-level soft masks. These soft masks are subsequently transformed into multiple binary masks to enable adjustments in communication and computation workloads. Through sequentially training the model with increasingly dense binary masks, AdaPI attains optimal accuracy for each energy budget, which outperforms the state-of-the-art PI methods by 7.3\% in terms of test accuracy on CIFAR-100. The code of AdaPI can be accessed via https://github.com/jiahuiiiiii/AdaPI.
title AdaPI: Facilitating DNN Model Adaptivity for Efficient Private Inference in Edge Computing
topic Machine Learning
Cryptography and Security
url https://arxiv.org/abs/2407.05633