Skip to main content
QUICK REVIEW

[Paper Review] DeepReDuce: ReLU Reduction for Fast Private Inference

Nandan Kumar Jha, Zahra Ghodsi|arXiv (Cornell University)|Mar 2, 2021
Privacy-Preserving Technologies in DataComputer Science33 references20 citations
TL;DR

DeepReDuce proposes a novel ReLU dropping technique that selectively removes ReLU units from neural networks to drastically reduce private inference latency while preserving accuracy. By identifying and removing less critical ReLUs and combining it with knowledge distillation, DeepReDuce achieves a 3.5× reduction in ReLU count at iso-accuracy and up to 3.5% accuracy gain at iso-ReLU count, outperforming state-of-the-art methods on CIFAR-100 and TinyImageNet.

ABSTRACT

The recent rise of privacy concerns has led researchers to devise methods for private neural inference -- where inferences are made directly on encrypted data, never seeing inputs. The primary challenge facing private inference is that computing on encrypted data levies an impractically-high latency penalty, stemming mostly from non-linear operators like ReLU. Enabling practical and private inference requires new optimization methods that minimize network ReLU counts while preserving accuracy. This paper proposes DeepReDuce: a set of optimizations for the judicious removal of ReLUs to reduce private inference latency. The key insight is that not all ReLUs contribute equally to accuracy. We leverage this insight to drop, or remove, ReLUs from classic networks to significantly reduce inference latency and maintain high accuracy. Given a target network, DeepReDuce outputs a Pareto frontier of networks that tradeoff the number of ReLUs and accuracy. Compared to the state-of-the-art for private inference DeepReDuce improves accuracy and reduces ReLU count by up to 3.5% (iso-ReLU count) and 3.5$ imes$ (iso-accuracy), respectively.

Motivation & Objective

  • To address the high latency in private inference caused by expensive ReLU operations in encrypted computation.
  • To reduce the number of ReLU units in neural networks without significantly degrading model accuracy.
  • To develop a systematic method for identifying and removing non-critical ReLUs to optimize for private inference.
  • To demonstrate that ReLU dropping outperforms traditional pruning and network depth reduction in private inference scenarios.
  • To generate a Pareto frontier of models trading off ReLU count and accuracy for practical deployment.

Proposed method

  • Proposes ReLU dropping as a new optimization strategy that removes entire ReLU layers based on their contribution to model accuracy.
  • Uses a criticality metric to rank ReLUs by their importance to network performance, enabling selective removal.
  • Combines ReLU dropping with knowledge distillation to preserve accuracy in the pruned models.
  • Merges adjacent linear layers after ReLU removal to further reduce FLOPs and model depth.
  • Generates a Pareto frontier of optimized models by varying the ReLU budget and reporting accuracy trade-offs.
  • Applies the method across diverse architectures, including ResNet, MobileNetV1, and VGG16, demonstrating generalization.

Experimental results

Research questions

  • RQ1Can ReLU dropping significantly reduce the number of ReLUs in a neural network while maintaining high accuracy for private inference?
  • RQ2How does ReLU dropping compare to existing methods like channel pruning and network distillation in terms of ReLU reduction and accuracy preservation?
  • RQ3Can ReLU dropping be effectively applied to non-residual architectures like MobileNetV1 and VGG16?
  • RQ4What is the impact of combining ReLU dropping with knowledge distillation on model accuracy and efficiency?
  • RQ5Can DeepReDuce generate a Pareto-optimal frontier of models that balance ReLU count and accuracy across different network architectures?

Key findings

  • DeepReDuce achieves up to 3.5% higher accuracy than state-of-the-art methods at the same ReLU count on CIFAR-100.
  • It reduces ReLU count by up to 3.5× at the same accuracy level compared to the state of the art.
  • On CIFAR-100, the fastest DeepReDuce model achieves 65% top-1 accuracy with only 455ms inference latency.
  • On TinyImageNet, DeepReDuce reaches 59.18% top-1 accuracy with a 4.6s inference time, demonstrating scalability to larger datasets.
  • The method outperforms channel-pruning and network distillation techniques, showing 2× better ReLU reduction efficiency.
  • DeepReDuce generalizes well beyond residual networks, achieving 10.9% accuracy gain at iso-ReLU and 3.8× ReLU reduction at iso-accuracy on MobileNetV1.

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.