[Paper Review] Circa: Stochastic ReLUs for Private Deep Learning
Circa proposes stochastic ReLU approximations that reduce the computational cost of private inference (PI) by reformulating ReLU as a sign test and truncating inputs, leveraging neural network resilience to faults. This yields up to 4.7× storage and 3× runtime savings over baseline PI, with an additional 1.8× speedup when combined with state-of-the-art ReLU-minimizing techniques like DeepReDuce.
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.7x storage and 3x runtime over baseline implementations; we further show that Circa can be used on top of recent PI optimizations to obtain 1.8x additional speedup.
Motivation & Objective
- Address the high computational overhead of ReLU operations in private inference (PI), which dominates runtime in cryptographic protocols.
- Overcome the limitation of existing PI frameworks that optimize for FLOPs but not for the cost of non-linear operations like ReLU.
- Leverage the inherent fault tolerance of deep neural networks to introduce stochastic approximations in ReLU computation without sacrificing accuracy.
- Develop a method that reduces reliance on expensive garbled circuits (GCs) for ReLU evaluation by shifting computation to more efficient secret sharing (SS) and approximating the sign test.
- Demonstrate that combining Circa with existing ReLU-reduction techniques like DeepReDuce yields further performance gains, advancing practical deployment of PI.
Proposed method
- Reformulate ReLU as a sign test followed by a multiplication, moving the multiplication to secret sharing (SS) and leaving only the sign test in the garbled circuit (GC).
- Introduce a stochastic sign evaluation that approximates the sign test, introducing probabilistic faults with a probability proportional to input magnitude relative to the field prime.
- Apply input truncation to the sign test, reducing bit-width from 31 to 12 bits and introducing additional faults for small positive or negative values.
- Offer two configurable fault modes: NegPass (small negatives may be incorrectly passed) and PosZero (small positives are incorrectly set to zero), allowing users to trade-off accuracy and performance.
- Use the fact that deep networks tolerate stochastic faults—up to 10% fault rate—without accuracy loss, enabling aggressive optimization.
- Implement Circa as a modular extension on top of existing PI frameworks like Delphi, enabling orthogonal optimization with ReLU-minimizing architectures.
Experimental results
Research questions
- RQ1Can ReLU computation in private inference be significantly accelerated by approximating the sign test component using stochastic and truncated logic?
- RQ2To what extent can deep neural networks tolerate stochastic faults in ReLU operations without degrading inference accuracy?
- RQ3How do input truncation and stochastic sign evaluation affect the trade-off between computational cost and accuracy in private inference?
- RQ4Can Circa be combined with existing ReLU-reduction techniques to achieve multiplicative performance gains in private inference?
- RQ5What is the maximum performance improvement achievable in runtime and storage when replacing standard ReLU GCs with Circa-optimized variants?
Key findings
- Circa reduces garbled circuit (GC) size by up to 4.7× and improves PI runtime by up to 3× compared to baseline Delphi.
- The stochastic sign approximation introduces negligible accuracy loss, with networks tolerating over 10% fault rates.
- Truncating the sign test from 31 to 12 bits achieves a 4.7× GC size reduction and a 3× runtime speedup over the baseline ReLU GC.
- When combined with DeepReDuce, a state-of-the-art ReLU-minimizing framework, Circa provides an additional 1.8× speedup over the baseline.
- Circa enables inference on TinyImageNet in under 2 seconds, demonstrating feasibility for real-time private inference.
- The method is orthogonal to existing ReLU-reduction techniques, allowing cumulative performance gains when used together.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.