An LLVM-Based Optimization Pipeline for SPDZ
Tianye Dai, Hammurabi Mendes, Heuichan Lim

TL;DR
This paper presents an LLVM-based optimization pipeline for the SPDZ secure multi-party computation protocol, significantly improving performance and scalability by automating parallelism and communication overlapping while maintaining usability.
Contribution
It introduces a novel LLVM-based framework that automates parallelism and communication optimization for SPDZ, reducing programmer effort and enhancing performance.
Findings
CPU backend achieves up to 5.56x speedup
Strong scaling with thread count demonstrated
GPU backend scales better with larger inputs
Abstract
Actively secure arithmetic MPC is now practical for real applications, but performance and usability are still limited by framework-specific compilation stacks, the need for programmers to explicitly express parallelism, and high communication overhead. We design and implement a proof-of-concept LLVM-based optimization pipeline for the SPDZ protocol that addresses these bottlenecks. Our front end accepts a subset of C with lightweight privacy annotations and lowers it to LLVM IR, allowing us to reuse mature analyses and transformations to automatically batch independent arithmetic operations. Our back end performs data-flow and control-flow analysis on the optimized IR to drive a non-blocking runtime scheduler that overlaps independent operations and aggressively overlaps communication with computation; when enabled, it can map batched operations to GPU kernels. This design preserves a…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsParallel Computing and Optimization Techniques · Security and Verification in Computing · Cryptographic Implementations and Security
