Abstract
Privacy-preserving computation (PPC) often relies on Garbled Circuits (GC), which exist in two primary forms: Boolean and Arithmetic. While Boolean GCs are universal, they are inefficient for mathematical operations; conversely, Arithmetic GCs excel at math but struggle with non-linear logic. Mixed GC approaches aim to combine these strengths but are frequently hindered by the high overhead of conversion gates. This paper introduces ABLE (Arithmetic Boolean Logic Exchange), a framework that optimizes mixed GC through improved prime selection, row reduction for conversion gates, and decision-making metrics. Our implementation achieves up to a 50% reduction in conversion communication and significant system-wide performance gains.
Introduction
Garbled Circuits are a fundamental building block of secure multi-party computation. Traditionally, developers have had to choose between Boolean GCs (logic-gate based) and Arithmetic GCs (ring-based). Mixed-mode circuits attempt to bridge this gap, using Arithmetic GC for heavy computation (like multiplication) and switching to Boolean GC for non-linear operations (like comparisons or square roots). However, the "bridge" operations—Bit-Decomposition (BD) and Bit-Composition (BC)—often introduce such significant overhead that the benefits of the mixed approach are lost. ABLE addresses these inefficiencies to make mixed GC a practical reality.
The ABLE Framework: Optimizing the Pipeline
ABLE optimizes the mixed GC pipeline through several key technical contributions. First, it introduces an optimized prime selection algorithm for the Residue Number System (RNS) used in Arithmetic GC. Rather than selecting the smallest available primes, ABLE identifies a minimal set that satisfies bit-width requirements while minimizing the total sum of primes, directly reducing communication costs.
Second, ABLE applies row reduction to conversion gates. By adapting this standard Boolean GC optimization to BC and BD gates, the framework allows the garbler to omit one row of the garbled table, cutting the communication overhead of these critical bridges by approximately 50%.
To assist developers in circuit design, ABLE defines "BC/BD equivalent ratios." These metrics quantify the number of arithmetic operations required to offset the cost of a conversion, providing a predictive tool for determining when a mixed approach is superior to a pure Boolean implementation.
Performance and Key Results
Evaluation of ABLE across various microbenchmarks and a LeNet-5 case study demonstrates substantial improvements in efficiency. The row reduction technique specifically achieved a 48.6% reduction in table size for bit-decomposition and a 50% reduction for bit-composition. For a standard 16-bit arithmetic system, these optimizations translated to a 14.1% reduction in total communication and a 15.7% decrease in runtime.
Our results highlight a critical "payback period" for mixed GC. For low bit-widths (4-bit or 8-bit), the conversion costs often outweigh the arithmetic speedups. However, at higher bit-widths, the advantages are clear: in the LeNet-5 case study, a "Smart Convert" approach reduced the garbled table size by 75% compared to a pure Boolean baseline. Furthermore, while Arithmetic GC can speed up operations by over 17×, the high CPU cost of hashing and modulo operations suggests that communication and latency are not always perfectly correlated.
Conclusion
ABLE provides the first comprehensive implementation and optimization framework for mixed Garbled Circuits. By significantly lowering the cost of conversion gates and providing clear metrics for their use, ABLE enables more efficient privacy-preserving computations. Future work will focus on addressing the CPU bottlenecks identified in this study, potentially through hardware acceleration, and refining polynomial approximations for non-linear functions in pure arithmetic contexts.
Summary updated