MPC-enabled Privacy-Preserving Neural Network Training against Malicious Attack

Ziyao Liu, Ivan Tjuawinata, Chaoping Xing, Kwok-Yan LamarXiv 2020

Abstract

The application of secure multiparty computation (MPC) in machine learning, especially privacy-preserving neural network training, has attracted tremendous attention from the research community in recent years. MPC enables several data owners to jointly train a neural network while preserving the data privacy of each participant. However, most of the previous works focus on semi-honest threat model that cannot withstand fraudulent messages sent by malicious participants. In this paper, we propose an approach for constructing efficient $n$-party protocols for secure neural network training that can provide security for all honest participants even when a majority of the parties are malicious. Compared to the other designs that provide semi-honest security in a dishonest majority setting, our actively secure neural network training incurs affordable efficiency overheads of around 2X and 2.7X in LAN and WAN settings, respectively. Besides, we propose a scheme to allow additive shares defined over an integer ring $\mathbb{Z}_N$ to be securely converted to additive shares over a finite field $\mathbb{Z}_Q$, which may be of independent interest. Such conversion scheme is essential in securely and correctly converting shared Beaver triples defined over an integer ring generated in the preprocessing phase to triples defined over a field to be used in the calculation in the online phase.

Introduction

Privacy-preserving machine learning (PPML) has emerged as a critical solution for collaborative data analysis where participants are unwilling or unable to share raw data due to privacy concerns or regulatory requirements. While Secure Multi-party Computation (MPC) provides a robust mathematical foundation for this, most existing frameworks operate under a "semi-honest" (honest-but-curious) assumption. In such models, participants are assumed to follow the protocol exactly while trying to learn extra information from the messages they receive.

In real-world deployments, this assumption is often insufficient. A malicious participant could intentionally deviate from the protocol—sending fraudulent messages to bias the resulting model or extract sensitive information. While "actively secure" protocols exist to counter these threats, they have historically been dismissed as too computationally expensive for the high-intensity demands of neural network training. This paper presents a framework that achieves active security in a dishonest majority setting (where up to $n-1$ participants are malicious) with practical performance overheads.

Methodology

The proposed system is built upon the SPDZ framework, which bifurcates the computation into two distinct phases to optimize performance:

1. Preprocessing (Offline) Phase

In this phase, parties generate "raw materials" known as Beaver triples. These triples are independent of the actual training data and are generated using Additive Homomorphic Encryption (specifically, a distributed Paillier cryptosystem). This phase is computationally intensive but can be performed ahead of time.

2. Online Phase

During the actual training, parties use the pre-computed triples to perform secure multiplications. To ensure active security, the framework utilizes Message Authentication Codes (MACs). If any participant attempts to cheat by sending incorrect data, the MAC checks will fail, and the protocol will abort, protecting the integrity of the computation.

Technical Innovations

  • Share Conversion (ShaConv): A significant challenge in MPC is that the offline phase typically operates over large integer rings ($\mathbb{Z}_N$), while the online phase requires finite fields ($\mathbb{Z}_Q$) for efficient MAC verification. The authors developed a novel ShaConv scheme to securely transition shares between these structures using a "lift and wrap" approach.
  • MPC-Friendly Layer Protocols: The authors optimized several neural network components for the MPC environment:
  • ReLU and Maxpool: These non-linear functions are handled via a constant-round comparison protocol (GEZ), which minimizes the communication latency (round complexity) that often bottlenecks MPC.
  • Secure Dropout: A protocol for probabilistic bit generation was introduced to allow for random neuron "dropping" during training without revealing the dropout mask to any participant.

Experimental Evaluation

The framework was evaluated using the MNIST dataset, consisting of 70,000 handwritten digit images. The experiments focused on both a standard Deep Neural Network (DNN) and a Convolutional Neural Network (CNN) in 3-party settings across Local Area Network (LAN) and Wide Area Network (WAN) environments.

Accuracy and Performance

The MPC-trained models achieved accuracy levels nearly identical to plaintext training:

  • DNN Accuracy: 97.75%
  • CNN Accuracy: 98.08%

When compared to SecureNN, a prominent semi-honest framework, the proposed actively secure system demonstrated impressive efficiency. The overhead for moving from semi-honest to malicious security was only 2.1X in LAN and 2.7X in WAN settings. For a CNN trained over 10 epochs with a batch size of 64 in a LAN, the training time was approximately 16.5 hours.

Discussion and Limitations

While the results demonstrate that active security is practical, some challenges remain. The communication volume is still significant; for instance, a single epoch of CNN training requires the exchange of 2.42 GB of data. This makes training over restricted bandwidth (WAN) more difficult than in data center environments. Additionally, while the online phase is highly optimized, the offline generation of Beaver triples remains a heavy computational lift that scales with the complexity of the model.

Conclusion

This research proves that the gap between semi-honest and actively secure MPC is narrower than previously thought. By combining novel share conversion techniques with optimized protocols for non-linear layers, it is possible to train neural networks that are resilient against a majority of malicious participants without sacrificing significant performance or model accuracy. This paves the way for more robust and trustworthy collaborative machine learning in sensitive industries like healthcare and finance.

Summary updated

BibTeX
@misc{liu2020mpc,
  author = {Ziyao Liu and Ivan Tjuawinata and Chaoping Xing and Kwok-Yan Lam},
  title = {{MPC-enabled Privacy-Preserving Neural Network Training against Malicious Attack}},
  year = {2020},
  eprint = {2007.12557},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2007.12557},
}
Figure