MPCircuits: Optimized Circuit Generation for Secure Multi-Party Computation

M. Sadegh Riazi, Mojan Javaheripi, Siam U. Hussain, Farinaz Koushanfar

TL;DR

This paper introduces MPCircuits, the first automated toolchain for generating optimized Boolean circuits for secure multi-party computation (MPC) that scales beyond two parties. By leveraging hardware synthesis tools with custom libraries, MPCircuits significantly reduces computation time for MPC protocols, making complex multi-party computations more practical and efficient.

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 to each other. A critical step in utilizing MPC protocols is representing the desired function as a Boolean circuit. While efficient methods exist for two-party computations, the general case of more than two parties has been a significant challenge. Existing solutions for multi-party MPC often lack automated circuit generation, are inefficient, or are not easily adaptable to different MPC protocols. This paper addresses the need for an end-to-end, automated solution that generates optimized Boolean circuits specifically for multi-party MPC, bridging the gap between usability and secure, efficient realization.

Methods

The core of MPCircuits is its novel approach to circuit generation. Instead of relying on existing tools that are optimized for two-party MPC, MPCircuits introduces custom technology libraries for standard hardware synthesis tools. These libraries are designed to minimize "non-XOR" gates, which are the primary drivers of computation and communication costs in MPC protocols (specifically those based on the GMW or BMR paradigms).

The process involves:

  1. Function Description: Users describe their desired function in a Hardware Description Language (HDL) like Verilog, or potentially C/C++ for High-Level Synthesis (HLS).
  2. Custom Synthesis Libraries: MPCircuits uses specialized libraries that map basic arithmetic and logic operations to a minimal number of non-XOR gates. The synthesis tool's objective function is set to minimize the total number of non-XOR gates.
  3. Circuit Generation: Standard logic synthesis tools, equipped with these custom libraries, compile the HDL into an optimized Boolean circuit netlist.
  4. Post-Synthesis Translation: The generated netlist is parsed, topologically sorted to define gate dependencies, and then formatted into a standard file that MPC back-end engines can consume. This output format is adaptable to different MPC realizations.

The paper also highlights the "Free-XOR" optimization, which allows XOR and XNOR gates to be evaluated without communication or encryption, making them effectively free. MPCircuits leverages this by assigning zero cost to these gates during optimization.

Datasets

The paper does not use traditional datasets for training. Instead, it introduces and evaluates its methodology on a set of five benchmarks representing real-world MPC problems:

  • Auction: Selecting the highest bidder and their bid.
  • Voting: Determining the candidate with the most votes.
  • Private Set Intersection (PSI): Finding common elements between multiple parties' sets. Two variants are presented: Bitwise-AND and Sort-Merge-Compare-Shuffle (SMCS).
  • Stable Matching: Assigning individuals from two groups based on preference lists.
  • Nearest-Neighbor Search (NNS): Finding the k-nearest neighbors to a query point.

These benchmarks are designed to cover diverse computational and communication complexities and are presented as a valuable resource for evaluating MPC protocols.

Key Insights and Ideas

  • The Bottleneck is Non-XOR Gates: The paper clearly identifies that the number of non-XOR gates is the primary determinant of MPC protocol efficiency. This insight drives the optimization strategy of MPCircuits.
  • Leveraging Hardware Synthesis for MPC: The novel idea is to adapt mature hardware synthesis techniques and tools, which are highly optimized for logic minimization, to the specific constraints of MPC. This is achieved through custom technology libraries.
  • Scalability Beyond Two Parties: A significant contribution is addressing the multi-party (n > 2) case, which has been largely overlooked compared to two-party MPC. The benchmarks themselves are designed to test this scalability.
  • First Multi-Party Solutions for NNS and Stable Matching: The paper presents the first reported multi-party circuits for Nearest-Neighbor Search and Stable Matching, demonstrating the applicability of MPCircuits to novel and complex problems.
  • Modular and Generic Approach: MPCircuits is designed to be modular, allowing easy integration with various MPC back-end engines and adaptability to different security models (e.g., Honest-but-Curious).

Key Results

MPCircuits demonstrates significant performance improvements:

  • Computation Time Reduction: The paper reports up to 4.2x reduction in computation time for MPC protocols due to the optimized circuits generated by MPCircuits.
  • AND Gate Reduction: Optimized circuits generated by MPCircuits reduce the number of AND gates by 3.3x for Auction and 4.2x for Private Set Intersection (Bitwise-AND variant).
  • Efficiency Gains: Across all benchmarks, MPCircuits shows substantial improvements in efficiency compared to non-optimized approaches, with specific gains highlighted for Voting (1.4-2.7x more efficient) and Stable Matching (1.6-2.4x lower number of AND gates).
  • Scalability: The paper shows that circuit generation can easily scale to hundreds or even thousands of parties, as demonstrated by the gate counts in Tables VII and VIII.

Limitations and Future Work

  • Communication Bottleneck: While circuit generation is optimized, the paper acknowledges that for a large number of parties (higher than 16 in their experiments), the communication ports and physical machines become the bottleneck due to the n(n-1) point-to-point communication channels required by the BMR protocol.
  • Sequential Circuits: The current implementation of MPCircuits is for combinational circuits. The paper notes that there is no known methodology to directly use sequential circuits within the BMR protocol, necessitating the unrolling of sequential logic into combinational form, which can increase complexity (e.g., for Stable Matching).
  • Future Work: The authors suggest that MPCircuits can be extended to support other MPC protocols and implementations beyond BMR. They also mention the potential for integrating more complex functionalities and auditing steps into the generated circuits. The modularity of the approach allows for easy adaptation to different security models and problem variants (e.g., PSI-Cardinality).

Summary updated

BibTeX
@article{riazi2019mpcircuits,
  author = {M. Sadegh Riazi and Mojan Javaheripi and Siam U. Hussain and Farinaz Koushanfar},
  title = {{MPCircuits: Optimized Circuit Generation for Secure Multi-Party Computation}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2019},
}

Loading related content...

Figure