Skip to main content
QUICK REVIEW

[Paper Review] RRNet: Towards ReLU-Reduced Neural Network for Two-party Computation Based Private Inference

Hongwu Peng, Shanglin Zhou|arXiv (Cornell University)|Feb 5, 2023
Cryptography and Data SecurityComputer Science5 citations
TL;DR

RRNet proposes a differentiable neural architecture search framework that jointly optimizes deep neural network (DNN) architecture and FPGA-based cryptographic hardware scheduling to minimize ReLU operations in two-party computation (2PC)-based private inference. By integrating hardware latency into the DNN loss function and using a trainable straight-through polynomial activation initialization, RRNet achieves up to 26× speedup on ResNet-18 and 25× on ResNet-50 with minimal accuracy degradation, outperforming SOTA methods in ReLU reduction on CIFAR-10.

ABSTRACT

The proliferation of deep learning (DL) has led to the emergence of privacy and security concerns. To address these issues, secure Two-party computation (2PC) has been proposed as a means of enabling privacy-preserving DL computation. However, in practice, 2PC methods often incur high computation and communication overhead, which can impede their use in large-scale systems. To address this challenge, we introduce RRNet, a systematic framework that aims to jointly reduce the overhead of MPC comparison protocols and accelerate computation through hardware acceleration. Our approach integrates the hardware latency of cryptographic building blocks into the DNN loss function, resulting in improved energy efficiency, accuracy, and security guarantees. Furthermore, we propose a cryptographic hardware scheduler and corresponding performance model for Field Programmable Gate Arrays (FPGAs) to further enhance the efficiency of our framework. Experiments show RRNet achieved a much higher ReLU reduction performance than all SOTA works on CIFAR-10 dataset.

Motivation & Objective

  • To address the high computational and communication overhead of comparison protocols in 2PC-based private inference, particularly from ReLU operations.
  • To reduce ReLU count in DNNs without sacrificing model accuracy, especially in secure two-party computation settings.
  • To co-optimize DNN architecture and FPGA-based cryptographic hardware scheduling for improved energy efficiency and performance.
  • To automate the design space exploration of 2PC-based private inference by integrating cryptographic latency into neural architecture search.
  • To enable practical deployment of secure DNN inference on resource-constrained platforms via hardware-aware, differentiable NAS.

Proposed method

  • Introduces a trainable straight-through polynomial activation initialization (STPAI) to replace computationally expensive ReLU operations with polynomial approximations.
  • Develops a differentiable NAS framework that jointly optimizes DNN architecture and hardware scheduling by incorporating FPGA cryptographic operation latencies into the loss function.
  • Constructs a latency lookup table and cryptographic hardware scheduler for FPGAs to optimize scheduling of secret-shared operations and reduce end-to-end latency.
  • Uses a multi-objective loss function with a hyperparameter λ to balance accuracy and hardware latency during NAS training.
  • Employs a bilevel optimization process: inner loop updates network weights ω, outer loop updates architecture parameters α via 4 forward and 5 backward passes per α update.
  • Applies the final architecture by selecting the highest-activated operation per layer via argmax(α_l,k) to produce a deterministic, optimized model.

Experimental results

Research questions

  • RQ1Can a differentiable NAS framework effectively co-optimize DNN architecture and FPGA-based cryptographic hardware scheduling for 2PC-based private inference?
  • RQ2To what extent can ReLU operations be reduced in DNNs without significant accuracy degradation in 2PC settings?
  • RQ3How does integrating hardware latency into the NAS loss function improve energy efficiency and inference speed?
  • RQ4What is the trade-off between ReLU reduction, model accuracy, and inference latency in 2PC-based private inference on real FPGA platforms?
  • RQ5How does the proposed STPAI method compare to existing ReLU-reduction techniques in terms of accuracy and performance?

Key findings

  • RRNet achieved up to 26× speedup on ResNet-18 (from 324 ms to 12 ms) and 25× on ResNet-50 (from 922 ms to 37 ms) under 2PC settings with minimal accuracy loss.
  • On VGG-16, full polynomial replacement reduced latency by 20× (from 382 ms to 19 ms), though accuracy dropped by 3.2% from baseline 93.5%.
  • ResNet-18, -34, and -50 showed robustness to full polynomial replacement, with only 0.26% to 0.34% accuracy degradation despite 15–26× speedup.
  • MobileNetV2 achieved 15× speedup (from 1543 ms to 103 ms) with 1.27% accuracy drop under full polynomial replacement.
  • RRNet achieved a superior Pareto frontier in accuracy vs. ReLU count trade-off on CIFAR-10, outperforming SOTA methods like DeepReDuce, DELPHI, CryptoNAS, and SNI, especially at low ReLU counts.
  • The proposed hardware-aware NAS with latency-aware loss function successfully identified optimized DNN and hardware configurations, reducing end-to-end latency while maintaining high accuracy.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.