Skip to main content
QUICK REVIEW

[Paper Review] Low Latency Privacy Preserving Inference

Alon Brutzkus, Oren Elisha|arXiv (Cornell University)|Dec 27, 2018
Privacy-Preserving Technologies in DataComputer Science53 citations
TL;DR

The paper introduces LoLa, a low-latency homomorphic-encryption based private inference method that significantly speeds up private neural network predictions, and a transfer-learning approach that enables private inference with approximately 0.16 seconds latency on deep representations.

ABSTRACT

When applying machine learning to sensitive data, one has to find a balance between accuracy, information security, and computational-complexity. Recent studies combined Homomorphic Encryption with neural networks to make inferences while protecting against information leakage. However, these methods are limited by the width and depth of neural networks that can be used (and hence the accuracy) and exhibit high latency even for relatively simple networks. In this study we provide two solutions that address these limitations. In the first solution, we present more than $10 imes$ improvement in latency and enable inference on wider networks compared to prior attempts with the same level of security. The improved performance is achieved by novel methods to represent the data during the computation. In the second solution, we apply the method of transfer learning to provide private inference services using deep networks with latency of $\sim0.16$ seconds. We demonstrate the efficacy of our methods on several computer vision tasks.

Motivation & Objective

  • Address the trade-offs between accuracy, data privacy, and computational efficiency in private neural network inference.
  • Improve latency and memory usage over prior HE-based private inference approaches while preserving security.
  • Enable private inference on wider and deeper networks without sacrificing accuracy.
  • Explore private inference via deep representations to reduce noise growth and message size.
  • Demonstrate practical private prediction on standard vision benchmarks (MNIST, CIFAR-10) and CalTech-101.

Proposed method

  • Use Homomorphic Encryption (BFV scheme) to perform neural network computations on encrypted data.
  • Represent encrypted data with multiple data representations (dense, sparse, interleaved, convolution, stacked) and switch representations to optimize matrix-vector multiplications.
  • Develop and apply matrix-vector multiplication techniques tailored to each representation (dense-ROW, sparse-COL, stacked-ROW, interleaved-ROW, convolution representation).
  • Demonstrate LoLa on MNIST by encoding inputs as convolution representations and performing layer-wise operations with rotations and additions to minimize latency and memory use.
  • Apply LoLa to CIFAR-10 with a large network and show feasibility where CryptoNets is impractical due to memory.
  • Propose private inference via deep representations (transfer learning) where a deep network pre-processes data to a compact feature representation which is then encrypted for private evaluation; validate on CalTech-101 with 0.16s latency and 81.6% class-balanced accuracy.

Experimental results

Research questions

  • RQ1Can LoLa achieve substantially lower latency than CryptoNets while maintaining comparable accuracy under a 128-bit security setting?
  • RQ2How do different encrypted data representations affect latency, memory usage, and scalability to wider/deeper networks?
  • RQ3Is transfer learning with deep representations a viable approach to private inference for large-scale vision tasks?
  • RQ4What are the practical performance trade-offs when applying private inference to standard vision datasets (MNIST, CIFAR-10) and transfer-learning scenarios?

Key findings

  • LoLa achieves private MNIST inference in as low as 2.2 seconds, about 11x faster than CryptoNets and 93x faster overall.
  • LoLa enables inference on wider networks and dramatically reduces memory usage compared to CryptoNets, enabling CIFAR-10 scale where CryptoNets fails due to RAM.
  • LoLa-Dense and LoLa-Small variants offer different latency-accuracy trade-offs, with LoLa achieving 2.2s latency and 98.95% MNIST accuracy under 128-bit security.
  • A transfer-learning based private inference approach using deep representations can run CalTech-101 private predictions in 0.16 seconds with a class-balanced accuracy of 81.6%.
  • CryptoNets latency was 205s per prediction (original), reduced to 24.8s with improved SEAL implementation; LoLa reduces this further while maintaining high accuracy (around 98.95% on MNIST).
  • The paper demonstrates private inference across MNIST and CIFAR-10 benchmarks, highlighting substantial gains in latency and memory efficiency over prior HE-based methods.

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.