Selective Network Linearization for Efficient Private Inference
Minsu Cho, Ameya Joshi, Brandon Reagen, Siddharth Garg, Chinmay Hegde
Abstract
Private inference (PI) enables inference directly on cryptographically secure data.While promising to address many privacy issues, it has seen limited use due to extreme runtimes. Unlike plaintext inference, where latency is dominated by FLOPs, in PI non-linear functions (namely ReLU) are the bottleneck. Thus, practical PI demands novel ReLU-aware optimizations. To reduce PI latency we propose a gradient-based algorithm that selectively linearizes ReLUs while maintaining prediction accuracy. We evaluate our algorithm on several standard PI benchmarks. The results demonstrate up to more accuracy (iso-ReLU count at 50K) or less latency (iso-accuracy at 70%) than the current state of the art and advance the Pareto frontier across the latency-accuracy space. To complement empirical results, we present a"no free lunch"theorem that sheds light on how and when network linearization is possible while maintaining prediction accuracy. Public code is available at https://github.com/NYU-DICE-Lab/selective_network_linearization.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
17 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- AutoReP: Automatic ReLU Replacement for Fast Private Network Inference cites DeepReDuce: ReLU Reduction for Fast Private Inference
- AutoReP: Automatic ReLU Replacement for Fast Private Network Inference cites CryptoNAS: Private Inference on a ReLU Budget
- AutoReP: Automatic ReLU Replacement for Fast Private Network Inference cites SAFENet: A Secure, Accurate and Fast Neural Network Inference
- CrypTFlow2: Practical 2-Party Secure Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
- LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference cites AutoReP: Automatic ReLU Replacement for Fast Private Network Inference
- LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference cites DeepReDuce: ReLU Reduction for Fast Private Inference
- LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference cites CryptoNAS: Private Inference on a ReLU Budget
- LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted Inference cites SAFENet: A Secure, Accurate and Fast Neural Network Inference
- DeepReDuce: ReLU Reduction for Fast Private Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
- DeepReDuce: ReLU Reduction for Fast Private Inference cites CryptoNAS: Private Inference on a ReLU Budget
- DeepReDuce: ReLU Reduction for Fast Private Inference cites SAFENet: A Secure, Accurate and Fast Neural Network Inference
- PrivCirNet: Efficient Private Inference via Block Circulant Transformation cites AutoReP: Automatic ReLU Replacement for Fast Private Network Inference
- PrivCirNet: Efficient Private Inference via Block Circulant Transformation cites CrypTFlow2: Practical 2-Party Secure Inference
- PrivCirNet: Efficient Private Inference via Block Circulant Transformation cites Oblivious Neural Network Predictions via MiniONN Transformations
- PrivCirNet: Efficient Private Inference via Block Circulant Transformation cites DeepReDuce: ReLU Reduction for Fast Private Inference
- SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax Approximation cites MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention cites CrypTFlow2: Practical 2-Party Secure Inference
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention cites DeepReDuce: ReLU Reduction for Fast Private Inference
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention cites CryptoNAS: Private Inference on a ReLU Budget
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous Attention cites SAFENet: A Secure, Accurate and Fast Neural Network Inference
- CryptoNAS: Private Inference on a ReLU Budget cites Oblivious Neural Network Predictions via MiniONN Transformations
Cited by top-tier papers17
- LinGCN: Structural Linearized Graph Convolutional Network for Homomorphically Encrypted InferenceHongwu Peng, Ran Ran, Yukui Luo, Jiahui Zhao et al.NeurIPS 2023 · 57 citations
- AutoReP: Automatic ReLU Replacement for Fast Private Network InferenceHongwu Peng, Shaoyi Huang, Tong Zhou, Yukui Luo et al.ICCV 2023 · 44 citations
- MPCViT: Searching for Accurate and Efficient MPC-Friendly Vision Transformer with Heterogeneous AttentionWenxuan Zeng, Meng Li, Wenjie Xiong, Tong Tong et al.ICCV 2023 · 38 citations
- SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax ApproximationYuke Zhang, Dake Chen, Souvik Kundu, Chenghao Li et al.ICCV 2023 · 30 citations
- PrivCirNet: Efficient Private Inference via Block Circulant TransformationTianshi Xu, Lemeng Wu, Runsheng Wang, Meng LiNeurIPS 2024 · 21 citations
Builds on6
- Oblivious Neural Network Predictions via MiniONN TransformationsJian Liu, Mika Juuti, Yao Lu, N. AsokanCCS 2017 · 800 citations
- CrypTFlow2: Practical 2-Party Secure InferenceDeevashwer Rathee, Mayank Rathee, Nishant Kumar, Nishanth Chandran et al.CCS 2020 · 294 citations
- DeepReDuce: ReLU Reduction for Fast Private InferenceNandan Kumar Jha, Zahra Ghodsi, Siddharth Garg, Brandon ReagenICML 2021 · 108 citations
- CryptoNAS: Private Inference on a ReLU BudgetZahra Ghodsi, Akshaj Kumar Veldanda, Brandon Reagen, Siddharth GargNeurIPS 2020 · 103 citations
- SAFENet: A Secure, Accurate and Fast Neural Network InferenceQian Lou, Yilin Shen, Hongxia Jin, Lei JiangICLR 2021 · 65 citations
Related papers
- Circa: Stochastic ReLUs for Private Deep LearningZahra Ghodsi, Nandan Kumar Jha, Brandon Reagen, Siddharth GargNeurIPS 2021 · 41 citations
- Learning to Linearize Deep Neural Networks for Secure and Efficient Private InferenceSouvik Kundu, Shunlin Lu, Yuke Zhang, Jacqueline Tiffany Liu et al.ICLR 2023 · 3 citations
- Disparate Impact on Group Accuracy of Linearization for Private InferenceSaswat Das, Marco Romanelli, Ferdinando FiorettoICML 2024 · 4 citations
- ReLUPruner: Rethinking ReLU Importance with Taylor Expansion for Efficient Private InferenceZhenpeng Li, Jinshuo Liu, Xinyan Wang, Lina Wang et al.AAAI 2026
- Characterizing and Optimizing End-to-End Systems for Private InferenceKarthik Garimella, Zahra Ghodsi, Nandan Kumar Jha, Siddharth Garg et al.ASPLOS 2023 · 15 citations
