AIセキュリティポータル K Program
Neural Networks with (Low-Precision) Polynomial Approximations: New Insights and Techniques for Accuracy Improvement
Share
Abstract
Replacing non-polynomial functions (e.g., non-linear activation functions such as ReLU) in a neural network with their polynomial approximations is a standard practice in privacy-preserving machine learning. The resulting neural network, called polynomial approximation of neural network (PANN) in this paper, is compatible with advanced cryptosystems to enable privacy-preserving model inference. Using ``highly precise'' approximation, state-of-the-art PANN offers similar inference accuracy as the underlying backbone model. However, little is known about the effect of approximation, and existing literature often determined the required approximation precision empirically. In this paper, we initiate the investigation of PANN as a standalone object. Specifically, our contribution is two-fold. Firstly, we provide an explanation on the effect of approximate error in PANN. In particular, we discovered that (1) PANN is susceptible to some type of perturbations; and (2) weight regularisation significantly reduces PANN's accuracy. We support our explanation with experiments. Secondly, based on the insights from our investigations, we propose solutions to increase inference accuracy for PANN. Experiments showed that combination of our solutions is very effective: at the same precision, our PANN is 10% to 50% more accurate than state-of-the-arts; and at the same accuracy, our PANN only requires a precision of 2^{-9} while state-of-the-art solution requires a precision of 2^{-12} using the ResNet-20 model on CIFAR-10 dataset.
Delphi: A cryptographic inference system for neural networks
Pratyush Mishra, Ryan Lehmkuhl, Akshayaram Srinivasan, Wenting Zheng, Raluca Ada Popa
Published: 2020
AutoReP: Automatic ReLU Replacement for Fast Private Network Inference
Hongwu Peng, Shaoyi Huang, Tong Zhou, Yukui Luo, Chenghong Wang, Zigeng Wang, Jiahui Zhao, Xi Xie, Ang Li, Tony Geng, Kaleel Mahmood, Wujie Wen, Xiaolin Xu, Caiwen Ding
Published: 2023.8.20
Training large scale polynomial cnns for e2e inference over homomorphic encryption
M. Baruch, N. Drucker, G. Ezov, Y. Goldberg, E. Kushnir, J. Lerner, O. Soceanu, I. Zimerman
Published: 2023
Cryptonets: Applying neural networks to encrypted data with high throughput and accuracy
Ran Gilad-Bachrach, Nathan Dowlin, Kim Laine, Kristin Lauter, Michael Naehrig, John Wensing
Published: 2016
Low-complexity deep convolutional neural networks on fully homomorphic encryption using multiplexed parallel convolutions
E. Lee, J.-W. Lee, J. Lee, Y.-S. Kim, Y. Kim, J.-S. No, W. Choi
Published: 2022
Precise approximation of convolutional neural networks for homomorphically encrypted data
J. Lee, E. Lee, J.-W. Lee, Y. Kim, Y.-S. Kim, J.-S. No
Published: 2021
Towards the alexnet moment for homomorphic encryption: Hcnn, the first homomorphic cnn on encrypted data with gpus
Ahmad Al Badawi, Chao Jin, Jie Lin, Chan Fook Mun, Sim Jun Jie, Benjamin Hong Meng Tan, Xiao Nan, Khin Mi Mi Aung, Vijay Ramaseshan Chandrasekhar
Published: 2020
ngraph-he: a graph compiler for deep learning on homomorphically encrypted data
Fabian Boemer, Yixing Lao, Rosario Cammarota, Casimir Wierzynski
Published: 2019
Optimization of homomorphic comparison algorithm on rns-ckks scheme
E. Lee, J.-W. Lee, Y.-S. Kim, J.-S. No
Published: 2022
High-precision bootstrapping of rns-ckks homomorphic encryption using optimal minimax polynomial approximation and inverse sine function
J.-W. Lee, E. Lee, Y. Lee, Y.-S. Kim, J.-S. No
Published: 2021
Autofhe: Automated adaption of cnns for efficient evaluation over fhe
W. Ao, V. N. Boddeti
Published: 2024
On the overlooked pitfalls of weight decay and how to mitigate them: A gradient-norm perspective
Z. Xie, Z. Xu, J. Zhang, I. Sato, M. Sugiyama
Published: 2024
CryptoDL: Deep Neural Networks over Encrypted Data
Ehsan Hesamifard, Hassan Takabi, Mehdi Ghasemi
Published: 2017.11.15
Privacy-Preserving Machine Learning with Fully Homomorphic Encryption for Deep Neural Network
Joon-Woo Lee, HyungChul Kang, Yongwoo Lee, Woosuk Choi, Jieun Eom, Maxim Deryabin, Eunsang Lee, Junghyun Lee, Donghoon Yoo, Young-Sik Kim, Jong-Seon No
Published: 2021.6.14
Minimax approximation of sign function by composite polynomial for homomorphic comparison
E. Lee, J.-W. Lee, J.-S. No, Y.-S. Kim
Published: 2021
Selective network linearization for efficient private inference
Cho, M., Joshi, A., Reagen, B., Garg, S., Hegde, C.
Published: 2022
Bicoptor: Two-round Secure Three-party Non-linear Computation without Preprocessing for Privacy-preserving Machine Learning
Lijing Zhou, Ziyu Wang, Hongrui Cui, Qingrui Song, Yu Yu
Published: 2022.10.5
Bicoptor 2.0: Addressing Challenges in Probabilistic Truncation for Enhanced Privacy-Preserving Machine Learning
Lijing Zhou, Qingrui Song, Su Zhang, Ziyu Wang, Xianggui Wang, Yong Li
Published: 2023.9.10
Calibrating noise to sensitivity in private data analysis
Cynthia Dwork, Frank McSherry, Kobbi Nissim, Adam Smith
Published: 2006
Local privacy and statistical minimax rates
J. C. Duchi, M. I. Jordan, M. J. Wainwright
Published: 2013
Renyi differential privacy
I. Mironov
Published: 2017
Deep learning with differential privacy
M. Abadi, A. Chu, I. Goodfellow, H. B. McMahan, I. Mironov, K. Talwar, L. Zhang
Published: 2016
Dpforward: Fine-tuning and inference on language models with differential privacy in forward pass
Minxin Du, Xiang Yue, Sherman SM Chow, Tianhao Wang, Chenyu Huang, Huan Sun
Published: 2023
PrivateFL: accurate, differentially private federated learning via personalized data transformation
Yuchen Yang, Bo Hui, Haolin Yuan, Neil Zhenqiang Gong, Yinzhi Cao
Published: 2023
Three mechanisms of weight decay regularization
G. Zhang, C. Wang, B. Xu, R. Grosse
Published: 2018
Exact solutions of a deep linear network
L. Ziyin, B. Li, X. Meng
Published: 2022
mixup: Beyond empirical risk minimization
Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, David Lopez-Paz
Published: 2018
Deep residual learning for image recognition
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
Published: 2016
Deep layer aggregation
F. Yu, D. Wang, E. Shelhamer, T. Darrell
Published: 2018
Mobilenetv2: Inverted residuals and linear bottlenecks
M. Sandler, A. Howard, M. Zhu, A. Zhmoginov, L.-C. Chen
Published: 2018
Learning multiple layers of features from tiny images
Alex Krizhevsky, Geoffrey Hinton
Published: 2009
Tiny imagenet visual recognition challenge
Y. Le, X. Yang
Published: 2015
Deepreduce: Relu reduction for fast private inference
N. K. Jha, Z. Ghodsi, S. Garg, B. Reagen
Published: 2021
Overfitting in adversarially robust deep learning
L. Rice, E. Wong, Z. Kolter
Published: 2020
A unified analysis of stochastic momentum methods for deep learning
Y. Yan, T. Yang, Z. Li, Q. Lin, Y. Yang
Published: 2018
Share