Lune

NeurIPS2021Top-tier venue

Circa: Stochastic ReLUs for Private Deep Learning

Zahra Ghodsi, Nandan Kumar Jha, Brandon Reagen, Siddharth Garg

Abstract

The simultaneous rise of machine learning as a service and concerns over user privacy have increasingly motivated the need for private inference (PI). While recent work demonstrates PI is possible using cryptographic primitives, the computational overheads render it impractical. The community is largely unprepared to address these overheads, as the source of slowdown in PI stems from the ReLU operator whereas optimizations for plaintext inference focus on optimizing FLOPs. In this paper we re-think the ReLU computation and propose optimizations for PI tailored to properties of neural networks. Specifically, we reformulate ReLU as an approximate sign test and introduce a novel truncation method for the sign test that significantly reduces the cost per ReLU. These optimizations result in a specific type of stochastic ReLU. The key observation is that the stochastic fault behavior is well suited for the fault-tolerant properties of neural network inference. Thus, we provide significant savings without impacting accuracy. We collectively call the optimizations Circa and demonstrate improvements of up to 4.7× storage and 3× runtime over baseline implementations; we further show that Circa can be used on top of recent PI optimizations to obtain 1.8× additional speedup.

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.

8 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Oblivious Neural Network Predictions via MiniONN Transformations cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Iron: Private Inference on Transformers cites DeepReDuce: ReLU Reduction for Fast Private Inference
  • Iron: Private Inference on Transformers cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • Iron: Private Inference on Transformers cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • XONN: XNOR-based Oblivious Deep Neural Network Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
  • XONN: XNOR-based Oblivious Deep Neural Network Inference cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • XONN: XNOR-based Oblivious Deep Neural Network Inference cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • DeepReDuce: ReLU Reduction for Fast Private Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
  • DeepReDuce: ReLU Reduction for Fast Private Inference cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • DeepReDuce: ReLU Reduction for Fast Private Inference cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax Approximation cites Iron: Private Inference on Transformers
  • SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax Approximation cites XONN: XNOR-based Oblivious Deep Neural Network Inference
  • SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax Approximation cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • SAL-ViT: Towards Latency Efficient Private Inference on ViT using Selective Attention Search with a Learnable Softmax Approximation cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
  • Characterizing and Optimizing End-to-End Systems for Private Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
  • Characterizing and Optimizing End-to-End Systems for Private Inference cites DeepReDuce: ReLU Reduction for Fast Private Inference
  • Characterizing and Optimizing End-to-End Systems for Private Inference cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE cites Oblivious Neural Network Predictions via MiniONN Transformations
  • AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE cites Iron: Private Inference on Transformers
  • AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE cites DeepReDuce: ReLU Reduction for Fast Private Inference
  • AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHE cites GAZELLE: A Low Latency Framework for Secure Neural Network Inference
  • GAZELLE: A Low Latency Framework for Secure Neural Network Inference cites Oblivious Neural Network Predictions via MiniONN Transformations
  • GAZELLE: A Low Latency Framework for Secure Neural Network Inference cites SecureML: A System for Scalable Privacy-Preserving Machine Learning
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers8

  1. Iron: Private Inference on TransformersMeng Hao, Hongwei Li, Hanxiao Chen, Pengzhi Xing et al.NeurIPS 2022 · 209 citations
  2. AutoFHE: Automated Adaption of CNNs for Efficient Evaluation over FHEWei Ao, Vishnu Naresh BoddetiUSENIX Security 2024 · 43 citations
  3. 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
  4. On the Gini-impurity Preservation For Privacy Random ForestsXinran Xie, Man-Jie Yuan, Xuetong Bai, Wei Gao et al.NeurIPS 2023 · 17 citations
  5. Characterizing and Optimizing End-to-End Systems for Private InferenceKarthik Garimella, Zahra Ghodsi, Nandan Kumar Jha, Siddharth Garg et al.ASPLOS 2023 · 15 citations

Builds on8

  1. SecureML: A System for Scalable Privacy-Preserving Machine LearningPayman Mohassel, Yupeng ZhangS&P 2017 · 2,107 citations
  2. GAZELLE: A Low Latency Framework for Secure Neural Network InferenceChiraag Juvekar, Vinod Vaikuntanathan, Anantha P. ChandrakasanUSENIX Security 2018 · 1,075 citations
  3. Oblivious Neural Network Predictions via MiniONN TransformationsJian Liu, Mika Juuti, Yao Lu, N. AsokanCCS 2017 · 800 citations
  4. XONN: XNOR-based Oblivious Deep Neural Network InferenceM. Sadegh Riazi, Mohammad Samragh, Hao Chen, Kim Laine et al.USENIX Security 2019 · 314 citations
  5. DeepReDuce: ReLU Reduction for Fast Private InferenceNandan Kumar Jha, Zahra Ghodsi, Siddharth Garg, Brandon ReagenICML 2021 · 108 citations

Related papers

  1. Selective Network Linearization for Efficient Private InferenceMinsu Cho, Ameya Joshi, Brandon Reagen, Siddharth Garg et al.ICML 2022 · 55 citations
  2. ReLUPruner: Rethinking ReLU Importance with Taylor Expansion for Efficient Private InferenceZhenpeng Li, Jinshuo Liu, Xinyan Wang, Lina Wang et al.AAAI 2026
  3. AutoReP: Automatic ReLU Replacement for Fast Private Network InferenceHongwu Peng, Shaoyi Huang, Tong Zhou, Yukui Luo et al.ICCV 2023 · 44 citations
  4. CryptoNAS: Private Inference on a ReLU BudgetZahra Ghodsi, Akshaj Kumar Veldanda, Brandon Reagen, Siddharth GargNeurIPS 2020 · 103 citations
  5. Disparate Impact on Group Accuracy of Linearization for Private InferenceSaswat Das, Marco Romanelli, Ferdinando FiorettoICML 2024 · 4 citations
Dusk over the sea between two cliffs drawn in fine vertical lines