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 CPUs than traditional field-based MPC. These primitives enable faster private machine learning tasks like decision tree and SVM evaluation, significantly 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. While actively secure MPC protocols exist, they are often slow and typically operate over finite fields. This paper tackles the problem of achieving actively secure MPC over rings (specifically, modulo 2^k), which aligns better with native CPU operations and can lead to more efficient implementations, especially for applications like machine learning that require complex arithmetic. The authors aim to bridge the gap between the efficiency of ring-based computations and the security guarantees of actively secure MPC, particularly in the challenging "dishonest majority" setting.
Methods
The core contribution is the development of new primitives for actively secure MPC over rings (Z_{2^k}) that overcome issues like zero-divisors and the non-invertibility of 2. Key techniques include:
- SPDZ2k Protocol: Building upon the SPDZ2k protocol, which already supports actively secure MPC over rings, the authors implement and extend it.
- Arithmetic-to-Binary and Binary-to-Arithmetic Conversions: Efficient protocols are designed to seamlessly convert between secret-shared representations of binary values and ring values. This is crucial for leveraging existing efficient binary operations.
- Efficient Primitives: New protocols are developed for essential operations like equality testing, comparison, and truncation over rings. These are adapted from field-based protocols but modified to work correctly in the ring setting, often by using bitwise operations and conversions.
- TinyOT Integration: The paper leverages TinyOT-style protocols for efficient generation of binary multiplication triples, significantly speeding up the preprocessing phase.
- Optimized Integer Arithmetic: A custom 128-bit integer type is implemented in Java to accelerate arithmetic operations within the FRESCO framework, outperforming standard Java BigInteger.
- Fast Hashing: Optimized hashing techniques using AES-NI instructions are employed for efficiency in the preprocessing phase.
Datasets
The paper evaluates its protocols on standard machine learning datasets for decision tree and SVM evaluation:
- Decision Trees: Hill Valley, Spambase, Diabetes (from the UCI repository).
- SVMs: CIFAR-10, MIT-67, ALOI.
These datasets are used to demonstrate the practical performance improvements of the proposed MPC protocols in real-world machine learning scenarios.
Key Insights and Ideas
- Ring-based MPC is Practical and Efficient: The paper provides strong experimental evidence that actively secure MPC over rings (Z_{2^k}) can be significantly faster than field-based MPC, especially for applications that benefit from native CPU arithmetic.
- Bridging Binary and Arithmetic Worlds: The ability to efficiently convert between binary and arithmetic secret shares is a critical enabler for combining the strengths of both types of computations, leading to optimized primitives.
- TinyOT for Preprocessing: Leveraging TinyOT for generating binary triples drastically reduces the preprocessing overhead, making the overall MPC system more practical.
- Comparison is a Bottleneck: The performance improvements are most pronounced in operations like comparison and equality testing, highlighting their critical role in machine learning applications and the effectiveness of the new ring-based primitives for these tasks.
Key Results
- 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: Oblivious evaluation of decision trees and SVMs is 2-5.3x faster in the online phase using the new SPD Z2k primitives compared to SPD Z.
- Communication Reduction: Online communication for comparison and equality is reduced by 42x to 85x due to the use of binary operations.
- Preprocessing Efficiency: While SPD Z2k's offline phase is still more computationally intensive than highly optimized protocols like Overdrive in WAN settings, it becomes competitive in LAN settings and is comparable to MASCOT for similar bit-lengths. The integration of TinyOT for bit-triple generation significantly boosts preprocessing throughput.
- Custom Integer Type: The custom 128-bit integer type provides up to a 4.7x speedup for multiplications compared to Java's BigInteger, and up to a 24.5x speedup for SPD Z compared to SPD Z2k using BigInteger.
Limitations and Future Work
- WAN Preprocessing: The SPD Z2k offline phase can saturate the network in WAN settings, and its communication complexity is still higher than Overdrive. The authors suggest that adapting Overdrive's techniques to the ring setting is a promising direction for future work.
- Neural Network Evaluation: The paper mentions exploring other applications of SPD Z2k, such as neural network evaluation, where share conversions are known to be beneficial.
- Performance Gap: Closing the performance gap between SPD Z2k preprocessing and Overdrive remains an open challenge.
- SHE-based Techniques: The authors suggest that Fully Homomorphic Encryption (SHE)-based techniques might offer a venue for improving preprocessing performance.
Summary updated