使用 E-Graph 进行切割追踪以实现布尔 FHE 电路综合
Cut Tracing with E-Graphs for Boolean FHE Circuit Synthesis
AI总结:
提出基于 e-graphs 的切割追踪技术,融合现有 MC 与 MD 优化流程,在二者权衡中最小化 FHE 电路同态求值运行时,最高带来 40% 的性能提升。
摘要:
全同态加密(FHE)是一种很有前景的隐私保护技术,能够对加密数据执行安全计算。当前 FHE 方案的一个主要限制是其高昂的运行时开销。因此,对描述 FHE 计算的电路进行自动优化已经在逻辑综合领域引起了广泛关注。现有工作主要针对 FHE 电路的乘法深度(MD)和乘法复杂度(MC),它们分别对应于从主输入到输出的一条路径上的最大乘法数量,以及乘法的总数量。在许多 FHE 方案中,这些指标是影响电路同态求值运行时的主要因素。然而,它们往往彼此对立:降低深度或复杂度中的任一项,都可能导致另一项上升。据我们所知,现有工作尚未针对总体运行时优化 FHE 电路,而只是一次考虑一个指标,因此作出了显著的权衡。本文中,我们使用 e-graphs 来增强分别优化 MC 和 MD 的现有流程,所采用的技术称为切割追踪(cut tracing)。我们展示了切割追踪如何有效结合两个最先进的 MC 和 MD 缩减流程,并平衡它们的弱点以最小化运行时。我们的初步结果表明,当应用于这两个流程时,切割追踪可使同态求值运行时最高提升 40%。
英文摘要:
Fully Homomorphic Encryption (FHE) is a promising privacy-preserving technology enabling secure computation over encrypted data. A major limitation of current FHE schemes is their high runtime overhead. As a result, automatic optimization of circuits describing FHE computation has garnered significant attention in the logic synthesis community. Existing works primarily target the multiplicative depth (MD) and multiplicative complexity (MC) of FHE circuits, corresponding to the total number of multiplications and maximum number of multiplications in a path from primary input to output, respectively. In many FHE schemes, these metrics are the primary contributors to the homomorphic evaluation runtime of a circuit. However, oftentimes they are opposed: reducing either depth or complexity may result in an increase in the other. To our knowledge, existing works have yet to optimize FHE circuits for overall runtime, only considering one metric at a time and thus making significant tradeoffs. In this paper, we use e-graphs to augment existing flows that individually optimize MC and MD, in a technique called cut tracing. We show how cut tracing can effectively combine two state-of-the-art MC and MD reduction flows and balance their weaknesses to minimize runtime. Our preliminary results demonstrate that cut tracing yields up to a 40% improvement in homomorphic evaluation runtime when applied to these two flows.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。