arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.11112cs.CRcs.DCcs.SE
收藏

基于LLVM的SPDZ优化流水线

An LLVM-Based Optimization Pipeline for SPDZ

Davidson College(戴维森学院)

Tianye Dai, Hammurabi Mendes, Heuichan Lim

AI总结:

本文提出了一种基于LLVM的SPDZ优化流水线,通过自动批量独立算术操作和非阻塞调度器提升性能,实现CPU和GPU的高效并行计算。

摘要:

主动安全的算术MPC现在可以用于实际应用,但性能和可用性仍然受到框架特定的编译栈、程序员需要显式表达并行性以及高通信开销的限制。我们设计并实现了一个基于LLVM的SPDZ协议优化流水线的概念证明,以解决这些瓶颈。我们的前端接受一部分C语言,并带有轻量级隐私注解,将其转换为LLVM IR,使我们能够重用成熟的分析和转换来自动批量独立的算术操作。我们的后端对优化后的IR进行数据流和控制流分析,以驱动一个非阻塞运行时调度器,该调度器重叠独立的操作,并积极重叠通信与计算;当启用时,它可以将批量操作映射到GPU内核。这种设计通过使用主流语言和隐藏优化和硬件特定的机制来保持低学习曲线。我们在受控的微基准测试中评估了该系统,与MP-SPDZ相比,重点在于在线阶段的性能。我们的CPU后端在中等和重的代数工作负载下实现了高达5.56倍的加速,显示了线程数的强扩展性,而我们的GPU后端随着输入规模的增加而扩展性更好。总体而言,这些结果表明,利用LLVM与协议感知调度器是提取并行性而不牺牲可用性的有效架构方向。

英文摘要:

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 low learning curve by using a mainstream language and hiding optimization and hardware-specific mechanics from programmers. We evaluate the system on controlled microbenchmarks against MP-SPDZ, focusing on online phase performance. Our CPU back end achieves up to 5.56 times speedup under intermediate and heavy algebraic workloads, shows strong scaling with thread count, and our GPU back end scales better as the input size increases. Overall, these results indicate that leveraging LLVM with protocol-aware scheduling is an effective architectural direction for extracting parallelism without sacrificing usability.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑