Abstract
Secure Multi-Party Computation (MPC) has emerged as a leading paradigm for privacy-preserving neural network (PPNN) training. However, existing Function Secret Sharing (FSS)-based frameworks often rely on a "trusted dealer" for key distribution and suffer from significant communication overhead. This paper introduces FssNN, a framework designed to address these bottlenecks. FssNN optimizes Distributed Comparison Functions (DCF) to reduce key sizes, implements a distributed key generation protocol to eliminate the trusted dealer, and introduces the BitXA protocol for efficient backpropagation. Our evaluation shows that FssNN reduces communication costs by approximately 25% for both training and inference while maintaining state-of-the-art accuracy.
1. Introduction
The increasing demand for training neural networks on sensitive datasets, such as medical records and financial transactions, has necessitated the development of privacy-preserving machine learning (PPML) techniques. While Secure Multi-Party Computation (MPC) provides a robust cryptographic foundation for these tasks, its practical deployment is hindered by high communication costs and the logistical challenge of the "trusted dealer" model.
In modern PPNN frameworks, Function Secret Sharing (FSS) is frequently employed to handle non-linear operations like ReLU and MaxPool. Despite its advantages, FSS-based methods face two primary challenges:
- The Trusted Dealer Problem: Most systems assume a pre-existing trusted third party to generate and distribute cryptographic keys, which is often unrealistic in decentralized environments.
- Communication Bloat: The large size of cryptographic keys required for non-linear operations creates a communication bottleneck, especially during the iterative process of neural network training.
FssNN addresses these issues by streamlining the underlying cryptographic primitives and enabling the two participating parties to generate keys collaboratively.
2. The FssNN Framework
FssNN introduces several technical innovations to improve the efficiency and practicality of secure two-party training.
2.1 Optimized Distributed Comparison Functions (DCF)
The authors identified significant redundancy in standard DCF key structures. By employing a compact additive construction and an "early termination" optimization, FssNN reduces the size of DCF keys by 17.9% compared to previous implementations. This reduction directly translates to lower communication overhead during the offline phase.
2.2 Distributed Key Generation (GenDCF)
To remove the dependency on a trusted dealer, FssNN utilizes a distributed key generation protocol. This allows the two parties ($P_0$ and $P_1$) to jointly generate their own FSS keys using MPC-friendly Pseudorandom Generators (PRGs). This approach supports larger input domains (e.g., 32-bit integers) without the prohibitive computational costs associated with earlier dealerless methods.
2.3 The BitXA Protocol
During the backpropagation phase, neural networks frequently perform Hadamard products between a bit (from the derivative of ReLU) and an integer (the gradient). Traditional methods involve expensive conversions between different secret sharing types. FssNN introduces BitXA, a specialized protocol that handles this multiplication directly in a single round of communication, reducing the cost of this specific operation by 43.4%.
3. Experimental Evaluation
The performance of FssNN was evaluated using the MNIST dataset, consisting of 60,000 training samples. The framework was tested across three distinct architectures:
- FCNN: A 3-layer fully-connected network.
- CNN: A 4-layer convolutional neural network.
- LeNet: A classic 4-layer architecture.
The benchmarks focused on measuring communication efficiency, key sizes, and model accuracy.
4. Key Results and Comparison
FssNN demonstrates superior performance compared to existing frameworks like AriaNN and Orca. As shown in Table 1, FssNN is one of the few frameworks that supports both inference and training while requiring no trusted dealer and maintaining zero gate evaluation rounds.
4.1 Communication Efficiency
Compared to AriaNN, the previous state-of-the-art, FssNN achieved a 25.4% reduction in total communication for training and a 26.4% reduction for inference. The reduction is largely attributed to the optimized DCF keys and the BitXA protocol.
4.2 Accuracy
Importantly, the privacy-preserving features of FssNN do not come at the cost of model performance. For the LeNet architecture, FssNN achieved an accuracy of 98.93%, which is nearly identical to the 99.03% accuracy achieved by standard non-private training.
5. Conclusion and Future Work
FssNN represents a significant step toward making secure neural network training practical for real-world use. By eliminating the trusted dealer and reducing communication overhead, it lowers the barrier to entry for privacy-preserving machine learning.
Currently, FssNN is designed for semi-honest security, assuming that participants follow the protocol but may attempt to learn additional information. Future research will focus on extending the framework to active security, providing protection against malicious adversaries who may deviate from the protocol to compromise the system.
Summary updated