Skip to main content
QUICK REVIEW

[Paper Review] Learning to Linearize Deep Neural Networks for Secure and Efficient Private Inference

Souvik Kundu, Shunlin Lu|arXiv (Cornell University)|Jan 23, 2023
Adversarial Robustness in Machine LearningComputer Science3 citations
TL;DR

This paper proposes SENet, a three-stage training method that automatically reduces ReLU operations in deep neural networks for secure and efficient private inference by leveraging layer-wise ReLU sensitivity. It enables up to 2× fewer ReLUs with similar or improved accuracy, significantly reducing latency and communication costs in privacy-preserving inference systems using homomorphic encryption or secret sharing.

ABSTRACT

The large number of ReLU non-linearity operations in existing deep neural networks makes them ill-suited for latency-efficient private inference (PI). Existing techniques to reduce ReLU operations often involve manual effort and sacrifice significant accuracy. In this paper, we first present a novel measure of non-linearity layers' ReLU sensitivity, enabling mitigation of the time-consuming manual efforts in identifying the same. Based on this sensitivity, we then present SENet, a three-stage training method that for a given ReLU budget, automatically assigns per-layer ReLU counts, decides the ReLU locations for each layer's activation map, and trains a model with significantly fewer ReLUs to potentially yield latency and communication efficient PI. Experimental evaluations with multiple models on various datasets show SENet's superior performance both in terms of reduced ReLUs and improved classification accuracy compared to existing alternatives. In particular, SENet can yield models that require up to ~2x fewer ReLUs while yielding similar accuracy. For a similar ReLU budget SENet can yield models with ~2.32% improved classification accuracy, evaluated on CIFAR-100.

Motivation & Objective

  • To address the high latency and communication cost of ReLU operations in private inference (PI) using cryptographic protocols like homomorphic encryption and secret sharing.
  • To automate the process of identifying and removing ReLU units without manual effort, which is time-consuming and error-prone in existing methods.
  • To minimize accuracy degradation when reducing ReLU operations, especially under strict ReLU budget constraints.
  • To enable efficient, multi-granularity ReLU allocation at the pixel and channel level, improving model efficiency for PI.
  • To extend the approach to SENet++, supporting multiple sub-models with varying compute budgets via a single training loop.

Proposed method

  • Introduces a novel ReLU sensitivity metric to quantify each layer's impact on model accuracy, enabling automated prioritization of ReLU units for removal.
  • Proposes a three-stage training process: (1) sensitivity-driven ReLU budget allocation per layer, (2) binary mask search to identify optimal ReLU locations in activation maps, and (3) knowledge distillation from an all-Relu (AR) teacher model to fine-tune the pruned ReLU (PR) model.
  • Supports fine-grained ReLU mask allocation at the pixel and channel level, allowing precise control over non-linearity distribution.
  • Extends SENet to SENet++ by training a single model with multiple channel dropout rates (dr), enabling generation of multiple sub-models with different MAC and ReLU budgets from one training run.
  • Uses a loss function combining knowledge distillation and ReLU regularization, with hyperparameters λ and β controlling the influence of the teacher model and sparsity penalty.
  • Employs ordered dropout to enable scalable, low-memory sub-model generation for dynamic inference workloads.

Experimental results

Research questions

  • RQ1Can ReLU sensitivity be quantitatively measured to guide automated, accuracy-preserving ReLU pruning in deep neural networks?
  • RQ2Can a three-stage training process eliminate manual ReLU removal while achieving better accuracy and ReLU reduction than existing methods?
  • RQ3To what extent can ReLU reduction be achieved without sacrificing model accuracy, especially under tight ReLU budget constraints?
  • RQ4Can a single training loop generate multiple efficient sub-models with varying compute and ReLU budgets via channel dropout?
  • RQ5How does the proposed method compare in latency and communication efficiency to existing private inference techniques under the same ReLU budget?

Key findings

  • SENet reduces the number of ReLU operations by up to 2.05× on CIFAR-10, 2.08× on CIFAR-100, and 1.88× on Tiny-ImageNet compared to full ReLU models, with similar accuracy.
  • For a similar ReLU budget, SENet improves classification accuracy by up to 2.32% on CIFAR-100 compared to existing methods.
  • SENet++ achieves up to 9.6× reduction in online ReLU operation latency on CIFAR-10 and up to 21× when combined with lower channel dropout rates.
  • The sensitivity-driven ReLU allocation improves accuracy by 5.76% compared to even ReLU distribution at the same budget, demonstrating the importance of intelligent pruning.
  • SENet++ generates multiple sub-models with different channel dropout rates (dr) from a single training loop, enabling dynamic deployment under varying compute constraints.
  • At dr = 1.0, SENet++ achieves identical accuracy to SENet, confirming no performance loss in the full model while enabling scalable sub-model generation.

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.