Skip to main content
QUICK REVIEW

[Paper Review] CryptoNAS: Private Inference on a ReLU Budget

Zahra Ghodsi, Akshaj Kumar Veldanda|arXiv (Cornell University)|Jun 15, 2020
Cryptography and Data SecurityComputer Science28 references31 citations
TL;DR

CryptoNAS automatically searches for CNN architectures optimized for private inference by constraining a ReLU budget, treating ReLUs as the main latency bottleneck in private inference and achieving higher accuracy with lower latency than prior PI methods.

ABSTRACT

Machine learning as a service has given raise to privacy concerns surrounding clients' data and providers' models and has catalyzed research in private inference (PI): methods to process inferences without disclosing inputs. Recently, researchers have adapted cryptographic techniques to show PI is possible, however all solutions increase inference latency beyond practical limits. This paper makes the observation that existing models are ill-suited for PI and proposes a novel NAS method, named CryptoNAS, for finding and tailoring models to the needs of PI. The key insight is that in PI operator latency cost are non-linear operations (e.g., ReLU) dominate latency, while linear layers become effectively free. We develop the idea of a ReLU budget as a proxy for inference latency and use CryptoNAS to build models that maximize accuracy within a given budget. CryptoNAS improves accuracy by 3.4% and latency by 2.4x over the state-of-the-art.

Motivation & Objective

  • Motivate private inference as a privacy-preserving service with cryptographic protocols.
  • Identify ReLU operations as the dominant latency bottleneck in PI and define a ReLU budget as a latency proxy.
  • Develop NAS techniques to maximize accuracy under a fixed ReLU budget.
  • Propose ReLU reduction and ReLU balancing to create ReLU-efficient networks.
  • Create CryptoNAS as a decoupled search framework to efficiently discover PI-optimized architectures.

Proposed method

  • Define ReLU budget as PI latency proxy where non-linear ReLUs dominate cost.
  • Develop ReLU reduction techniques: ReLU pruning and ReLU shuffling to lower ReLU counts.
  • Propose ReLU balancing to maximize model capacity per ReLU under a budget.
  • Use CryptoNAS with ENAS macro-search for skip connections while decoupling core network sizing (under budget) from skip placement.
  • Extend MiniONN to support skip connections within private inference.
  • Decouple search into core network optimization under budget and skip-placement optimization.

Experimental results

Research questions

  • RQ1How can neural architectures be tailored to private inference by constraining non-linear ReLU operations?
  • RQ2What are effective techniques to reduce ReLU counts without sacrificing accuracy in PI models?
  • RQ3Can a decoupled NAS search efficiently find high-accuracy models under a fixed ReLU budget?
  • RQ4How does ReLU balancing compare to FLOP-based or channel-balanced scaling under PI constraints?
  • RQ5Do skip connections remain beneficial when ReLUs are minimized for PI?

Key findings

  • CryptoNAS achieves accuracy improvements and latency reductions over the state-of-the-art PI methods on CIFAR-10/100.
  • ReLU pruning reduces ReLU counts by up to about 5.8× with minimal accuracy loss.
  • ReLU shuffling reduces ReLU counts by up to ~1.9× without accuracy loss for certain models.
  • ReLU balancing maximizes model capacity per ReLU and yields up to 3.75% accuracy gains over FLOP-balanced baselines on CIFAR-100 at small budgets.
  • Networks discovered by CryptoNAS outperform prior PI methods on the accuracy-latency Pareto frontier, e.g., on CIFAR-10 and CIFAR-100 across multiple depths.
  • CryptoNAS runs efficiently by decoupling core network optimization from skip-placement search, requiring only a single ENAS run per budget to generate Pareto-front models.

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.