Abstract
Fully Homomorphic Encryption (FHE) is a transformative cryptographic technique that enables computation on encrypted data, yet its practical adoption is hindered by massive computational overhead. While the industry has focused on scaling compute power through GPUs and ASICs, this research demonstrates that memory bandwidth, not arithmetic throughput, is the true bottleneck. By analyzing the CKKS scheme, the authors propose a suite of optimizations—including limb caching, algorithmic fusing, and PRNG key compression—that reduce memory bandwidth requirements by 4.6x and improve bootstrapping throughput by 2.43x. These findings suggest that effective FHE acceleration must prioritize memory-centric architectures over raw compute scaling.
Introduction: The FHE Bottleneck
Fully Homomorphic Encryption (FHE) is often considered the "holy grail" of cryptography because it allows for mathematical operations on ciphertexts without decryption. However, FHE schemes like CKKS suffer from noise accumulation: every operation adds noise to the ciphertext. To prevent data from becoming unrecoverable, a process called bootstrapping is used to "refresh" the ciphertext.
Bootstrapping is the single most expensive component of FHE, often consuming over 50% of the total compute budget. While many researchers have focused on building faster "math engines" (GPUs or ASICs), this paper argues that FHE operations have extremely low arithmetic intensity—often less than one operation per byte of data moved. Consequently, processors spend the majority of their time idle, waiting for data to arrive from RAM.
Methodology: Optimizing the CKKS Data Path
The authors performed a deep architectural analysis of the CKKS FHE scheme, identifying that the "Memory Wall" is the primary barrier to performance. They proposed a multi-layer optimization strategy focused on reducing data movement.
Key to their approach is the management of "limbs"—the components that make up a ciphertext. By implementing Limb Caching, they identified points in the bootstrapping algorithm where specific limbs (defined by parameters $\alpha$ and $\beta$) could be kept in the Last Level Cache (LLC) to prevent unnecessary round-trips to DRAM.
Additional optimizations include:
- Algorithmic Fusing: Merging separate operations like
ModDownandRescaleinto single passes to reduce ciphertext reads/writes. - Optimized Physical Address Mapping: Designing a custom DRAM address mapping to handle the conflicting "limb-wise" and "slot-wise" access patterns required by FHE, minimizing "bank thrashing."
- PRNG Key Compression: Using a seed and a Pseudo-Random Number Generator (PRNG) to generate half of the massive "switching keys" on-the-fly, cutting key-related memory traffic by 50%.
Workload Evaluation: Encrypted Logistic Regression
To validate these optimizations, the researchers evaluated performance using high-security standard FHE parameters (e.g., polynomial degree $N=2^{17}$). Rather than using synthetic benchmarks, they used a real-world application: training a logistic regression model on encrypted data.
As shown in the circuit comparison, the encrypted version replaces standard functions with polynomial evaluations (PolyEval) and requires periodic bootstrapping to manage noise across iterations. This end-to-end workload highlights the complexity and data-intensity of practical FHE applications.
Key Insights: Breaking the Memory Wall
The study reveals several critical insights for future hardware design:
- Ciphertexts are "Cache-Crushers": A single FHE ciphertext can reach ~73 MB, exceeding the capacity of most modern CPU caches (~40 MB). This forces constant, expensive dialogue with DRAM.
- Compute is "Cheap": On modern hardware, compute cycles are abundant. "Wasting" cycles to generate keys via PRNG is a significant net gain because it saves precious memory bandwidth.
- Arithmetic Intensity: Their optimizations increased arithmetic intensity by 3.2x, moving FHE from a "starved" state toward a more balanced utilization of hardware resources.
Results and Performance Gains
The proposed optimizations yielded substantial improvements across several metrics:
- Bandwidth Reduction: Achieved a 4.6x reduction in total DRAM traffic required for bootstrapping.
- Throughput: Realized a 2.43x cumulative improvement in bootstrapping throughput compared to prior state-of-the-art GPU implementations.
- Address Mapping: The custom DRAM mapping alone improved "slot-wise" access speeds by 76% over standard baseline mappings.
Conclusion and Future Directions
While these optimizations provide a 4x improvement, FHE remains orders of magnitude slower than plaintext computing. The authors conclude that the next logical step for FHE acceleration is not just better software or faster ALUs, but architectural shifts like Near-Memory Computing (PIM) or Wafer-Scale Engines. If the memory bus cannot be made fast enough to feed the processor, the compute must be moved inside the memory, or the chips must be large enough to hold entire ciphertexts in on-chip SRAM.
Summary updated