Abstract
Privacy-preserving machine learning (PPML) often relies on Secure Multi-Party Computation (MPC), which is traditionally efficient for linear operations but struggles with non-linear activation functions. S++ addresses this by introducing a high-performance MPC framework that enables the training of neural networks using exponentiation-based functions like sigmoid, tanh, and softmax. By leveraging a novel three-party protocol for secure exponentiation ($F_{Exp}$), S++ allows for more complex architectures, such as Recurrent Neural Networks (RNNs), without compromising data privacy.
Introduction
The primary challenge in PPML is that MPC frameworks are naturally suited for addition and multiplication but find complex non-linear functions computationally expensive. Consequently, many existing frameworks, such as SecureNN, rely heavily on the Rectified Linear Unit (ReLU) because it only requires simple comparison operations. However, ReLU has limitations: it is unbounded, which can lead to exploding gradients in RNNs, and it lacks the probabilistic interpretability required for classification output layers.
S++ overcomes these hurdles by providing efficient secure protocols for computing $e^x$, which serves as the foundation for sigmoid, tanh, and softmax activations.
Methodology
S++ utilizes a three-server model where two servers hold secret-shared data and a third helper server assists in computations without accessing the raw values. The framework's core is a suite of new protocols designed for modularity and efficiency.
The central contribution is the Secure Exponentiation ($F_{Exp}$) protocol. It operates by splitting a secret-shared number into integer and fractional components:
- Fractional Part: Computed using a four-term Taylor Series Expansion, optimized for precision.
- Integer Part: Handled via bit decomposition and prefix multiplication.
Building on $F_{Exp}$, the authors developed secure versions of Sigmoid ($\sigma(x) = \frac{e^x}{1+e^x}$), Tanh ($2\sigma(2x) - 1$), and Softmax. To support backpropagation during training, secure protocols for the derivatives of these functions were also implemented.
Experimental Evaluation
The authors conducted micro-benchmarking to evaluate the efficiency of the S++ protocols in a LAN environment (Intel i5, 8GB RAM, 40Mb/s bandwidth). The benchmarks used varying vector dimensions to simulate realistic neural network workloads.
Key performance findings include:
- Latency: For a $64 \times 16$ vector, the Sigmoid protocol completes in 0.252 seconds, while Softmax takes 0.324 seconds.
- Communication Overhead: Communication remains the primary bottleneck. A $128 \times 128$ matrix operation for Sigmoid requires approximately 41 MB of data transfer.
- Efficiency of Taylor Expansion: The optimized Taylor expansion protocol ($F_{taylorExp}$) is highly efficient, taking only 0.032 seconds for smaller vectors.
Discussion and Conclusion
S++ provides a "drop-in" solution for researchers to secure existing neural network architectures without redesigning them to fit MPC constraints. By supporting standard functions like Softmax and Tanh, it bridges the gap between standard deep learning and privacy-preserving computation.
However, some limitations remain. The exponentiation protocol is sensitive to input magnitude; extremely large or small values can cause overflows in the underlying integer rings ($\mathbb{Z}_{64}$ or $\mathbb{Z}_{128}$). Future work will focus on improving the robustness of overflow handling to make the framework truly "plug-and-play" for a wider dynamic range of values encountered in deep networks.
Summary updated