FHEBench: Benchmarking Fully Homomorphic Encryption Schemes

Lei JiangarXiv 2022 · DOI

Introduction

Fully Homomorphic Encryption (FHE) represents a paradigm shift in data privacy, enabling computation on encrypted data without requiring decryption. Despite its potential, the FHE landscape is fragmented, consisting of various schemes (e.g., BGV, BFV, CKKS, FHEW, and TFHE) and multiple implementation libraries (e.g., Microsoft SEAL, Palisade, IBM HElib). Each combination offers distinct performance trade-offs, making it challenging for developers to select the optimal configuration for specific use cases. This paper introduces FHEBench, a comprehensive benchmarking framework designed to provide a quantitative performance roadmap for FHE.

Methodology

FHEBench evaluates state-of-the-art FHE libraries using standardized parameter sets to ensure 128-bit security across all tests. The benchmarking suite categorizes operations into:

  1. Client-side Setup: Key generation, encryption, and decryption.
  2. Server-side Evaluation: Latency and throughput of arithmetic operations (AddCC, MultCC, AddCP, MultCP, and Rotations) and Boolean logic gates (NAND, AND, XOR).

Experiments were conducted on a consistent hardware baseline (Intel Xeon Gold 6138P) to isolate software and algorithmic performance.

Performance Analysis: Arithmetic Schemes

Arithmetic schemes like BFV, BGV, and CKKS are designed for integer or approximate real-number computation. A critical finding is the "depth penalty": as the multiplicative depth of a circuit increases, the latency of operations grows significantly.

Latency of various homomorphic operations as a function of multiplicative depth.

As shown in the figure above, deeper circuits require larger ciphertext moduli, which increases the computational overhead of every underlying operation. For integer-based applications, BFV generally provides superior server-side performance for circuits with a depth greater than 2, while BGV is more efficient for very shallow circuits.

Library and Logic Comparisons

The choice of software library is as impactful as the choice of scheme. While Palisade is a strong general-purpose performer for arithmetic operations, specialized libraries often excel in specific domains.

Comparison of arithmetic performance across libraries and logic gate latency for FHEW and TFHE.

For Boolean logic, TFHE is the clear leader. It achieves significantly lower latency for gates like NAND and XOR compared to FHEW, largely due to its efficient use of vectorized Fast Fourier Transforms (FFT). A TFHE bootstrapping operation—the most computationally intensive part of logic-based FHE—takes approximately 13ms on a standard CPU.

Key Insights

  • SIMD and Throughput: BFV and BGV leverage Single Instruction, Multiple Data (SIMD) batching to process thousands of values in a single ciphertext slot. This makes them highly efficient for vector-heavy tasks despite high individual operation latency.
  • Client Latency: BGV exhibits the longest key generation times at high depths, whereas CKKS, optimized for floating-point arithmetic, shows the highest decryption latency.
  • Specialization Matters: No single library dominates all categories. Palisade is often the best for arithmetic throughput, but TFHE remains the gold standard for logic-heavy applications.

Conclusion

FHEBench provides the first unified quantitative comparison of FHE schemes and libraries. By highlighting the trade-offs between arithmetic and logic operations, and the impact of circuit depth on performance, this work enables developers to make informed decisions when implementing privacy-preserving applications. Future work will expand this benchmark to include hardware acceleration on GPUs and FPGAs.

Summary updated

BibTeX
@misc{jiang2022fhebench,
  author = {Lei Jiang and Lei Ju},
  title = {{FHEBench: Benchmarking Fully Homomorphic Encryption Schemes}},
  year = {2022},
  eprint = {2203.00728},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2203.00728},
}
Figure