Selective Network Linearization for Efficient Private Inference

Minsu Cho, Ameya Joshi, Siddharth Garg, Brandon Reagen, Chinmay Hegde
2/4/2022
cs.CRcs.LG

Official code: NYU-DICE-Lab/selective_network_linearization (8 stars, Python, MIT, last commit 2023-01-25).

Abstract

Private inference (PI) enables inference directly on cryptographically secure data.While promising to address many privacy issues, it has seen limited use due to extreme runtimes. Unlike plaintext inference, where latency is dominated by FLOPs, in PI non-linear functions (namely ReLU) are the bottleneck.

Show full abstract

Thus, practical PI demands novel ReLU-aware optimizations. To reduce PI latency we propose a gradient-based algorithm that selectively linearizes ReLUs while maintaining prediction accuracy. We evaluate our algorithm on several standard PI benchmarks. The results demonstrate up to $4.25\%$ more accuracy (iso-ReLU count at 50K) or $2.2\times$ less latency (iso-accuracy at 70\%) than the current state of the art and advance the Pareto frontier across the latency-accuracy space. To complement empirical results, we present a "no free lunch" theorem that sheds light on how and when network linearization is possible while maintaining prediction accuracy. Public code is available at \url{https://github.com/NYU-DICE-Lab/selective_network_linearization}.

View on arXivView PDF

Code Implementations(1)

MIT
82Python, ShellMay 30, 20223 years agoMIT

Similar Papers

Cite this paper

@article{cho2022selective,
  title  = {Selective Network Linearization for Efficient Private Inference},
  author = {Minsu Cho and Ameya Joshi and Siddharth Garg and Brandon Reagen and Chinmay Hegde},
  year   = {2022},
  eprint = {2202.02340},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2202.02340}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2202.02340.svg)](https://codeofpaper.com/paper/2202.02340)

Discussion