Abstract
Secure Multi-party Computation (SMC) is a powerful tool for privacy-preserving data processing, yet its practical adoption is hindered by significant computational overhead. This paper presents Fastplay, a high-performance framework that accelerates SMC by offloading heavy cryptographic operations—specifically Oblivious Transfer (OT) and gate garbling—to GPU clusters. By reengineering Elliptic Curve Cryptography (ECC) for massive parallelization within a four-tiered architecture, Fastplay achieves a 35–40x speedup over traditional serial implementations. This work demonstrates that the SIMD nature of GPUs is exceptionally well-suited for the "embarrassingly parallel" tasks inherent in SMC protocols.
Introduction
Secure Multi-party Computation (SMC) enables multiple parties to jointly compute a function over their private inputs while maintaining input confidentiality. Despite its theoretical appeal, SMC is notoriously slow. The primary bottlenecks reside in Oblivious Transfer (OT) and gate garbling, which require intensive cryptographic operations for every logic gate in a circuit.
Existing frameworks, such as Fairplay, are largely serial and struggle to meet the computational and bandwidth demands of complex, real-world applications like DNA biometrics or network security alert correlation. Fastplay addresses these challenges by leveraging the Single Instruction, Multiple Data (SIMD) architecture of modern GPUs to scale these protocols effectively.
System Architecture
Fastplay is structured into a four-tiered parallelization model designed to streamline the transition from high-level function specification to low-level hardware execution.
- Specification Layer: Utilizes the Secure Function Definition Language (SFDL) to define the target computation.
- Function Layer: Acts as a task dispatcher, managing gate-level and circuit-level connections and invoking specific garbling functions.
- Secure Protocol Layer: Implements ECC-based gate garbling (EGG) and ECC-based 1-out-of-2 OT. It also maintains compatibility with 3-DES based garbling (3-DGG) for multicore CPU execution.
- Arithmetic Layer (EAGL): The core engine, featuring the ECC Arithmetic GPU Library (EAGL). This library was reengineered from the ground up to optimize memory access and minimize branch divergence on GPU hardware.
Parallel Implementation and EAGL
The heart of Fastplay's performance lies in its parallel implementation layer. The authors developed EAGL by reengineering portions of the MIRACL library to fit the restricted resource environment of GPUs.
A key innovation is the handling of ECC point multiplications. In OT protocols, many operations share a constant public point $P$. Fastplay implements a caching technique that shares this point across thousands of GPU threads, significantly reducing redundant computations. Furthermore, the system optimizes synchronization between the host CPU and the GPU cluster to ensure that the hardware remains fully utilized, minimizing idle time.
Key Insights and Innovations
- SIMD Alignment: SMC protocols process data bits independently using identical steps, making them "embarrassingly parallel" and an ideal fit for GPU acceleration.
- ECC for Bandwidth Efficiency: By transitioning from traditional Discrete Logarithm Problem (DLP) based OT to ECC, Fastplay reduces the size of group elements from 1024 bits to 320 bits. This reduction cuts communication bandwidth requirements by approximately two-thirds.
- Custom Library Engineering: Simply porting existing cryptographic libraries to CUDA proved ineffective due to memory management and execution control issues. Success required a fundamental reengineering of data structures to minimize the overhead of global memory access.
- Graceful Overloading: The system maintains efficiency even when running more threads than physical cores. The overhead of block switching is negligible compared to the massive throughput gains achieved through parallelism.
Evaluation and Results
The system was evaluated using standard SMC benchmark circuits, such as 32-bit equality checking and 8-bit minimum-of-two calculations. To saturate the GPU hardware, 3,072 instances of these circuits were run in parallel.
Fastplay achieved a 35–40x acceleration compared to a serial implementation on a 2.53GHz duo-core CPU when running on a cluster of six NVIDIA Tesla C870 GPUs. The system demonstrated highly linear acceleration for ECC-related computations, provided the system was not bottlenecked by host-to-device data transfers (DMA). Additionally, the ECC-based OT protocol significantly improved data transfer efficiency, addressing one of the secondary bottlenecks in SMC.
Conclusion and Future Work
While Fastplay offers substantial performance gains, certain limitations remain. For smaller circuits, the overhead of Direct Memory Access (DMA) between the CPU and GPU can diminish performance improvements. Additionally, complex Boolean logic can lead to "warp divergence," where non-uniform execution paths cause some GPU cores to sit idle.
Future work will explore point compression techniques to further reduce bandwidth and investigate the application of this parallelization model to more complex, non-Boolean circuit types.
Summary updated