arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2211.13324cs.ARcs.CR
收藏

HAAC:一种用于加速混淆电路的硬件-软件协同设计

HAAC: A Hardware-Software Co-Design to Accelerate Garbled Circuits

Jianqiao Mo, Jayanth Gopinath, Brandon Reagen

AI总结:

本文提出硬件-软件协同设计 HAAC,通过编译器调度、流式执行与暂存器优化加速混淆电路,并在 VIP-Bench 上实现最高 2,627 倍平均加速。

摘要:

隐私和安全已迅速成为系统设计中的优先事项。同时提供二者的一种强大解决方案是隐私保护计算,即直接在加密数据上计算函数,并可对数据的使用方式提供控制。Garbled circuits(GCs,混淆电路)是一种 PPC 技术,既提供机密计算,也提供对数据使用方式的控制。其挑战在于,与明文计算相比,它们会产生显著的性能开销。本文提出了一种名为 HAAC 的新型混淆电路加速器和编译器,以缓解性能开销并使隐私保护计算更加实用。HAAC 是一种硬件-软件协同设计。GC 是协同设计的典型范例,因为程序在编译时完全已知,即所有依赖关系、内存访问和控制流都是固定的。HAAC 的设计理念是保持硬件简单高效,将尽可能多的面积用于我们提出的定制执行单元以及高性能所必需的其他电路(例如片上存储)。编译器可以利用其对程序的理解,通过生成高效的指令调度、数据布局以及协调片外事件来释放硬件的性能潜力。通过采用这种方法,我们能够在不牺牲通用性的情况下实现 ASIC 的性能/效率。该方法的洞见包括:协同设计如何使任意 GC 程序被表示为流,从而简化硬件并实现完全的内存-计算解耦;以及开发一种暂存器,通过跟踪程序执行来捕获数据复用,从而消除对昂贵的硬件管理缓存和标记逻辑的需求。我们使用 VIP-Bench 对 HAAC 进行评估,在 4.3mm² 的面积内,使用 DDR4 实现了平均 589 倍的加速(使用 HBM2 时为 2,627 倍)。

英文摘要:

Privacy and security have rapidly emerged as priorities in system design. One powerful solution for providing both is privacy-preserving computation, where functions are computed directly on encrypted data and control can be provided over how data is used. Garbled circuits (GCs) are a PPC technology that provide both confidential computing and control over how data is used. The challenge is that they incur significant performance overheads compared to plaintext. This paper proposes a novel garbled circuits accelerator and compiler, named HAAC, to mitigate performance overheads and make privacy-preserving computation more practical. HAAC is a hardware-software co-design. GCs are exemplars of co-design as programs are completely known at compile time, i.e., all dependence, memory accesses, and control flow are fixed. The design philosophy of HAAC is to keep hardware simple and efficient, maximizing area devoted to our proposed custom execution units and other circuits essential for high performance (e.g., on-chip storage). The compiler can leverage its program understanding to realize hardware's performance potential by generating effective instruction schedules, data layouts, and orchestrating off-chip events. In taking this approach we can achieve ASIC performance/efficiency without sacrificing generality. Insights of our approach include how co-design enables expressing arbitrary GCs programs as streams, which simplifies hardware and enables complete memory-compute decoupling, and the development of a scratchpad that captures data reuse by tracking program execution, eliminating the need for costly hardware managed caches and tagging logic. We evaluate HAAC with VIP-Bench and achieve an average speedup of 589$\times$ with DDR4 (2,627$\times$ with HBM2) in 4.3mm$^2$ of area.

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

↑