[Paper Review] Strix: An End-to-End Streaming Architecture with Two-Level Ciphertext Batching for Fully Homomorphic Encryption with Programmable Bootstrapping
Strix proposes a domain-specific hardware accelerator for Fully Homomorphic Encryption over the Torus (TFHE) that enables high-throughput programmable bootstrapping (PBS) via a novel two-level ciphertext batching scheme—device-level and core-level batching—combined with a fully pipelined streaming architecture. It achieves 1,067× and 37× higher throughput than CPU and GPU implementations, respectively, and 7.4× speedup over the state-of-the-art TFHE accelerator, by eliminating blind rotation fragmentation and optimizing memory and compute utilization through specialized functional units and a folded FFT microarchitecture.
Homomorphic encryption (HE) enables computations on encrypted data by concealing information under noise for security. However, the process of bootstrapping, which resets the noise level in the ciphertext, is computationally expensive and requires a large bootstrapping key. The TFHE scheme offers a faster and programmable bootstrapping algorithm called PBS, crucial for security-focused applications like machine learning. Nevertheless, the current TFHE scheme lacks support for ciphertext packing, resulting in low throughput. This work thoroughly analyzes TFHE bootstrapping, identifies the bottleneck in GPUs caused by the blind rotation fragmentation problem, and proposes a hardware TFHE accelerator called Strix. Strix introduces a two-level batching approach to enhance the batch size in PBS, utilizes a specialized microarchitecture for efficient streaming data processing, and incorporates a fully-pipelined FFT microarchitecture to improve performance. It achieves significantly higher throughput than state-of-the-art implementations on both CPUs and GPUs, outperforming existing TFHE accelerators by a factor of 7.4.
Motivation & Objective
- To address the performance bottleneck in TFHE bootstrapping, particularly the blind rotation fragmentation issue on GPUs that limits batching and degrades throughput.
- To design a hardware accelerator tailored for TFHE’s unique computational and data access patterns, especially its sequential ciphertext processing and programmable bootstrapping (PBS) workloads.
- To overcome the limitations of existing FHE accelerators, which are optimized for CKKS and not directly applicable to TFHE due to differing data structures and computational requirements.
- To enable high-throughput PBS by significantly increasing batch size through device-level and core-level batching, thereby improving spatial and temporal parallelism.
- To optimize the accelerator’s microarchitecture with specialized, fully pipelined functional units for decomposition and FFT, reducing memory bottlenecks and improving area efficiency.
Proposed method
- Introduces two-level ciphertext batching: device-level batching allows multiple ciphertexts to be processed in parallel using shared bootstrapping keys, increasing spatial reuse; core-level batching enables each processing core to handle multiple ciphertexts sequentially, enhancing temporal reuse.
- Designs a streaming, fully pipelined architecture to process ciphertexts continuously, minimizing idle time and maximizing throughput in sequential PBS operations.
- Proposes a novel microarchitecture for TFHE decomposition that supports high-throughput streaming data processing, crucial for efficient PBS execution.
- Employs a folded FFT microarchitecture with a folding scheme to reduce memory access overhead, achieving 2× higher throughput and 1.7× area reduction compared to conventional designs.
- Optimizes the accelerator’s configuration by analyzing the trade-off between temporal and computational parallelism (TvLP vs CLP), identifying the optimal balance under fixed external memory bandwidth (300 GB/s).
- Uses parameter set IV and evaluates multiple configurations to determine the best performance point, with TvLP=8 and CLP=4 emerging as the optimal configuration.
Experimental results
Research questions
- RQ1What causes the performance degradation in GPU-based TFHE bootstrapping, and how does blind rotation fragmentation limit batching and throughput?
- RQ2How can two-level batching (device-level and core-level) be effectively leveraged to increase the batch size in TFHE programmable bootstrapping?
- RQ3What microarchitectural optimizations are required to support high-throughput, streaming PBS in TFHE, particularly for decomposition and FFT operations?
- RQ4How do the trade-offs between temporal and computational parallelism (TvLP and CLP) affect throughput, latency, and memory bandwidth requirements in a hardware accelerator for TFHE?
- RQ5What performance gains can be achieved by a custom hardware accelerator like Strix compared to CPU, GPU, and existing TFHE accelerators?
Key findings
- Strix achieves 1,067× higher throughput than a CPU and 37× higher than a GPU in running TFHE with PBS, demonstrating massive performance improvements for homomorphic computation.
- The optimal configuration of TvLP=8 and CLP=4 achieves 2,368 PBS/s with only 257 GB/s external memory bandwidth, balancing compute and memory utilization effectively.
- The folded FFT microarchitecture reduces area by 1.7× and increases throughput by 2× compared to non-folded designs, significantly improving efficiency.
- Configurations with higher CLP (e.g., CLP=32) require over 1 TB/s memory bandwidth, making them memory-bound and reducing throughput to only 620 PBS/s, highlighting the importance of balanced design.
- Strix outperforms the state-of-the-art TFHE accelerator Matcha by 7.4× in throughput, establishing a new performance benchmark for TFHE acceleration.
- The accelerator achieves 38× and 17× lower latency than CPU and GPU, respectively, when evaluating deep neural networks, proving its practical advantage in real-world workloads.
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.