从数组程序到向量化同态加密的编译器
A Compiler from Array Programs to Vectorized Homomorphic Encryption
AI总结:
本文提出Viaduct-HE编译器,将面向数组的源程序自动生成高效向量化同态加密程序,通过搜索向量化调度和项重写优化,生成与专家设计相当的复杂数据布局和优化。
摘要:
同态加密(HE)是一种在加密数据上进行安全计算的实用方法。然而,编写具有高效同态加密实现的程序仍然是专家的专属领域。可编程性的一个困难障碍是,效率要求以不明显的方式进行向量化,迫使高效的同态加密程序操作具有复杂数据布局的密文,并将计算与数据移动原语交错进行。我们提出了Viaduct-HE,一个生成高效向量化同态加密程序的编译器。Viaduct-HE可以生成高效同态加密程序所需的操作和复杂数据布局。Viaduct-HE的源语言是面向数组的,使编译器能够简单表示可能的向量化调度。借助这种表示,编译器搜索可能的向量化调度空间,并找到具有高效数据布局的调度。找到向量化调度后,Viaduct-HE通过项重写进一步优化同态加密程序。编译器具有扩展点,可以定制向量化调度的探索、定制同态加密程序的成本模型,并为新的同态加密库添加后端。我们对Viaduct-HE编译器原型的评估表明,它生成了具有复杂数据布局和与专家设计的优化相当的高效向量化同态加密程序。
英文摘要:
Homomorphic encryption (HE) is a practical approach to secure computation over encrypted data. However, writing programs with efficient HE implementations remains the purview of experts. A difficult barrier for programmability is that efficiency requires operations to be vectorized in inobvious ways, forcing efficient HE programs to manipulate ciphertexts with complex data layouts and to interleave computations with data movement primitives. We present Viaduct-HE, a compiler generates efficient vectorized HE programs. Viaduct-HE can generate both the operations and complex data layouts required for efficient HE programs. The source language of Viaduct-HE is array-oriented, enabling the compiler to have a simple representation of possible vectorization schedules. With such a representation, the compiler searches the space of possible vectorization schedules and finds those with efficient data layouts. After finding a vectorization schedule, Viaduct-HE further optimizes HE programs through term rewriting. The compiler has extension points to customize the exploration of vectorization schedules, to customize the cost model for HE programs, and to add back ends for new HE libraries. Our evaluation of the prototype Viaduct-HE compiler shows that it produces efficient vectorized HE programs with sophisticated data layouts and optimizations comparable to those designed by experts.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。