arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2410.04805cs.ARcs.CR
收藏

HF-NTT:面向数论变换的无冒险数据流加速器

HF-NTT: Hazard-Free Dataflow Accelerator for Number Theoretic Transform

Xiangchen Meng, Zijun Jiang, Yangdi Lyu

AI总结:

针对全同态加密中多项式乘法计算低效、缺乏适配性强的NTT加速器的问题,提出无冒险数据流加速器HF-NTT,通过可配置PE、免位反转数据策略等实现通用架构,在FPGA上验证了面积时间积和延迟的性能优势。

摘要:

多项式乘法是全同态加密(FHE)等众多应用中的基础运算之一。然而,由系数位宽较大的多项式带来的计算低效问题,给FHE的实际落地带来了严峻挑战。数论变换(NTT)已被证实是提升多项式乘法效率的有效工具,但目前仍缺乏快速且适配性强的NTT加速器生成方法。\n本文提出了一种新型NTT加速器HF-NTT。HF-NTT可高效处理不同阶数和模数的多项式,能够通过调整处理单元(PE)的数量,在性能与硬件资源之间实现平衡。同时,我们提出了一种数据移动策略,无需执行位反转操作,可解决各类冒险问题并减少时钟周期。此外,该加速器包含硬件友好的模乘设计,以及可适配数据通路的可配置PE,由此形成通用架构。\n我们使用Vivado 2022.2完成了原型的综合与实现,并在Xilinx Virtex-7 FPGA平台上进行了评估。结果表明,针对不同多项式阶数,该设计在面积时间积(ATP)和处理速度上均有显著提升。在涉及多模数多项式乘法的场景中,我们的原型在ATP和延迟指标上始终优于其他设计方案。

英文摘要:

Polynomial multiplication is one of the fundamental operations in many applications, such as fully homomorphic encryption (FHE). However, the computational inefficiency stemming from polynomials with many large-bit coefficients poses a significant challenge for the practical implementation of FHE. The Number Theoretic Transform (NTT) has proven an effective tool in enhancing polynomial multiplication, but a fast and adaptable method for generating NTT accelerators is lacking. In this paper, we introduce HF-NTT, a novel NTT accelerator. HF-NTT efficiently handles polynomials of varying degrees and moduli, allowing for a balance between performance and hardware resources by adjusting the number of Processing Elements (PEs). Meanwhile, we introduce a data movement strategy that eliminates the need for bit-reversal operations, resolves different hazards, and reduces the clock cycles. Furthermore, Our accelerator includes a hardware-friendly modular multiplication design and a configurable PE capable of adapting its data path, resulting in a universal architecture. We synthesized and implemented prototype using Vivado 2022.2, and evaluated it on the Xilinx Virtex-7 FPGA platform. The results demonstrate significant improvements in Area-Time-Product (ATP) and processing speed for different polynomial degrees. In scenarios involving multi-modulus polynomial multiplication, our prototype consistently outperforms other designs in both ATP and latency metrics.

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

↑