TL;DR
This paper introduces new cryptographic primitives for actively secure multi-party computation (MPC) over rings (specifically, modulo 2^k), which are more efficient for modern hardware than traditional field-based MPC. By implementing and extending the SPD Z2k protocol, the authors demonstrate significant speedups for machine learning tasks like decision tree and SVM evaluation, outperforming existing methods.
What Problem Does This Paper Address?
Secure multi-party computation (MPC) allows multiple parties to jointly compute a function on their private inputs without revealing those inputs. A key challenge is achieving active security, where parties can deviate arbitrarily from the protocol, which is significantly harder than passive security. Furthermore, many existing actively secure MPC protocols are designed for computations over finite fields, which don't map directly to efficient native CPU operations (like 32-bit or 64-bit arithmetic). The SPD Z2k protocol was proposed to address this by working over rings (specifically, modulo 2^k), which aligns better with hardware. However, SPD Z2k only provided basic arithmetic operations (addition and multiplication), and it was unclear if this ring-based approach could be made practical for complex applications. This paper tackles the question of whether SPD Z2k's ring-based approach, combined with new primitives, can indeed lead to practical, actively secure MPC for machine learning, and if it can outperform field-based methods.
Methods
The core of this work involves implementing and extending the SPD Z2k protocol. The authors introduce new primitives for essential operations like equality testing, comparison, and truncation that work efficiently over rings (modulo 2^k). A key innovation is developing efficient protocols for converting between binary and arithmetic secret shares within the SPD Z2k framework. They also show how to generate necessary preprocessed "random triples" (used for secure multiplication) more efficiently for the ring setting, leveraging techniques from TinyOT. These new primitives are then integrated into the SPD Z2k protocol to enable private evaluation of decision trees and Support Vector Machines (SVMs). The implementation is done within the FRESCO framework, allowing for benchmarking against other state-of-the-art MPC protocols like SPD Z.
Datasets
The paper evaluates its proposed methods on several standard machine learning datasets for decision tree and SVM evaluation. These include:
- Decision Trees: Hill Valley, Spambase, Diabetes.
- SVMs: CIFAR-10, MIT-67, ALOI.
These datasets are standard benchmarks for evaluating machine learning algorithms and are used here to demonstrate the practical performance of the MPC protocols.
Key Insights and Ideas
- Ring-based MPC is practical: The paper experimentally confirms the conjecture that using rings (modulo 2^k) for actively secure MPC, as in SPD Z2k, can be significantly more efficient in practice than field-based methods, especially for machine learning applications.
- New primitives unlock efficiency: The development of efficient protocols for equality, comparison, and truncation over rings is crucial. These operations are common in ML and were previously a bottleneck for ring-based MPC.
- Binary/Arithmetic share conversion is key: The ability to seamlessly convert between binary and arithmetic secret shares within the SPD Z2k framework is a critical enabler for applying these primitives to ML tasks.
- TinyOT integration boosts preprocessing: Leveraging TinyOT for generating binary triples significantly speeds up the preprocessing phase, which is often the bottleneck in MPC.
- Hardware alignment pays off: Working with modulo 2^k directly maps to native CPU operations, leading to substantial performance gains in the online phase compared to field-based methods that require costly modular reductions.
Key Results
- Significant speedups: The SPD Z2k implementation achieves speedups of 4-6x over SPD Z for multiplication, equality, and comparison operations in the online phase.
- Machine Learning Performance: For decision tree evaluation, speedups of 2-4.8x were observed, and for SVM evaluation, speedups of 2.6-5.4x were achieved. These improvements increase with the complexity of the models (e.g., tree depth).
- Communication Reduction: The new primitives lead to a dramatic reduction in online communication for comparison and equality, by 42x to 85x, by leveraging binary operations.
- Competitive Preprocessing: While Overdrive (a field-based protocol) still has an edge in WAN settings, the SPD Z2k offline phase is highly competitive, especially in LAN settings and for smaller bit lengths, and is comparable to MASCOT.
Limitations and Future Work
- WAN Performance: The SPD Z2k offline phase can be network-bound in Wide Area Network (WAN) settings, where Overdrive shows better performance due to lower communication complexity.
- Preprocessing Gap: The authors acknowledge that closing the performance gap between SPD Z2k preprocessing and Overdrive is an important future direction, suggesting Shared Fully Homomorphic Encryption (SHE)-based techniques as a promising avenue.
- Other Applications: The paper suggests exploring other applications of SPD Z2k, such as neural network evaluation, where share conversions are known to be beneficial.
- Further Optimization: Adapting Overdrive's preprocessing to the ring setting is mentioned as a promising area for future work.
Summary updated