Skip to main content
QUICK REVIEW

[Paper Review] Secure Quantized Training for Deep Learning

Marcel Keller, Ke Sun|arXiv (Cornell University)|Jul 1, 2021
Cryptography and Data SecurityComputer Science35 references11 citations
TL;DR

This paper presents the first end-to-end secure quantized training of deep neural networks in multi-party computation (MPC), achieving 99.2% accuracy on MNIST in 3.5 hours—within 0.2% of plaintext training—using novel MPC-optimized protocols for exponentiation and inverse square root. The method enables privacy-preserving training with high efficiency across honest and malicious security models, outperforming prior GPU-based MPC implementations due to CPU-optimized, communication-efficient design.

ABSTRACT

We implement training of neural networks in secure multi-party computation (MPC) using quantization commonly used in said setting. We are the first to present an MNIST classifier purely trained in MPC that comes within 0.2 percent of the accuracy of the same convolutional neural network trained via plaintext computation. More concretely, we have trained a network with two convolutional and two dense layers to 99.2% accuracy in 3.5 hours (under one hour for 99% accuracy). We have also implemented AlexNet for CIFAR-10, which converges in a few hours. We develop novel protocols for exponentiation and inverse square root. Finally, we present experiments in a range of MPC security models for up to ten parties, both with honest and dishonest majority as well as semi-honest and malicious security.

Motivation & Objective

  • To enable secure, private training of deep neural networks using multi-party computation (MPC) without exposing model weights or data.
  • To achieve high model accuracy in MPC that closely matches plaintext training performance, particularly on standard benchmarks like MNIST and CIFAR-10.
  • To develop efficient MPC-native protocols for computationally intensive operations such as exponentiation and inverse square root, critical for softmax and Adam/AMSGrad optimizers.
  • To demonstrate that CPU-based MPC implementations can outperform GPU-based ones in MPC due to communication bottlenecks, not raw computation.
  • To provide a scalable, extensible framework for secure deep learning that supports both honest and dishonest majority, and semi-honest and malicious security models.

Proposed method

  • Uses quantization to represent floating-point numbers as fixed-point integers via rounding to nearest integer after scaling by $ 2^f $, enabling efficient integer arithmetic in MPC.
  • Employs mixed-circuit computation combining $ \mathbb{Z}_M $-based integer arithmetic and $ \mathbb{Z}_2 $-based binary circuits to securely compute non-linear functions.
  • Introduces novel MPC protocols for exponentiation and inverse square root, essential for softmax and Adam/AMSGrad optimizers, with formal security and error bounds.
  • Builds on the MP-SPDZ MPC framework, implementing deep learning models as layer-wise compositions similar to PyTorch/TensorFlow, but natively in C++ for high performance.
  • Uses a plaintext emulator to benchmark training accuracy and convergence before deploying on real MPC, ensuring correctness and performance predictability.
  • Employs AMSGrad optimizer with quantized gradients and secure computation of non-linearities, minimizing accuracy loss from quantization and approximation.

Experimental results

Research questions

  • RQ1Can secure multi-party computation enable training of deep neural networks with accuracy comparable to plaintext training?
  • RQ2How do quantization and secure computation of non-linear operations like exponentiation and inverse square root affect model accuracy and training efficiency?
  • RQ3Does CPU-based MPC outperform GPU-based MPC in secure deep learning due to communication overheads?
  • RQ4Can secure training of complex models like AlexNet be achieved efficiently in MPC with realistic convergence times?
  • RQ5What is the impact of different MPC security models (honest vs. malicious, majority vs. dishonest majority) on training performance and scalability?

Key findings

  • The authors achieved 99.2% test accuracy on MNIST using a two-convolutional and two-dense-layer network trained entirely in MPC, within 0.2% of the plaintext baseline.
  • The same model reached 99% accuracy in under one hour, demonstrating practical feasibility for real-world privacy-preserving training.
  • AlexNet was successfully trained on CIFAR-10 in a few hours using MPC, confirming scalability to deeper architectures.
  • The novel protocols for exponentiation and inverse square root enabled accurate computation of softmax and Adam/AMSGrad optimizers in MPC with bounded error.
  • The CPU-based MPC implementation outperformed a GPU-based implementation by 40% in training speed, despite using only CPUs, due to communication efficiency.
  • The framework supports multiple security models, including semi-honest and malicious security, with up to ten parties, demonstrating robustness and extensibility.

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.