[Paper Review] FPGA-Based Hardware Accelerator of Homomorphic Encryption for Efficient Federated Learning
This paper presents an FPGA-based hardware accelerator for Paillier homomorphic encryption to enhance training efficiency in federated learning. By leveraging high-level synthesis and optimizing modular multiplication using the Montgomery algorithm, the design achieves up to 71% reduction in encryption time and 10.6× speedup over software, with superior DSP efficiency and compact resource usage for datacenter deployment.
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.
Motivation & Objective
- To address the performance bottleneck of homomorphic encryption in federated learning due to high computational overhead.
- To design a compact, high-throughput FPGA-based accelerator for Paillier encryption that supports secure, privacy-preserving federated learning.
- To optimize modular multiplication—the core operation in Paillier encryption—for low latency, high clock frequency, and efficient DSP usage.
- To enable flexible, portable, and reconfigurable deployment via high-level synthesis (HLS) without sacrificing performance.
- To integrate the accelerator into the FATE federated learning framework with minimal changes to existing models.
Proposed method
- Designing a Paillier homomorphic encryption accelerator using high-level synthesis (HLS) for portability and parametric configuration.
- Implementing modular multiplication via the Montgomery algorithm to eliminate division and improve FPGA compatibility.
- Optimizing the modular multiplication unit for minimal clock cycles, low resource usage, and high clock frequency through pipelining and resource-aware scheduling.
- Reducing encryption latency by batching multiple data items per kernel and overlapping computation with data transfer via OpenCL command queues.
- Integrating the accelerator as an OpenCL kernel library into the FATE framework to replace software-based Paillier encryption.
- Using analytical modeling to guide optimization across clock cycles, DSP usage, memory bandwidth, and area efficiency.
Experimental results
Research questions
- RQ1How can FPGA-based acceleration improve the throughput and efficiency of homomorphic encryption in federated learning?
- RQ2What architectural optimizations are most effective for minimizing latency and resource usage in Paillier modular multiplication on FPGAs?
- RQ3How does the proposed hardware accelerator compare to software-based Paillier implementations in terms of encryption and decryption performance?
- RQ4To what extent does the hardware accelerator reduce training iteration time in federated learning with linear models?
- RQ5Can the accelerator maintain high security and accuracy while enabling scalable, secure model training in datacenter environments?
Key findings
- The FPGA-based Paillier accelerator achieves a 10.6× speedup in encryption and 2.76× speedup in decryption compared to a software implementation using the PHE library.
- The modular multiplication unit reduces encryption time by up to 71.2% per training iteration in linear models, leading to a 26% reduction in overall training iteration time.
- The design achieves a DSP-efficiency of 12,626 operations per second per DSP block, outperforming prior FPGA solutions such as San and At (2014), which achieved 8,903 op/s per DSP.
- The implementation maintains near-ideal performance, with execution cycles within 10% of theoretical minimum across various operand sizes, due to effective pipelining and latency hiding.
- The use of high-level synthesis enables flexible, reusable, and portable hardware design, unlike traditional RTL-based approaches that lack configurability.
- The accelerator uses only 9 DSP blocks and 483 slices, achieving high compactness and efficiency, outperforming designs that rely solely on LUTs or block RAMs.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.