Abstract
As Deep Learning as a Service (DLaaS) becomes ubiquitous, protecting sensitive user data during cloud processing is paramount. This paper introduces the Share-Transform-Reveal (STR) strategy, a novel framework for secure multiparty computation (SMC) based on additive secret sharing (ASS). Unlike traditional methods that struggle with non-linear operations, STR allows $n$ servers to collaboratively compute complex functions—including trigonometry, matrix eigenvalues, and deep neural network layers—with constant interaction rounds. The approach ensures high efficiency and privacy even under the collusion of $n-1$ servers.
Introduction
The growth of cloud-based AI has forced a trade-off between utility and privacy. While Homomorphic Encryption (HE) offers strong privacy, its high computational cost and limited mathematical flexibility hinder real-time applications. Differential Privacy (DP), while faster, introduces noise that degrades model accuracy.
Secure Multiparty Computation (SMC) using Additive Secret Sharing (ASS) provides a middle ground. In ASS, data is split into shares such that no individual server can reconstruct the original value. However, ASS is naturally suited for linear operations (addition), making non-linear functions like division or exponentiation difficult to implement efficiently. Existing solutions are often restricted to two-party scenarios or specific mathematical subsets. This work addresses these gaps through the STR strategy.
Methodology
The STR Strategy
The core of the STR strategy is to avoid performing complex calculus directly on encrypted shares. Instead, servers collaboratively transform a secret share into an "irreversible" random number. This intermediate value is revealed, processed using standard mathematical functions, and then transformed back into secret shares. The use of high-entropy randomness ensures that the original secret remains protected throughout the process.
Resharing Protocols
To facilitate complex operations, the authors developed two fundamental protocols for switching between sharing formats:
- SecMulResh: Converts Multiplicative Secret Shares (MSS) to Additive Secret Shares (ASS).
- SecAddResh: Converts ASS to MSS. This "format switching" allows the system to dynamically choose the most efficient representation for a given operation—for example, using MSS for power functions and ASS for summation.
Broad Function Support
The STR framework supports a wide array of operations essential for modern machine learning:
- Elementary Functions: Secure protocols for $a^x$, $\log_a x$, $x^a$, $\sin \theta$, and division.
- Matrix Operations: Efficient handling of matrix multiplication, inversion, and eigenvalue/eigenvector calculations.
- Comparison: A high-performance $sgn(x-y)$ protocol requiring only two interaction rounds.
Experimental Evaluation
The framework was benchmarked using three Convolutional Neural Network (CNN) architectures:
- Network I: A shallow model with one convolutional and two fully connected layers.
- Network II: A medium-depth model with ReLU activations and max-pooling.
- Network III: A deep model featuring seven convolutional layers.
Performance was compared against established privacy-preserving frameworks including Gazelle, Chameleon, and MiniONN.
Key Results and Insights
The STR strategy demonstrates significant improvements in both speed and communication efficiency:
- Inference Speed: For the deep Network III, STR completed online inference in 0.019 seconds, vastly outperforming previous state-of-the-art methods (1.55s) and MiniONN (72s).
- Communication Efficiency: STR reduced the message size for Network III to 2.65 MB, a drastic improvement over MiniONN’s 6226 MB.
- Constant Interaction: Most STR protocols require only 1 or 2 rounds of interaction, regardless of function complexity.
- Matrix-Level Optimization: By treating matrices as atomic units, interaction rounds remain independent of matrix dimensions, facilitating large-scale data processing.
Conclusion
The STR strategy provides a robust and efficient path for secure computation in the cloud. By combining the strengths of additive and multiplicative sharing, it enables complex non-linear operations with minimal communication overhead. While future work is needed to address the "zero secret" edge case in multiplicative sharing and to automate the offline generation of random data, STR represents a major step toward practical, privacy-preserving Deep Learning as a Service.
Summary updated