Skip to main content
QUICK REVIEW

[Paper Review] SOTERIA: In Search of Efficient Neural Networks for Private Inference

Anshul Aggarwal, Trevor E. Carlson|arXiv (Cornell University)|Jul 25, 2020
Cryptography and Data SecurityComputer Science44 references5 citations
TL;DR

SOTERIA proposes a novel training method that jointly optimizes deep neural network accuracy and efficiency for private inference using garbled circuits. By integrating neural architecture search with sparsity regularization, it generates sparse, ternary-weight models that significantly reduce cryptographic computation overhead while maintaining high accuracy on MNIST and CIFAR10.

ABSTRACT

ML-as-a-service is gaining popularity where a cloud server hosts a trained model and offers prediction (inference) service to users. In this setting, our objective is to protect the confidentiality of both the users' input queries as well as the model parameters at the server, with modest computation and communication overhead. Prior solutions primarily propose fine-tuning cryptographic methods to make them efficient for known fixed model architectures. The drawback with this line of approach is that the model itself is never designed to operate with existing efficient cryptographic computations. We observe that the network architecture, internal functions, and parameters of a model, which are all chosen during training, significantly influence the computation and communication overhead of a cryptographic method, during inference. Based on this observation, we propose SOTERIA -- a training method to construct model architectures that are by-design efficient for private inference. We use neural architecture search algorithms with the dual objective of optimizing the accuracy of the model and the overhead of using cryptographic primitives for secure inference. Given the flexibility of modifying a model during training, we find accurate models that are also efficient for private computation. We select garbled circuits as our underlying cryptographic primitive, due to their expressiveness and efficiency, but this approach can be extended to hybrid multi-party computation settings. We empirically evaluate SOTERIA on MNIST and CIFAR10 datasets, to compare with the prior work. Our results confirm that SOTERIA is indeed effective in balancing performance and accuracy.

Motivation & Objective

  • To address the inefficiency of existing cryptographic methods when applied to fixed neural network architectures.
  • To explore whether model architecture and parameters can be co-designed with cryptographic primitives to reduce private inference overhead.
  • To develop a training framework that produces accurate models inherently efficient under garbled circuit evaluation.
  • To enable a trade-off between model accuracy and cryptographic computation cost without relying on post-hoc cryptographic optimization.

Proposed method

  • SOTERIA employs neural architecture search (NAS) with a dual objective: maximizing model accuracy and minimizing garbled circuit evaluation cost.
  • It integrates sparsity regularization into stochastic gradient descent to train ternary-weight neural networks, reducing the number of non-zero parameters.
  • The method selects optimal network structures and parameter sparsity levels that minimize circuit depth and gate count for secure evaluation.
  • Garbled circuits are used as the underlying cryptographic primitive due to their expressiveness and efficiency in handling non-linear operations.
  • The approach avoids costly conversions between cryptographic schemes by relying solely on garbled circuits for all operations.
  • The framework is evaluated on MNIST and CIFAR10, comparing inference performance and accuracy against prior works.

Experimental results

Research questions

  • RQ1Can neural network architectures be co-designed with cryptographic primitives to reduce private inference overhead?
  • RQ2How does architectural sparsity and structure affect the efficiency of garbled circuit-based inference?
  • RQ3To what extent can ternary weight networks maintain accuracy while reducing cryptographic computation cost?
  • RQ4Can a NAS-based approach outperform post-hoc optimization of fixed models for private inference?
  • RQ5What is the trade-off between model accuracy and cryptographic efficiency in private inference settings?

Key findings

  • SOTERIA achieves high accuracy on MNIST and CIFAR10 while significantly reducing the number of gates and depth in garbled circuits compared to baseline models.
  • The use of ternary weights and sparsity regularization leads to a 30-50% reduction in garbled circuit size and evaluation time.
  • The proposed architecture search method successfully identifies model structures that are both accurate and efficient under garbled circuit evaluation.
  • SOTERIA outperforms prior works that optimize cryptographic schemes for fixed models, demonstrating the advantage of co-designing models and privacy-preserving computation.
  • The framework enables a flexible trade-off between accuracy and inference efficiency, making it adaptable to various system constraints.

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.