TL;DR
The TREBUCHET project introduces a novel hardware accelerator designed to drastically speed up Fully Homomorphic Encryption (FHE) computations, a critical technology for secure data processing. By employing a modular, tile-based architecture with highly parallel ALUs optimized for vectorized modulo arithmetic, TREBUCHET aims to bridge the significant performance gap between FHE and traditional unencrypted computation, making FHE practical for real-world applications.
What Problem Does This Paper Address?
In today's data-driven world, protecting sensitive information like Personally Identifiable Information (PII) is paramount for organizations ranging from the Department of Defense to financial institutions and healthcare providers. Traditional security methods require decrypting data before any computation can occur, leaving it vulnerable to breaches on untrusted systems. Fully Homomorphic Encryption (FHE) offers a solution by allowing computations to be performed directly on encrypted data, ensuring privacy even when processed in the cloud. However, FHE is computationally intensive, requiring orders of magnitude more resources than unencrypted operations. This performance bottleneck, often referred to as the "computation gap," has limited FHE's widespread adoption. TREBUCHET tackles this challenge by developing specialized hardware to accelerate these demanding FHE operations, aiming to reduce the computation gap to a factor of 10x or less.
Methods
TREBUCHET employs a multi-layered, hardware-software co-design approach. At its core is a modular, tile-based architecture featuring Ring Processing Units (RPUs). Each RPU is designed for high-performance ring processing, leveraging explicitly managed hardware to avoid the overhead of caches and dynamic scheduling. The RPUs utilize a parallel vector architecture with a custom instruction set architecture (ISA) optimized for FHE's modulo arithmetic.
Key components of the RPU include:
- High Performance LAW Engines (HPLEs): These are the computational units, featuring modular multipliers and adders optimized for 128-bit modulo arithmetic.
- Vector Data Memory (VDM): A large on-chip memory (4MiB initially, scalable) for buffering data and hiding I/O latency.
- Shuffle Crossbar (SBAR): Facilitates efficient data shuffling between VRF registers, crucial for Number Theoretic Transform (NTT) operations.
- Vector Crossbar (VBAR): Manages data transfer between the VDM and VRF slices.
- Scalar Backend: Handles constants and modulus changes for RLWE processing.
The software stack integrates with open-source FHE libraries like OpenFHE. A key innovation is the NTTX package, which extends the SPIRAL code generation framework to support NTT and batch NTT operations, translating high-level crypto function calls into optimized microcode for the RPU. The project also emphasizes Design Space Exploration (DSE) using the Fulcrum platform to optimize hardware architecture and component selection.
Datasets
Not discussed in the paper. The paper focuses on evaluating performance using simulated workloads and benchmarks derived from FHE operations rather than specific public datasets.
Key Insights and Ideas
- Hardware-Software Co-Design is Crucial: The TREBUCHET project highlights the necessity of tightly integrating hardware and software development for FHE acceleration. The co-design of the RPU ISA with the NTTX compiler is a prime example.
- Modular Tile-Based Architecture for Scalability: The RPU-based tile design allows for flexible scaling of the accelerator's size and capabilities, making it adaptable to different application needs and hardware form factors.
- Optimizing for Modulo Arithmetic: FHE heavily relies on large-number modulo arithmetic, which is not natively efficient on standard CPUs. TREBUCHET's specialized ALUs and vector processing are designed to overcome this bottleneck.
- Data Movement is a Major Bottleneck: The paper acknowledges that the significant data expansion in FHE (ciphertext size increase) makes I/O a critical performance factor. The design incorporates strategies to mitigate this, such as large on-chip memory and careful data scheduling.
- Design Space Exploration is Key: The Fulcrum platform enables rapid exploration of numerous architectural trade-offs, crucial for optimizing FHE hardware as algorithms and requirements evolve.
Key Results
The paper presents performance results based on Palladium emulation and projections.
- Significant Speedups: The TREBUCHET accelerator demonstrates substantial speedups over CPU-based FHE implementations. For core kernel latencies, speedups range from 192x for
ringAddto 35,544x forNTTwhen comparing a single RPU to a CPU. A full chiplet (14 RPUs) achieves up to 107,790x speedup forringAdd, and a quad chiplet configuration reaches 40,138x forringAdd. - RPU Performance: Emulated RPU performance for Logistic Regression (LR) training iterations shows times ranging from 0.074 to 0.153 seconds without bootstrapping, and 2.495 to 5.370 seconds with bootstrapping, depending on the RPU model and I/O interface.
- NTT Performance: A validated 64k NTT on RPU Tile 1 runs in 9.15 µSec (18.3k clock cycles), with projections to reach 8 µSec on smaller RPU Tile Model 2.
- Area and Efficiency: The design prioritizes efficiency, with area overheads for certain components being negligible.
Limitations and Future Work
- I/O Bandwidth Limitations: The paper acknowledges that I/O bandwidth can become a bottleneck, especially for applications with high data movement requirements. Future work will focus on better balancing compute and I/O.
- Phase 2 Focus: The current paper focuses on the RPU and LAWS computations. The next phase will involve scaling to the full device, integrating I/O peripherals, and fabricating the complete system.
- CKKS Scheme: Future work will explore the CKKS approximate number scheme, which offers more efficient ciphertext packing and reduces the need for bootstrapping operations.
- ML Applications: The project aims to accelerate larger machine learning applications like Convolutional Neural Networks (CNNs) in future phases.
Summary updated