Abstract
Secure Multi-Party Computation (SMC) has evolved from a theoretical cryptographic primitive into a practical solution for privacy-preserving data analysis. However, as deployment moves to public cloud environments, the primary bottleneck for adoption is no longer just computational feasibility, but monetary cost. This paper presents CheapSMC, a framework designed to minimize the actual dollar cost of running SMC in the cloud. By automatically selecting the most cost-effective mix of secret-sharing schemes—Arithmetic, Boolean, and Yao’s Garbled Circuits—CheapSMC can reduce cloud expenses by up to 96% compared to traditional single-protocol approaches.
Introduction
Secure Multi-Party Computation (SMC) allows multiple parties to jointly compute a function over their private inputs while keeping those inputs secret. While the efficiency of SMC protocols has improved by orders of magnitude over the last decade, a significant hurdle remains: deployment optimization.
In a cloud environment, "cost" is a multi-dimensional metric. Cloud providers like Amazon Web Services (AWS) charge not only for CPU time (instance hours) but also for network data transfer (egress fees), especially in inter-region deployments. Different SMC protocols have distinct performance profiles: Arithmetic sharing is highly efficient for addition, while Yao’s Garbled Circuits are better suited for comparisons. The challenge lies in the fact that finding the optimal combination of these protocols for a complex circuit is an NP-Hard problem. Most existing tools either require manual protocol selection or optimize solely for execution speed, often ignoring the significant impact of data transfer fees.
The CheapSMC Framework
CheapSMC addresses these challenges by decoupling the high-level logic of a protocol from its low-level cryptographic implementation. The framework consists of four primary components:
- Programming API: A C++ library that allows users to define their computation as a Directed Acyclic Graph (DAG) of atomic operations, such as Addition, Multiplication, and XOR.
- Cost Profiling: To account for the variability of cloud pricing and performance, CheapSMC performs one-time benchmarks on the target cloud service. This gathers performance and cost statistics for basic operations and the "conversions" required to switch between different sharing schemes.
- Optimization Module: This component serves as the system's core intelligence. It utilizes heuristics to assign a specific secret-sharing scheme to every node in the circuit DAG to minimize total monetary cost.
- SMC Layer: A black-box interface that translates the optimized circuit into an executable. In the current implementation, CheapSMC utilizes the ABY framework as its underlying cryptographic engine.
Optimization Heuristics
Because the search space for protocol selection is vast, CheapSMC introduces two novel heuristics to replace or augment standard approaches like Hill-Climbing:
- Top-Down Heuristic: This approach assigns schemes starting from the output nodes and works backward, considering how a node’s result will be utilized by its parent nodes.
- Bottom-Up Heuristic: This approach starts from the input nodes, selecting the cheapest protocol based on the schemes already assigned to the child nodes.
Experimental Evaluation
The authors evaluated CheapSMC using two common SMC benchmarks: Biometric Matching (squared Euclidean distance) and Matrix Multiplication ($5 \times 5$ matrices). The testing environment utilized four Amazon EC2 instance types (m3.medium, m3.large, c4.large, c4.xlarge) across two regions (North Virginia and Tokyo) to simulate both local (Intra-Region) and global (Inter-Region) deployments.
Key Insights
- The Network Bottleneck: In Inter-Region scenarios, network transfer costs are the dominant factor. Optimization strategies that focus exclusively on CPU time often fail because they may select a protocol that is computationally fast but requires massive data transfer, leading to higher egress fees.
- The "Faster VM" Trap: The evaluation revealed that paying for more expensive, compute-optimized instances (such as the c4 series) does not always result in lower total costs. Memory-optimized instances (like the m3 series) often provided a superior balance of performance per dollar for SMC tasks.
- Mixed-Protocol Superiority: The results confirm that no single protocol is the most cost-effective for all tasks. The ability to switch between Arithmetic sharing for additions and Yao for comparisons is the primary driver of cost savings.
Results
CheapSMC demonstrated massive cost reductions, particularly in geographically distributed setups. In Inter-Region scenarios, the framework's heuristics were up to 96% cheaper than using pure Garbled Circuits and 30% cheaper than existing state-of-the-art optimization heuristics like Hill-Climbing. Furthermore, for biometric matching, the Top-Down heuristic reduced execution time by 15% while simultaneously lowering the monetary cost, proving that cost-optimization and performance-optimization can occasionally align.
Conclusion and Future Work
CheapSMC provides a practical path forward for organizations looking to deploy privacy-preserving computations in the cloud without incurring prohibitive costs. While the current framework assumes sequential circuit evaluation and static DAGs, it establishes a foundation for cost-aware SMC. Future work includes extending the framework to support multi-threaded implementations and dynamic protocols with data-dependent control flow. As cloud pricing models continue to evolve, the decoupling of logic from cost-profiling ensures that CheapSMC remains a versatile tool for the privacy-conscious enterprise.
Summary updated