Skip to main content
QUICK REVIEW

[Paper Review] Sphynx: ReLU-Efficient Network Design for Private Inference

Minsu Cho, Zahra Ghodsi|arXiv (Cornell University)|Jun 17, 2021
Adversarial Robustness in Machine LearningComputer Science32 references5 citations
TL;DR

SPHYNX proposes a ReLU-efficient neural architecture search framework that uses micro-search to design convolutional cells with minimal ReLU operations while maximizing accuracy for private inference. By optimizing cell architecture and reduce cell placement via Gumbel-Softmax reparameterization, SPHYNX achieves Pareto dominance over prior methods on CIFAR-100 and enables efficient private inference on Tiny-ImageNet and ImageNet with significantly fewer ReLUs.

ABSTRACT

The emergence of deep learning has been accompanied by privacy concerns surrounding users' data and service providers' models. We focus on private inference (PI), where the goal is to perform inference on a user's data sample using a service provider's model. Existing PI methods for deep networks enable cryptographically secure inference with little drop in functionality; however, they incur severe latency costs, primarily caused by non-linear network operations (such as ReLUs). This paper presents Sphynx, a ReLU-efficient network design method based on micro-search strategies for convolutional cell design. Sphynx achieves Pareto dominance over all existing private inference methods on CIFAR-100. We also design large-scale networks that support cryptographically private inference on Tiny-ImageNet and ImageNet.

Motivation & Objective

  • To address the high latency in private inference caused by expensive ReLU operations in cryptographic protocols.
  • To investigate whether micro-search strategies—previously effective in plaintext inference—can outperform macro-search in ReLU-efficient private inference network design.
  • To develop a novel search space and post-processing method that jointly optimize convolutional cell architecture and reduce cell placement for minimal ReLU usage.
  • To demonstrate that ReLU-optimized networks via SPHYNX achieve superior accuracy with fewer ReLUs compared to existing private inference methods.

Proposed method

  • SPHYNX introduces a new ReLU-efficient micro-search space for convolutional cells, enabling integration with existing NAS methods like DARTS, ENAS, and PC-DARTS.
  • It formulates the architecture search as a constrained optimization problem, minimizing ReLU count while maximizing accuracy under a user-defined ReLU budget.
  • A novel post-processing step uses the Gumbel-Softmax reparameterization trick to optimize the placement of reduce cells, which significantly impacts performance under ReLU constraints.
  • The framework decouples the search into three stages: (1) cell discovery, (2) initial channel and depth selection under ReLU budget, and (3) optimal reduce cell positioning.
  • SPHYNX leverages the DELPHI protocol for private inference, using additive secret sharing for linear layers, garbled circuits for ReLU layers, and homomorphic encryption for offline operations.
  • It validates the design through ablation studies on CIFAR-100, Tiny-ImageNet, and ImageNet, comparing performance across different ReLU budgets and network configurations.

Experimental results

Research questions

  • RQ1Can micro-search strategies for convolutional cell design outperform macro-search in ReLU-efficient private inference network design?
  • RQ2Is the precise placement of reduce cells critical to minimizing ReLU costs and maximizing accuracy under ReLU constraints?
  • RQ3Does a ReLU-optimized architecture discovered via SPHYNX achieve Pareto dominance over existing private inference methods in terms of accuracy and latency?
  • RQ4How does ReLU balancing compare to FLOP balancing in optimizing network performance under ReLU constraints?
  • RQ5Can SPHYNX-designed cells generalize to large-scale datasets like ImageNet and enable efficient private inference?

Key findings

  • On CIFAR-100, SPHYNX achieves Pareto dominance over all existing private inference methods, outperforming them in accuracy while using fewer ReLUs.
  • For Tiny-ImageNet, SPHYNX with 614K ReLUs achieves 60.57% test accuracy, matching the performance of a ResNet18 with 2224K ReLUs while using over 0.25× fewer ReLUs.
  • SPHYNX-designed networks on ImageNet strictly dominate VGG11 and ResNet18 across the entire latency range, demonstrating scalability to large-scale datasets.
  • Ablation studies show that ReLU balancing outperforms FLOP balancing, and cells with N=7 (more linear operations) yield better performance than N=5 cells.
  • Using cells from standard NAS methods (e.g., DARTS) without SPHYNX’s modifications results in significantly worse performance, confirming the necessity of the proposed framework.
  • The optimal placement of reduce cells, enabled by Gumbel-Softmax reparameterization, is critical—uniform spacing yields inferior results, highlighting the importance of dynamic cell positioning.

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.