[Paper Review] S++: A Fast and Deployable Secure-Computation Framework for Privacy-Preserving Neural Network Training
S++ is a fast, deployable secure computation framework for privacy-preserving neural network training using secret-sharing in a three-party setting. It introduces efficient, verifiable protocols for exponentiation and common non-linear activation functions—sigmoid, tanh, and softmax—enabling secure training of standard neural networks without architectural changes, with benchmarks showing low latency and communication overhead in LAN environments.
We introduce S++, a simple, robust, and deployable framework for training a neural network (NN) using private data from multiple sources, using secret-shared secure function evaluation. In short, consider a virtual third party to whom every data-holder sends their inputs, and which computes the neural network: in our case, this virtual third party is actually a set of servers which individually learn nothing, even with a malicious (but non-colluding) adversary. Previous work in this area has been limited to just one specific activation function: ReLU, rendering the approach impractical for many use-cases. For the first time, we provide fast and verifiable protocols for all common activation functions and optimize them for running in a secret-shared manner. The ability to quickly, verifiably, and robustly compute exponentiation, softmax, sigmoid, etc., allows us to use previously written NNs without modification, vastly reducing developer effort and complexity of code. In recent times, ReLU has been found to converge much faster and be more computationally efficient as compared to non-linear functions like sigmoid or tanh. However, we argue that it would be remiss not to extend the mechanism to non-linear functions such as the logistic sigmoid, tanh, and softmax that are fundamental due to their ability to express outputs as probabilities and their universal approximation property. Their contribution in RNNs and a few recent advancements also makes them more relevant.
Motivation & Objective
- To enable secure, private training of neural networks using multiple data sources without exposing private inputs.
- To overcome the limitation of prior MPC-based frameworks that only support ReLU, by adding support for exponentiation-based activation functions.
- To provide efficient, verifiable, and practical protocols for sigmoid, tanh, softmax, and their derivatives in a three-party computation (3PC) setting.
- To reduce developer effort by allowing existing neural network models to be used without modification in a secure setting.
- To address the practicality gap in secure neural network training by enabling full support for probabilistic and universal approximation functions.
Proposed method
- The framework uses additive secret-sharing across three servers, where data owners distribute shares to two primary servers and a helper server.
- It introduces a novel secure exponentiation protocol based on SCALE MAMBA and Catrina-Saxena primitives, adapted for three-party computation with secret-shared inputs.
- The exponentiation protocol supports fixed-point arithmetic in Z_128 to prevent overflow and enable use in neural network layers.
- Sigmoid, tanh, and softmax are implemented using the exponentiation protocol, with derivatives computed via secure arithmetic to support backpropagation.
- The framework leverages a Taylor series approximation for exponentiation in the secure setting, optimized for small input values.
- Protocols are implemented in C++ using fixed-point arithmetic in Z_64 and Z_128, with communication and execution times measured in LAN benchmarks.
Experimental results
Research questions
- RQ1Can secure computation frameworks support non-Relu activation functions like sigmoid, tanh, and softmax, which are essential for probabilistic modeling and universal approximation?
- RQ2How can efficient and verifiable exponentiation be implemented in a three-party secret-sharing setting for use in neural network training?
- RQ3What is the performance overhead of adding support for complex activation functions in secure neural network training compared to ReLU-only approaches?
- RQ4Can existing neural network models be securely deployed without architectural changes when using exponentiation-based activations?
- RQ5What are the practical communication and latency costs of secure sigmoid, tanh, and softmax computation in a real-world LAN environment?
Key findings
- The S++ framework achieves low-latency execution for secure sigmoid, tanh, and softmax functions, with average execution times of 5.631 seconds for 128x128 inputs in a LAN setting.
- Communication overhead remains manageable, with softmax and derivative protocols transmitting approximately 41.3 MB for 128x128 inputs.
- The Taylor series-based exponentiation protocol achieves sub-second performance, with 0.092 seconds for 128x128 inputs and only 0.079 MB communication.
- The framework supports secure training of standard neural networks using common activation functions without requiring model re-architecture.
- The current implementation overflows for larger exponent values, limiting practical use of exponentiation and derived functions, indicating a key limitation for future work.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.