Coral: Maliciously Secure Computation Framework for Packed and Mixed Circuits

Zhicong Huang, Wen-jie Lu, Yuchen Wang, Cheng Hong, Tao Wei, Wenguang Chen

TL;DR

This paper introduces Coral, a new framework for secure multiparty computation (MPC) that significantly speeds up computations involving both boolean and arithmetic circuits. By refining existing techniques and introducing novel optimizations, Coral achieves dramatic efficiency gains, outperforming prior state-of-the-art methods by up to 30x in certain scenarios. This advancement brings high-performance, maliciously secure MPC closer to practical, large-scale applications.

What Problem Does This Paper Address?

Achieving "malicious security" in secure multiparty computation (MPC) is notoriously difficult. This security model assumes that a majority of participating parties could be malicious and actively try to cheat or disrupt the computation. While significant progress has been made, especially with frameworks like SPDZ and TinyOT, existing solutions for "dishonest-majority" settings often suffer from high performance penalties, limiting their real-world applicability.

Specifically, for computations involving boolean circuits (logic gates), techniques like Reverse Multiplication-Friendly Embedding (RMFE) have been proposed to improve efficiency. However, these methods have largely remained theoretical, with a substantial gap between their described efficiency and actual practical performance. Furthermore, many real-world applications require a mix of both boolean and arithmetic (mathematical) operations, and efficiently handling these "mixed circuits" securely is another major challenge. This paper aims to bridge the gap between theory and practice by providing a highly efficient, practical framework for both packed (SIMD-style) and mixed circuits.

Methods

Coral builds upon and significantly enhances existing MPC techniques, particularly focusing on RMFE. Here's a breakdown of their key methods:

  • Refined RMFE Implementation: The authors identify and fix several issues in prior RMFE-based protocols, leading to the first practically efficient realization of RMFE. This involves optimizing the underlying mathematical operations and ensuring compatibility between different embedding techniques.
  • RMFE-based Quintuples and daBits/edaBits: They introduce optimized protocols for generating "quintuples" (a more efficient alternative to Beaver triples for multiplication) and "double-authenticated bits" (daBits) and "extended double-authenticated bits" (edaBits). These are crucial building blocks for secure boolean and mixed-circuit computations.
  • Bridging RMFE and MFE: A key contribution is ensuring seamless integration between RMFE (Reverse Multiplication-Friendly Embedding) and MFE (Multiplication-Friendly Embedding). This involves carefully selecting parameters and implementing field conversions that were previously incompatible.
  • Vectorization and Optimization: Coral leverages recent advances in Vector Oblivious Linear Evaluation (VOLE) style OT extension to vectorize computations, significantly reducing communication overhead. They also employ techniques like lookup tables, caching, and precomputation for further speedups.
  • MP-SPDZ Integration: The framework is integrated into the existing MP-SPDZ library, allowing it to benefit from its compiler infrastructure and arithmetic circuit protocols.

Datasets

The paper does not explicitly mention training datasets. For evaluation, they use standard benchmarks for boolean circuits (Hamming distance, AES, SHA256, Bitonic sorting) and machine learning applications (Decision Tree, LeNet, SqueezeNet, ResNet). These benchmarks are either standard in the MPC literature or generated using established tools like the EMP toolkit.

Key Insights and Ideas

  • Theory-to-Practice Gap is Real: The paper strongly highlights that theoretical efficiency gains in MPC don't always translate directly to practical performance. Significant engineering effort is needed to bridge this gap, especially for techniques like RMFE.
  • RMFE is Powerful, But Needs Careful Handling: RMFE offers substantial theoretical advantages for boolean circuits, but its practical implementation requires meticulous attention to parameter choices and compatibility with other cryptographic primitives (like MFE).
  • Interoperability is Key: For mixed circuits, ensuring smooth conversion between different representations (e.g., boolean shares to arithmetic shares) is critical. Coral's approach to daBits and edaBits facilitates this.
  • Vectorization is a Game Changer: Applying vectorization techniques, especially with VOLE-style OT, dramatically reduces communication costs for many MPC operations.
  • SIMD for Security: Packing multiple inputs into a single "packed" representation (SIMD-style) not only speeds up computation but also allows for more efficient secure processing of mixed circuits.

Key Results

Coral demonstrates significant performance improvements across various benchmarks:

  • Boolean Circuits: Outperforms the foremost theoretical approach (Escudero et al.) by a factor of 16-30x and the leading practical implementation (Frederiksen et al.) by 4-7x in terms of communication.
  • Mixed Circuits: Achieves an average 3x speedup in WAN settings for machine learning applications, with communication overhead reductions of over 50%.
  • Microbenchmarks: Shows substantial improvements in preprocessing material generation throughput, especially in WAN settings, with gains of 5-8x and up to 10x over Tinier.
  • Specific Operations: Achieves up to 30x speedup in end-to-end circuit evaluation compared to a less optimized variant (Coral*).

Limitations and Future Work

  • Arithmetic Bottleneck: While Coral excels at optimizing boolean and mixed computations, arithmetic operations still remain a dominant cost in many applications, particularly in machine learning. The authors suggest that integrating advancements in matrix and convolution triples could further improve performance.
  • Parameter Tuning: The performance gains are sensitive to parameter choices (e.g., RMFE expansion ratios). Finding optimal parameters for specific applications might require further research.
  • Future Work: The authors suggest exploring further optimizations for arithmetic computations, integrating more advanced techniques for matrix and convolution operations, and continuing to push the boundaries of efficient, secure mixed-circuit computation. They also emphasize the need for more engineering effort to realize the full potential of these techniques in real-world scenarios.

Summary updated

BibTeX
@article{huang2024coral,
  author = {Zhicong Huang and Wen-jie Lu and Yuchen Wang and Cheng Hong and Tao Wei and Wenguang Chen},
  title = {{Coral: Maliciously Secure Computation Framework for Packed and Mixed Circuits}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2024},
}
Figure