The Communication-Friendly Privacy-Preserving Machine Learning against Malicious Adversaries

Tianpei Lu, Bingsheng Zhang, Lichun Li, Kui RenarXiv 2024 · DOI

Abstract

Privacy-preserving machine learning (PPML) often faces a significant performance penalty when transitioning from semi-honest to malicious security. This paper introduces a highly efficient 3-party computation (3-PC) protocol that mitigates this "malicious tax." By leveraging a novel batch verification technique over extension rings and GPU acceleration, the proposed method achieves a 40% reduction in communication overhead compared to previous state-of-the-art protocols. The protocol is integrated into the Piranha framework, demonstrating practical performance for complex models like VGG-16.

Introduction

Secure Multi-Party Computation (MPC) is a cornerstone of PPML, allowing multiple parties to compute functions over private data. While semi-honest protocols are efficient, they are vulnerable to active manipulation by malicious participants. Achieving malicious security typically involves a massive increase in communication and computation costs, particularly over finite rings like $\mathbb{Z}_{2^\ell}$, which are preferred for fixed-point arithmetic in machine learning. This paper addresses the challenge of making malicious security practical for high-stakes, real-world environments by drastically reducing the communication bottleneck.

Methodology

The protocol is built on Replicated Secret Sharing (RSS) for three parties (3-PC) with an honest majority assumption. The core innovation lies in the verification phase.

Batch Verification over Extension Rings

Instead of verifying each multiplication gate individually, the authors group them into batches. To ensure soundness in rings where certain errors might otherwise go undetected, the shares are mapped to a quotient ring of polynomials ($\mathbb{Z}_{2^\ell}[x]/f(x)$). This allows for a dimension-reduction technique that results in a verification communication cost that is logarithmic relative to the number of gates.

Protocol $\Pi_{\text{BIVerify}}^R$ for batch inner product verification.

Maliciously Secure Layers and GPU Acceleration

The protocol extends to both linear (matrix multiplication) and non-linear (ReLU) layers. For non-linearities, edaBits (extended doubly-authenticated bits) are used for secure conversion between arithmetic and boolean shares. To handle the increased computational complexity of polynomial math in extension rings, the protocol is implemented on GPUs, exploiting massive parallelism to maintain high throughput.

Experimental Evaluation

The protocol was evaluated using three neural network architectures: a Shallow Neural Network (S-NN), LeNet, and VGG-16. Benchmarks focused on communication and computational throughput across various input sizes.

Communication Efficiency

The proposed protocol significantly outperforms existing solutions like ABY3, BLAZE, and SWIFT. Specifically, it reduces overall communication by 40% compared to the state-of-the-art and reduces offline communication by 67% compared to SWIFT.

Comparison of communication and rounds for various operations across protocols.

Performance Results

In GPU-accelerated environments, the protocol achieved a 3x speedup over ABY3 and a 2x speedup over SWIFT. Inference times remain practical: LeNet takes approximately 153ms in a LAN setting, while the heavy VGG-16 model completes in about 1.6 seconds. Crucially, the overhead of the verification phase decreases relative to the total computation as the number of multiplication gates increases.

Conclusion and Future Work

This work demonstrates that malicious security is no longer a prohibitive "deal-breaker" for high-performance PPML. By targeting communication as the primary bottleneck and utilizing batch verification, the authors provide a scalable solution for secure inference. Future work includes extending these optimizations to the training phase, which involves a significantly higher volume of multiplications, and further improving performance in high-latency WAN environments.

Summary updated

BibTeX
@misc{lu2024communication,
  author = {Tianpei Lu and Bingsheng Zhang and Lichun Li and Kui Ren},
  title = {{The Communication-Friendly Privacy-Preserving Machine Learning against Malicious Adversaries}},
  year = {2024},
  eprint = {2411.09287},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2411.09287},
}
Figure