Abstract
Secure Multi-Party Computation (MPC) is an area of cryptography that enables computation on sensitive data from multiple sources while maintaining privacy guarantees. However, theoretical MPC protocols often do not scale efficiently to real-world data. This project investigates the efficiency of the SPDZ framework, which provides an implementation of an MPC protocol with malicious security, in the context of popular machine learning (ML) algorithms. In particular, we chose applications such as linear regression and logistic regression, which have been implemented and evaluated using semi-honest MPC techniques. We demonstrate that the SPDZ framework outperforms these previous implementations while providing stronger security.
Introduction
Machine learning thrives on data, but in many sensitive fields like healthcare or finance, data is siloed behind strict privacy laws. Secure Multi-Party Computation (MPC) allows different parties to jointly train models without ever seeing each other's raw data. However, MPC faces a "security vs. efficiency" hurdle. Most existing practical implementations use a semi-honest model, assuming parties follow the rules but try to peek at data. The malicious model, which protects against parties who actively cheat, is much safer but historically much slower. This paper investigates whether the SPDZ framework can bridge this gap, making high-security ML efficient enough for large-scale datasets.
Methods
The authors implemented several core ML building blocks within the SPDZ framework, which relies on arithmetic circuits and preprocessing to achieve malicious security. Key technical choices included:
Iterative vs. Direct Solvers
For linear regression, direct matrix decomposition (like Cholesky) is inefficient in MPC because it requires expensive square root operations. Instead, the authors utilized iterative methods like Newton’s method for square roots and Conjugate Gradient Descent (CGD), which are more "MPC-friendly."
Stochastic Gradient Descent (SGD)
Mini-batch SGD was implemented for both linear and logistic regression to handle larger datasets.
Approximating Non-Linearity
Logistic regression requires a sigmoid function ($1/(1+e^{-u})$), which is difficult to compute directly in MPC. The authors compared piecewise linear approximations against Taylor Series expansions. Because SPDZ is based on arithmetic circuits, higher-degree Taylor polynomials (up to degree 10) added negligible overhead while providing superior accuracy.
Experimental Evaluation
The system was evaluated using a mix of synthetic and real-world benchmarks:
- MNIST: Handwritten digit dataset (binary classification).
- Arcene: High-dimensional dataset (10,000 features).
- UCI Repository: 9 datasets (e.g., Student Performance, Wine Quality) to test Root Mean Squared Error (RMSE).
- Synthetic Data: Scaling tests with dimensions ($d$) up to 500 and examples ($n$) up to 100,000.
Results
Efficiency and Scalability
A key finding is that SPDZ (maliciously secure) outperformed semi-honestly secure frameworks like Obliv-C by an order of magnitude on large matrix sizes. This suggests that framework architecture often matters more than theoretical security overhead. For linear systems, iterative CGD runtime increased much more slowly than direct decomposition methods as input size grew.
Accuracy and Precision
On the MNIST dataset, the SPDZ implementation achieved 99.5% accuracy using a degree-10 Taylor polynomial, nearly matching the 99.9% plaintext baseline. The number of bits required for fixed-point arithmetic varies by dataset: MNIST required 13 bits, while the complex Arcene dataset required 28 bits.
Stability
Iterative methods like CGD proved not only faster in MPC but also more stable when using fixed-point arithmetic compared to direct solvers. On 9 UCI datasets, the secure SGD implementation typically increased error by only 5–20% compared to plaintext, while remaining faster than previous state-of-the-art MPC implementations.
Discussion and Future Work
While binary classification worked well on MNIST, predicting all 10 digits simultaneously resulted in much lower accuracy (~19%), indicating a need for more robust multi-class strategies. Future work includes extending these high-security techniques to deep learning with hidden layers. Additionally, while performance on AWS EC2 was promising, the impact of network latency in wide-area networks remains a challenge for real-time applications.
Summary updated