论文标题

基于FPGA的同型加密的硬件加速器,用于有效联合学习

FPGA-Based Hardware Accelerator of Homomorphic Encryption for Efficient Federated Learning

论文作者

Yang, Zhaoxiong, Hu, Shuihai, Chen, Kai

论文摘要

随着对隐私保护和数据分裂问题的越来越多的认识,联邦学习一直是机器学习的新范式。联邦学习倾向于利用各种隐私保存机制来保护转移的中间数据,其中同态加密在安全性和易用性之间取得了平衡。但是,复杂的操作和大型操作数对联邦学习施加了重要的开销。保持准确性和安全性更有效是联合学习的关键问题。在这项工作中,我们研究了一个硬件解决方案,并设计了一个基于FPGA的同型加密框架,旨在加快联合学习的训练阶段。根部复杂性在于寻找用于同态加密的核心操作的紧凑型体系结构,以适应有关高加密吞吐量和配置灵活性的联合学习的要求。我们的框架实现了代表性的Paillier同构密码系统具有高级合成的灵活性和便携性,并在处理时钟周期,资源使用情况和时钟频率方面对模块化乘法操作进行了仔细的优化。我们的加速器实现了近乎最佳的执行时钟周期,比现有设计的DSP效率更好,并且在各种联合学习模型的培训过程中,加密时间最多减少了71%。

With the increasing awareness of privacy protection and data fragmentation problem, federated learning has been emerging as a new paradigm of machine learning. Federated learning tends to utilize various privacy preserving mechanisms to protect the transferred intermediate data, among which homomorphic encryption strikes a balance between security and ease of utilization. However, the complicated operations and large operands impose significant overhead on federated learning. Maintaining accuracy and security more efficiently has been a key problem of federated learning. In this work, we investigate a hardware solution, and design an FPGA-based homomorphic encryption framework, aiming to accelerate the training phase in federated learning. The root complexity lies in searching for a compact architecture for the core operation of homomorphic encryption, to suit the requirement of federated learning about high encryption throughput and flexibility of configuration. Our framework implements the representative Paillier homomorphic cryptosystem with high level synthesis for flexibility and portability, with careful optimization on the modular multiplication operation in terms of processing clock cycle, resource usage and clock frequency. Our accelerator achieves a near-optimal execution clock cycle, with a better DSP-efficiency than existing designs, and reduces the encryption time by up to 71% during training process of various federated learning models.

扫码加入交流群

加入微信交流群

微信交流群二维码

扫码加入学术交流群,获取更多资源