arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2007.10560cs.CRcs.DCcs.LG
收藏

基于FPGA的高效联邦学习同态加密硬件加速器

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

Hong Kong University of Science and Technology(香港科技大学);Clustar(星辰天合);Peng Cheng Lab(鹏城实验室)

Zhaoxiong Yang, Shuihai Hu, Kai Chen

摘要:

随着人们对隐私保护和数据碎片问题的日益关注,联邦学习已经成为机器学习的一种新范式。联邦学习倾向于利用各种隐私保护机制来保护传输的中间数据,其中同态加密在安全性和易用性之间取得了平衡。然而,复杂的操作和大的操作数给联邦学习带来了巨大的开销。更有效地保持准确性和安全性一直是联邦学习的关键问题。在这项工作中,我们研究了一种硬件解决方案,并设计了一个基于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.

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

↑