[Paper Review] F1: A Fast and Programmable Accelerator for Fully Homomorphic Encryption (Extended Version)
F1 is the first programmable FHE accelerator that executes complete FHE programs with high throughput, significantly outperforming software and enabling real-time secure cloud inference.
Fully Homomorphic Encryption (FHE) allows computing on encrypted data, enabling secure offloading of computation to untrusted serves. Though it provides ideal security, FHE is expensive when executed in software, 4 to 5 orders of magnitude slower than computing on unencrypted data. These overheads are a major barrier to FHE's widespread adoption. We present F1, the first FHE accelerator that is programmable, i.e., capable of executing full FHE programs. F1 builds on an in-depth architectural analysis of the characteristics of FHE computations that reveals acceleration opportunities. F1 is a wide-vector processor with novel functional units deeply specialized to FHE primitives, such as modular arithmetic, number-theoretic transforms, and structured permutations. This organization provides so much compute throughput that data movement becomes the bottleneck. Thus, F1 is primarily designed to minimize data movement. The F1 hardware provides an explicitly managed memory hierarchy and mechanisms to decouple data movement from execution. A novel compiler leverages these mechanisms to maximize reuse and schedule off-chip and on-chip data movement. We evaluate F1 using cycle-accurate simulations and RTL synthesis. F1 is the first system to accelerate complete FHE programs and outperforms state-of-the-art software implementations by gmean 5400x and by up to 17000x. These speedups counter most of FHE's overheads and enable new applications, like real-time private deep learning in the cloud.
Motivation & Objective
- Motivate the need for hardware acceleration of Fully Homomorphic Encryption (FHE) to enable practical secure offloading.
- Design a programmable FHE accelerator capable of executing complete FHE programs, not just primitives.
- Minimize data movement and maximize reuse with an explicitly managed memory hierarchy and static scheduling.
- Develop specialized vector functional units tailored to FHE primitives (modular arithmetic, NTTs, automorphisms).
- Demonstrate feasibility via RTL/14nm-12nm implementation and cycle-accurate simulations showing large speedups.
Proposed method
- Propose a wide-vector processor architecture with specialized FHE functional units (modular add/mul, NTT, automorphisms).
- Use Residue Number System (RNS) to keep arithmetic width in 32-bit lanes and enable wide-coefficient operations.
- Adopt static, VLIW-like scheduling with distributed control and decoupled data movement to maximize throughput and minimize stalls.
- Implement an explicitly managed on-chip scratchpad memory (64 MB) and high-bandwidth off-chip memory with a fast on-chip network to hide latency.
- Develop a novel compiler that performs three-stage scheduling: high-level operation ordering, off-chip data movement scheduling, and cycle-accurate, component-level scheduling.
- Evaluate via cycle-accurate simulation and RTL synthesis in 14nm/12nm process to quantify performance and area.
Experimental results
Research questions
- RQ1How can an accelerator be programmable to execute complete FHE programs (not just primitives) across different FHE schemes like BGV, CKKS, and GSW?
- RQ2What architectural choices (memory hierarchy, static scheduling, vectorized FUs) yield the highest throughput for FHE workloads while minimizing data movement?
- RQ3What is the achievable speedup of a programmable FHE accelerator over state-of-the-art software implementations for representative FHE workloads?
- RQ4How does the F1 design handle the dominant cost of key-switching and automorphisms, and what data-management strategies are required for reuse and bandwidth efficiency?
Key findings
- F1 achieves 1,200× to 17,000× speedups over state-of-the-art software FHE implementations across benchmarks.
- RTL and synthesis in a 14nm/12nm process yield 36 tera-ops/s of 32-bit modular arithmetic, 64 MB on-chip storage, and 1 TB/s memory bandwidth.
- F1 runs complete FHE programs, enabling applications such as real-time deep learning inference in the cloud (e.g., reducing a 20-minute inference to 240 ms).
- Performance is limited by data movement, which F1 mitigates with an explicitly managed memory hierarchy and decoupled data movement.
- The architecture uses static scheduling with many high-throughput vector units and a carefully designed on-chip network to feed these units efficiently.
- F1 supports multiple FHE schemes (BGV, CKKS, GSW) using the same primitive units, enabling algorithmic diversity.
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.